Bug 1398465

Summary: texlive-hyphen-german doesn't configure language.dat
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: texliveAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: adm.fkt.physik, fulminemizzega, novyjindrich, tcallawa, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-27 16:42:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
A small sample tex file triggering this bug
none
test file with dehyph-exptl
none
test file with english hyphenation
none
language.dat and language.def from /usr/share/texlive/texmf-dist/tex/generic/config none

Description Christian Stadelmann 2016-11-24 23:45:59 UTC
Created attachment 1224062 [details]
A small sample tex file triggering this bug

Description of problem:
After installing texlive-hyphen-german, hyphenation doesn't work. Instead, the user gets this message from pdflatex:


(/usr/share/texlive/texmf-dist/tex/generic/german/ngerman.sty v2.5e 1998-07-08
Package: ngerman 1998/07/08 v2.5e Support for writing german texts (br)
\grmnU@D=\dimen103

ngerman -- \language number for ngerman undefined, default 255 used,
ngerman -- Please read "gerdoc.tex" how to install hyphenation patterns.
ngerman -- \language number for naustrian undefined, default 255 used.
ngerman -- \language number for French undefined, default 255 used.


Version-Release number of selected component (if applicable):
texlive-hyphen-german-svn40340-17.fc25.1.noarch
texlive-latex-svn40218-17.fc25.1.noarch

How reproducible:
always

Steps to Reproduce:
1. create simple tex file (see attachment)
2. compile

Actual results:
Hyphenation doesn't work. Instead I get the messages above.

Expected results:
Hyphenation should work out of the box.

Comment 1 Christian Stadelmann 2016-11-27 10:31:38 UTC
Created attachment 1224799 [details]
test file with dehyph-exptl

Loading dehyph-exptl doesn't work either, so I thing this is a general setup issue with all hyphen packages or with the babel package.

Steps to reproduce with dehyph-exptl:
1. Create simple example file following steps from documentation on https://www.ctan.org/pkg/dehyph-exptl plus a simple test text (see attachment)
2. try to compile

What happens:
I'm getting an error message:

! Package hyphsubst Error: Unknown pattern `ngerman-x-latest'.

What should happen:
As this is a simple example, it should not fail.

Affected versions:
texlive-dehyph-exptl-svn34459.0.40-17.fc25.1.noarch
texlive-babel-svn40706-17.fc25.1.noarch
texlive-latex-svn40218-17.fc25.1.noarch

Comment 2 Christian Stadelmann 2016-11-27 10:35:56 UTC
Created attachment 1224800 [details]
test file with english hyphenation

English hyphenation seems to work fine.

Comment 3 Christian Stadelmann 2016-11-27 10:57:37 UTC
Texlive with Hungarian language has the same bug 1212998.

Running `fmtutil --missing` as local user (not root) works around this problem for all languages except the ngerman-x-latest. I'll report a separate bug for that.

Comment 4 Tom "spot" Callaway 2016-11-28 15:19:21 UTC
I suspect strongly that most, if not all of your failures here are due to the scriptlet issues in -17, where the scriptlets would fail due to dependency issues.

The quickest way to confirm that would be to look at /usr/share/texlive/texmf-dist/tex/generic/config/language.dat and /usr/share/texlive/texmf-dist/tex/generic/config/language.def. Are entries for "ngerman" present and correct?

Comment 5 Tom "spot" Callaway 2016-11-28 15:21:12 UTC
Also, please note that https://bodhi.fedoraproject.org/updates/FEDORA-2016-0d29e349a3 is pending a push to testing. While it is not fixing any specific hyphenation issues, it does fix the aforementioned dependency issues causing scriptlet failures (which is where language.dat/language.def get written out).

Comment 6 Christian Stadelmann 2016-11-28 16:49:35 UTC
Created attachment 1225373 [details]
language.dat and language.def from /usr/share/texlive/texmf-dist/tex/generic/config

(In reply to Tom "spot" Callaway from comment #4)
> I suspect strongly that most, if not all of your failures here are due to
> the scriptlet issues in -17, where the scriptlets would fail due to
> dependency issues.

Looks like it. I've tested on a fresh user profile and it works there now, same as on my profile.

> The quickest way to confirm that would be to look at
> /usr/share/texlive/texmf-dist/tex/generic/config/language.dat and
> /usr/share/texlive/texmf-dist/tex/generic/config/language.def. Are entries
> for "ngerman" present and correct?

I think they are now. I've attached both of them.

Comment 7 fulminemizzega 2017-05-20 23:58:35 UTC
I encountered the same issue with italian, I have texlive-hyphen-italian installed:

Package babel Warning: No hyphenation patterns were preloaded for
(babel)                the language `Italian' into the format.
(babel)                Please, configure your TeX system to add them and
(babel)                rebuild the format. Now I will use the patterns
(babel)                preloaded for english instead on input line 26.

Comment 8 Fedora End Of Life 2017-11-16 19:10:06 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 9 Christian Stadelmann 2017-11-23 11:28:59 UTC
(In reply to Christian Stadelmann from comment #6)
> Created attachment 1225373 [details]
> language.dat and language.def from
> /usr/share/texlive/texmf-dist/tex/generic/config
> 
> (In reply to Tom "spot" Callaway from comment #4)
> > I suspect strongly that most, if not all of your failures here are due to
> > the scriptlet issues in -17, where the scriptlets would fail due to
> > dependency issues.
> 
> Looks like it. I've tested on a fresh user profile and it works there now,
> same as on my profile.
> 
> > The quickest way to confirm that would be to look at
> > /usr/share/texlive/texmf-dist/tex/generic/config/language.dat and
> > /usr/share/texlive/texmf-dist/tex/generic/config/language.def. Are entries
> > for "ngerman" present and correct?
> 
> I think they are now. I've attached both of them.

Can you please have a look at the language.dat and language.def files attached to that comment to make sure it is ok now? If yes, then this bug can be marked as fixed.

Comment 10 Tom "spot" Callaway 2017-11-27 16:42:50 UTC
This looks correct to me. Closing out.