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

Bug#607158: texlive-xetex: polyglossia's hyphenation file (ldf) is incorrect for language "brazil"



Package: texlive-xetex
Version: 2009-11
Severity: normal

Hi there.

Would it be possible to include a fix for the Brazilian users of XeTeX?

The current version of polyglossia's hyphenation file gloss-brazil.ldf
generates many warnings. It is fixed in upstream's git repository (commit
c5f6b740). I include the description here:

,----
| commit c5f6b74015e65c1b04103dceda52c42597aca0b9
| Author: François Charette <firmicus@gmx.net>
| Date:   Sat Jul 18 14:29:37 2009 +0200
| 
|     Fix ldf file for brazilian
|     
|     It was still a copy of gloss-portuguese.ldf
`----

In fact, the patch won't apply here due to a change in one line, but I am
including the patch that I am using (successfully) in one of my systems.

Please, consider applying it.


Thanks,

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br
--- gloss-brazil.ldf~	2009-01-27 00:00:42.000000000 -0200
+++ gloss-brazil.ldf	2010-12-15 00:09:01.810632040 -0200
@@ -1,14 +1,14 @@
-\ProvidesFile{gloss-portuges.ldf}[polyglossia: module for portuguese]
+\ProvidesFile{gloss-brazil.ldf}[polyglossia: module for portuguese]
 \makeatletter
-\def\portuges@font{\normalfontlatin}
+\def\brazil@font{\normalfontlatin}
 
 %FIXME check this:
-\ifx\l@portuges\@undefined
+\ifx\l@brazil\@undefined
   \ifx\l@portuguese\@undefined
-    \xpg@nopatterns{Portuguese}
-    \adddialect\l@portuges0
+    \xpg@nopatterns{Brazilian Portuguese}
+    \adddialect\l@brazil\l@nohyphenation
   \else
-    \let\l@portuges\l@portuguese
+    \let\l@brazil\l@portuguese
   \fi
 \fi
 
@@ -34,7 +34,7 @@
    \def\ccname{Cópia para}%
    \def\headtoname{Para}%
    \def\proofname{Demonstração}%
-   \def\glossaryname{Glossary}%
+   \def\glossaryname{Glossário}%
    }
 \def\datebrazil{%   
    \def\today{\number\day\space de\space\ifcase\month\or
@@ -43,7 +43,7 @@
       \fi\space de\space\number\year}%
       }
      
-\def\brazil@language{\protect\language=\l@portuges}
+\def\brazil@language{\protect\language=\l@brazil}
 
 \setlocalhyphenmins{brazil}{2}{3}
 

Reply to: