[Debian-handbook-translators] Help wanted

Daniel Leidert dleidert at debian.org
Sat Sep 4 18:02:47 BST 2021


Am Samstag, dem 04.09.2021 um 18:30 +0200 schrieb Daniel Leidert:
> Am Samstag, dem 04.09.2021 um 13:37 +0900 schrieb Norbert Preining:

[..]
> After digging into the issue further, the problem is that
> /usr/lib/python3/dist-packages/dbtexmf/dblatex/rawverb.py adds the
> 
> [escapeinside={<:}{:>}]
> 
> sequence instead of adding it inside the existing options added by
> /usr/share/xml/docbook/stylesheet/dblatex/xsl/verbatim.xsl already. I think
> we
> need to fix the issue here by checking for existing options and adding the
> escapeinside option to them instead of adding another pair of brackets. Maybe
> we just need to fix the search pattern? Anybody with enough Python knowledge
> to
> write a patch? I'll have a look at it myself, but I'd prefer to keep updating
> the handbook if possible.

Ok. One of the issues is, that in parse_begin()

if line[0] == b"[":

doesn't seem to work (here they check for existing options). And after fixing
that, the next issue is that

e = line.find(b"]")+1

will fail to produce the desired result because

[scale=false,firstnumber=1,escapeinside={<t>}{</t>},moredelim={**[is][\bfseries]{<b>}{</b>}},moredelim={**[is][\itshape]{<i>}{</i>}},]

contains several closing brackets and we need to find the matching one. Maybe
one could search for ',]'? Not sure if this will break dblatex in other ways.

Next issue then is:

Error: utf_8_encode() argument 2 must be str or None, not bytes

Regards, Daniel
-- 
Regards,
Daniel Leidert <dleidert at debian.org> | https://www.wgdd.de/
GPG-Key RSA4096 / BEED4DED5544A4C03E283DC74BCD0567C296D05D
GPG-Key ED25519 / BD3C132D8B3805D1808123AB7ACE00941E338C78

https://www.fiverr.com/dleidert
https://www.patreon.com/join/dleidert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/debian-handbook-translators/attachments/20210904/0659ef48/attachment.sig>


More information about the Debian-handbook-translators mailing list