n457 / Uncolored

(Un)colored — Next generation desktop rich content editor that saves documents with themes. HTML & Markdown compatible. For Windows, OS X & Linux. — http://n457.github.io/Uncolored/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature suggestion: Text Direction Support

SRamezanH opened this issue · comments

Hi,
Uncolored is really brilliant. I Checked and it supports writing rtl languages and doesn't mess with them. But unfortunately, we cannot change text direction to Right-to-Left. In Html output it'll be simple, I think. Just a line in css with direction:rtl; . I don't know any thing about markdown at depth but I see this project in python which is a Persian rtl markdown editor. I hope it'll not take much time and effort.
Other than rtl support I think the option to making texts center too will be useful.

commented

Hi @SRamezanH,

Alright I keep this in mind for the next version, gotta some tests ;) Thanks for your feedback !

You can add a button in the menu setting the direction to rtl or ltr and auto.
To further clarify how to do this:

This text is one saved markdown file hosted on GitHub. (Viewed on GitHub too.)
It shows how adding an English word jumbles up the whole content.
screenshot_1
After applying this code with a custom CSS extension:

screenshot_2

The text is shown currently.
screenshot_3

@n457 I guess the same can be done with div=auto HTML attribute.