From: Radek Czajka Date: Mon, 27 Dec 2010 10:13:13 +0000 (+0100) Subject: pdf fix X-Git-Tag: 1.7~231 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/ae0b96d850262996ccf7f133cb455e73f3f7673c pdf fix --- diff --git a/README.md b/README.md index 7c27d2d..7588245 100755 --- a/README.md +++ b/README.md @@ -58,7 +58,9 @@ Installation Librarian uses standard Python distutils for packaging. After installing all the dependencies just run: python setup.py install - + +PDF converter also needs the Junicode-WL fonts (librarian/pdf/JunicodeWL-*.ttf) installed. +In Debian/Ubuntu, put those files in ~/.fonts/ and run `fc-cache'. Usage ------ diff --git a/librarian/pdf/wl.sty b/librarian/pdf/wl.sty index 6bdc2ff..847504c 100644 --- a/librarian/pdf/wl.sty +++ b/librarian/pdf/wl.sty @@ -8,12 +8,12 @@ \usepackage{xltxtra} \setmainfont [ -ExternalLocation, -UprightFont = JunicodeWL-Regular.ttf, -ItalicFont = JunicodeWL-Italic.ttf, -BoldFont = JunicodeWL-Regular.ttf, -BoldItalicFont = JunicodeWL-Italic.ttf, -SmallCapsFont = JunicodeWL-Regular.ttf, +%ExternalLocation, +UprightFont = JunicodeWL-Regular, +ItalicFont = JunicodeWL-Italic, +BoldFont = JunicodeWL-Regular, +BoldItalicFont = JunicodeWL-Italic, +SmallCapsFont = JunicodeWL-Regular, SmallCapsFeatures = {Letters={SmallCaps,UppercaseSmallCaps}}, Numbers=OldStyle, Scale=1.04, @@ -28,7 +28,7 @@ SizeFeatures={ } } -\renewcommand{\textsc}[1]{ +\renewcommand{\textsc}[1]{% {\addfontfeature{ SizeFeatures={ {Size={-10}, Scale=1.2, FakeStretch=1.02, LetterSpace=8.0 }, @@ -117,11 +117,11 @@ Letters={SmallCaps,UppercaseSmallCaps} } } -\newcommand{\typosubsubsection}[1]{ +\newcommand{\typosubsubsection}[1]{% {\textsc{#1}} } -\newcommand{\typosubsection}[1]{ +\newcommand{\typosubsection}[1]{% {\addfontfeature{ SizeFeatures={ {Size={-10}, Scale=1.2, FakeStretch=1.00, LetterSpace=8.0 }, @@ -133,7 +133,7 @@ Letters={Uppercase} \MakeUppercase{#1}} } -\newcommand{\typosection}[1]{ +\newcommand{\typosection}[1]{% {\addfontfeature{Scale=2.0, FakeStretch=0.98, LetterSpace=-2.0}\emph{#1}} }