Bug 4114
Summary: | sgml2latex fails for english documents, works for non english | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Hans de Goede <j.w.r.degoede> |
Component: | sgml-tools | Assignee: | Preston Brown <pbrown> |
Status: | CLOSED RAWHIDE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | pbrown, stano |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2000-02-11 16:51:19 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Hans de Goede
1999-07-19 14:51:42 UTC
The problem is that the tex output for non-english languages contains \documentclass[letterpaper,german]{article} but for english one the language is missing \documentclass[letterpaper]{article} A simple fix: --- /usr/lib/sgml-tools/dist/fmt_latex2e.pl.orig Mon Mar 22 05:29:40 1999 +++ /usr/lib/sgml-tools/dist/fmt_latex2e.pl Thu Jul 22 14:46:24 1999 @@ -169,7 +169,7 @@ $latex2e->{makeindex}) { my $langlit = ISO2English ($global->{language}); - $langlit = ($langlit eq 'english') ? "" : ",$langlit"; + $langlit = ",$langlit"; my $replace = $global->{papersize} . 'paper' . $langlit; open OUTFILE, ">$filename.tex"; while (<$infile>) The abovementioned fix should be really: --- fmt_latex2e.pl.orig Mon Mar 22 05:29:40 1999 +++ fmt_latex2e.pl Thu Jul 22 15:29:22 1999 @@ -162,14 +162,10 @@ # Set the correct \documentclass options. The if statement is just # a small optimization. # - if ($global->{language} ne "en" || - $global->{papersize} ne "a4" || - $latex2e->{pagenumber} != 1 || - $global->{pass} ne "" || - $latex2e->{makeindex}) + if (1) { my $langlit = ISO2English ($global->{language}); - $langlit = ($langlit eq 'english') ? "" : ",$langlit"; + $langlit = ",$langlit"; my $replace = $global->{papersize} . 'paper' . $langlit; open OUTFILE, ">$filename.tex"; while (<$infile>) Otherwise it does not function for a4 paper size. cristian, what do you think of this one? fixed in sgml-tools 1.0.9-5 and later. |