[Debian-tex-commits] SVN tex-common commit + diffs: r3927 - in tex-common/branches/for-tl2008: conf/hyphen.d scripts

Norbert Preining preining at alioth.debian.org
Mon May 11 21:57:14 UTC 2009


Author: preining
Date: 2009-05-11 21:57:14 +0000 (Mon, 11 May 2009)
New Revision: 3927

Added:
   tex-common/branches/for-tl2008/conf/hyphen.d/00tex.cnf
Modified:
   tex-common/branches/for-tl2008/scripts/update-fontlang
Log:
more fixes


Added: tex-common/branches/for-tl2008/conf/hyphen.d/00tex.cnf
===================================================================
--- tex-common/branches/for-tl2008/conf/hyphen.d/00tex.cnf	                        (rev 0)
+++ tex-common/branches/for-tl2008/conf/hyphen.d/00tex.cnf	2009-05-11 21:57:14 UTC (rev 3927)
@@ -0,0 +1,4 @@
+%
+% The first entries in language.dat and language.def have to be
+% for english/USenglish to ensure total document portability.
+% 


Property changes on: tex-common/branches/for-tl2008/conf/hyphen.d/00tex.cnf
___________________________________________________________________
Added: svn:eol-style
   + native

Modified: tex-common/branches/for-tl2008/scripts/update-fontlang
===================================================================
--- tex-common/branches/for-tl2008/scripts/update-fontlang	2009-05-11 21:33:21 UTC (rev 3926)
+++ tex-common/branches/for-tl2008/scripts/update-fontlang	2009-05-11 21:57:14 UTC (rev 3927)
@@ -732,7 +732,23 @@
 confdirs="${SYSWIDE_CONFDIR}/"
 [ $syswide_mode = 0 ] && confdirs="${confdirs}\n#    ${conf_dir}/"
 
-if ! printf "\
+if ! printf "" > "$tempfile" ; then
+    echo "$progname: cannot write to the temporary file '$tempfile'" >&2
+    exit 1
+fi
+
+#
+# we have to make sure that language.def starts out the right way!
+if [ "$HYPHENMODE" = "etex" ] ; then
+    printf "\
+${PCC}${PCC} e-TeX V2.0;2
+
+${PCC} Note: the first line of this file must match the corresponding line
+${PCC} in \"etex.src\" and \"etexdefs.lib\", otherwise fallback will be used.
+\n" >> "$tempfile"
+fi
+
+printf "\
 ${PCC}${PCC}${PCC} This file was automatically generated by ${progname}.
 ${PCC}
 ${PCC} Please do not edit it directly. If you want to add or change
@@ -742,10 +758,7 @@
 ${PCC}
 ${PCC} and invoke ${progname}.
 ${PCC}
-${PCC}${PCC}${PCC}\n" >"$tempfile"; then
-    echo "$progname: cannot write to the temporary file '$tempfile'" >&2
-    exit 1
-fi
+${PCC}${PCC}${PCC}\n" >> "$tempfile"
 
 # From now on, $tempfile must be deleted on exit; therefore, cleanup() should
 # be used.
@@ -756,6 +769,16 @@
     find "$SYSWIDE_CONFDIR" "$conf_dir" -maxdepth 1 -type f -name '*.'${EXT}
 fi | swap_basename_and_dirname | LC_COLLATE=C sort | merge_files
 
+#
+# for language.def we have to select the right language at the end
+if [ "$HYPHENMODE" = "etex" ] ; then
+    printf "
+${PCC}${PCC}${PCC} No changes may be made beyond this point.
+
+\uselanguage {USenglish}             ${PCC}${PCC}${PCC} This MUST be the last line of the file.
+" >> "$tempfile"
+fi
+
 # This is atomic.
 mv "$tempfile" "$output_file"
 




More information about the Debian-tex-commits mailing list