[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Using debconf to get answers about which languages to install



Hi Frank!

On Mit, 27 Jul 2005, Frank Küster wrote:
> > I would prefer it like it is (less work), i.e. all languages installed
> > are activated, but if there are too many, well, bad luck (ok).
> 
> Wasn't there a discussion recently on the texlive list about increasing
> the hyphenation trie size (or whatever register first gets exhausted)?

Ok, I checked. Please increase the trie_size from 262000 to 26500 (or
slightly more to be on the sure side) and all the languages can be
included into the latex format without breaking.

I have increased the trie_size in my tex-common_0.4.2, a diff against
current svn-trunk is attached, which also includes the stuff from 0.4.1


Best wishes

Norbert

-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at>             Università di Siena
sip:preining@at43.tuwien.ac.at                             +43 (0) 59966-690018
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
"Yes, it's the right planet, all right," he said again.
"Right planet, wrong universe."
                 --- Douglas Adams, The Hitchhikers Guide to the Galaxy
diff -urN tex-common-svn/trunk/conf/texmf.d/65BibTeX.cnf tex-common-svn-norbert/trunk/conf/texmf.d/65BibTeX.cnf
--- tex-common-svn/trunk/conf/texmf.d/65BibTeX.cnf	2005-07-20 20:08:49.000000000 +0200
+++ tex-common-svn-norbert/trunk/conf/texmf.d/65BibTeX.cnf	2005-07-28 08:52:45.000000000 +0200
@@ -1,6 +1,6 @@
 % BibTeX bibliographies and style files.
 BIBINPUTS = .;$TEXMF/bibtex/bib//
-BSTINPUTS = .;$TEXMF/bibtex/bst//
+BSTINPUTS = .;$TEXMF/bibtex/{bst,csf}//
 
 % MFT style files.
 MFTINPUTS = .;$TEXMF/mft//
diff -urN tex-common-svn/trunk/debian/changelog tex-common-svn-norbert/trunk/debian/changelog
--- tex-common-svn/trunk/debian/changelog	2005-07-25 14:24:25.000000000 +0200
+++ tex-common-svn-norbert/trunk/debian/changelog	2005-07-28 10:59:38.000000000 +0200
@@ -1,3 +1,18 @@
+tex-common (0.4.2) unstable; urgency=low
+
+  * Change trie_size from 262000 to 265000 to get all languages included
+    without breaking.
+
+ -- Norbert Preining <preining@logic.at>  Thu, 28 Jul 2005 10:59:07 +0200
+
+tex-common (0.4.1) unstable; urgency=low
+
+  * Merge update-fmtutil into update-fontlang
+  * Fix installation of manpages
+  * add bibtex/csf to texmf variable BSTINPUTS in 65BibTeX.cnf
+
+ -- Norbert Preining <preining@logic.at>  Thu, 28 Jul 2005 08:38:26 +0200
+
 tex-common (0.4) unstable; urgency=low
 
   * Bug fix: "tex-common: generalize TEXFONTMAPS and ENCFONTS", thanks to
diff -urN tex-common-svn/trunk/debian/dirs tex-common-svn-norbert/trunk/debian/dirs
--- tex-common-svn/trunk/debian/dirs	2005-07-23 00:26:26.000000000 +0200
+++ tex-common-svn-norbert/trunk/debian/dirs	2005-07-28 08:40:41.000000000 +0200
@@ -11,3 +11,4 @@
 var/lib/texmf/tex/generic/config
 var/lib/tex-common/fontmap-cfg
 var/lib/tex-common/language-cnf
+var/lib/tex-common/fmtutil-cnf
diff -urN tex-common-svn/trunk/debian/rules tex-common-svn-norbert/trunk/debian/rules
--- tex-common-svn/trunk/debian/rules	2005-07-23 00:26:26.000000000 +0200
+++ tex-common-svn-norbert/trunk/debian/rules	2005-07-28 08:35:45.000000000 +0200
@@ -5,10 +5,10 @@
 
 INSTDIR=$(CURDIR)/debian/tex-common
 
-sbin_scripts=update-fmtutil update-texmf update-fontlang
+sbin_scripts=update-texmf update-fontlang
 sbin_installfiles=$(foreach script,$(sbin_scripts), scripts/$(script))
-sbin_manpages=$(foreach script,$(sbin_scripts), scripts/$(script).8)
-bin_manpages=$(foreach script,$(bin_scripts), scripts/$(script).1)
+sbin_manpages=$(foreach script,$(sbin_scripts), scripts/$(script).8) scripts/update-fmtutil.8 scripts/update-language.8
+bin_manpages=$(foreach script,$(bin_scripts), scripts/$(script).1) scripts/update-updmap.1
 
 # for the teTeX packages
 teTeX_buildfiles=debian/common.variables debian/common.functions
@@ -70,7 +70,9 @@
 	cp -a debian/md5sums/* $(INSTDIR)/usr/share/tex-common/
 	cp $(sbin_installfiles) $(INSTDIR)/usr/sbin/
 	ln -s /usr/sbin/update-fontlang $(INSTDIR)/usr/sbin/update-language
+	ln -s /usr/sbin/update-fontlang $(INSTDIR)/usr/sbin/update-fmtutil
 	ln -s /usr/sbin/update-fontlang $(INSTDIR)/usr/bin/update-updmap
+
 	cp $(teTeX_buildfiles) $(INSTDIR)/usr/share/tex-common/teTeX-build/
 
 
diff -urN tex-common-svn/trunk/scripts/update-fmtutil tex-common-svn-norbert/trunk/scripts/update-fmtutil
--- tex-common-svn/trunk/scripts/update-fmtutil	2005-07-20 20:08:49.000000000 +0200
+++ tex-common-svn-norbert/trunk/scripts/update-fmtutil	1970-01-01 01:00:00.000000000 +0100
@@ -1,58 +0,0 @@
-#!/bin/sh
-# update-fmtutil
-# License: GPL
-
-VARD=/var/lib/texmf/web2c
-TXMF=/etc/texmf
-CNFDIR=${TXMF}/fmt.d
-
-if [ "x$1" = "x-v" ]; then
-  VERBOSE=true
-else
-  VERBOSE=false
-fi
-
-if [ -L "${VARD}/fmtutil.cnf" ]; then
-    echo "Didn't run update-fmtutil as you requested!"
-    exit 0
-fi
-
-if [ -f ${CNFDIR}/00tex.cnf ] ; then
-  CNFFILES=`/bin/ls -1 ${CNFDIR}/*.cnf`
-  NUM_CNFFILES=`echo $CNFFILES | wc -w`
-else
-  echo "update-fmtutil; Something seems wrong."
-  exit 1
-fi
-
-
-if [ "${VERBOSE}" = "true" ]; then
-  if [ $NUM_CNFFILES = 1 ] && [ "$CNFFILES" = "/etc/texmf/fmt.d/00tex.cnf" ]; then
-    echo "update-fmtutil: Not generating empty fmtutil.cnf" >&2
-  fi
-  if [ -f "${VARD}/fmtutil.cnf" ]; then
-    echo -n "Regenerating ${VARD}/fmtutil.cnf ... " >&2
-  else
-    echo -n "Generating ${VARD}/fmtutil.cnf ... " >&2
-  fi
-fi
-
-(echo "### This file is automatically generated by update-fmtutil"; \
-echo "#"; \
-echo "# Please do not edit this file directly. If you want to change or add"; \
-echo "# anything please take a look at the files in ${CNFDIR}, and"; \
-echo "# invoke update-fmtutil."; \
-echo "#"; \
-echo "###" ) > ${VARD}/fmtutil.cnf_$$
-
-for i in ${CNFFILES}; do
-    echo "### From file: $i" >> ${VARD}/fmtutil.cnf_$$
-    cat $i >> ${VARD}/fmtutil.cnf_$$
-    echo "### End of file: $i" >> ${VARD}/fmtutil.cnf_$$
-done
-#cat ${CNFFILES} > ${VARD}/fmtutil.cnf_$$
-mv ${VARD}/fmtutil.cnf_$$ ${VARD}/fmtutil.cnf
-
-if [ "$VERBOSE" = "true" ]; then
-  echo "done"
-fi
diff -urN tex-common-svn/trunk/scripts/update-fontlang tex-common-svn-norbert/trunk/scripts/update-fontlang
--- tex-common-svn/trunk/scripts/update-fontlang	2005-07-23 00:26:26.000000000 +0200
+++ tex-common-svn-norbert/trunk/scripts/update-fontlang	2005-07-28 08:35:45.000000000 +0200
@@ -49,8 +49,21 @@
     CC="#"
     PCC="#"            # for printfCOMMENTCHAR
     HELPTEXT="Generate an updmap configuration file."
+elif [ "$progname" = "update-fmtutil" ] ; then
+    CNFDIR=fmt.d
+  # System-wide configuration directory
+    SYSWIDE_CONFDIR=/etc/texmf/$CNFDIR
+    CHECKFILE="$SYSWIDE_CONFDIR/00tex.cnf"
+    EXT="cnf"
+    MEMORY_DIR=/var/lib/tex-common/fmtutil-cnf
+    SYSWIDE_VARD=/var/lib/texmf/web2c
+    DEFAULT_OUTPUTFILE_BASENAME=fmtutil.cnf
+    SYSWIDE_DEFAULT_OUTPUTFILE="$SYSWIDE_VARD/$DEFAULT_OUTPUTFILE_BASENAME"
+    CC="#"
+    PCC="#"            # for printfCOMMENTCHAR
+    HELPTEXT="Generate a fmtutil configuration file."
 else
-    echo "Please call me either as update-updmap or update-language!"
+    echo "Please call me either as update-updmap, update-language, or update-fmtutil!"
     exit 1
 fi
 
diff -urN tex-common-svn/trunk/scripts/update-fontlang.8 tex-common-svn-norbert/trunk/scripts/update-fontlang.8
--- tex-common-svn/trunk/scripts/update-fontlang.8	2005-07-20 20:08:49.000000000 +0200
+++ tex-common-svn-norbert/trunk/scripts/update-fontlang.8	2005-07-28 08:35:45.000000000 +0200
@@ -8,19 +8,25 @@
 .B update-updmap
 .I "[options]"
 .br
+.B update-fmtutil
+.I "[options]"
+.br
 .SH DESCRIPTION
 .BR update-fontlang
 should be called as 
 .B update-updmap
 or
-.B update-language.
+.B update-language
+or
+.B update-fmtutil.
 Depending on the name it is called with, it behaves as described in
 the respective manual pages.  It should not be called directly
 .PP
 .SH SEE ALSO
 .PP
 .BR update-language (8),
-.BR update-updmap (1);
+.BR update-updmap (1),
+.BR update-fmtutil (1);
 further information can be found in the Debian TeX Policy, 
 .B /usr/share/doc/tex-common/Debian-TeX-Policy.txt.gz
 .PP
diff -urN tex-common-svn/trunk/texmf.d/95NonPath.cnf tex-common-svn-norbert/trunk/texmf.d/95NonPath.cnf
--- tex-common-svn/trunk/texmf.d/95NonPath.cnf	2005-07-20 20:08:49.000000000 +0200
+++ tex-common-svn-norbert/trunk/texmf.d/95NonPath.cnf	2005-07-28 10:58:59.000000000 +0200
@@ -127,7 +127,7 @@
 % German: 14000.
 % US English: 10000.
 % 
-trie_size = 262000
+trie_size = 265000
 
 % Buffer size.  TeX uses the buffer to contain input lines, but macro
 % expansion works by writing material into the buffer and reparsing the

Reply to: