Bug 126261 - Right to left (RTL) writing doesn't work
Summary: Right to left (RTL) writing doesn't work
Status: RESOLVED NOTOURBUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-07 07:25 UTC by Sebők Gábor
Modified: 2019-07-13 19:41 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
clip LTR and RTL paragraph buttons available (91.67 KB, image/png)
2019-07-09 00:40 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebők Gábor 2019-07-07 07:25:31 UTC
Description:
https://drive.google.com/file/d/1aZ3DIx9qkgYnQmXG5A21pnKuW_3RKyFP/view?usp=sharing

These are ancient Hungarian ruins but still LTR.
I followed the step.by-step instructions but again: without success:

https://drive.google.com/file/d/1HZ6_4Ao9gWbmZj7O_r5xHK1NRCZpZnZs/view?usp=sharing

Actual Results:
I vainly us Hebrew characters and use special characters before (start RTL) AND at the end (stop RTL) of RTL paragraph, it has no effect.

Expected Results:
Get back the function.


Reproducible: Always


User Profile Reset: No



Additional Info:
Write the text RTL.

https://drive.google.com/file/d/1aZ3DIx9qkgYnQmXG5A21pnKuW_3RKyFP/view?usp=sharing

These are ancient Hungarian ruins but still LTR.
I followed the step.by-step instructions but again: without success:

https://drive.google.com/file/d/1HZ6_4Ao9gWbmZj7O_r5xHK1NRCZpZnZs/view?usp=sharing
Comment 1 V Stuart Foote 2019-07-07 15:02:59 UTC
Can not confirm on Windows 10 Home 64-bit en-US with
Version: 6.4.0.0.alpha0+ (x64)
Build ID: a9885aed4ee65067613e5506771b6ae6b5e0bae0
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-07-04_01:38:09
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

Text runs using the Unicode range (10C80-10CFF) with a font that supports it will be rendered RTL (via ICU library bidirectional calls) regardless of the containing paragraph's orientation RTL or LTR.

Pre-Unicode PUA mappings onto Latin code points will not.

To enable support for RTL, use Tools -> Options -> Language Settings -> Languages and place a check mark in the box for 'Complex text layout', any language the default Hindi, or Hebrew will suffice. That exposes the additional feature support to set the 'Paragraph' mode as either LTR or RTL

Please verify use of a font with the Old Hungarian Unicode block. Please verify enabling a Complex text layout choice and that the LTR, RTL toolbar actions appear.
Comment 2 Sebők Gábor 2019-07-08 23:49:18 UTC
I don't understand this port:

"That exposes the additional feature support to set the 'Paragraph' mode as either LTR or RTL

Please verify use of a font with the Old Hungarian Unicode block. Please verify enabling a Complex text layout choice and that the LTR, RTL toolbar actions appear."

Could you send me some window-shots?
The rest part you wrote, I've done.

Cheers,
Gábor
Comment 3 V Stuart Foote 2019-07-09 00:40:28 UTC
Created attachment 152658 [details]
clip LTR and RTL paragraph buttons available
Comment 4 V Stuart Foote 2019-07-09 00:49:50 UTC
The text entered with code points from the Old Hungarian Unicode block (10C80-10CFF) will be rendered RTL regardless of the Paragraph direction LTR or RTL.

To enable UI support for RTL paragraph--appearance of the LTR (<Ctrl>+<Shift>+A), and RTL (<Ctrl>+<Shift>+D) toolbar buttons--the Complex Text layout selection must be checked enabled.  The selection is located from the main menu:

Tools -> Options -> Language Settings -> Languages panel

Where there are choices to be made for 'Default Languages for Documents'

'Western'

'Asian'

'Complex text layout'

The checkbox for Complex text layout much be checked, the actual language can remain none, or can use the default 'Hindi', or select one from the drop list.
Comment 5 Sebők Gábor 2019-07-09 07:43:18 UTC
https://drive.google.com/file/d/1H_fFj_ltQmwoWgWZUMC6CUYD1jg3Hk1f/view?usp=sharing

