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

Expand symbols.hs by this list #12

Open
perguto opened this issue Nov 12, 2022 · 1 comment
Open

Expand symbols.hs by this list #12

perguto opened this issue Nov 12, 2022 · 1 comment

Comments

@perguto
Copy link

perguto commented Nov 12, 2022

https://www.johndcook.com/unidata.js has a useful list of symbols. Would it be possible to add them to symbols.hs?

@marhop
Copy link
Owner

marhop commented Nov 14, 2022

Hi, nice find! It's definitely possible to add some symbols from that list to the Symbols.hs file. Not the whole list though: Many symbols seem to require additional Latex packages that the Pandoc default template does not import (or I don't understand where they are defined at all). These symbols, or rather their corresponding Latex sequences, make Pandoc crash with an "Undefined control sequence" error (at least with the default template), which would not exactly be a great user experience.

So yes, we can absolutely adopt symbols from this list, but we should always test whether they make it through the conversion smoothly (with the default template). Random examples (wild guess, I expect at least the entries with the "(new)" flag to be problematic):

  • U+2662: \diamondsuit works
  • U+2682: \diceiii doesn't work, no idea where this comes from

Would you like to start by picking the symbols you think would make useful additions? And maybe even prepare a PR?

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

2 participants