dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.75k stars 257 forks source link

Support for RTL languages #2601

Open odev954 opened 2 years ago

odev954 commented 2 years ago

Please select if your request is either something new or an enhancement

Please select the area your request applies to. (Multiple selections are possible. You can leave blank if you're not sure.)

Is your feature request related to a problem? Please describe

This feature request doesn't relate to a specific problem, yet I see it frustrating when many software and editors lack some of the features I would like to have when conducting research, creating knowledge bases, etc. I recently used Obsidian and I feel like the lack of a fully-featured markdown editor, as well as proper RTL support can affect the user experience.

Describe the solution you'd like

I would like to have:

Describe alternatives you've considered

As I said, combining zaaack's markdown editor with Dendron could be a game-changer, and it will ease the workload that comes with organizing a knowledge base for a project or research. The only things that are needed to be added along with the editor are the note-to-note linking (with [[ operator) and RTL support.

Additional context

No additional context.

Thanks! :)

SeriousBug commented 2 years ago

Thanks for your suggestions!

For graphical editing, this is something we have planned but aren't actively working on at the moment.

Our team isn't very familiar with RTL languages as far as I'm aware, so we'd need some community help. I tried copying and pasting some RTL text into a Dendron note, it shows up in the editor and preview. I think it is aligned incorrectly (it's aligned like LTR text, to the left), is that the issue?

SeriousBug commented 2 years ago

There is support for tags in Dendron: https://wiki.dendron.so/notes/8bc9b3f1-8508-4d3a-a2de-be9f12ef1821/

Does that cover what you're looking for, or are there other features you're looking for in tags?

odev954 commented 2 years ago

Hi @SeriousBug! Thanks for the quick response!

About the RTL, the issue that you described is correct - RTL text should be displayed from right to left. There are only several languages that needed this kind of support - Hebrew, Arabic, and Persian (as far as I know).

I did a little research and found several resources that might help to add support for RTL languages:

P.S: Thank you for the wiki page! I probably missed it... helped me a lot!

SeriousBug commented 2 years ago

Thanks for your answer!

For the editor itself, we unfortunately don't have much control over it. VSCode devs have to add proper support for it, and it looks like there's an open issue for this: https://github.com/Microsoft/vscode/issues/11770

For published websites, it seems like you can set the text direction in CSS. This would be possible by adding a custom header to add your own CSS that marks the text as RTL, but I understand this is a tall ask.

I'll keep this issue open (and rename it) so we keep track of interest in RTL support in Dendron. I'd love to work on this feature right now but we're a bit busy at the moment, so we'll pick this up whenever we can.

babakfp commented 2 years ago

I'd love to work on this feature right now but we're a bit busy at the moment, so we'll pick this up whenever we can.

Can you fix this problem for vsCode itself? Or maybe a fully-featured extension, not for only markdown, but for every single scenario... I can write a whole document about how this fix needs to be done correctly. vsCode devs don't care about it and as far as I know, it is an issue since 2016!😤