Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pandoc does not render greek symbols in ePub? #3231

Closed
suknat opened this issue Nov 14, 2016 · 3 comments
Closed

pandoc does not render greek symbols in ePub? #3231

suknat opened this issue Nov 14, 2016 · 3 comments

Comments

@suknat
Copy link

suknat commented Nov 14, 2016

I'm writing in pandoc markdown with the intent to convert to ePub. I've been using standard HTML/MD to render greek symbols, like so: α. I believe pandoc supported exporting this to ePub a few months ago, but it seems broken now? I might be imagining this, but I have an entry in my diary suggesting it was working at some point! Things like ° are definitely working, so it would seem odd that the greek letters are not! Everything works fine when exporting to HTML / PDF.

I can get around this by using $\alpha$ in the text and --webtex at compile but am trying to avoid this as the rendered images seem very low res, and it affects readability.

Is there a way to improve the resolution of the webtex images and/or write in html syntax?

Improving the resolution of the webtex images would be particularly useful as I have math formulae written in LaTeX that are not very legible due to pixelation.

I'm using iBooks to preview my ePub output, so happy to be corrected re webtex if this is an iBooks fault.

Thanks

@jkr
Copy link
Collaborator

jkr commented Nov 14, 2016

Just doing a simple echo 'α' | pandoc -o out.epub, it seems to convert fine. What version of pandoc are you using? (You can unzip the epub and look at the html pages to see if it's a conversion problem or an iBooks problem.)

@jgm
Copy link
Owner

jgm commented Nov 15, 2016

This could be a font issue -- maybe the font you're using
lacks a glyph for that Greek letter?

Re webtex: I don't know if there are ways to increase
pixelization. However, there's a very slick method
using MathJax-node, which could allow all the math to
be replaced by SVG:
#3153

Currently it would require a bit of postprocessing, but
we're thinking of making it easier to integrate with pandoc.

By the way, if you're targeting iBooks specifically,
I believe it supports epub3 with mathml. So you could
try using pandoc to generate epub3 (it should automatically
use mathml for the math, I think, but it wouldn't hurt to
add --mathml).

+++ suknat [Nov 14 16 08:18 ]:

I'm writing in pandoc markdown with the intent to convert to ePub. I've
been using standard HTML/MD to render greek symbols, like so: α.
I believe pandoc supported exporting this to ePub a few months ago, but
it seems broken now? I might be imagining this, but I have an entry in
my diary suggesting it was working at some point! Things like ° are
definitely working, so it would seem odd that the greek letters are
not!

I can get around this by using --webtex but am trying to avoid this as
the rendered images seem very low res.

Is there a way to improve the resolution of the webtex images and/or
write in html syntax?

Improving the resolution of the webtex images would be particularly
useful as I have math formulae written in LaTeX that are not very
legible due to pixelation.

I'm using iBooks to preview my ePub output, so happy to be corrected re
webtex if this is an iBooks fault.

Thanks


You are receiving this because you are subscribed to this thread.
Reply to this email directly, [1]view it on GitHub, or [2]mute the
thread.

References

  1. pandoc does not render greek symbols in ePub? #3231
  2. https://github.com/notifications/unsubscribe-auth/AAAL5HlfrYGL3Q8oW963aSjvU19ss7GXks5q-InvgaJpZM4KxgVV

@suknat
Copy link
Author

suknat commented Nov 15, 2016

Thanks for both your comments and suggestions.

I checked pmd version and it was 1.16 which I have now moved to 1.18. I can now report that the glyphs are being produced. Yay!

Re +jgm's suggestions:

  • iBooks does handle uPub3 but some of the Math is not beautiful. For example, $\bar{x}$ is reproduced with the bar a long distance above x. So long that you might miss it if you weren't looking for it!
  • Use MathJax-node, I have now installed MathJax-node and await progress on the integration with pandoc (since my goal is ePub).

Thanks!

@jgm jgm closed this as completed Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants