RE: DB2LATEX 0.8pre1 bugs?
Petr Janeček <[email protected]> Tue, 23 Mar 2004 17:19:22 +0100
| Newsgroups | gmane.text.docbook.db2latex.general |
|---|---|
| Message-ID | <[email protected]> |
I downloaded the lists.mod.xsl and this error is now fixed.
The second problem is partially solved (i did many things so i am not =
sure
witch one really helped) but another appeared.
The conversion from docbook to latex works fine, but than pdflatex shows
many errors. It seems to me, they are not lanaguage related. I use =
MikTex
2.4 with Czech language support. When I do have correctly written TEX =
file,
conversion to the PDF works fine. I paste here piece of the docbook
document:
<?xml version=3D"1.0" encoding=3D"windows-1250"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book lang=3D"cs">
<title>Mo=BEnosti a probl=E9my datab=E1zov=FDch reprezentac=ED =
jazykov=FDch
slovn=EDk=F9</title>
<chapter>
<title>=DAvod</title>
<section>
<title>Popis probl=E9mu</title>
<para>Trend posledn=ED doby je u=BE=EDvat jazykov=E9 slovn=EDky v =
pap=EDrov=E9
podob=EC
=E8=EDm d=E1l t=EDm m=E9n=EC. Ned=E1 se =F8=EDci, =BEe by byli =
m=E9n=EC u=BEite=E8n=E9 ne=BE jejich
po=E8=EDta=E8ov=ED kolegov=E9, ale pravdou je, =BEe =
vyhled=E1v=E1n=ED informac=ED v nich
nen=ED p=F8=EDli=B9 pohodln=E9 nato=BE rychl=E9. Dal=B9=ED =
d=F9le=BEit=FD faktor je, =BEe je
nemo=BEn=E9 prov=E1d=ECt aktualizaci pap=EDrov=FDch slovn=EDk=F9 =
p=F8=EDli=B9 =E8asto vzhledem
k
vysok=E9 cen=EC tisku a pap=EDru.</para>
</section>
</chapter>
</book>
I use the customisation file very similar to the one you wrote into this
mail.
Thank you
Petr
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of James
Devenish
Sent: Tuesday, March 23, 2004 12:53 AM
To: Petr Jane?ek
Cc: [email protected]
Subject: Re: [DB2LaTeX-apps] DB2LATEX 0.8pre1 bugs?
In message <[email protected]>
on Mon, Mar 22, 2004 at 09:59:42PM +0100, Petr Jane?ek wrote:
> 1) first is error about lists.mod.xsl on line 273, somtehing like that =
> xsl:param must be declared at the begining of function. I can recall=20
> it with any docbook xml file.
Thanks. That should now been fixed in CVS (will appear in next =
snapshot). I
think this is the fix:
--- lists.mod.xsl 31 Jan 2004 11:53:50 -0000 1.25
+++ lists.mod.xsl 22 Mar 2004 23:14:10 -0000 1.26
@@ -270,7 +270,7 @@
</doc:template>
<xsl:template match=3D"varlistentry">
<xsl:param name=3D"next.is.list">
- <xsl:param name=3D"object" =
select=3D"listitem/*[1]"/>
+ <xsl:variable name=3D"object"=20
+ select=3D"listitem/*[1]"/>
<xsl:value-of
select=3D"count($object[self::itemizedlist or self::orderedlist or
self::variablelist])"/>
</xsl:param>
<xsl:variable name=3D"id">
> 2) i use czech (cs) language for my docbook files. When processing it=20
> I receive following error:
> Error at xsl:value-of on line 165 of
> file:/c:/docbook/db2latex/xsl/common/l10n.xsl:
> Output character not available in this encoding (decimal 345)
I'm not entirely certainly, but I think this is a general XML issue,
explained by the following: By default, DB2LaTeX uses ISO-8859-1 =
encoding
for its output.
If the Czech language requires a different encoding, you will need to
specify it yourself. If you have a DB2LaTeX customisation file =
(explained at
the DB2LaTeX website), you can use the following lines:
<xsl:import href=3D"...path.or.url.to...db2latex/docbook.xsl"/>
<xsl:output encoding=3D"something.other.than.ISO-8859-1"/>
Note, however, that you will also need to enable corresponding fonts in
LaTeX (for this, you add another line to your DB2LaTeX customisation =
file).
This can be done in a number of ways, but I am not sure what conventions =
to
use for Czech. If you have lang=3D"cs' in your DocBook source files, =
DB2LaTeX
might automatically get LaTeX's babel package to help you out (not sure =
if
it's sufficient, though). If you have a small sample document, I could =
try
some things for you.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux =
tutorial
presented by Daniel Robbins, President and CEO of GenToo technologies. =
Learn
everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dcli=
ck
_______________________________________________
DB2LaTeX-apps mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/db2latex-apps
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click