obsidian-rtl icon indicating copy to clipboard operation
obsidian-rtl copied to clipboard

Support displaying all numbers as eastern-arabic numerals (٠, ١, ٢, ٣, ٤, ٥, ٦, ٧, ٨, ٩)

Open mr-islam opened this issue 3 months ago • 3 comments

Hi, I know this won't ever make it to Obsidian core, but seems perfect for a plug-in:

Support for displaying numbers as Eastern-Arabic numerals (٠, ١, ٢, ٣, ٤, ٥, ٦, ٧, ٨, ٩). Microsoft word has this feature, where the user can type 3 but depending on his settings it will be displayed as ٣. This is great to make the content appear cohesive and uniform, while also preserving inter-operability.

Would there be any interest in developing this feature? Or if not, I'm a total beginner to Obsidian plug-ins but could give it a shot with your advice (whether it's feasible and what approach I should take). Thank you!

mr-islam avatar Sep 17 '25 15:09 mr-islam

Ideally this is something that should have been supported in CodeMirror, the underlying editor that Obsidian uses, and is also the base for the RTL support (Obsidian mostly just enables the RTL support already in CodeMirror). If such built-in support is not available, I guess the next best thing, which the RTL plugin can indeed do, is to add a keymap to the editor, of course based on a user setting.

esm7 avatar Sep 17 '25 16:09 esm7

That sounds great, thank you for the guidance and advice regarding keymap in code mirror 😀

Do you plan to work on this, or should I take a stab at it myself?

mr-islam avatar Sep 20 '25 09:09 mr-islam

Realistically I don't think I will manage to get to it in the upcoming weeks (and probably more 🥴 ), but if you manage to pull it off, I will do my best to review and consult ASAP!

esm7 avatar Sep 21 '25 12:09 esm7