Add Abjad letters#169
Conversation
Add Arabic abjad numbering
| NamedNumeralSystem::KoreanJamo => 65477685939649764827530478995838083425, // 21 | ||
| NamedNumeralSystem::KoreanSyllable => 24217153056183571894327643661698510954, | ||
| NamedNumeralSystem::EasternArabic => 277754701051910363703826860323053920831, | ||
| NamedNumeralSystem::ArabicAbjad => , // ? |
There was a problem hiding this comment.
To figure out what value to put here, first try an arbitrary value like 0. It's not gonna work, but the error message in GitHub CI will tell you the right value.
There was a problem hiding this comment.
So the value is 332217778941065507236060222268877272547
Add Arabic abjad numbering.
Add Arabic abjad numbering
| Self::ArabicAbjad => NumeralSystem::Positional(&[ | ||
| 'أ', 'ب', 'ج', 'د', 'ه', 'و', 'ز', 'ح', 'ط', 'ي', 'ك', 'ل', 'م', 'ن', | ||
| 'س', 'ع', 'ف', 'ص', 'ق', 'ر', 'ش', 'ت', 'ث', 'خ', 'ذ', 'ض', 'ظ', 'غ', | ||
| ]), |
There was a problem hiding this comment.
If I understand properly, this is a system where the first letter has value one, then all the way up to the last letter of the alphabet, and then you start using multiple letters? If this is the case, you should use Bijective instead of Positional. Otherwise, could you please elaborate on how this numeral system works?
There was a problem hiding this comment.
Users will mostly not need all this numbering; the first ten are sufficient.
There was a problem hiding this comment.
The most important reason why we want to use Bijective is that the first letter should have the value one instead of zero. For example, when using numbered headings in Typst, if using Positional, the first letter would always be skipped because the first heading has the number one.
|
I will close this and send a new request |
|
Don't worry about having a bad-looking commit history on your pull requests. It's all gonna get squashed in the end anyway :) |
Add Arabic abjad numbering #168