fiduswriter / fiduswriter

Fidus Writer is an online collaborative editor for academics.
https://fiduswriter.org
GNU Affero General Public License v3.0
518 stars 80 forks source link

RTL language support #624

Open moosavy opened 6 years ago

moosavy commented 6 years ago

@johanneswilm RTL support for writing in Arabic, Persian is essential. Fiduswriter supports limited RTL. When I can write words correctly in fiduswriter, but I can't manage paragraphs and bilingual texts correctly. when you want to write a RTL text, beginning of line is from Right side of the page, but fiduswriter stays at the left. Cursor must be automatically goes to right side of page as we see in gedit, or Docs on google. Also when you want to right a LTR word in a RTL text, the LTR word must be placed at the left side of preceding RTL words, but as you see on fiduswriter, the LTR word will be placed at the right of preceding RTL words.

johanneswilm commented 6 years ago

Hey, thanks for reporting this. For the main editing app, I have committed a basic solution that will be included with the next release later this year. It simply turnt eh writing direction to RTL if the language of the document is set to one of Hebrew, Persian or Arabic. The same language is then also used for the caption of images.

However, beyond that it seems to be more complex. For the forms in bibliography fields, I think it will make sense to put each of the fields to an "auto" direction, which means that the direction will be determined by the first strongly typed character in the field. This way it's possible to include a work with a Persian title but a latin language author name, etc. . I am not sure if that will cover all usecases though as I'm not myself in the situation that I need this. Hopefully a software developer with knowledge of one of those languages will help with this eventually.

Best, Johannes

On Thu, Jun 7, 2018 at 7:51 AM moosavy notifications@github.com wrote:

Hi RTL support for writing in Arabic, Persian is essential. Fiduswriter supports limited RTL. When I can write words correctly in fiduswriter, but I can't manage paragraphs and bilingual texts correctly. when you want to write a RTL text, beginning of line is from Right side of the page, but fiduswriter stays at the left. Cursor must be automatically goes to right side of page as we see in gedit, or Docs on google. Also when you want to right a LTR word in a RTL text, the LTR word must be placed at the left side of preceding RTL words, but as you see on fiduswriter, the LTR word will be placed at the right of preceding RTL words.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fiduswriter/fiduswriter/issues/624, or mute the thread https://github.com/notifications/unsubscribe-auth/AAkWOCq9p87RWCljJxmtqmmAVGqMVC2qks5t6L9pgaJpZM4Udxt3 .

-- Johannes Wilm http://www.johanneswilm.org tel: +1 (520) 399 8880