Hi Martin, it's been a long time since the last news on dblatex BTS report #492366 [1], however recently I noticed an interesting parametrization of Osamu Aoki in order to build a japanese document with the XeTeX backend [2]. In analogy to that I have managed to build your greek example without replacing Babel by Polyglossia by just using parameter file [3], that is without patching dblatex.
As I assume your use case is package debian-refcard, I have integrated my parameter file into its sources [4], and to me the resulting greek dblatex pdf file package looks like the original xmlroff pdf file. Does the parameter file respectively the patch work for you? [1] http://bugs.debian.org/492366 [2] http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=10;filename=xetex_param.xsl;att=1;bug=632967 [3]
greek.xsl
Description: greek parameter file
[4]
diff -u -ru refcard-5.0.7/dblatex.xsl refcard-5.0.7.bts_492366/dblatex.xsl --- refcard-5.0.7/dblatex.xsl 2010-11-07 23:52:27.000000000 +0100 +++ refcard-5.0.7.bts_492366/dblatex.xsl 2011-10-04 19:27:56.417034743 +0200 @@ -6,6 +6,22 @@ <xsl:param name="format">a4</xsl:param> + <xsl:param name="xetex.font"> + <xsl:if test="contains('el', /article/@lang)"> + <xsl:text>\usepackage{xgreek} </xsl:text> + </xsl:if> + <xsl:text>\setmainfont{DejaVu Serif} </xsl:text> + <xsl:text>\setsansfont{DejaVu Sans} </xsl:text> + <xsl:text>\setmonofont{DejaVu Sans Mono} </xsl:text> + </xsl:param> + + <xsl:param name="latex.babel.use"> + <xsl:choose> + <xsl:when test="contains('el', /article/@lang)">0</xsl:when> + <xsl:otherwise>1</xsl:otherwise> + </xsl:choose> + </xsl:param> + <!-- no space for subtitle --> <xsl:template match="article/subtitle"/> diff -u -ru refcard-5.0.7/debian/control refcard-5.0.7.bts_492366/debian/control --- refcard-5.0.7/debian/control 2010-12-09 01:36:58.000000000 +0100 +++ refcard-5.0.7.bts_492366/debian/control 2011-10-04 20:26:27.493034743 +0200 @@ -4,7 +4,7 @@ Maintainer: Debian Documentation Project <debian-...@lists.debian.org> Uploaders: W. Martin Borgert <deba...@debian.org> Standards-Version: 3.8.4 -Build-Depends: cdbs, dblatex (>= 0.2.9-3), debhelper (>= 5), dia, docbook-xsl, ghostscript, lmodern, pdfjam, pdftk, po4a, texlive-xetex, texlive-lang-cyrillic, xmlroff (>= 0.6.0), poppler-utils, xsltproc, otf-ipafont-gothic +Build-Depends: cdbs, dblatex (>= 0.2.9-3), debhelper (>= 5), dia, docbook-xsl, ghostscript, lmodern, pdfjam, pdftk, po4a, texlive-xetex, texlive-lang-cyrillic, texlive-lang-greek, xmlroff (>= 0.6.0), poppler-utils, xsltproc, otf-ipafont-gothic Vcs-Svn: svn://svn.debian.org/svn/ddp/manuals/trunk/refcard Vcs-Browser: http://svn.debian.org/wsvn/ddp/manuals/trunk/refcard/ Homepage: http://tangosoft.com/refcard/ Only in refcard-5.0.7.bts_492366/debian: control~ diff -u -ru refcard-5.0.7/Makefile refcard-5.0.7.bts_492366/Makefile --- refcard-5.0.7/Makefile 2010-12-09 01:36:58.000000000 +0100 +++ refcard-5.0.7.bts_492366/Makefile 2011-10-04 19:31:48.061034743 +0200 @@ -44,13 +44,13 @@ # Because of current limitations of xmlroff in respect to layout, we # can also use dblatex. Like with fop, some languages don't work well: -# See #492365 (he), #492366 (el), #492350 (ja), # #482857 (zh_CN) +# See #492365 (he), #492350 (ja), # #482857 (zh_CN) DBLATEX=dblatex --backend=xetex --texstyle=refcard.sty --xsl-user=dblatex.xsl ifdef USE_DBLATEX ifeq ($(USE_DBLATEX),2) XMLROFF_LANGS= else - XMLROFF_LANGS=ar cs el he hi ja ml sk zh_CN zh_TW + XMLROFF_LANGS=ar cs he hi ja ml sk zh_CN zh_TW endif else XMLROFF_LANGS=$(A4_LANGS)
Regards, Andreas -- Andreas Hoenen <andr...@hoenen-terstappen.de> GPG: 1024D/B888D2CE A4A6 E8B5 593A E89B 496B 82F0 728D 8B7E B888 D2CE
pgp1OCHBVbgET.pgp
Description: PGP signature