Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212515 - no non-English language hyphenation with texlive latex
Summary: no non-English language hyphenation with texlive latex
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 16:43 UTC by R Stephan
Modified: 2009-07-13 14:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description R Stephan 2008-03-06 16:43:06 UTC
Both babel.sty with the german/germanb options and german.sty from the
package texlive-langgerman, together with \selectlanguage{german}, will
not include German language hyphenation patterns, WHEN USED WITH the
latex command. Xelatex does work, and this proves my language.dat file
is read by xelatex.

The correct log with xelatex:
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, basque, german, ngerman, french, loaded.

The log with the same file on the same installation, but using latex:
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
...
Package babel Warning: No hyphenation patterns were loaded for
(babel)                the language `German'
(babel)                I will use the patterns loaded for \language=0
instead.

Using german.sty gives
german -- \language number for German undefined, default 255 used,
german -- Please read "gerdoc.tex" how to install hyphenation patterns.
german -- \language number for Austrian undefined, default 255 used.
german -- \language number for French undefined, default 255 used.
Comment 1 Dustin Polke 2008-03-06 17:09:57 UTC
Could attach a minimal example as well as the output of 'emerge -p'?

I am using TeXlive with German hyphenation as well and have not run into this problem yet. I want to try to reproduce it.
Comment 2 R Stephan 2008-03-06 17:59:27 UTC
(In reply to comment #1)
> Could attach a minimal example as well as the output of 'emerge -p'?

I'm supposing you want this:
* app-text/texlive [R 2007-r3] <target>
    X -cjk -context -cyrillic doc extra games graphics humanities -jadetex music omega png pstricks publishers science -tex4ht xetex xml linguas: -af -ar -bg -bn -bo -cs -cy -da de -el en -en_GB -eo -es -et -fi fr -he -hi -hr -hsb -hu -hy -id -is -it -ja -ko -la -ml -mn -nl -no -pl -pt -ro -ru -sk -sl -sr -sv -ta -th -tr -uk -vi -zh

The minimal file would be something like this:

\documentclass[12pt,oneside]{book}
\usepackage[german]{babel}
\begin{document}
\end{document}

With latex:

This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./t.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-dist/tex/latex/base/book.cls
Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/bk12.clo))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/germanb.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def)

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

)) (./t.aux) (./t.aux) )
No pages of output.
Transcript written on t.log.

The same with xelatex:

This is XeTeXk, Version 3.141592-2.2-0.996 (Web2C 7.5.6)
 %&-line parsing enabled.
entering extended mode
(./t.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, basque, german, ngerman, french, loaded.
(/usr/share/texmf-dist/tex/latex/base/book.cls
Document Class: book 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/bk12.clo))
(/usr/share/texmf-dist/tex/generic/babel/babel.sty
(/usr/share/texmf-dist/tex/generic/babel/germanb.ldf
(/usr/share/texmf-dist/tex/generic/babel/babel.def))) (./t.aux) (./t.aux) )
No pages of output.
Transcript written on t.log.
Comment 3 R Stephan 2008-03-06 18:03:54 UTC
Let me add that even with xelatex, there are hyphenation problems
with words containing Umlauts, but that's another bug which I might
file depending on this outcome.
Comment 4 Alexis Ballier gentoo-dev 2008-03-06 18:09:40 UTC
please give me the output of:
kpsewhich language.dat

and the contents of that file
Comment 5 R Stephan 2008-03-06 18:34:53 UTC
(In reply to comment #4)
ralf@localhost ~ $ kpsewhich language.dat
//etc/texmf/tex/generic/config/language.dat
ralf@localhost ~ $ cat `kpsewhich language.dat`
% language.us (and the start of language.dat)
% - initial hyphenation patterns.
% Created long ago by Sebastian Rahtz and others.  Public domain.
% 
% language.us is concatenated with the other language.*.dat files
% desired by the user to create language.dat.  This is done at the end
% of install-tl.sh.
% 
% The premade texmf/tex/generic/config/language.dat (where you might be
% reading this) in the distribution is a copy of this concatenation with
% all languages enabled.  It is used when the user asks to run live
% (install option R).
%
% The preferred comment for actual language lines is %!. Do not use %!
% for textual comments like this. This is to be able to separate
% textual comments from commented-out language in such a way that
% automatic parsing by programs is possible, so that 
% we can present the user with `all possible languages'.
% 
% *PLEASE*, keep english as the default (first) here, and let it refer
% to hyphen.tex (not, e.g., ushyph.tex), and do not change the
% hyphen.tex file, or name some other file hyphen.tex.  hyphen.tex must
% remain the original file from Knuth, and it must be \language0.
% Otherwise DEK will not be happy when he retypesets the Art of Computer
% Programming and gets new hyphenation.
% 
% The babel system allows you to easily change the active language for
% LaTeX. For more information, see the documentation in
% texmf-dist/doc/generic/babel/.  ConTeXt has its own language support too.
% 
english		hyphen.tex  % do not change!
=usenglish
=USenglish
=american
%
% ushyphmax.tex, on the other hand, includes Gerard Kuiken's additional
% patterns; it is not frozen.
usenglishmax	ushyphmax.tex
%
% FYI, ushyph.tex is Dr. Kuiken's smaller set of patterns; with today's
% large memories, there is no reason to use it, and we don't list it here.
% ushyph1.tex is another (historical) name for hyphen.tex.
% ushyph2.tex is another (historical) name for ushyph.tex.
% --karl
%% 
dumylang	dumyhyph.tex    %for testing a new language.
nohyphenation	zerohyph.tex    %a language with no patterns at all.
basque		xu-bahyph.tex
german		xu-dehypht.tex
ngerman		xu-dehyphn.tex
french		xu-frhyph.tex
=patois
=francais
Comment 6 Alexis Ballier gentoo-dev 2008-03-07 01:14:49 UTC
(In reply to comment #5)
> (In reply to comment #4)
> ralf@localhost ~ $ kpsewhich language.dat
> //etc/texmf/tex/generic/config/language.dat


hmm what package does provide this file ?
here it is at: /usr/share/texmf/tex/generic/config/language.dat
and is provided by: dev-texlive/texlive-basic-2007

may I suggest you reading http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml

especially the part about stray files in /etc/texmf that might cause problems.
Comment 7 R Stephan 2008-03-07 08:47:42 UTC
(In reply to comment #6)
> especially the part about stray files in /etc/texmf that might cause problems.

Thanks! However, while this may have been part of the problem, the issue
only whent away when I used 'texconfig hyphen latex' as user, not as root.
I was under the erroneous assumption that there is only a system-wide config. What use is an individual hyphenation config if the languages are installed system-wide, anyway?

Generally, I think it's very bad style that the logs don't show which files are read, and I would suggest suggesting to people to use something like strace as long as there is no mechanism to show included files.

Finally, the mentioned issue with words having Umlauts went away, too, so no sweat.
Comment 8 Matías Graña 2009-04-03 03:47:11 UTC
(In reply to comment #7)

> Thanks! However, while this may have been part of the problem, the issue
> only whent away when I used 'texconfig hyphen latex' as user, not as root.

I have the original problem with texlive-2008. It does not disappear by using texconfig nor texmf-update (neither as user nor as root).
Strange enough, while latex does not find hyphenation files, xelatex does.

I'm not sure whether I should file a new bug or not. I may not reopen this one.
Comment 9 Matías Graña 2009-07-13 14:44:12 UTC
Just for the record:
following the last item in http://www.gentoo.org/proj/en/tex/texlive-migration-guide.xml, I've got

# kpsewhich language.dat
//etc/texmf/tex/generic/config/language.dat

and then

# rm -rf /etc/texmf/tex
# texmf-update

solved the issue.