Hi, > Le 07/06/2011 08:56, Osamu Aoki a écrit : >> TeX backend (specifically pdflatex) used to create this PDF is the >> cause. > >> If you move this build this with XeTeX (specifically xelatex), this >> problem goes away.
Indeed, I just rebuilt it with XeTeX and it works: http://people.debian.org/~taffit/developers-reference-xetex/developers-reference.pdf Le 08/06/2011 13:13, David Prévot a écrit : > Lucas, Raphaël, could we consider moving away of pdflatex build? This > may allow to build the Japanese PDF, which would also be an improvement. As you may have noticed, the English document looks different: I quickly copied and pasted part of the maint-guide build system (the xslt directory is directly copied from there, and probably needs to be adapted to keep the current look), in order to build the Japanese PDF: http://people.debian.org/~taffit/developers-reference-xetex/developers-reference.ja.pdf As far as I can see, there are still some glitches in the Japanese document: the quick menu as displayed in xpdf left default view doesn't display the Japanese characters, maybe other things needs fixing. Since the Japanese translation is now complete, it would be nice if we could upload the package with the Japanese PDF once properly solved this issue (keeping the English document look too). Unless some more stuff needs to be addressed regarding the text, can I poke the German translator in order to upload an up to date package soon (within ten days)? Le 09/06/2011 08:23, Raphael Hertzog a écrit : > If anything, I would be interested to use publican as it has native > support for i18n via PO files and generates good looking documents > without much work. It doesn't use TeX for its PDF output but fop. I don't have any publican experience, so I won't volunteer to take care of that move, but I know a bit about po4a, and will propose some simplifications about the po4a handling in the current build system unless someone objects (or if someone takes care of moving to publican, of course). Regards David
Index: Makefile =================================================================== --- Makefile (révision 9028) +++ Makefile (copie de travail) @@ -11,7 +11,7 @@ $(foreach fmt,$(FORMATS), \ $(lng)/developers-reference.$(fmt))) # list of targets, that currently cannot build -BLACKLIST := ja/developers-reference.pdf +#BLACKLIST := ja/developers-reference.pdf # hopefully overwritten by caller, e.g. debian/rules VERSION=unknown @@ -26,7 +26,7 @@ # - docbook2pdf (seems to die on UTF-8, #431085); and # - fop is currently in contrib, but can go to main, see #366783 # - xmlroff (not mature enough, #182445) -DBLATEX=dblatex --style=db2latex +DBLATEX=dblatex # The "--keep 0" should be removed as soon as the translations are ready TRANSLATE=po4a-translate --format docbook --keep 0 @@ -95,10 +91,22 @@ $(XP) $(DBK2HTML1) $(@D)/index.dbk \ | w3m -o display_charset=UTF-8 -cols 70 -dump -no-graph -T text/html > $@ +XP := xsltproc --nonet --novalid --xinclude +XSLT := xslt +DRAFTMODE := maybe + developers-reference.pdf: $(CURDIR)/developers-reference.pdf %/developers-reference.pdf: $(addprefix %/,$(SOURCES)) - TOP=`pwd` && cd $(@D) && $(DBLATEX) index.dbk \ - && mv index.dbk.pdf $(@F) + @test -n "`which $(DBLATEX)`" || { echo "E: dblatex not found. Please install the dblatex package." ; false ; } + export TEXINPUTS=".:"; \ + $(XP) $(XSLT)/dblatex.xsl $(@D)/index.dbk | \ + $(DBLATEX) --style=db2latex \ + --backend=xetex \ + --xsl-user=$(XSLT)/user_param.xsl \ + --xsl-user=$(XSLT)/xetex_param.xsl \ + --param=draft.mode=$(DRAFTMODE) \ + --param=lingua=$(@D) \ + --output=$< - .PHONY: pot pot: $(patsubst %.dbk,po4a/po/%.pot,$(SOURCES)) Index: xslt/user_param.xsl =================================================================== --- xslt/user_param.xsl (révision 9028) +++ xslt/user_param.xsl (copie de travail) @@ -18,7 +18,9 @@ <xsl:template match="book|article" mode="docinfo"> <!-- Apply default settings --> <xsl:apply-imports/> + <!-- <xsl:text>\input{</xsl:text>po4a/hyphenation.<xsl:value-of select="$lingua"/><xsl:text>.tex}</xsl:text> + --> </xsl:template> </xsl:stylesheet>
signature.asc
Description: OpenPGP digital signature