Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
Package: tex-common Version: 0.29 Severity: important I started to use (La)TeX during teTeX-era. Then I chose hyphenations with command "texconfig" and later with debconf of some package. I chose hyhenations for english and finnish. In some point I switched from teTeX to TeX Live. My Master's Thesis had a line like this: \usepackage[finnish,english]{babel} And it works fine. I changed it to this: \usepackage[finnish,english,francais,italian]{babel} I also installed packages texlive-lang-french and texlive-lang-italian . A file called /var/lib/texmf/tex/generic/config/language.dat was not properly generated. I run update-languages by hand. After that it had wrong permissions, beacause root has umask 077. I made it world-readable. Here are relevant lines from that file: %%% From file: /etc/texmf/language.d/10texlive-lang-french.cnf % 10texlive-lang-french.cnf % % You really can change stuff in this file, but it is NOT RECOMMENDED % to play around with this file if you do not know what you are doing! % Please leave this comment! % -_- DebPkgProvidedMaps -_- % french frhyph.tex =patois =francais basque bahyph.tex %%% End of file: /etc/texmf/language.d/10texlive-lang-french.cnf %%% From file: /etc/texmf/language.d/10texlive-lang-italian.cnf % 10texlive-lang-italian.cnf % % You really can change stuff in this file, but it is NOT RECOMMENDED % to play around with this file if you do not know what you are doing! % Please leave this comment! % -_- DebPkgProvidedMaps -_- % italian ithyph.tex %%% End of file: /etc/texmf/language.d/10texlive-lang-italian.cnf But now running latex looks like this: This is pdfeTeXk, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) Source specials enabled. entering extended mode LaTeX2e <2003/12/01> Babel and hyphenation patterns for english, dumylang, nohyphenation, finnish, ukenglish, loaded. Where is that Italian and French? Later I see this: (/usr/share/texmf-texlive/tex/generic/babel/babel.sty (/usr/share/texmf-texlive/tex/generic/babel/finnish.ldf (/usr/share/texmf-texlive/tex/generic/babel/babel.def)) (/usr/share/texmf-texlive/tex/generic/babel/english.ldf) (/usr/share/texmf-texlive/tex/generic/babel/frenchb.ldf Package babel Warning: No hyphenation patterns were loaded for (babel)the language `French' (babel)I will use the patterns loaded for \language=0 instead. * * Local config file frenchb.cfg used * (/usr/share/texmf-texlive/tex/generic/babel/frenchb.cfg)) (/usr/share/texmf-texlive/tex/generic/babel/italian.ldf Package babel Warning: No hyphenation patterns were loaded for (babel)the language `Italian' (babel)I will use the patterns loaded for \language=0 instead. Aargh! What is the canonical way to activate hyphenations and other language support of desired languages for LaTeX and friends? Running "dpkg-reconfigure tex-common" did not provide that familiar debconf-dialog for choosing hyphention and other language support. What should I do? I think this bug is so obvious that minimal example file is not needed. What will happen, if I purge and re-install all TeX-related packages? I fear I will lose also Finnish hyphenation in that process. -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'proposed-updates'), (101, 'unstable'), (99, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-2-686 Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8) Versions of packages tex-common depends on: ii debconf [debconf-2.0] 1.5.4 Debian configuration management sy ii ucf 2.0014 Update Configuration File: preserv tex-common recommends no packages. Versions of packages texlive-base depends on: ii texlive-base-bin 2005.dfsg.1-1 TeX Live: Essential binaries ii texlive-common 2005.dfsg.1-1 TeX Live: Base component ii texlive-doc-base 2005.dfsg.1-1 TeX Live: Base documentation -- debconf information: tex-common/check_texmf_wrong: tex-common/check_texmf_missing: tex-common/singleuser: false tex-common/cnf_name: -- Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv "Realisti, ateisti - Se ei koske sinua. Demokratia, byrokratia - Se koskee sinua. Vapaus, veljeys, tasa-arvo - Se ei koske sinua. Kansalle virtaa. Se sattuu ja se koskee sinua. Kärsi!" Turmion kätilöt
Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
On Fri, Sep 22, 2006 at 17:31 +0300, Juhapekka Tolvanen wrote: > I also installed packages texlive-lang-french and texlive-lang-italian . > A file called /var/lib/texmf/tex/generic/config/language.dat was not > properly generated. In what sense was it not properly generated? How did you determin that? > I run update-languages by hand. After that it had > wrong permissions, beacause root has umask 077. I made it > world-readable. Actually this should not matter as long as root can read the file, since it is only used when format files are created, which is almost only done by root. > But now running latex looks like this: > > This is pdfeTeXk, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) > Source specials enabled. > entering extended mode > LaTeX2e <2003/12/01> > Babel and hyphenation patterns for english, dumylang, nohyphenation, > finnish, ukenglish, loaded. > > > Where is that Italian and French? Later I see this: You did not recreate the format files hence the changes to language.dat did not have any effect. > Aargh! What is the canonical way to activate hyphenations and other > language support of desired languages for LaTeX and friends? Normally the texlive-lang-* packages do this automatically. That looks like a bug worth investigating. Otherwise, # update-languages followed by # fmutil-sys --all should regenerate all format files with hyphenation enabled based on the configuration files in /etc/texmf/language.d/. If that does not help, then we will need some more informations for debugging. cheerio ralf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
On Sat, 23 Sep 2006, +01:50:14 EEST (UTC +0300), Ralf Stubner <[EMAIL PROTECTED]> pressed some keys: > On Fri, Sep 22, 2006 at 17:31 +0300, Juhapekka Tolvanen wrote: > > > I also installed packages texlive-lang-french and texlive-lang-italian . > > A file called /var/lib/texmf/tex/generic/config/language.dat was not > > properly generated. > In what sense was it not properly generated? How did you determin that? That file said nothing about Italian and French. > Normally the texlive-lang-* packages do this automatically. That looks > like a bug worth investigating. Otherwise, > > # update-languages > > followed by > > # fmutil-sys --all > > should regenerate all format files with hyphenation enabled based on the > configuration files in /etc/texmf/language.d/. If that does not help, > then we will need some more informations for debugging. I tried those two commands, but it did not help: This is pdfeTeXk, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) Source specials enabled. entering extended mode LaTeX2e <2003/12/01> Babel and hyphenation patterns for english, dumylang, nohyphenation, fi nnish, ukenglish, loaded. (CLIP) (/usr/share/texmf-texlive/tex/generic/babel/babel.sty (/usr/share/texmf-texlive/tex/generic/babel/finnish.ldf (/usr/share/texmf-texlive/tex/generic/babel/babel.def)) (/usr/share/texmf-texlive/tex/generic/babel/english.ldf) (/usr/share/texmf-texlive/tex/generic/babel/frenchb.ldf Package babel Warning: No hyphenation patterns were loaded for (babel)the language `French' (babel)I will use the patterns loaded for \language=0 instead. * * Local config file frenchb.cfg used * (/usr/share/texmf-texlive/tex/generic/babel/frenchb.cfg)) (/usr/share/texmf-texlive/tex/generic/babel/italian.ldf Package babel Warning: No hyphenation patterns were loaded for (babel)the language `Italian' (babel)I will use the patterns loaded for \language=0 instead. -- Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv "Realisti, ateisti - Se ei koske sinua. Demokratia, byrokratia - Se koskee sinua. Vapaus, veljeys, tasa-arvo - Se ei koske sinua. Kansalle virtaa. Se sattuu ja se koskee sinua. Kärsi!" Turmion kätilöt
Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
Hi all! On Fre, 22 Sep 2006, Juhapekka Tolvanen wrote: > Aargh! What is the canonical way to activate hyphenations and other > language support of desired languages for LaTeX and friends? Running For texlive as you did, install texlive-lang-*. This is the first time that I heard that this didn't work. So let's find the problem. > "dpkg-reconfigure tex-common" did not provide that familiar debconf-dialog > for choosing hyphention and other language support. What should I do? This has nothing to do with tex-common, but with the texlive-lang-* packages. > What will happen, if I purge and re-install all TeX-related packages? > I fear I will lose also Finnish hyphenation in that process. Nothing. Or better, it depends on how you installed the finnish patterns. > ii texlive-base-bin 2005.dfsg.1-1 TeX Live: Essential binaries > ii texlive-common 2005.dfsg.1-1 TeX Live: Base component > ii texlive-doc-base 2005.dfsg.1-1 TeX Live: Base documentation Which pther texlive packages do yuou have installed On Sam, 23 Sep 2006, Juhapekka Tolvanen wrote: > > > I also installed packages texlive-lang-french and texlive-lang-italian . > > > A file called /var/lib/texmf/tex/generic/config/language.dat was not > > > properly generated. > > > In what sense was it not properly generated? How did you determin that? > > That file said nothing about Italian and French. This is very strange. Can you take a look into /var/lib/dpkg/info/texlive-lang-french.postinst and check whether there is a call for update-languages? (Sorry I am away from any of my computers with texlive so I cannot check myself). > > # fmutil-sys --all > > > > should regenerate all format files with hyphenation enabled based on the > > configuration files in /etc/texmf/language.d/. If that does not help, > > then we will need some more informations for debugging. > > I tried those two commands, but it did not help: Can you send us the output of the fmtutil-sys --all call, best by doing (under (ba)sh): fmtutil-sys --all > foo.log 2>&1 and send us foo.log As usual I can only ask my crystal ball and it is very unclear, so maybe there are some points I want to know: - does the directory /root/.texmf-config exist and what files are in there - same for /root/.texmf-var - same for /usr/local/share/texmf/web2c/ Thanks a lot Norbert --- Dr. Norbert Preining <[EMAIL PROTECTED]>Università di Siena Debian Developer <[EMAIL PROTECTED]> Debian TeX Group gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094 --- WEMBLEY (n.) The hideous moment of confirmation that the disaster presaged in the ely (q.v.) has actually struck. --- Douglas Adams, The Meaning of Liff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
On Sat, 23 Sep 2006, +12:22:27 EEST (UTC +0300), Norbert Preining <[EMAIL PROTECTED]> pressed some keys: > On Fre, 22 Sep 2006, Juhapekka Tolvanen wrote: > > ii texlive-base-bin 2005.dfsg.1-1 TeX Live: Essential binaries > > ii texlive-common 2005.dfsg.1-1 TeX Live: Base component > > ii texlive-doc-base 2005.dfsg.1-1 TeX Live: Base documentation > > Which pther texlive packages do yuou have installed [EMAIL PROTECTED]:/home/juhtolv % cd /usr/share/doc [EMAIL PROTECTED]:/usr/share/doc % ls -d *texlive* texlive/ texlive-fonts-recommended/texlive-latex-base/ texlive-base/ texlive-font-utils/ texlive-latex-extra/ texlive-base-bin/ texlive-formats-extra/ texlive-latex-recommended/ texlive-bibtex-extra/ texlive-games/texlive-math-extra/ texlive-common/texlive-generic-extra/texlive-metapost/ texlive-context/ texlive-generic-recommended/ texlive-omega/ texlive-doc/ texlive-lang-finnish/ texlive-pdfetex/ texlive-doc-base/ texlive-lang-french/ texlive-pictures/ texlive-doc-en/texlive-lang-italian/ texlive-plain-extra/ texlive-doc-fi/texlive-lang-latin/ texlive-pstricks/ texlive-extra-utils/ texlive-lang-ukenglish/ texlive-publishers/ texlive-fonts-extra/ texlive-latex3/ > On Sam, 23 Sep 2006, Juhapekka Tolvanen wrote: > > > > I also installed packages texlive-lang-french and texlive-lang-italian . > > > > A file called /var/lib/texmf/tex/generic/config/language.dat was not > > > > properly generated. > > > > > In what sense was it not properly generated? How did you determin that? > > > > That file said nothing about Italian and French. > > This is very strange. Can you take a look into > /var/lib/dpkg/info/texlive-lang-french.postinst > and check whether there is a call for update-languages? (Sorry I am away > from any of my computers with texlive so I cannot check myself). Yes, it has it: case "$1" in configure|abort-upgrade|abort-remove|abort-deconfigure) update-texmf update-language update-fmtutil update-updmap --quiet update_lsr_files build_format_if_format_exists --byhyphen latex `kpsewhich language.dat` ;; *) echo "postinst called with unknown argument '$1'" >&2 exit 1 ;; esac > - does the directory /root/.texmf-config exist and what files are in > there > - same for /root/.texmf-var > - same for /usr/local/share/texmf/web2c/ Those directories do not exist. But let's see, what I have in my home directory: [EMAIL PROTECTED]:/home/juhtolv % tree .texmf* .texmf-var |-- fonts | `-- tfm | `-- jknappen | `-- ec `-- web2c |-- latex.fmt |-- latex.log |-- pdflatex.fmt `-- pdflatex.log 5 directories, 4 files That "web2c" looks suspicious. Let's move whole directory to other name: [EMAIL PROTECTED]:/home/juhtolv % mv .texmf-var dot.texmf-var.save And then I run latex: This is pdfeTeXk, Version 3.141592-1.30.5-2.2 (Web2C 7.5.5) Source specials enabled. entering extended mode LaTeX2e <2003/12/01> Babel and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, finnish, french, basque, italian, latin, ukenglish, loaded. (MAJOR CLIP) (/usr/share/texmf-texlive/tex/generic/babel/babel.sty (/usr/share/texmf-texlive/tex/generic/babel/finnish.ldf (/usr/share/texmf-texlive/tex/generic/babel/babel.def)) (/usr/share/texmf-texlive/tex/generic/babel/english.ldf) (/usr/share/texmf-texlive/tex/generic/babel/frenchb.ldf * * Local config file frenchb.cfg used * (/usr/share/texmf-texlive/tex/generic/babel/frenchb.cfg)) (/usr/share/texmf-texlive/tex/generic/babel/italian.ldf)) BINGO! :-D -- Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv "Realisti, ateisti - Se ei koske sinua. Demokratia, byrokratia - Se koskee sinua. Vapaus, veljeys, tasa-arvo - Se ei koske sinua. Kansalle virtaa. Se sattuu ja se koskee sinua. Kärsi!" Turmion kätilöt
Bug#388788: Adding hyphenations of new languages is nothing but a major pain in the hindquarters
On Sun, Sep 24, 2006 at 03:18 +0300, Juhapekka Tolvanen wrote: > [EMAIL PROTECTED]:/home/juhtolv % tree .texmf* > .texmf-var > |-- fonts > | `-- tfm > | `-- jknappen > | `-- ec > `-- web2c > |-- latex.fmt > |-- latex.log > |-- pdflatex.fmt > `-- pdflatex.log As you found out these files where the problem. Here comes the explanation why it is a problem and how this might have happened: All the various commands latex, pdflatex, etex ... are just links to one binary: pdfetex. Based on the nameby which it is called, pdfetex looks for a suitable format file. For example when called as 'latex' it looks for the format file 'latex.fmt'. Normally these format files are created during installation and located in /var/lib/texmf/web2c/. However, if there is a format file in a private tree that comes before the system wide trees, that format will be used. You can check which format file is used via 'kpsewhich latex.fmt'. Now why did you have a format file in you $HOME? You must have called fmtutil under your UID instead of fmtutil-sys as root at one point. While the latter is for system wide changes, the former is used for personal changes. In general it is better and saver not to use the private trees for things like formats and font-map files. cheerio ralf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]