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

Re: Bug#796952: english language release notes pdf file is not english (https://www.debian.org/releases/stable/amd64/release-notes.en.pdf)



Hi Julien,

> > > provide a patch against the release notes, I'd happily apply that.
> > 
> > Sure enough, can you please tell me where to get the sources that

Here we go.

There are several options - both boil down to changing the fonts to
opentype/truetype fonts. In all cases 
	--param=xetex.font='....some long code.....'
needs to be added to the Makefile around line 80.

* variant 1 - TeX Gyre
----------------------
fonts-texgyre needs to be installed (the build-deps are anyway broken,
as fonts-freefont at least are missing).

The code to be added is:
	\setmainfont{texgyrepagella-regular.otf}[
	  BoldFont       = texgyrepagella-bold.otf ,
	  ItalicFont     = texgyrepagella-italic.otf ,
	  BoldItalicFont = texgyrepagella-bolditalic.otf]
	\setsansfont{FreeSans}
	\setmonofont{FreeMono}
(not line endings etc etc)

See attached patch
	fix-fonts-variant1-tex-gyre.diff


Advantage: the Pagella fonts are Palatino like, which means the appearance
for most documents remain the same compared to previous years where
URW Palladio was used.

Disadvantage: The Russian (Cyrillic) variant is broken (it was broken 
before, too, but differently) - no cyrillic glyphs are shown, as they
are not available in TeX Gyre.


* Variant 1++ - TeX Gyre for all fonts
--------------------------------------

The Sans fonts and Mono font settings in the above are taken over
from the defaults in dblatex. In case of TeX Gyre it might be an
option to use fonts from the same family, in this case the long code
would be:
	\setmainfont{texgyrepagella-regular.otf}[
	  BoldFont       = texgyrepagella-bold.otf ,
	  ItalicFont     = texgyrepagella-italic.otf ,
	  BoldItalicFont = texgyrepagella-bolditalic.otf]
	\setsansfont{texgyreadventor-regular.otf}[
	  BoldFont       = texgyreadventor-bold.otf ,
	  ItalicFont     = texgyreadventor-italic.otf ,
	  BoldItalicFont = texgyreadventor-bolditalic.otf]
	\setmonofont{texgyrecursor-regular.otf}[
	  BoldFont       = texgyrecursor-bold.otf ,
	  ItalicFont     = texgyrecursor-italic.otf ,
	  BoldItalicFont = texgyrecursor-bolditalic.otf] 

See attached patch
	fix-fonts-variant1-full-tex-gyre.diff

Advantages and disadvantages as above.


* variant 2 - Charis SIL
------------------------
fonts-sil-charis needs to be installed

The code to be added is
	\setmainfont{CharisSIL-R.ttf}[
	  BoldFont       = CharisSIL-B.ttf ,
	  ItalicFont     = CharisSIL-I.ttf ,
	  BoldItalicFont = CharisSIL-BI.ttf]
	\setsansfont{FreeSans}
	\setmonofont{FreeMono}'

See attached patch
	fix-fonts-variant2-charis.diff


Advantage: all languages are properly supported, English and Russian both produce
proper documents on Jessie.

Disadvantage: Font appearance changed.


* variant 3 - mixture of the two
--------------------------------
needs a bit of Makefile magic, I leave this to you as I don't see
how to treat LINGUA and LANGUAGES etc etc consistently.


* variant 4 - any other ttf/otf fonts
-------------------------------------
There are some other font families out there that can be used,
I took those I know.



Hope that helps, if you have any other questions, please let me know.

All the best

Norbert

------------------------------------------------------------------------
PREINING, Norbert                               http://www.preining.info
JAIST, Japan                                 TeX Live & Debian Developer
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0  ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------
Index: Makefile
===================================================================
--- Makefile	(revision 11052)
+++ Makefile	(working copy)
@@ -75,6 +75,13 @@
 DBLATEX=dblatex --backend=xetex --style=db2latex \
     --xslt-opts=--nonet --no-external \
     --xsl-user=hyphenation.xsl \
+    --param=xetex.font='                            \
+\setmainfont{texgyrepagella-regular.otf}[           \
+  BoldFont       = texgyrepagella-bold.otf ,        \
+  ItalicFont     = texgyrepagella-italic.otf ,      \
+  BoldItalicFont = texgyrepagella-bolditalic.otf]   \
+\setsansfont{FreeSans}                              \
+\setmonofont{FreeMono}' \
     --param=draft.mode=$(draftmode) \
     --param=format=a4 \
     --param=glossterm.auto.link=1 \
Index: Makefile
===================================================================
--- Makefile	(revision 11052)
+++ Makefile	(working copy)
@@ -75,6 +75,20 @@
 DBLATEX=dblatex --backend=xetex --style=db2latex \
     --xslt-opts=--nonet --no-external \
     --xsl-user=hyphenation.xsl \
+    --param=xetex.font='                            \
+\setmainfont{texgyrepagella-regular.otf}[           \
+  BoldFont       = texgyrepagella-bold.otf ,        \
+  ItalicFont     = texgyrepagella-italic.otf ,      \
+  BoldItalicFont = texgyrepagella-bolditalic.otf]   \
+\setsansfont{texgyreadventor-regular.otf}[          \
+  BoldFont       = texgyreadventor-bold.otf ,       \
+  ItalicFont     = texgyreadventor-italic.otf ,     \
+  BoldItalicFont = texgyreadventor-bolditalic.otf]  \
+\setmonofont{texgyrecursor-regular.otf}[            \
+  BoldFont       = texgyrecursor-bold.otf ,         \
+  ItalicFont     = texgyrecursor-italic.otf ,       \
+  BoldItalicFont = texgyrecursor-bolditalic.otf]    \
+      ' \
     --param=draft.mode=$(draftmode) \
     --param=format=a4 \
     --param=glossterm.auto.link=1 \
Index: Makefile
===================================================================
--- Makefile	(revision 11052)
+++ Makefile	(working copy)
@@ -75,6 +75,13 @@
 DBLATEX=dblatex --backend=xetex --style=db2latex \
     --xslt-opts=--nonet --no-external \
     --xsl-user=hyphenation.xsl \
+    --param=xetex.font='                 \
+\setmainfont{CharisSIL-R.ttf}[           \
+  BoldFont       = CharisSIL-B.ttf ,     \
+  ItalicFont     = CharisSIL-I.ttf ,     \
+  BoldItalicFont = CharisSIL-BI.ttf]     \
+\setsansfont{FreeSans}                   \
+\setmonofont{FreeMono}' \
     --param=draft.mode=$(draftmode) \
     --param=format=a4 \
     --param=glossterm.auto.link=1 \

Reply to: