Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right-to-Left (RTL) Alignment #1558

Closed
fireheart2008 opened this issue Aug 27, 2019 · 6 comments
Closed

Right-to-Left (RTL) Alignment #1558

fireheart2008 opened this issue Aug 27, 2019 · 6 comments

Comments

@fireheart2008
Copy link

#request implementing this feature

@RaiKoHoff
Copy link
Collaborator

RaiKoHoff commented Aug 27, 2019

Please provide some more details (e.g. how to define right border) or reference to other editor which implements this feature.

@hpwamr
Copy link
Collaborator

hpwamr commented Aug 27, 2019

Here an example of NP++ 🤔

RTL NP++

@hpwamr
Copy link
Collaborator

hpwamr commented Aug 27, 2019

Also here a interesting issue in VSCODE : microsoft/vscode#65648 (comment)

Also:
microsoft/vscode#11770 (comment)
xtermjs/xterm.js#701

@hpwamr
Copy link
Collaborator

hpwamr commented Aug 14, 2020

Hello @fireheart2008 ,

Feel free to test the "BETA/RC" version "Notepad3Portable_5.20.813.1_beta.paf" or higher, see below or issue #1129.

The "Notepad3Portable BETA/RC paf" version can be used with or without ".7z" extension.
To update the "Notepad3 Setup" version with the latest features/fixes from the "BETA/RC" version, see issue #1105.

Also, feel free to test the "BETA/RC" version "Notepad3_5.20.813.1_Setup_beta" or higher, see below or issue #1129.

Comments and suggestions are welcome... 😃

@hpwamr
Copy link
Collaborator

hpwamr commented Aug 14, 2020

Hello @RaiKoHoff ,
I try to imagine the utility of the menu "Bidirectional" ? 🤔
Is it not a "double use" with the menu "RTL Layout (GDI)" ?

2020-08-14_172429

@RaiKoHoff
Copy link
Collaborator

Documents that use multiple languages may contain both directions (RTL and LTR) and this is termed "bidirectional"

e.g. a Source Code (programming language) containing comments in Arabic or Hebrew.

It is a 'provisional' Scintilla feature, currently experimental and incomplete.

It is only possible while using DirectWrite rendering technology.

Unfortunately the DirictWrite rendered in GDI context (only DirectWrite method which allows RTL Layout) will mirror the text, which might be a bug in Scintilla text rendering - not sure so far.
The legacy pure GDI rendering context allows RTL Layout without text mirroring, but has no possibility to use the "bidirectional" feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants