Typing arabic and latin chars on the same card

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Typing arabic and latin chars on the same card

Post by jmburnod »

Hi All,

What is the best way for typing arabic chars in a fld and latin chars in an other fld of the same card

I dream a propertie "CharsPaletteAndKeybord" for a script like that :

Code: Select all

on openfield pCurpaletteChars  --•• (pCurpaletteChars = arabic or latin)
set the CharsPaletteAndKeybord to pCurpaletteChars
en openfield	
regards

Jean-Marc
Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel »

Hi Jean-Marc,

In theory, Revolution just follows the input method and language that the user has chosen. But if you need a specific language for a specific field, you can set the textFont of that field to something like "Arial,Arabic".

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark »

Hi Jean-Marc,

You may also need to find a way to make the text go from right to left ;-) I managed to do this, but is quite a hassle with the obsolete text features of Revolution.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Typing arabic and latin chars on the same card

Post by jmburnod »

Hi Mark,

Yes, from right to left :shock:

In fact i want three fonts :

latin
arabic
tifinagh

Maeby a way is a tool with images.

Others ideas are welcome

Best regards

Jean-Marc
Post Reply