Bug#295985: myspell-pt-br: Wrong format for pt_BR.dic leads to wrong corrections

2007-03-19 Thread Rafael Laboissiere
* Rafael Laboissiere <[EMAIL PROTECTED]> [2007-02-09 14:31]:

> package myspell-pt-br
> tags 295985 moreinfo unreproducible
> thanks
> 
> * 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.
> 
> I am revisiting this bug report.  I cannot reproduce the problem with
> oowriter.  See the attached screenshot.
> 
> I am using:
> 
> myspell-pt-br 3.0~beta4-2
> openoffice.org 2.0.4-7
> 
> I still see here:
> 
> $ grep ^outro/ /usr/share/myspell/dicts/pt_BR.dic
> outro/A
> outro/B
> 
> If there is no reaction to this message in a reasonable amount of time (say,
> one month from now), I will close this bug report.

There was no reaction to the message above.  I am hereby closing this bug
report.  Feel free to reopen it if further evidence for the bug is given.
 
-- 
Rafael


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



Bug#295985: myspell-pt-br: Wrong format for pt_BR.dic leads to wrong corrections

2005-02-20 Thread Rafael Laboissiere
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]



Bug#295985: myspell-pt-br: Wrong format for pt_BR.dic leads to wrong corrections

2005-02-19 Thread Michel Loos
Package: myspell-pt-br
Version: 2.4.really.3.0.beta4-7
Severity: important
Tags: patch



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pt_BR, LC_CTYPE=pt_BR (charmap=ISO-8859-1)

Versions of packages myspell-pt-br depends on:
ii  dictionaries-common0.22.40sarge7 Common utilities for spelling dict

-- no debconf information

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;
  }
}

Thanks


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