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

Better handling of text properties and minor speed-up #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oscargus
Copy link

Text within \textbf etc is now translated.

\\ are now kept (closes #6 although the / issue remains).

Also replaced re.sub with string.replace which should be faster and removed space before [ which keeps the code looking better.

Feel free to merge, I give full consent to include this code in gtexfix.

@oscargus
Copy link
Author

I guess I should comment that I tried to get rid of additional \u200B that somehow still ended up in my output, which was the primary reason to start fiddling with from.py and trying to see if string.replace did any difference. It didn't, but should be faster anyway.

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

Successfully merging this pull request may close these issues.

Problems with \\
1 participant