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

LateXToUnicode Formatter does not handle commands correctly #1464

Closed
wants to merge 1 commit into from

Conversation

stefan-kolb
Copy link
Member

@stefan-kolb stefan-kolb commented May 31, 2016

that are a substring of a special LaTex command like \c ~ '...

A big problem is to support all kinds of special circumstances in LaTeX code.
The only chance to get the real output is to use the value of a real LaTeX run for stripping LaTeX commands and stuff. Can we somehow write a wrapper for this? Then we could transfer all the hard work to the LaTeX interpreter.

\documentclass{article}
\begin{document}
$\chi$ some other italic \textit{text}
\end{document}

https://github.com/mcmtroffaes/latexcodec/

@stefan-kolb stefan-kolb added the bug Confirmed bugs or reports that are very likely to be bugs label May 31, 2016
…a substring of a special LaTex command like \c \~ \'...
@simonharrer
Copy link
Contributor

@oscargus how much effort would this be to implement a solution? You are our expert for encodings. :)

@oscargus
Copy link
Contributor

Regarding the encodings in general there is a quite substantial list. The weird thing, which I do not get, is that sometimes the Unicode characters ends up wrong. In the particular case \chi is not converted correctly (Unicode 967) while both \phi (966) and \psi (968) works without any problems... There is a related issue #1264 with another character \v{S} (352) behaving the same way. No obvious reason why exactly those characters should misbehave... In the latter case \v{S} is converted to a square, which can be converted back to \v{S}...

@oscargus oscargus mentioned this pull request Jul 13, 2016
2 tasks
@oscargus
Copy link
Contributor

Implemented in #1581

@oscargus oscargus closed this Jul 15, 2016
@matthiasgeiger
Copy link
Member

Can delete the branch? @stefan-kolb @oscargus

@stefan-kolb stefan-kolb deleted the latex-free-bug branch July 16, 2016 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants