TeX Live and MacTeXHyphenation (German) Not Working After Installation

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
geistdeswaldes
Posts: 6
Joined: Fri Dec 16, 2016 11:09 am

Hyphenation (German) Not Working After Installation

Post by geistdeswaldes »

Hello,

I think there is something wrong going on in the installation process. I did a fresh installation using an "install-tl" script downloaded just a week ago, picked a "small" installation scheme and selected the following additional collections: Recommended fonts (f), German (y), and LaTeX additional packages (J). I left the directory structure untouched and started the installation.

I started a little test run over a simple .tex file and all this resulted in "babel" complaining about missing hyphenation patterns and that's just strange because the package "hyphen-german" is part of the installation, at least it gets downloaded and no messages about failed installations are thrown onto my nose.

The output of babel:
Package babel Warning: No hyphenation patterns were preloaded for
(babel) the language `German (trad. orthography)' into the forma
t.
(babel) Please, configure your TeX system to add them and
(babel) rebuild the format. Now I will use the patterns
(babel) preloaded for english instead on input line 54.
The content of the little .tex file:

Code: Select all

1 \documentclass[12pt,a4paper]{scrartcl}
  2 \usepackage[utf8]{inputenc}
  3 \usepackage[T1]{fontenc}
  4 \usepackage[german]{babel}
  5 \date{15. Dezember 2016}
  6 \author{Waldgeist}
  7 \title{Der Kirschbaum}
  8 
  9 \begin{document}
 10 \maketitle
 11 \tableofcontents
 12 
 13 \section{Start}
 14 Der Kirschbaum blüht.
 15 
 16 \section{Ende}
 17 Die Blüte des Kirschbaums ist schön.
 18 
 19 \end{document}
What is going on? Am I doing something wrong?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyphenation (German) Not Working After Installation

Post by Johannes_B »

I am not sure which meta-package includes the german hyphenation rules. Is there a particular reason for using a minimal scheme? The default is full since disc space is cheap, and many people have trouble with installing needed packages over and over again.
Have you redone the formats after installing the meta-package?

By the way, if you want to write up some current german, use ngerman to get the new hyphenation rules.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
geistdeswaldes
Posts: 6
Joined: Fri Dec 16, 2016 11:09 am

Hyphenation (German) Not Working After Installation

Post by geistdeswaldes »

Johannes_B wrote:I am not sure which meta-package includes the german hyphenation rules. Is there a particular reason for using a minimal scheme? The default is full since disc space is cheap, and many people have trouble with installing needed packages over and over again.
[...]

[...]
Shouldn't be all language related packages installed if you choose a meta package called "German" regardless what kind of installation scheme you used as a base?

I tried the medium installation scheme now, activated the "German" meta package and all the others that are "recommended" and "additional" ones. Hyphenation for the German language is still not working.

Here are some relevant parts of the language.dat file the installer created:
42 english hyphen.tex % do not change!
43 =usenglish
44 =USenglish
45 =american
[...]
dumylang dumyhyph.tex %for testing a new language.
59 nohyphenation zerohyph.tex %a language with no patterns at all.
60 % from dehyph-exptl:
61 german-x-2014-05-21 dehypht-x-2014-05-21.tex
62 =german-x-latest
63 ngerman-x-2014-05-21 dehyphn-x-2014-05-21.tex
[...]
122 % from hyphen-german:
123 german loadhyph-de-1901.tex
124 ngerman loadhyph-de-1996.tex

125 swissgerman loadhyph-de-ch-1901.tex

Code: Select all

kpsewhich loadhyph-de-1091.tex
returns the following information:
/opt/texlive/texmf-dist/tex/generic/hyph-utf8/loadhyph/loadhyph-de-1901.tex
It looks like it's part of a package called hyph-utf8 and also installed on my local machine.

Code: Select all

3 \usepackage[nil,showlanguages]{babel}
generates the following output in the log file:
114 Package: babel 2016/04/23 3.9r The Babel package
115 <*languages>
116 0 english hyphen.tex
117 0 usenglish
118 0 USenglish
119 0 american
120 1 dumylang dumyhyph.tex
121 2 nohyphenation zerohyph.tex
122 </languages>
Now it would be more than great if someone could tell me why those german hyphenation patterns aren't found by babel or the tex system. It's not like I don't have all those needed packages on my local machine:

Code: Select all

tlmgr info hyphen-german
package: hyphen-german
category: TLCore
shortdesc: German hyphenation patterns.
longdesc: Hyphenation patterns for German in T1/EC and UTF-8 encodings, for traditional and reformed spelling, [...]
installed: Yes
[...]
relocatable: No
collection: collection-langgerman

Code: Select all

tlmgr info hyph-utf8
package: hyph-utf8
category: Package
shortdesc: Hyphenation patterns expressed in UTF-8
longdesc: [...]
installed: Yes
[...]
relocatable: No
[...]
collection: collection-basic

Code: Select all

tlmgr info babel-german
package: babel-german
category: Package
shortdesc: Babel support for documents written in German
longdesc: [...]
installed: Yes
[...]
relocatable: No
[...]
collection: collection-langgerman
Johannes_B wrote:Have you redone the formats after installing the meta-package?
No. Not yet. The installer did a "fmtutil-sys [...] --all" at the end of the installation process and the result isn't quite satisfied as we can see.
Johannes_B wrote:By the way, if you want to write up some current german, use ngerman to get the new hyphenation rules.
Thank you for that advice, but screw that new german orthography. I will use the old one as long I'm able to write things down. Why should I change a running system?
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyphenation (German) Not Working After Installation

Post by Johannes_B »

geistdeswaldes wrote:
Johannes_B wrote:Have you redone the formats after installing the meta-package?
No. Not yet. The installer did a "fmtutil-sys [...] --all" at the end of the installation process and the result isn't quite satisfied as we can see.
And what does the log file of that run say? Please attach pdflatex.log
geistdeswaldes wrote:
Johannes_B wrote:By the way, if you want to write up some current german, use ngerman to get the new hyphenation rules.
Thank you for that advice, but screw that new german orthography. I will use the old one as long I'm able to write things down. Why should I change a running system?
The new orthography and hyphenation patterns are the ones everyone should use. Old orthography is obsolete.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
geistdeswaldes
Posts: 6
Joined: Fri Dec 16, 2016 11:09 am

Hyphenation (German) Not Working After Installation

Post by geistdeswaldes »

Johannes_B wrote: And what does the log file of that run say? Please attach pdflatex.log
I've attached that file. I hope it contains some valuable information.
Attachments
pdflatex.log
(12.77 KiB) Downloaded 602 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyphenation (German) Not Working After Installation

Post by Johannes_B »

The log looks fine. Try the example from the very top once more and include the log file of that run.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
geistdeswaldes
Posts: 6
Joined: Fri Dec 16, 2016 11:09 am

Hyphenation (German) Not Working After Installation

Post by geistdeswaldes »

Johannes_B wrote:The log looks fine. Try the example from the very top once more and include the log file of that run.
Here's the log file of that latex invocation.
Attachments
basics.log
(21.32 KiB) Downloaded 648 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyphenation (German) Not Working After Installation

Post by Johannes_B »

The very first line says

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=latex 2016.12.15)  18 DEC 2016 21:54
But you did rebuild the formats on saturday, it should say something like this:

Code: Select all

This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016) (preloaded format=pdflatex 2016.12.17)  18 DEC 2016 14:30
It should say pdflatex, if you want to get a pdf right away. On the other hand, you redid all the format files. Can you check if it is the same for pdflatex?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
geistdeswaldes
Posts: 6
Joined: Fri Dec 16, 2016 11:09 am

Hyphenation (German) Not Working After Installation

Post by geistdeswaldes »

Now I invoked pdflatex directly and the hyphenation problem still persists.
Attachments
basics.log
(21.99 KiB) Downloaded 688 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyphenation (German) Not Working After Installation

Post by Johannes_B »

Advice from Ulrike Fischer: Try kpsewhich -engine=pdftex --all pdflatex.fmt and then check the creation dates and which one changes after running fmtutil-sys.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply