hyphenation does not work after upgrade from breezy to dapper

Bug #36145 reported by martinp
88
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tetex-base (Ubuntu)
Fix Released
Medium
Martin Pitt
Nominated for Karmic by kavkar
tetex-bin (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Karmic by kavkar

Bug Description

I upgraded from Breezy to Dapper and tried to compile some of my TeX documents using no explicit hyphenations.
The package I use is ``ngerman'' and get the following error message during the compilation process:
   ngerman -- \language number for ngerman undefined, default 255 used,
   ngerman -- Please read "gerdoc.tex" how to install hyphenation patterns.)

This is quite a common problem and does not happen when upgrading from a fresh Breezy installation or installing Dapper from a Flight-CD. It has become a matter after I upgraded from my working installation of Breezy to Dapper (current).

Any ideas?

Revision history for this message
MarkoNo5 (marko-vandooren+ubuntu) wrote :

The problem is that 10tetex.cnf in /etc/texmf/language.d should be named 00tetex.cnf. Otherwise, update-language does not work. So first you rename the file, then 'sudo update-language'. After that, you must run 'sudo fmtutil-sys --all'. I don't know why update-language does not run it because update-language is useless without running fmtutil-sys.

Revision history for this message
martinp (martin-hyperion) wrote :

Yes, I saw that in /etc/texmf. However the file 00tex.cnf does not contain any language options. That's in my "faulty" upgraded dapper.
The freshly upgraded one does contain this information. I think there is a problem after setting up the package with existing files.

The ppl who maintain this package should now where to look. :)

Revision history for this message
anstei (anstei-deactivatedaccount) wrote :

The same problem exists with a fresh Dapper install (Flight 5). The steps listet by MarkoNo5 worked for me. Thanks! :)

Revision history for this message
Kristian Rink (kawazu) wrote :

Same here... fresh install from Flight 5, dist-upgraded today (2006-03-28). Fixed after dpkg-reconfigure'ing all tetex packages...

Revision history for this message
Andrew Whyte (ajw213) wrote :

I've tried the above fix but it hasn't worked for me (lastest Dapper fresh install and most recent apt-get upgrades) - the output of "sudo fmtutil-sys --all" still contains lines such as
...
language : patterns en for en loaded (n=1)
(/usr/share/texmf-tetex/tex/generic/hyphen/ushyph.tex)
language : no hyphenations en for en (n=1)
language : patterns uk for uk loaded (n=2)
(/usr/share/texmf-tetex/tex/generic/hyphen/ukhyph.tex)
language : no hyphenations uk for uk (n=2)
...
etc. for all languages
...
 - even though the "ushyph.tex" file (provided with the tetex package) is there and the "ukhyph.tex" package (that I added separately - it's no longer included because of a licensing issue) is also there.
Any help would be great!

Revision history for this message
Paulo Tanimoto (tanimoto) wrote :

Without paying much attention, I followed the suggestion included here:
https://launchpad.net/distros/ubuntu/+bug/36536

It worked for me.

It's a pity that tetex was updated recently, but this bug remains as "unconfirmed".

Matt Zimmerman (mdz)
Changed in tetex-bin:
assignee: nobody → tfheen
Revision history for this message
Roshan Shariff (roshan.shariff) wrote :

I can confirm this bug. I'm using Lyx and long words don't get hyphenated and instead stick out into the right margin. I'm using a fresh installation of Dapper Flight 5 updated as of 2006-04-19.

Following MarkoNo5's steps in the first comment fixes the problem.

Changed in tetex-bin:
status: Unconfirmed → Confirmed
Revision history for this message
Kuropka (d2) wrote :

I can confirm this bug too. Hyphenation definately does not work on my machine after upgrading to Dapper Beta.

Revision history for this message
Julien Chiquet (julien-chiquet) wrote :

If anyone is interested, I have found an alternative to MarkoNo5' procedure to correct the problem (which was not working on my system) :

execute as root
> sudo texconfig hyphen latex

which open with your favorite text editor the latex config file for hyphenation. I don't now why, and it's probably the source of the bug, the content of the file 10tetex.cnf is not present in it. So, you just have to paste the whole content of /etc/texmf/language.d/10tetex.cnf in the current edited config file, then save and quit.

LaTeX will normaly automatically compile the modified config file, what makes now hyphenation works.

Revision history for this message
jumpjoe (jumpjoe) wrote :

Interestingly enough, at the end of

/var/lib/texmf/tex/generic/config/language.dat

it says:

%%
%%% /etc/texmf/language.d/10tetex.cnf not included because the
%%% corresponding package seems to be removed.
%%

I suppose this is a bug of the package ;). Not only, the file ushyph1.tex is missing from the hyphen directory.

