stefankueng / BowPad

A simple and fast text editor with a ribbon UI
http://tools.stefankueng.com/BowPad.html
GNU General Public License v3.0
652 stars 84 forks source link

RTL #7

Open Stamimail opened 6 years ago

Stamimail commented 6 years ago

Nice app. I'm looking for a text editor that can work with RTL languages. This meaning, that the user will be able to switch the alignmemt and the Reading/Writing direction by a hotykey. Notepad of Windows already does this.

The hotkeys are normally: LTR View: LeftCtrl+LeftShift RTL View: RightCtrl+RightShift

stefankueng commented 6 years ago

a few questions:

Stamimail commented 6 years ago
  1. No. But it will be nice if BowPad will have an "auto recogize". I don't know programming but I think something like this: If RTL OS or RTL Input availble: If the first WordCharacter (ignore numbers and Punctuations) is RTLlang, then set RTL View Else set LTR view.

  2. Just for the current tab. Let's take an example that in one tab there is an English text, and in the Second tab the user wants to write the translation in RTL for each sentence. The first tab should be always LTR, and the second tab should be always RTL.

If the user wants to translate each sentence within the first tab itself, he will want to switch the reading/writing direction every 10 seconds, for reading in English and writing in RTL language.

This switching is made normally by: LTR View: LeftCtrl+LeftShift RTL View: RightCtrl+RightShift

It will be nice if there will be also Auto Keyboard Input switching. When pressing "LeftCtrl+LeftShift", the cursor in the left side of the screen, typing English. When pressing "RightCtrl+RightShift", the cursor in the right side of the screen, typing RTLlanguage.

stefankueng commented 6 years ago

Do you have a file that would need RTL mode for me to test? If yes then please attach it to this issue.

stefankueng commented 6 years ago

Scintilla hasn't implemented RTL support yet, but it's currently worked on: https://www.scintilla.org/ScintillaDoc.html#SCI_SETBIDIRECTIONAL https://groups.google.com/forum/#!topic/scintilla-interest/6u5YFzkRzRE%5B101-125%5D

Stamimail commented 6 years ago

Maybe the video I made recently can help here in understanding: https://www.voidtools.com/forum/viewtopic.php?f=4&t=5929#p21707

https://he.wikipedia.org/wiki/%D7%A2%D7%95%D7%A8%D7%9A_%D7%98%D7%A7%D7%A1%D7%98 Hebrew - Wikipedia - TextEditor.txt

stefankueng commented 6 years ago

Scintilla 4.1.0 has beta support for R2L, but it doesn't work properly. At least for me here with a L2R OS language. I've reported the problem I have on the Scintilla forum: https://groups.google.com/d/topic/scintilla-interest/0EnDpY9Tsbw/discussion