Black squares instead of polish characters

201 views
Skip to first unread message

b0rsuk

unread,
Sep 23, 2011, 1:47:17 PM9/23/11
to rst2pdf-discuss
I'm trying to write a CV. I'm following this blog post:
http://charlie137-2.blogspot.com/2010/02/writing-resume-using-restructuredtext.html

He's got french characters in his resume, and they render correctly
even on my system. I pasted some other national characters from
wikipedia, spanish ones work but russian, for example, don't.

For reference, here are polish characters I'm trying to get to render:
ąłńćóżźśę

They work fine in LaTeX (once I include proper packages) and rst2html
handles them properly as well.

The command I'm running is:
/usr/bin/rst2pdf -v -l pl_PL -s cv.pdfstyle cv.txt -o cv.pdf

I think the language argument only affects hyphenation, but nothing I
try seems to get polish characters to render.

Any ideas ?

ralsina

unread,
Sep 23, 2011, 4:41:32 PM9/23/11
to rst2pdf-discuss

On Sep 23, 2:47 pm, b0rsuk <jaze...@gmail.com> wrote:
> I'm trying to write a CV. I'm following this blog post:http://charlie137-2.blogspot.com/2010/02/writing-resume-using-restruc...
>
> He's got french characters in his resume, and they render correctly
> even on my system. I pasted some other national characters from
> wikipedia, spanish ones work but russian, for example, don't.
>
> For reference, here are polish characters I'm trying to get to render:
> ąłńćóżźśę
>
> They work fine in LaTeX (once I include proper packages) and rst2html
> handles them properly as well.
>
> The command I'm running is:
> /usr/bin/rst2pdf -v -l pl_PL -s cv.pdfstyle cv.txt -o cv.pdf
>
> I think the language argument only affects hyphenation, but nothing I
> try seems to get polish characters to render.
>
> Any ideas ?

You are probably using a font that doesn't have those characters. Try
using the DejaVu font, which has better coverage.

Borsuk Euroazjatycki

unread,
Dec 30, 2011, 3:24:14 PM12/30/11
to rst2pdf...@googlegroups.com
2011/9/23 ralsina <roberto...@gmail.com>:

> You are probably using a font that doesn't have those characters. Try
> using the DejaVu font, which has better coverage.

This is correct. I changed the font used by the stylesheet to "DejaVu
Sans" and it started working.

Disclaimer: I'm responding to this old thread because some people
still have this problem, I got a direct mail. In hindsight it was a
little impolite of me to not confirm that your fix worked.

Reply all
Reply to author
Forward
0 new messages