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

Unicode primes #21

Closed
stevengj opened this issue May 25, 2023 · 4 comments
Closed

Unicode primes #21

stevengj opened this issue May 25, 2023 · 4 comments

Comments

@stevengj
Copy link
Contributor

stevengj commented May 25, 2023

t' and t'' get rendered as-is using ASCII quotes, but they could be rendered using Unicode prime characters t′ and t″.

Here are several Unicode primes.

@bartp5
Copy link
Owner

bartp5 commented May 26, 2023

currently libtexprintf has the \prime, \second, \third, \fourth, and `\backprime¸ symbols. Obviously it is nice to automatically parse the single quites to generate the regular primes. I'll have a look. The more special primes, like the double backprime, will just be symbols.

@bartp5
Copy link
Owner

bartp5 commented May 26, 2023

new version implements single to quadruple primes, i.e. a' a'' a''' a''''. I also added some additional primes to the symbol list and made aliases for those I head but apparently also go by other names.

@stevengj
Copy link
Contributor Author

Great! I would suggest a different fallback, though for more than 4 primes, though. Right now you have src/utftex "y'''''" render as

y⁗′

Maybe it should render as y′′′′′ instead? i.e. fallback to repeating ?

@bartp5
Copy link
Owner

bartp5 commented May 26, 2023

I see, the way I did it we depend on whoever designed the fonts on how consistent the primes look. I guess more than 4 primes is not much of a use case but, who knows, I made it so.

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