-
-
Notifications
You must be signed in to change notification settings - Fork 14
Add support for Arabic math #138
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
base: main
Are you sure you want to change the base?
Conversation
|
I think we have to be a little careful here, particularly with potential 'intersections' between these new Arabic letters and the (existing!) Hebrew letters. For example, in some parts of the world As an aside, I don't think I've ever seen these in math. Do you have some particular use in mind? Having a clear use-case might help come up with ways to work around the clashes. |
We used to have both spellings, but ended up deprecating the ones that we thought were more uncommon (see #61).
I can't find the conversation, but because the other Hebrew letters don't have equivalent LTR mathematical forms and aren't used in math, there is no intention of adding them. While the Arabic ones aren't used either in the English speaking math world, they are used for RTL Arabic mathematics and have mathematical forms and other styles (with dedicated codepoints), much like the Latin and Greek alphabets. Though I'm not sure whether the added names would ever be used by those writing RTL mathematics in Arabic. For now it makes my life easier accessing the characters while I'm working on implementing RTL math 😅. I can always drop that commit later. |
I agree those names should be dropped before merging this PR. |
|
Having a way to access symbols by name can be very handy, since other math commands/names/whatever it is called are English words (LTR) and mixing them with Arabic letters (RTL) can make editing the text really complicated. |
|
This is probably a decision that would have to be made by the Typst team, but what about using Arabic for those functions (only the version that is exposed to the Typst user, not the rust implementation)? To me this seems like the best solution, also because the names are currently quite generic. |
Mappings
See the image below for the current behaviour:
Typst code
Questions
Are there better names for these functions? I.e. are there common shortenings similar to the current styles: "frak" (fraktur), "cal" (calligraphic), "bb" (double-struck), etc.
The default mapping for
behandjeemshould be their dotless form (the dotless form ofbehisbeh.dotlessbut the dotless form ofjeemis justhah). The issue (from an email I sent to @khaledhosny last year):