Re: Bug#399447: tetex-base: Latex hyphenation is wrong
Ralf Stubner <ralf.stubner@physik.uni-erlangen.de> wrote:
> Danai SAE-HAN (韓達耐) wrote:
>> From: Dylan Thurston <dthurston@barnard.edu>
>>
>>> that package fixes the problem. The fix is to reduce the
>>> priority of /etc/texmf/language.d/10latex-cjk-chinese.cnf. Reassigned
>>> as appropriate.
> [...]
>> @Ralph + fellow Debian TeX maintainers:
>> If I set it to 20 instead of 10, will this be enough?
>> Or would 99 be better? The Debian TeX Subpolicy 4.1.2 doesn't mention
>> a numbering scheme.
>
> The files in /etc/texmf/language.d/ are combined in alphabetic order to
> build up language.dat. So reducing the priority to 20 would be enough.
> However, I think the TeX Policy should make this clear, too. Maybe the
> file that defines the english hyphenation patterns, which should always
> be first, should probably be installed with priority 05 or so.
>
>> However, section 4.1.1 does give an example with "10name.cfg".
>> Perhaps we should preserve "10" for all the basic TeX packages, and
>> use 20 or higher for the other packages?
>> It may not be so important for fontmap files, but it is for
>> hyphenation.
>
> Indeed.
What about this:
--- doc/Debian-TeX-Policy.sgml (Revision 1922)
+++ doc/Debian-TeX-Policy.sgml (Arbeitskopie)
@@ -544,8 +544,14 @@
<item>
<p>
It should install one or more configuration files with names
- following the pattern <tt>10<var>name</var>.cfg</tt> into
- <file>/etc/texmf/updmap.d/</file>. Such files will be later
+ following the pattern <tt>20<var>name</var>.cfg</tt> into
+ <file>/etc/texmf/updmap.d/</file><footnote> Filenames
+ starting with <tt>10</tt> are reserved for the basic
+ TeX packages. However, sorting order is actually
+ only relevant for snippets
+ for <file>texmf.cnf</file>, <file>fmtutil.cnf</file>
+ and <file>language.dat</file>
+ </footnote>. Such files will be later
merged by <prgn>update-updmap</prgn> to form
<file>/var/lib/texmf/web2c/updmap.cfg</file>, the effective
configuration file for <prgn>updmap-sys</prgn>.
@@ -786,7 +792,9 @@
way to implement the configuration scheme described below is to
use the <prgn>debhelper</prgn> program <prgn>dh_installtex</prgn>
provided by <package>tex-common</package>. See
- <manref name="dh_installtex" section="1"> for usage details.
+ <manref name="dh_installtex" section="1"> for usage
+ details. Note that for <file>language.dat</file>, order is
+ important: english should always be the first language.
</p>
<p>
These packages
@@ -871,7 +879,11 @@
way to implement the configuration scheme described below is to
use the <prgn>debhelper</prgn> program <prgn>dh_installtex</prgn>
provided by <package>tex-common</package>. See
- <manref name="dh_installtex" section="1"> for usage details.
+ <manref name="dh_installtex" section="1"> for usage
+ details. Note that for <file>fmtutil.cnf</file>, order is
+ important: Formats will be created for each line, and thus
+ format files created from later lines will overwrite earlier
+ ones.
</p>
<p>
Additionally, all occurences of "10" in dh_installtex must be replaced
by 20 (one in a variable assignment, the rest in the documentation).
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: