Unicode LTR and RTL character marks do not work

Steps to reproduce

  1. start a new note in Obsidian

  2. insert the U+200E LEFT-TO-RIGHT MARK

  3. write some RTL text after the mark

  4. in a new line insert the ‏ U+200F RIGHT-TO-LEFT MARK

  5. write some LTR text after the mark

  6. now in a new line insert the U+061C ARABIC LETTER MARK

  7. write some LTR text after the mark

Here’s an exemple text: (make sure you add the invisible marks in the beginning of every line)

‎مرحبا
‏LTR text after ARABIC LETTER MARK
؜LTR text after ARABIC LETTER MARK

Did you follow the troubleshooting guide? [Y]

Expected result

According to Right-to-left - Developer Documentation:

When editing a file, the dir attribute is set to rtl or ltr per line on .cm-line elements by detecting the first strongly directional character.

The LEFT-TO-RIGHT MARK and RIGHT-TO-LEFT MARK should (by definition) be treated like other strongly directional characters.
The RIGHT-TO-LEFT MARK and ARABIC LETTER MARK should be treated in the same way.

Actual result

The LEFT-TO-RIGHT MARK and RIGHT-TO-LEFT MARK has no effect to the text direction, unlike ARABIC LETTER MARK and all other strongly directional characters. (See the screenshot)

Environment

SYSTEM INFO:
Obsidian version: v1.6.3
Installer version: v1.6.3
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
none

Additional information

Resolving this issue will let the user manually decide the text direction of each line. That’s very useful when dealing with a mix of both LTR and RTL languages within the same note.

The new automatic detection of text direction introduced in Obsidian 1.6 but unfortunately isn’t always good. In many cases, it becomes a real mess, for example if you make a bulleted list with both LTR and RTL text. That’s confirmed by many RTL users in this forum.

ok, I think I understand. It seems that these characters already work in reader mode, not in the editor.

For the rest of your feedback: continue the conversation in this feature request

direction marks in the editor will be fixed in 1.6.6. No ETAs.

1 Like

ok, I think I understand. It seems that these characters already work in reader mode, not in the editor.

Yes exactly, the bug is about the editing view.

I also have the bug on the reader mode (not just on the editing mode) when combining dataviews.

Send the bug report to dataview for that.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.