jung-kurt / luahpdf

LuaHPDF is a module that lets you programmatically create PDF files using Lua.
23 stars 10 forks source link

Doesn't generate single quotes #7

Closed prototux closed 7 years ago

prototux commented 7 years ago

While generating PDFs using luahpdf, i noticed this strange behavior where single quotes would randomly not show up in the PDF, being replaced with a space.

It doesn't happen for double quotes, and it doesn't seems to be a font problem either (I'm using Lato Regular, which does have the single quote character).

jung-kurt commented 7 years ago

Right you are, @prototux -- I'll see what I can uncover.

jung-kurt commented 7 years ago

@prototux On further investigation, I am unable to duplicate this problem. Could you provide the smallest that demonstrates this issue?

prototux commented 7 years ago

@jung-kurt I've uploaded the project here: https://github.com/prototux/lua-resume, there's also a resume.pdf that have the problem (for example in "Projets personnel" (sorry, forgot to put it back to english mode), "i ve created" instead of the "i've created" that is in data.lua), i hope this help :)

jung-kurt commented 7 years ago

@prototux Thanks for example.

When I view your PDF, the three single quote characters in data.lua (as Cogip' mascot, I don't remember, i've created) all appear as expected in resume.pdf when displayed in my reader (Chrome PDF viewer). Regarding Projets personnel, the original text does not have a single quote -- should there be? This may be a PDF reader issue. Have you tried alternate applications?

prototux commented 7 years ago

Oh, you're absolutely right... i completly forgot to check against chromium's PDF viewer, and yep, that's an okular issue, not a lua-hpdf issue... sorry for the false alarm hangs his head in shame.

(Screenshot for reference) https://i.imgur.com/WSTm8ci.png

jung-kurt commented 7 years ago

Thanks for checking, @prototux

I hope okular can fix that issue -- it's a valuable project.