mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix for langs with custom tiles
This commit is contained in:
parent
75d2f37d56
commit
c44d83e413
1 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,8 @@ while (<>) {
|
|||
|
||||
foreach my $letter (split( / */ ) ) {
|
||||
my $i = ord($letter);
|
||||
die "$0: this is a letter?: $i" if $i <= 32;
|
||||
# special-case the bogus chars we add for "specials"
|
||||
die "$0: this is a letter?: $i" if $i <= 32 && $i >= 4 && $i != 0;
|
||||
++$letterCounts[$i];
|
||||
++$letterCount;
|
||||
}
|
||||
|
@ -52,7 +53,7 @@ for ( my $i = 1 ; $i <= 15; ++$i ) {
|
|||
|
||||
print "\n\n**** Letter counts ****\n";
|
||||
print "ASCII ORD HEX PCT (of $letterCount)\n";
|
||||
for ( my $i = 32; $i < 255; ++$i ) {
|
||||
for ( my $i = 0; $i < 255; ++$i ) {
|
||||
my $count = $letterCounts[$i];
|
||||
if ( $count > 0 ) {
|
||||
my $pct = (100.00 * $count) / $letterCount;
|
||||
|
|
Loading…
Reference in a new issue