Automatically map Arabic codepoints to Arabic mathematical codepoints in math
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- internationalization
Research direction
The issue provides a Typst example but names no source files or tests. Start by reading the math symbol definition and text font handling entry points to determine how standalone symbol redefinition and quoted text in math are currently handled. Done means the reported Arabic math and text font behavior is clarified or addressed, including the question about RTL support.
Written by the indexing model from the issue text.
Description
Most arabic mathematical sympols are in the unicode block U1EE00 TO U1EEBB
Now arabic relies on ligatures and some arabic letters are big and falls below baseline
this means it is always better to use the mathematical sympols block if you do want to use the font for normal writing since using special sympols in the main arabic block will ruin ligatures
now this gives two problems:
#show math.equation: set text(font: "ArabicMath", dir: rtl, size: 12pt)
#let أ = math.class("normal", $\u{1EE00}$)
#let ب = math.class("normal", $\u{1EE01}$)
#let ج = math.class("normal", $\u{1EE02}$)
#let د = math.class("normal", $\u{1EE03}$)
#let ه = math.class("normal", $\u{1EE04}$)
#let و = math.class("normal", $\u{1EE05}$)
#let ز = math.class("normal", $\u{1EE06}$)
#let ح = math.class("normal", $\u{1EE07}$)
#let ط = math.class("normal", $\u{1EE08}$)
#let ي = math.class("normal", $\u{1EE09}$)
#let ك = math.class("normal", $\u{1EE0A}$)
#let م = math.class("normal", $\u{1EE0B}$)
#let م = math.class("normal", $\u{1EE0C}$)
#let ن = math.class("normal", $\u{1EE0D}$)
#let س = math.class("normal", $\u{1EE0E}$)
#let ع = math.class("normal", $\u{1EE0F}$)
#let ف = math.class("normal", $\u{1EE10}$)
#let ص = math.class("normal", $\u{1EE11}$)
#let ق = math.class("normal", $\u{1EE12}$)
#let ر = math.class("normal", $\u{1EE13}$)
#let ش = math.class("normal", $\u{1EE14}$)
#let ت = math.class("normal", $\u{1EE15}$)
#let ث = math.class("normal", $\u{1EE16}$)
#let خ = math.class("normal", $\u{1EE17}$)
#let ذ = math.class("normal", $\u{1EE18}$)
#let ض = math.class("normal", $\u{1EE19}$)
#let ظ = math.class("normal", $\u{1EE1A}$)
#let غ = math.class("normal", $\u{1EE1B}$)
#let ألف = math.class("normal", $\u{1EE40}$)
#let باء = math.class("normal", $\u{1EE41}$)
#let جيم = math.class("normal", $\u{1EE42}$)
#let دال = math.class("normal", $\u{1EE43}$)
#let هاء = math.class("normal", $\u{1EE44}$)
#let واو = math.class("normal", $\u{1EE45}$)
#let زاي = math.class("normal", $\u{1EE46}$)
#let حاء = math.class("normal", $\u{1EE47}$)
#let طاء = math.class("normal", $\u{1EE48}$)
#let ياء = math.class("normal", $\u{1EE49}$)
#let كاف = math.class("normal", $\u{1EE4A}$)
#let لام = math.class("normal", $\u{1EE4B}$)
#let ميم = math.class("normal", $\u{1EE4C}$)
#let نون = math.class("normal", $\u{1EE4D}$)
#let سين = math.class("normal", $\u{1EE4E}$)
#let عين = math.class("normal", $\u{1EE4F}$)
#let فاء = math.class("normal", $\u{1EE50}$)
#let صاد = math.class("normal", $\u{1EE51}$)
#let قاف = math.class("normal", $\u{1EE52}$)
#let راء = math.class("normal", $\u{1EE53}$)
#let شين = math.class("normal", $\u{1EE54}$)
#let تاء = math.class("normal", $\u{1EE55}$)
#let ثاء = math.class("normal", $\u{1EE56}$)
#let خاء = math.class("normal", $\u{1EE57}$)
#let ذال = math.class("normal", $\u{1EE58}$)
#let ضاد = math.class("normal", $\u{1EE59}$)
#let ظاء = math.class("normal", $\u{1EE5A}$)
#let غين = math.class("normal", $\u{1EE5B}$)
#let ألفة = math.class("normal", $\u{1EE80}$)
#let باءة = math.class("normal", $\u{1EE81}$)
#let جيمة = math.class("normal", $\u{1EE82}$)
#let دالة = math.class("normal", $\u{1EE83}$)
#let هاءة = math.class("normal", $\u{1EE84}$)
#let واوة = math.class("normal", $\u{1EE85}$)
#let زاية = math.class("normal", $\u{1EE86}$)
#let حاءة = math.class("normal", $\u{1EE87}$)
#let طاءة = math.class("normal", $\u{1EE88}$)
#let ياءة = math.class("normal", $\u{1EE89}$)
#let كافة = math.class("normal", $\u{1EE8A}$)
#let لامة = math.class("normal", $\u{1EE8B}$)
#let ميمة = math.class("normal", $\u{1EE8C}$)
#let نونة = math.class("normal", $\u{1EE8D}$)
#let سينة = math.class("normal", $\u{1EE8E}$)
#let عينة = math.class("normal", $\u{1EE8F}$)
#let فاءة = math.class("normal", $\u{1EE90}$)
#let صادة = math.class("normal", $\u{1EE91}$)
#let قافة = math.class("normal", $\u{1EE92}$)
#let راءة = math.class("normal", $\u{1EE93}$)
#let شينة = math.class("normal", $\u{1EE94}$)
#let تاءة = math.class("normal", $\u{1EE95}$)
#let ثاءة = math.class("normal", $\u{1EE96}$)
#let خاءة = math.class("normal", $\u{1EE97}$)
#let ذالة = math.class("normal", $\u{1EE98}$)
#let ضادة = math.class("normal", $\u{1EE99}$)
#let ظاءة = math.class("normal", $\u{1EE9A}$)
#let غينة = math.class("normal", $\u{1EE9B}$)
#let أأ = math.class("normal", $\u{1EEA0}$)
#let بب = math.class("normal", $\u{1EEA1}$)
#let جج = math.class("normal", $\u{1EEA2}$)
#let دد = math.class("normal", $\u{1EEA3}$)
#let هه = math.class("normal", $\u{1EEA4}$)
#let وو = math.class("normal", $\u{1EEA5}$)
#let زز = math.class("normal", $\u{1EEA6}$)
#let حح = math.class("normal", $\u{1EEA7}$)
#let طط = math.class("normal", $\u{1EEA8}$)
#let يي = math.class("normal", $\u{1EEA9}$)
#let كك = math.class("normal", $\u{1EEAA}$)
#let لل = math.class("normal", $\u{1EEAB}$)
#let مم = math.class("normal", $\u{1EEAC}$)
#let نن = math.class("normal", $\u{1EEAD}$)
#let سس = math.class("normal", $\u{1EEAE}$)
#let عع = math.class("normal", $\u{1EEAF}$)
#let فف = math.class("normal", $\u{1EEB0}$)
#let صص = math.class("normal", $\u{1EEB1}$)
#let قق = math.class("normal", $\u{1EEB2}$)
#let رر = math.class("normal", $\u{1EEB3}$)
#let شش = math.class("normal", $\u{1EEB4}$)
#let تت = math.class("normal", $\u{1EEB5}$)
#let ثث = math.class("normal", $\u{1EEB6}$)
#let خخ = math.class("normal", $\u{1EEB7}$)
#let ذذ = math.class("normal", $\u{1EEB8}$)
#let ضض = math.class("normal", $\u{1EEB9}$)
#let ظظ = math.class("normal", $\u{1EEBA}$)
#let غغ = math.class("normal", $\u{1EEBB}$)
the first block in this code does not work because apperantly you cannot redefine standalone sympols
this tells me i should use special sympols for the main block but now i cannot use qoutes "" in math to write arabic text because the ligatures
so is it possible to allow redefintion of standalone sympols or let quotes in math $""$ use text font setting not math fontsetting?
and is there any updates on rtl in mathmode?
thanks for your great project.
- Dominant language
- Rust
- Stars
- 57k
- Forks
- 1.8k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 22
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typst/typst
-
feature request
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
bug foundations
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
typst/typst#9047 · 2 comments · 2 reactions ·
Maintainers usually reply within 2 days
-
docs-infra
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
typst/typst#9020 · 2 comments ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
typst/typst#8987 · 1 comment ·
Maintainers usually reply within 2 days
-
docs-infra
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
typst/typst#8934 · 2 comments ·
Maintainers usually reply within 2 days
Similar issues
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
swc-project/swc-ai-issues#907 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
-
area:helper kind:bug priority:p3 ready
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug UI
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
wardian-app/Wardian#1746 ·
Maintainers usually reply within 1 day