tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[escaping] Installing print/tex-hyphen-* seems to bork latex language.def
Hello,
Behold a simple tex source file:
--------------------------------
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\begin{document}
Foo.
\end{document}
--------------------------------
If I run latex on this, with base latex + english babel installed,
everything works fine. If I install tex-hypen-{english,swedish} I get a
bunch of errors from latex:
--------------------------------
[---]
(/Users/jan/pkg/share/texmf-dist/tex/generic/babel/switch.def)
(/Users/jan/pkg/share/texmf-dist/tex/generic/babel-english/english.ldf
(/Users/jan/pkg/share/texmf-dist/tex/generic/babel/babel.def
(/Users/jan/pkg/etc/texmf/tex/generic/config/language.def
Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'.
See the inputenc package documentation for explanation.
Type H <return> for immediate help.
...
l.32 ^^G
ddlanguage{usenglishmax}{loadhyph-en-us.tex}{}{2}{3}
?
! LaTeX Error: Missing \begin{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.32 ^^Gd
dlanguage{usenglishmax}{loadhyph-en-us.tex}{}{2}{3}
?
! Package inputenc Error: Keyboard character used is undefined
(inputenc) in inputencoding `utf8'.
[---]
--------------------------------
.. etc ..
(Note that it's not actually an issue with utf8; if I use latin1
instead I get the same error but for latin1).
The control-G looks very wrong, and indeed language.def has:
--------------------------------
[---]
%%% BEGIN tex-hyphen-english
ddlanguage{usenglishmax}{loadhyph-en-us.tex}{}{2}{3}
ddlanguage{ukenglish}{loadhyph-en-gb.tex}{}{2}{3}
ddlanguage{british}{loadhyph-en-gb.tex}{}{2}{3}
ddlanguage{UKenglish}{loadhyph-en-gb.tex}{}{2}{3}
%%% END tex-hyphen-english
%%% BEGIN tex-hyphen-swedish
ddlanguage{swedish}{loadhyph-sv.tex}{}{2}{2}
%%% END tex-hyphen-swedish
%%% No changes may be made beyond this point.
[---]
--------------------------------
Those ddlanguage are actually <Control+G>ddlanguage -- they should be
\addlanguage.
The Makefile, for tex-hyphen-english, has:
--------------------------------
TEX_HYPHEN_DEF+= \\addlanguage{usenglishmax}{loadhyph-en-us.tex}{}{2}{3}
TEX_HYPHEN_DEF+= \\addlanguage{ukenglish}{loadhyph-en-gb.tex}{}{2}{3}
TEX_HYPHEN_DEF+= \\addlanguage{british}{loadhyph-en-gb.tex}{}{2}{3}
TEX_HYPHEN_DEF+= \\addlanguage{UKenglish}{loadhyph-en-gb.tex}{}{2}{3}
--------------------------------
Seems some unexpected escape-sequence-eating is happening somewhere
inside of the pkgsrc machinery, but the latest commit message for that
file seems to be explicitly to fix these kinds of issues.
This is on Darwin, El Capitan, very recent pkgsrc-current (the fossil
repository; sync'd yesterday).
Without actually looking into what happens with TEX_HYPHEN_DEF, I
tried changing \\ to \\\\ (in case an extra layer of shells had been
added along the way) but it didn't change anything; in fact the output
seems to be was identical (which slightly surprised me).
--
Kind Regards,
Jan
Home |
Main Index |
Thread Index |
Old Index