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

Support unicode-mathematics and handle all special characters #176

Closed
3 tasks
alyssadelaine opened this issue May 25, 2019 · 4 comments
Closed
3 tasks

Support unicode-mathematics and handle all special characters #176

alyssadelaine opened this issue May 25, 2019 · 4 comments
Assignees

Comments

@alyssadelaine
Copy link
Contributor

alyssadelaine commented May 25, 2019

Special characters like greek letters can be copied and pasted into the editors, but we don't yet have a way to deal with these in the LaTeX serialization code

subtasks

  • support unicode in the body of LaTeX doc and -> PDF pipeline
  • support unicode-mathematics in LaTeX -> PDF pipeline
  • enable unicode-mathematics in react-katex browser rendering
@guidorice
Copy link
Contributor

There are a couple of different different places where special characters (unicode) is not being handled well.

  1. the client side latex renderer, react-katex. Looks like it has an option for unicode in math expressions, it might just need to be enabled.
  2. the whole latex -> pdf conversion is dropping unicode characters

@guidorice guidorice self-assigned this May 1, 2020
@guidorice guidorice changed the title Handle all special characters Support unicode-mathematics and handle all special characters May 5, 2020
@guidorice
Copy link
Contributor

An update to clarify the scope of the issue. There is a long history of handling special characters in LaTeX I will read through that doc and get up to speed on best practices.

I am editing the issue title to add support unicode-mathematics and adjusting the subtask list above.

cc @olafveerman

@guidorice
Copy link
Contributor

Goal: user should be able to enter either a LaTeX symbol, or a unicode character, and it should work either way, e.g.

\gamma \Gamma renders the same as

𝛾 Γ

cc @olafveerman

@guidorice guidorice removed their assignment Jun 12, 2020
@guidorice
Copy link
Contributor

guidorice commented Jun 25, 2020

In PR #252 I have added xelatex to produce pdfs instead of pdflatex. This is apparently the modern way to produce pdfs from latex, and support unicode characters. This does not solve any of the immediate unicode issues yet, but should set the stage for better unicode support across the board.

Some notes:

  • inserting emojis is not a good test of unicode support anywhere in the atbd document or the pdf system. Not all fonts support all unicode symbols, especially emojis, which are being invented all the time. More important is math characters, accented/diacritic marks and other extended chars (non-ascii). Emoji is a "nice to have".

  • unicode support needs to be matched with the latex pipeline, and the font being used, and also with the Maths packages being used.

  • Therefore the ATBD.tex template needs to be updated with need to use \usepackage{unicode-math} and \setmathfont{something}, \setmainfont{something} and possibly other commands, according to the resources below:

Here are some good resources:

cc @danielfdsilva @olafveerman

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

4 participants