typemill / typemill

Typemill is a lightweight, flat-file CMS designed for simple, fast, and flexible website and eBook creation using Markdown.
https://typemill.net
MIT License
424 stars 60 forks source link

RTL support #414

Closed ashraf21c closed 4 months ago

ashraf21c commented 6 months ago

Hello, any proven RTLing methods that work with Typemill? I tried some (based on suggestions I found in some sites) but they don`t work.

trendschau commented 6 months ago

sorry for late reply, Typemill does not support rtl out of the box. You can experiment with rtl-style in html-tag like this:

<html lang="en" style="direction:rtl">

But I doubt that this will work in detail. Since I am not familiar with rtl-languages, it is hard to test for me.

ashraf21c commented 6 months ago

Thank you for your reply. I already tried changing it, using suggested code as well as other ways, but no solution worked.

في الأربعاء، ٢٥ أكتوبر ٢٠٢٣, ٥:٣٨ م trendschau @.***> كتب:

sorry for late reply, Typemill does not support rtl out of the box. You can experiment with rtl-style in html-tag like this:

But I doubt that this will work in detail. Since I am not familiar with rtl-languages, it is hard to test for me. — Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you authored the thread.Message ID: ***@***.***>
svanlaere commented 6 months ago

Have you tried these attributes in the html tag?

dir="rtl" lang="ar"

More information: https://www.w3.org/International/questions/qa-html-dir

ashraf21c commented 6 months ago

In Custom CSS plugin: .element { direction: rtl; }

No change

ashraf21c commented 6 months ago

In posts/ pages: ((I even tried editing the files using FTP and Notepad++)) The following codes - no change

ashraf21c commented 6 months ago

<div dir="rtl">some Arabic text</div>

ashraf21c commented 6 months ago

<html lang="ar" style="direction:rtl">

ashraf21c commented 6 months ago

'<!DOCTYPE html>

' The above is doctype, with dir, lang and charset set. It`s not appearing here.
ashraf21c commented 6 months ago

<html dir="rtl">text for testing</html>

ashraf21c commented 6 months ago

<div dir="rtl" align="right"> text for testing </div>

The above is div dir rtl align right

ashraf21c commented 6 months ago

<div dir="rtl"> text for testing </div>

The above is div dir rtl

ashraf21c commented 6 months ago

Given the fact Typemill is using Markdown, this is the only MarkDown editor that succesffuly works for RTL, and does not require any codes. I hope it can be included into Typemill.

https://github.com/dariubs/rtlmd

To see it in action (web based): https://rtlmd.codecast.ir/

trendschau commented 4 months ago

thank you for the hint, this requires quite a lot of work and I am not able to test it, so it is not on the roadmap right now. Maybe this is a good case for a fork. I will keep it in mind, but the roadmap for the next 12-24 month is pretty full.