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-common        0.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]

Reply via email to