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

Make the utf8 -> html code automatic #94

Open
epykure opened this issue Jul 25, 2020 · 0 comments
Open

Make the utf8 -> html code automatic #94

epykure opened this issue Jul 25, 2020 · 0 comments

Comments

@epykure
Copy link
Owner

epykure commented Jul 25, 2020

Try to make the conversion from utf8 to html code for the display in the UI less manual.

The mapping is done here: PyExt.py but maybe there is a better way to do it

UTF8_TO_HTML = {
b'\xe2\x80\x99': "'",
b'\xe2\x81\x80': entities.EntUtf8.CHARACTER_TIE,
b'\xe2\x81\x81': entities.EntUtf8.CARET_INSERTION_POINT,
b'\xe2\x81\x82': entities.EntUtf8.ASTERISM,
b'\xe2\x81\x83': entities.EntUtf8.HYPHEN_BULLET,
b'\xe2\x81\x84': entities.EntUtf8.FRACTION_SLASH,

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

1 participant