Revision history for this message
Prinz Igor (pigor) wrote :

Hi, i am running Dapper Drake (Beta x).

Same problem here. (german hyphenation)

The first solution does not work for me. But the second!

Regards,

Prinz Igor

Revision history for this message
tmp (skrald) wrote : Nonbreaking document

This simple document contains a long word that LaTeX should break. But it currently doesn't.

Revision history for this message
Andrew Whyte (ajw213) wrote :

Wow - Julien's post fixed it for me! As with Prinz Igor, I don't know why MarkoNo5's method didn't work on my machine.

Looks like "/etc/texmf/language.d/10tetex.cnf" does need to be included in "/var/lib/texmf/tex/generic/config/language.dat" (it is not missing from the tetex package, as suggested in the comment at the end of the language.dat file).

All the best,

Andrew

Revision history for this message
Stefano Costa (steko) wrote :

MarkoNo5's method worked for me. I was upgrading from a working (updated) Breezy machine.

Revision history for this message
Anteru (launchpad-tr) wrote :

same problem here, with ngerman on a fresh 6.06 beta 2 installtion with all updates to date.

none of the known fixes work :/

Revision history for this message
gero (gerod) wrote : Re: hyphenation does not work in dapper flight 5

The problem persists: Dapper Flight 5 installed from scratch, updated today to version 3.0-13ubuntu5.

The fix by MarkoNo5 worked for me.

Revision history for this message
Anders Kaseorg (andersk) wrote :

The rename from 00tetex.cnf to 10tetex.cnf seems intentional:

tetex-base (3.0-15) unstable; urgency=high

[...]
  * Rename language.de/00tetex.cnf to 10tetex.cnf, so that it really sorts
    after 00tex.cnf. Transitional code missing. [frank]

 -- Frank Küster <email address hidden> Thu, 2 Mar 2006 15:40:17 +0100

The problem is that /var/lib/tex-common/language-cnf/tetex-base.list still has "00tetex" instead of "10tetex".

