Skip to main content

Ralsina.Me — Roberto Alsina's website

Forgot t omention it: rst2pdf 0.8.1 is out

I an­nounced it on all oth­er places ex­cept here: rst2pdf 0.8.1 is out. What's new?

  • Com­­plex head­­ers and foot­ers

  • Op­­tion­al in­­­line links

  • Wor­­daxe 0.2.6 sup­­port

  • Many bug­­fix­es

Get it at the usu­al place

damjan / 2008-09-23 17:58:

Does it support Unicode (UTF-8)?

and if yes, how?

Roberto Alsina / 2008-09-23 21:03:

Sure. Internally everything should be handled as UTF-8 unless there's a bug.

The problem is fonts: the default PDF fonts usually have a very small subset of UTF-8 glyphs. So, it's just a matter of embedding other fonts using a stylesheet.

In the source package you can see test_greek.txt and test_greek.style which show this issue.

If you try to render test_greek.txt with the default style, some characters (accented greek letters) will not be visible.

If you use test_greek.style, they will, because it will use the DejaVu font (you need to have this font, of course).

damjan / 2008-09-25 15:02:

maybe it should use DejaVu by default? (or that's not possible??)

Or try to switch to dejavu if there's more than ascii in the source?

(just some random ideas)

Roberto Alsina / 2008-09-26 23:14:

It's possible (and not difficult) to switch it to DejaVu system-wide using a stylesheet and /etc/rst2pdf.conf

I can't ship that by default because not everyone has DejaVu, and also because I prefer that the default produces "standard" PDFs using the default fonts.


Contents © 2000-2024 Roberto Alsina