You are not logged in.

#1 2003-10-02 03:41:08

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Latex internationalization (uh?)

thats quite a long and hard to spell word!

Well, here's the problem, as some of you know, i made the translation to Spanish for the documentation of Arch.

I did it on a TEX file wich is the same Gyroplast used to make the "template" so then you can convert them to html, dvi, txt or whatever...

the point is that when i run the script for this task, i find this at start:

[crow@archcrow archdoc]$ ./regen 
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./archdoc_es.exp
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/latex/html/html.sty)
No file archdoc_es.aux.
(/usr/share/texmf/tex/latex/base/omscmr.fd)
(/usr/share/texmf/tex/latex/base/omlcmr.fd)
! Missing $ inserted.
<inserted text> 

As you can see, it loads some "hyphenation" patterns, wich dont include Spanish... I need that so it doesnt take some of the special characters as errors or replace them with extrange coding... any help with this??


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#2 2003-10-02 08:11:20

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Latex internationalization (uh?)

First off, a plea to the tetex maintainers : the package guidelines say to remove info files and documentation that can easily found online. However, the extremely useful and extensive documentation contained in standard tetex cannot be found on tetex's homepage http://www.tug.org/teTeX/ , so, could this documentation be kept ?

With that, the docs would be in /usr/share/texmf/doc and babel would be in /usr/share/texmf/doc/generic/babel since the babel package takes care of internationilaztion.

To answer the question, I dug through CTAN and, e.g. here is the babel source :
ftp://ftp.dante.de/tex-archive/macros/l … red/babel/
the User Guide is user.dvi
This should get you going with spanish hyphenation (and more !). Bottom line, try to modify the babel line to something like:

usepackage[spanish, english]{babel}

Offline

#3 2003-10-02 09:36:11

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Latex internationalization (uh?)

Thanks,

Going to test it later, and post back.

Again thank you very much!


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#4 2003-10-02 10:08:34

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Latex internationalization (uh?)

Hi,

I read user.dvi, and could find a solution to this:

LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german, ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size12.clo))
(/usr/share/texmf/tex/generic/babel/babel.sty
(/usr/share/texmf/tex/generic/babel/spanish.ldf
(/usr/share/texmf/tex/generic/babel/babel.def)

Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `Spanish'
(babel)                I will use the patterns loaded for language=0 instead.

)) (./archdoc_es.aux) (/usr/share/texmf/tex/latex/base/omscmr.fd)
(/usr/share/texmf/tex/latex/base/omlcmr.fd)

This happens when i change the line

 usepackage{html}

for

usepackage[spanish]{babel}

tryed adding english, the same thing happend.

i think has something to do with the two files a downloaded (spanish.dtx and spanish.ins) but i found this two in my system:

[crow@archcrow archdoc]$ locate babel/spanish
/usr/share/texmf/tex/generic/babel/spanish.ldf
/usr/share/texmf/tex/generic/babel/spanish.sty

and it seems those two are built from the first ones....

i dont know what to do about this.


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

#5 2003-10-02 12:10:20

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: Latex internationalization (uh?)

Interesting :-) ... you learn something new everyday ... So far, I only used english and german styles, and these hyphenations (along with french) are loaded by default. It seems for something else, you need to edit the language.dat file and then tell babel about it.

The easiest (and in tetex prefered) way ist to fire up texconfig (as root), and select "hyphenation" and then "latex" (or repeat for other parts of tetex). Then you can edit the file language.dat (oh - you may have to set your editor first ;-) ... ). The file is pretty much self descriptive. Once you save a modified version, the config tool will perform all necesary steps. After that, the error you got should disappear.

I almost forgot : keep the usepackage{html} line so that it looks like

usepackage{html}
usepackage[spanish]{babel}

The usepackage{html} has nothing to do with languages. You can have as many usepackage commands as you wish.

Some more explanation : so far, the selection of spanish for babel gave you shortcuts for the various spanish accents etc. See the user manual of my first post.

Last note : I never really had to deal with non-default hyphenations. To me it seems a bit weird that you need to be root to get these non-standard hyphenations. There may be other ways. If somebody knows something, correct me please. However, for you as a native spanish speaker, it makes perfect sense to load spanish as a system default. Oh, and you may want to put language.dat in /etc/pacman.conf ;-)

And a final OT note : the texconfig tool is really really useful, and everybody using latex extensively should dig through it and configure his/her printer resolutions, page setups etc.

Offline

#6 2003-10-05 05:29:55

sud_crow
Member
From: Argentina
Registered: 2003-06-30
Posts: 546
Website

Re: Latex internationalization (uh?)

Alright that helped, now spanish is showing in babel....

But i keep getting the vocals with hyphens replaced...

I think it has something to do with spanish not being the first lang. but i specified that in the file as you told me.

Im going crazyyyy!!! its taking longer to make the HTML files that what it took me to translate the file!!! (not really smile)


Leonardo Andrés Gallego
www.archlinux-es.org || Comunidad Hispana de Arch Linux

Offline

Board footer

Powered by FluxBB