But, for some reason, even though my language.dat now includes 10tetex.cnf (and I've run those two commands), I still don't get any hyphenation.

Revision history for this message
Adam Conrad (adconrad) wrote :

If I'm reading the Debian changelog correctly, this should be fixed by syncing a new version (not new upstream, just Debian revision) from sid.

Tollef, comments?

Revision history for this message
Antoine (antoine-mercier) wrote :

Same problem for the french hyphenation. MarkoNo5's solution in the fisrt post doesn't work for me.

Revision history for this message
Martin Pitt (pitti) wrote :

Closing superfluous tetex-bin task.

Changed in tetex-bin:
status: Unconfirmed → Rejected
Revision history for this message
Martin Pitt (pitti) wrote :

I confirmed that Debian's -16 fixes the issue and has no other apparent regressions. Unfortunately it's now too late to sync it, so we should fix this in d-updates.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

You do not want to fix this bug before the release of Dapper? Users will be left without hyphenation? Please reconsider it. Average users will have real problems fixing it. I know many average Ubuntu users using LaTeX that long for (a working) teTeX 3.

Revision history for this message
yannek (yannek-deactivatedaccount) wrote :

I second that irritation. Hyphenationless LeTeX ist simply unusable for (at least) german LaTeX-users. The number of long words in that language (and for sure in several others) is that high that tetex in the current state is practical useless for german documents.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

Here's an untested fix that should work:

sudo sh -c 'echo 10tetex > /var/lib/tex-common/language-cnf/tetex-base.list'
sudo update-language
sudo -H fmtutil-sys --all

Can anybody test it, please?! (Sorry, I don't have the time to test it till the end of next week.)

To fix the bug change '00tetex' to '10tetex' in 'debian/tetex-base.language.list' in the tetex-base source package

--- debian/tetex-base.language.list (revision 1077)
+++ debian/tetex-base.language.list (revision 1078)
@@ -1 +1 @@
-00tetex
+10tetex

 and build it again. HTH!

Revision history for this message
Roshan Shariff (roshan.shariff) wrote :

Martin Pitt says the latest Debian package fixes the problem, so the fix is already known. I don't see the problem with it being uploaded to dapper-updates. If the new version is released soon after Dapper, everybody who installs tetex will get the fixed version, since the dapper-updates repository is enabled by default. Even otherwise, the fix will automatically be downloaded, so it's not really an issue.

I'm even hopeful it'll be fixed post-RC, since it isn't on the CD, but I don't know if there are any technical problems with that.

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 36145] Re: hyphenation does not work after upgrade from breezy to dapper

Hi,

Roshan Shariff [2006-05-25 18:09 -0000]:
> Martin Pitt says the latest Debian package fixes the problem, so the fix
> is already known. I don't see the problem with it being uploaded to
> dapper-updates.

That's indeed what we plan. We just want to avoid destabilizing the
release process.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

You want to ship the Dapper CD with a broken teTeX? I'm not sure whether all of those who order a CD have an internet connection that is capable of comfortable upgrades (then they would probably not need to order a CD ...). Maybe you should place a pointer about the problems with teTeX.

Revision history for this message
Roshan Shariff (roshan.shariff) wrote :

Hi Christoph

On 5/26/06, Christoph Bier <email address hidden> wrote:
> You want to ship the Dapper CD with a broken teTeX? I'm not sure whether

AFAIK, tetex is not on the CD anyway. People who need it must download
it from the repositories. It doesn't make any difference to them
whether they download it from the "dapper" repository or the
"dapper-updates" repository, since the latter is enable automatically.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

You want to ship the Dapper CD with a broken teTeX? I'm not sure whether all of those who order a CD have an internet connection that is capable of comfortable upgrades (then they would probably not need to order a CD ...). Maybe you should place a pointer about the problems with teTeX.

Revision history for this message
Christoph Bier (christoph-bier) wrote :

Oh sorry, I did not know that teTeX isn't shipped with the CD.

Revision history for this message
Markus Kohm (mkohm) wrote :

Martin Pitt at 2006-05-25 21:28:37 CEST wrote:
> That's indeed what we plan. We just
> want to avoid destabilizing the
> release process.

Changing one `0' into `1' would destabilize the release process? But creating the documentations to several packages with a buggy package would not destabilize the release itself?

I think, not fixing this bug for a long time, wasn't a good idea. I hope, that only very, very few packages depend on tetex.

Revision history for this message
faswad (fred-wittyname) wrote :

Dapper Drake 6.06 bug confirmed.

MarkoNo5's fix worked here! thanks!

Revision history for this message
Rod (raf-cs) wrote :

Hi, confirming bug. I can also confirm that Julien's fix worked on my laptop

I upgraded from Breezy via update-manager. Tetex had problems, I image from previous config files, so I remove all Tex, LaTeX related packages, purged, and installed from start. Installation worked without a problem this time.

Upon attempting to compile a very simple latex file, I got:

! Undefined control sequence.
\APAC@apcfile ->\languagename
                              .apc
l.74 \begin{document}

This was fixed using the hyphenation workaround provided by Julien.

Hope this helps anyone else who was banging their head against a brick wall.

Revision history for this message
Martin Pitt (pitti) wrote :

Sync request filed, see bug 47822

Changed in tetex-base:
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Since the debdiff to -16 is too big, I'm backporting the changes instead.

Changed in tetex-base:
assignee: tfheen → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

 tetex-base (3.0-15ubuntu1) dapper-updates; urgency=low
 .
   * Repair hyphenation:
     - debian/tetex-base.language.list: Fix include file name (00tetex ->
       10tetex).
     - debian/postinst.in: Fix test for various programs, so that font maps,
       formats, etc. are actually recreated. Also, call create_tetex_formats
       with --all to ensure that upgrades get all files
       updated correctly.
     - Fixes ported from 3.0-16.
     - Closes: LP#36145

Uploaded, will be approved soon.

Changed in tetex-base:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted.

Changed in tetex-base:
status: Fix Committed → Fix Released
Revision history for this message
Removed by request (removed30301) wrote :

I've used the MarkoNo5's tip, all was OK. I've just upgraded tex* packages today and the hyphenation doesn't work at all.

I found this solution :
00tetex.cnf --> 10tetex.cnf (rename, find it in /etc/texmf/language.d/)
sudo update-language
sudo fmtutil-sys --all

It's now OK.

The fix supposes user didn't do anything before ?

kavkar (kavkar)
Changed in tetex-bin (Ubuntu):
status: Invalid → New
Revision history for this message
Anders Kaseorg (andersk) wrote :

kavkar: This package doesn’t even exist anymore. Did you really mean to mark this bug “New” and nominate it for Karmic?

Changed in tetex-bin (Ubuntu):
status: New → Invalid
Revision history for this message
kavkar (kavkar) wrote :

Sorry, I'm overlooked that.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.