[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: full_wordlist



--- Ahmad Al-rasheedan <asr at baldi dot cc> wrote:
>
[snip snip]
>
> > So in terms of when do we need this work completed - its yesterday :-)
> > What are your thoughts on when realistically we can complete all this ?
> 
> Recalculate the balance, 300 words a day from a commited group
> and repost a new date. I need your kids and my kids to a use a free
> Arabic dictionary:)

OK, I used this simple perl script (posted here in case others might want
to use it on their local copies - baring any mistakes),

******* wordlist_left.pl script - begin *******
#!/usr/bin/perl
# -*-Perl-*-

use English;
use File::Find;

$proj_dir	= ".";
$gran_total	= 0;

find(\&process_file, $proj_dir);
printf ("TOTAL  ==>  %5u strings left \n", $gran_total);
exit(0);

##
# Procedure to process file
sub process_file
{
    my (
	$filename,
	$missing,
       );

    $missing	= 0;
    $filename	= $File::Find::name;

    # Process only specific files
    if ( $filename !~ /\.po/ ) { return; }

    open (FILE, "$filename") or die "Can't open $filename \n";
    while (<FILE>)
    {
	if (/^msgid\s+"(.*)"/)		    { $orig_string = $1; }
	if ($orig_string && /^msgstr\s+""/) { $missing++; }
    }
    undef($orig_string);
    close (FILE);

    $gran_total += $missing;

    printf ("$filename  -  %5u empty \n", $missing);
}
******* wordlist_left.pl script - begin *******

Which yielded, the following data (reformatted),

  (A =    37)       J =   163        S = 2,744
  (B =   307)       K =   204        T = 1,324
  (C =   697)       L =   610        U =   666
  (D =   331)       M =   707        V =   345
   E =   579        N =   434        W =   692
   F =   972        O =   507        X =    17
   G =   599        P = 1,775        Y =    59
   H =   804        Q =   114       (Z =    23)
   I =   869        R = 1,069

NOTE: entries surrounded by parenthesis are noted as "done".

With a total total of left strings being 16,685 and with your
300 words a day that leaves us with about 55 days (so say
two months).  Can we now safely saw all these files will be
done (first round) by Sept 30th ?

> Lastly, can you delete "ar.po" in case someone stumbles on it like I did:)

Done.

I would still like to hear from those that had once signed-up to
work on these lists - are you still interested or should we remove
your names ???

Salam.

 - Nadim


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com