Right to left text in Compare tool
Moderators: Hacker, petermad, Stefan2, white
Right to left text in Compare tool
TC 11.01 in the current Windows 11 US English.
Two tiny files i1 and i2 are in UTF-8, right to left language, should be in the archive here: cmp.7z (194 bytes).
The second one contains parenthesized text; in Notepad is looks like this: "(xxx) x".
Comparison tool displays text as left to right though this is not a problem yet.
Some editors do the same, show text like "x (xxx)", but after changes and saving it would be correct in Notepad.
The problem is, Comparison tool displays text as "x ((xxx" - different parenthesis in the wrong place.
Two tiny files i1 and i2 are in UTF-8, right to left language, should be in the archive here: cmp.7z (194 bytes).
The second one contains parenthesized text; in Notepad is looks like this: "(xxx) x".
Comparison tool displays text as left to right though this is not a problem yet.
Some editors do the same, show text like "x (xxx)", but after changes and saving it would be correct in Notepad.
The problem is, Comparison tool displays text as "x ((xxx" - different parenthesis in the wrong place.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Right to left text in Compare tool
Unfortunately right to left text isn't currently supported in the compare tool sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Right to left text in Compare tool
Is it correct to say that Lister has no right to left text support too?
Sometimes in UTF-8 it displays parenthesized text in left to right order, while other files will have two opening parentheses.
Sometimes in UTF-8 it displays parenthesized text in left to right order, while other files will have two opening parentheses.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Right to left text in Compare tool
No, Lister does have right to left text support in text and Unicode UTF-16 and UTF-8 modes. Your files are detected as binary because they don't have any line breaks. Switch to UTF-8 mode manually, then it should work fine.
To switch to right aligned mode, hold down the Ctrl key and press and release the right shift key.
To switch back to left aligned mode, hold down the ctrl key and press and release the left shift key.
Please provide a sample file if you find one which doesn't work.
To switch to right aligned mode, hold down the Ctrl key and press and release the right shift key.
To switch back to left aligned mode, hold down the ctrl key and press and release the left shift key.
Please provide a sample file if you find one which doesn't work.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Right to left text in Compare tool
lister.7z
Notepad shows all three files with pared parentheses.
ir21 is reasonably good in both left to right and right to left
ir2.b has BOM - also good
ir2.n no BOM - wrong display in left to right "((x"
Possibly text drawing has started as left to right, then switched to the inverse order.
Notepad shows all three files with pared parentheses.
ir21 is reasonably good in both left to right and right to left
ir2.b has BOM - also good
ir2.n no BOM - wrong display in left to right "((x"
Possibly text drawing has started as left to right, then switched to the inverse order.
Last edited by browny on 2023-09-13, 11:11 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Right to left text in Compare tool
Interestingly, when you press Ctrl+ right shift, then ir2.n appears just fine. Maybe it's not a TC bug...
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Right to left text in Compare tool
2browny
and which encoding IS a correct one for these files?
IMHO it should be more correctly - if you could supply us with screens of the proper rendering of all of these files.
and which encoding IS a correct one for these files?
IMHO it should be more correctly - if you could supply us with screens of the proper rendering of all of these files.
#146217 personal license
Re: Right to left text in Compare tool
Notepad made no mistakes.ghisler(Author) wrote: 2023-09-13, 09:25 UTC Interestingly, when you press Ctrl+ right shift, then ir2.n appears just fine. Maybe it's not a TC bug...
AntonyD, this is UTF-8 text as written in the opening post.
Re: Right to left text in Compare tool
So in this case - all file are opening correctly....this is UTF-8 text
So where is the problem? Maybe screen-shots?
Because mentioned "((x" - I don't see at anywhere(((
#146217 personal license
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Right to left text in Compare tool
Sorry, I don't know why Lister displays it incorrectly when it's left-aligned. Maybe someone native Arabic has an idea what could be the problem.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Right to left text in Compare tool
Using an ordinary edit text control and trying to type and copy&paste these characters one by one was a lot of fun.
For those who used to left to right text, arrow keys and backspace move and delete in weird ways.
For those who used to left to right text, arrow keys and backspace move and delete in weird ways.
Re: Right to left text in Compare tool
Maybe this is the way to write a sequence of characters and ignore the direction of reading.
https://stackoverflow.com/questions/33156889/windows-right-to-left-characters-output-using-textout
https://stackoverflow.com/questions/33156889/windows-right-to-left-characters-output-using-textout
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Right to left text in Compare tool
Moderator message
Moved to suggestions forum
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com