Changeset 18115 in josm for trunk/scripts
- Timestamp:
- 2021-08-02T17:44:33+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/geticons.pl
r16876 r18115 12 12 "src/org/openstreetmap/josm/*/*/*/*.java", 13 13 "src/org/openstreetmap/josm/*/*/*/*/*.java", 14 "src/org/openstreetmap/josm/*/*/*/*/*/*.java" 14 "src/org/openstreetmap/josm/*/*/*/*/*/*.java", 15 "src/org/openstreetmap/josm/*/*/*/*/*/*/*.java" 15 16 ); 16 17 … … 41 42 if($l =~ /icon\s*[:=]\s*["']([^"'+]+?)["']/) 42 43 { 43 ++$icons{$1}; 44 my $i = $1; 45 ++$icons{$i}; 44 46 } 45 47 46 48 if(($l =~ /(?:icon-image|repeat-image|fill-image)\s*:\s*(\"?(.*?)\"?)\s*;/) && ($1 ne "none")) 47 49 { 48 my $i mg= $2;49 ++$icons{$i mg};50 my $i = $2; 51 ++$icons{$i}; 50 52 } 51 53 if($l =~ /ImageProvider(?:\.get)?\(\"([^\"]*?)\"(?:, (?:ImageProvider\.)?ImageSizes\.[A-Z]+)?\)/) … … 149 151 if(open FILE, "<","resources/images/$ifile") 150 152 { 153 my $hadfont = 0; 151 154 undef $/; 152 155 my $f = <FILE>; … … 159 162 { 160 163 print STDERR "$ifile: Style starts with minus: $x\n" if $x =~ /^-/; 164 ++$hadfont if($x =~ /^font-/); 165 if($x =~ /^font-family:(.*)$/ && $x !~ /^font-family:'Droid Sans'/) 166 { 167 print STDERR "$ifile: Unwanted font-family: $1\n" 168 } 161 169 } 162 170 } … … 170 178 my $x = $1; 171 179 print STDERR "$ifile: ViewBox has float values: $x\n" if $x =~ /\./; 180 } 181 if($f !~ /<text/ && $hadfont) 182 { 183 print STDERR "$ifile: Font-style without <text>\n"; 172 184 } 173 185 }
Note:
See TracChangeset
for help on using the changeset viewer.