RTL languages

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9387
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

RTL languages

Post by richmond62 » Mon May 13, 2019 9:59 pm

I'm going to start this with an Arabic phrase as it appears on a Mac in TextEdit (RTF):
-
Screenshot 2019-05-13 at 23.52.35.png
Test Text Image
Screenshot 2019-05-13 at 23.52.35.png (7.5 KiB) Viewed 2291 times
-
Screenshot 2019-05-13 at 23.57.38.png
Text pasted from the TextEdit document into a field in LiveCode 9.0.4
Attachments
God.rtf.zip
Text Test Zip file
(1 KiB) Downloaded 179 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9387
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: RTL languages

Post by richmond62 » Mon May 13, 2019 10:09 pm

Here is my test stack.

The text is Left-Aligned. I suspect that is because the default text-alignment of a field is set to Left.

However; the original Arabic text in the RTF file was incorrectly aligned
(when I pasted it there from Google translate).

Pasting properly aligned Arabic text . . .
-
Screenshot 2019-05-14 at 0.03.11.png
Properly aligned Arabic script.
-
Works!
-
Screenshot 2019-05-14 at 0.07.58.png
Attachments
RTL Tester.livecode.zip
(926 Bytes) Downloaded 183 times

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9387
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: RTL languages

Post by richmond62 » Mon May 13, 2019 10:14 pm

Certainly, with my stack, where the field was a bog-basic, left-aligned setup, the text-alignment
after pasting seems to have "travelled" along with the pasted text.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”