Bug#562783: `dh_installtex hyphen=X,X,lhm=1,rhm=1' produces newline before `lefthyphenmin'
Package: tex-common
Version: 2.03
Severity: normal
Hi Norbert, Frank et al.
When I use the following line in my debian/rules file,
dh_installtex hyphen=pinyin,loadhyph-zh-latn.tex,lhm=1,rhm=1
I get the following warning during installation:
Instellen van latex-cjk-chinese (4.8.2+git20090105-4) ...
the line lefthyphenmin=1 righthyphenmin=1 does not contain a name=
directive, ignored!
the line lefthyphenmin=1 righthyphenmin=1 does not contain a name=
directive, ignored!
When I check /etc/texmf/hyphen.d/20latex-cjk-chinese.cnf, I get the
following lines:
%
name=pinyin file=loadhyph-zh-latn.tex
lefthyphenmin=1 righthyphenmin=1
In other words, the line gets broken off right before ",lhm=".
Joining both lines in the .cnf file fixes the problem.
I think the reason is because on line 340 of /usr/bin/dh_installtex
the "\n" is called in too early:
my $ret="name=$lang file=$pat\n";
I would suggest to add a new line at 361:
$ret .= "\n";
and remove "\n" from line 340.
Best regards
--
Danai
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages tex-common depends on:
ii debconf [debconf-2.0] 1.5.28 Debian configuration management sy
ii dpkg 1.15.5.5 Debian package management system
ii ucf 3.0025 Update Configuration File: preserv
tex-common recommends no packages.
Versions of packages tex-common suggests:
ii debhelper 7.4.10 helper programs for debian/rules
Versions of packages texlive-base depends on:
ii dpkg 1.15.5.5 Debian package management system
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii luatex 0.50.0-1 next generation TeX engine
ii mime-support 3.48-1 MIME files 'mime.types' & 'mailcap
ii texlive-binaries 2009-4 Binaries for TeX Live
ii texlive-common 2009-6 TeX Live: Base component
ii texlive-doc-base 2009-2 TeX Live: TeX Live documentation
-- debconf information excluded
Reply to: