package myspell-pt-br
tags 295985 upstream
forwarded 295985 Ricardo Ueda Karpischek <[EMAIL PROTECTED]>
thank

* Michel Loos <[EMAIL PROTECTED]> [2005-02-19 12:01]:

> The pt_BR.dic file has several repeated roots
> e.g.
> outro/A
> outro/B
> in this way the second line is not considered by myspell and 'outros'
> will be considered as mispelled.
> 
> Here after a program which transforms the actual pt_BR.dic in the
> correct format.
> 
> #!/usr/bin/perl
> 
> $old = '';
> while (<>)
> {
>   chomp;
>   undef @all;
>   $sufat='';
>   @all = split /\//;
>   $atual = $all[0];
>   if ($all[1])
>   { 
>     shift @all;
>     $sufat = join  '',@all;
>   }
>   if ($atual eq $old)
>   {
>     if ($sufat)
>     {
>       $sufold .= $sufat;
>     }
>   } else {
>     if ($old) {
>     if ($sufold)
>     {
>       print "$old/$sufold\n";
>     } else {
>       print "$old\n";
>     }
>     }
>     $old = $atual;
>     $sufold = $sufat;
>   }
> }

Thank you for your bug report.  I confirm the problem here.  However, I
think that this is an upstream problem, since the pt_BR.dic file is
generated at build time by the upstream Makefile of the br.ispell source
package.  Your Perl script above seems to work, but I think that the
upstream author must have his word to say.  Therefore, I am forwarding this
bug report to him.

-- 
Rafael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to