#610390 pisa doesn't support non-latin symbols

Package:
src:xhtml2pdf
Source:
xhtml2pdf
Submitter:
"Dmitry E. Oboukhov"
Date:
2023-10-09 17:39:19 UTC
Severity:
important
Tags:
#610390#5
Date:
2011-01-18 08:05:18 UTC
From:
To:
I've installed trac-wikiprint and tried to use it with russian
articles in my wiki. And it creates broken pdfs. Example You can find
in attache.

#610390#10
Date:
2011-12-31 21:41:02 UTC
From:
To:
reassign 610390 pisa
owner 610390 python-modules-team@lists.alioth.debian.org
retitle 610390 pisa doesn't support non-latin symbols
thanks

This is in fact a problem in xhtml2pdf/pisa, which is used by
trac-wikiprint.

$ xhtml2pdf http://www.debian.org/index.ru.html
$ evince www.debian.org-index.ru.pdf

shows the problem clearly. Same for e.g. Chinese etc.

#610390#23
Date:
2018-02-24 04:33:11 UTC
From:
To:
Dear submitter,

as the package pisa has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/891115

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

#610390#42
Date:
2020-01-20 09:18:41 UTC
From:
To:
This bug is reported upstream, see
https://github.com/xhtml2pdf/xhtml2pdf/issues/11
and
https://github.com/xhtml2pdf/xhtml2pdf/issues/345
etc.

Apparently it happens because xhtml2pdf only recognises a very limited
set of fonts, see documentation at
https://xhtml2pdf.readthedocs.io/en/latest/reference.html#fonts
- only Times-Roman: Times New Roman, Times, Georgia, serif
  Helvetica: Arial, Verdana, Geneva, sansserif, sans
  Courier: Courier New, monospace, monospaced, mono
  ZapfDingbats
  Symbol

You may be able to push it further using css definition of other fonts,
see https://github.com/xhtml2pdf/xhtml2pdf/issues/11#issuecomment-288477301

#610390#49
Date:
2022-04-16 20:42:34 UTC
From:
To:
As discussed in upstream issue #11, xhtml2pdf is deprecated (no longer
supported).

The xhtml2pdf documentaiton itself
(https://github.com/xhtml2pdf/xhtml2pdf/blob/master/README.rst) says
to use WeasyPrint (http://weasyprint.org/) instead.

weasyprint is available in Debian, so use it.