The settings are correct, I hope.
Nothing is happens, when I push SHFT+CTRL+A or SHFT+CTRL+D ,only the beginning of the writing is changing from left to right but NOT THE DIRECTION. Is anything, I'm doing wrong?
Comment 6 V Stuart Foote 2019-07-09 12:36:04 UTC
(In reply to Sebők Gábor from comment #5)
> The settings are correct, I hope.
> Nothing is happens, when I push SHFT+CTRL+A or SHFT+CTRL+D ,only the
> beginning of the writing is changing from left to right but NOT THE
> DIRECTION. Is anything, I'm doing wrong?

Do you actually have a font *installed* that includes rovás in the Old Hungarian Unicode block?

And, have you then set that font to be used for characters when 'Complex text layout' is enabled? 

That is done with the 'Character...' dialog. Opened via the main menu:

Format -> Character... 

Or opened via the context menu (right mouse button) while working in a paragraph?
Comment 7 Sebők Gábor 2019-07-09 15:23:41 UTC
The character context menu settings are here:

https://drive.google.com/file/d/15OFLxtXpPpdpzG6cftLsg6qCo-pqXxDk/view?usp=sharing

Telling the truth, I don't know, what is Hungarian Old Unicode Block means? Should I know at all?
The installed character set was for Microsoft Word 2016...
Comment 8 QA Administrators 2019-07-10 02:55:11 UTC Comment hidden (obsolete)
Comment 9 Kovács Viktor 2019-07-12 14:42:35 UTC
(In reply to Sebők Gábor from comment #2)
> I don't understand this port:
> 
> "That exposes the additional feature support to set the 'Paragraph' mode as
> either LTR or RTL
> 
> Please verify use of a font with the Old Hungarian Unicode block. Please
> verify enabling a Complex text layout choice and that the LTR, RTL toolbar
> actions appear."
> 
> Could you send me some window-shots?
> The rest part you wrote, I've done.
> 
> Cheers,
> Gábor

Gábor! There is a useable font:
https://github.com/googlefonts/noto-fonts/blob/master/unhinted/NotoSansOldHungarian-Regular.ttf
Set the CTL language to "none".
It maybe have mistake, I don't know this is a corrected one.
Comment 10 Sebők Gábor 2019-07-12 14:59:14 UTC
Úgy látom, magyar vagy, ezért magyarul:
Megnéztem a betűkészletet, amit küldtél, de az nem rovás!

Üdv!
Gábor
Comment 11 Kovács Viktor 2019-07-12 15:43:00 UTC
(In reply to Sebők Gábor from comment #10)
> Úgy látom, magyar vagy, ezért magyarul:
> Megnéztem a betűkészletet, amit küldtél, de az nem rovás!
> 
> Üdv!
> Gábor

https://github.com/googlefonts/noto-fonts/blob/master/phaseIII_only/unhinted/ttf/NotoSansOldHungarian/NotoSansOldHungarian-Regular.ttf

This font is the corrected Old Hungarian font, as described by UNICODE range 10c80-10cff. The noto-fonts developers  extended the font by unvisible ligatures, which are not the part of UNICODE Old Hungarian code page. 
 So sorry, I must change the word to English language, because of that the non-Hungarian developers understand the discussion. 
Set the "Comlex text layout" to "none", please. This "name" needed, because of that, the Old Hungarian script not yet supported fully. (spellchecker - I'm working on it,  - font, with Old Hungarian area, which one use the LibreOffice for UI, too. etc.)
I send you xkeyboard-config 2.27 version (it use newer versions of Linux distros) compatible Old Hungarian layout for Windows, as I have a more time.

Thanks!
Comment 12 Sebők Gábor 2019-07-12 18:29:42 UTC
I have tried several times, but this charset doesn't write Hungarian ruins, so called "ROVÁS". You can see in my previous comment, how it's look like.

Laci, itt van néhány általam írt könyv, nemsoká' úgyis olvasni fogod ;)
A helyedben én az "Interjú Istennel" kezdeném, utána a "Legújabb szövetséget" és ha marad még szusz és érdekel, akkor az "Edzéstervet".

https://mega.nz/#F!yvwxTaAB!8ggMTixnJr27MbP-oSgQeA

Gábor
Comment 13 Sebők Gábor 2019-07-12 18:58:52 UTC
Guys!
Try with this one:

https://drive.google.com/file/d/1kj0n1twZqDsWudS-ayuQh4ToVvHOGMws/view?usp=sharing
Comment 14 Kovács Viktor 2019-07-13 19:41:52 UTC
Gábor!
The Libreoffice can use different RTL texts, not only Old Hungarian. You must set, which one want to use. So you need choose "none" identifier setting CTL scripts. After that you need to choose the font, what you want to you use for the CTL language, the font's need to have entries in unicode range for that language. 
Old Hungarian texts need to use u10c80-u10cff codepage's letters. It seems, your letters does not use this area, that because your keyboard layout and fonts doesn't work as you want. It seems, you want use non standard font which has glyps override another language page, maybe latin(?) area.
When you developed your font, the part of UNICODE standard did not existed.(You dated 2012) Please look the desription of UNICODE range u10c80-u10cff. Find on page of UNICODE ,between charts on www.unicode.org ! And after that develope your font, compatible with UNICODE.
So it is not our bug.