Re: arabic script

2009-11-18 Thread Richmond Mathewson

Monte Goulding wrote:

Hi

I've had a request from a client to investigate doing an arabic 
version of his app. The rev docs say right to left scripts aren't 
supported. Has anyone worked around this?


Cheers


Well, how about starting with setting the fontLanguage to Arabic ?


Hmm... I'm just guessing but I think I'd need a work around to handle 
the fact that right to left scripts aren't supported. At least that's 
what it says in the docs. As I don't know Arabic I thought asking here 
might help but perhaps no-one has bumped into this limitation yet?




I'll have a fiddle around this afternoon (teaching this morning): no 
promises - but a bit of lateral

thinking sometimes goes a long way.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Richmond Mathewson

Sorry, rushed off my feet; just had time to note this:

http://lists.runrev.com/pipermail/use-revolution/2004-July/039974.html

and this:

http://lists.runrev.com/pipermail/use-revolution/2008-August/113501.html

However, I think that there is STILL a right-to-left text problem.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Mark Schonewille
Well, yes, there are problems, but it is possible. It isn't too  
difficult if text doesn't need to be editable.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 18 nov 2009, om 11:51 heeft Richmond Mathewson het volgende  
geschreven:



Sorry, rushed off my feet; just had time to note this:

http://lists.runrev.com/pipermail/use-revolution/2004-July/039974.html

and this:

http://lists.runrev.com/pipermail/use-revolution/2008-August/113501.html

However, I think that there is STILL a right-to-left text problem.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Richmond Mathewson

Mark Schonewille wrote:
Well, yes, there are problems, but it is possible. It isn't too 
difficult if text doesn't need to be editable.


Yuck!  There are a fair few languages that either are, or have been, 
written from right to left;

Chinese is sometimes written from top to bottom.

RunRev really need to make text direction as simple as:

set textDirection to left



The fact that there have been psotings on this topic for at least5 years
shows that it is both a real and a commercial concern.



--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 18 nov 2009, om 11:51 heeft Richmond Mathewson het volgende 
geschreven:



Sorry, rushed off my feet; just had time to note this:

http://lists.runrev.com/pipermail/use-revolution/2004-July/039974.html

and this:

http://lists.runrev.com/pipermail/use-revolution/2008-August/113501.html

However, I think that there is STILL a right-to-left text problem.



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Phil Davis

Monte Goulding wrote:

Hi

I've had a request from a client to investigate doing an arabic 
version of his app. The rev docs say right to left scripts aren't 
supported. Has anyone worked around this?


Cheers


Well, how about starting with setting the fontLanguage to Arabic ?


Hmm... I'm just guessing but I think I'd need a work around to handle 
the fact that right to left scripts aren't supported. At least that's 
what it says in the docs. As I don't know Arabic I thought asking here 
might help but perhaps no-one has bumped into this limitation yet?


Cheers

Monte


Guess again!  ;-)

I maintain  further develop a training system I built for a client 
starting in 2003. It allows Arabic (or any RTL language) to be pasted 
into fields but not typed in. The reason for no typing is no engine 
support for RTL typing.


During the paste process my code reverses the character order, gets the 
html entity code of each char, and sets the htmlText of the target field 
to the reversed string of entities. Also there is some unicode business 
thrown in along the way, but I don't remember those details at the moment.


If there is a simpler way to do this, I would love to hear about it.

Thanks -
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Monte Goulding
Hmm... I'm just guessing but I think I'd need a work around to  
handle the fact that right to left scripts aren't supported. At  
least that's what it says in the docs. As I don't know Arabic I  
thought asking here might help but perhaps no-one has bumped into  
this limitation yet?


Cheers

Monte


I maintain  further develop a training system I built for a client  
starting in 2003. It allows Arabic (or any RTL language) to be  
pasted into fields but not typed in. The reason for no typing is no  
engine support for RTL typing.


OK, no typing could be a blocker for us. Did you try setting selecting  
before the first char to move the cursor to the left as the user was  
typing?



During the paste process my code reverses the character order, gets  
the html entity code of each char, and sets the htmlText of the  
target field to the reversed string of entities. Also there is some  
unicode business thrown in along the way, but I don't remember those  
details at the moment.


So how do you handle text wrapping or do you avoid it?



If there is a simpler way to do this, I would love to hear about it.


Me too.
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-18 Thread Phil Davis

Hi Monte,

Monte Goulding wrote:
Hmm... I'm just guessing but I think I'd need a work around to 
handle the fact that right to left scripts aren't supported. At 
least that's what it says in the docs. As I don't know Arabic I 
thought asking here might help but perhaps no-one has bumped into 
this limitation yet?


Cheers

Monte


I maintain  further develop a training system I built for a client 
starting in 2003. It allows Arabic (or any RTL language) to be pasted 
into fields but not typed in. The reason for no typing is no engine 
support for RTL typing.


OK, no typing could be a blocker for us. Did you try setting selecting 
before the first char to move the cursor to the left as the user was 
typing?


No I didn't - good idea.



During the paste process my code reverses the character order, gets 
the html entity code of each char, and sets the htmlText of the 
target field to the reversed string of entities. Also there is some 
unicode business thrown in along the way, but I don't remember those 
details at the moment.


So how do you handle text wrapping or do you avoid it?


We avoided it by requiring that line breaks be inserted during editing 
in the RTL text editor before pasting the text into our app. I find this 
approach very clunky and unnatural-feeling, but it's the direction we 
went. I suppose you could check the formattedHeight of the field after 
each keystroke to detect wrapping.


I expect to be improving my app's RTL text feature in the future, so any 
good approaches I can add to my existing hindsight observations will be 
greatly appreciated!





If there is a simpler way to do this, I would love to hear about it.


Me too.


Bug #8146 describes this issue.
--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


arabic script

2009-11-17 Thread Monte Goulding

Hi

I've had a request from a client to investigate doing an arabic  
version of his app. The rev docs say right to left scripts aren't  
supported. Has anyone worked around this?


Cheers

Monte
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-17 Thread Mark Schonewille

Hi Monte,

It is possible. Can you tell a little more about what you need to do?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 17 nov 2009, om 22:30 heeft Monte Goulding het volgende geschreven:


Hi

I've had a request from a client to investigate doing an arabic  
version of his app. The rev docs say right to left scripts aren't  
supported. Has anyone worked around this?


Cheers

Monte



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-17 Thread Monte Goulding

Hi Mark



It is possible. Can you tell a little more about what you need to do?


Well, we haven't considered other languages just yet so we would need  
to parse over all the objects in a reasonable size application and  
update them with arabic labels or contents. While we are at it I'd  
like to implement it so next time we can just replace a file and it  
will update the application at startup or something.


Cheers

Monte
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-17 Thread Mark Schonewille

Hi Monte,

As a very simple example, create two buttons and a field. Set the  
script of btn 2 to the following:


on mouseUp
 set the textFont of btn 1 to Arabic,unicode
 set the textFont of fld 1 to Arabic,unicode
 set the label of btn 1 to the unicodetext of fld 1
end mouseUp

Press button 2, paste Arabic text into fld 1, press button 2 again. A  
little bit of experimenting may be required.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Download Strõm Flow Chart Software
http://flowproject.economy-x-talk.com

Op 17 nov 2009, om 22:43 heeft Monte Goulding het volgende geschreven:


Hi Mark



It is possible. Can you tell a little more about what you need to do?


Well, we haven't considered other languages just yet so we would  
need to parse over all the objects in a reasonable size application  
and update them with arabic labels or contents. While we are at it  
I'd like to implement it so next time we can just replace a file and  
it will update the application at startup or something.


Cheers

Monte



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-17 Thread Richmond Mathewson

Monte Goulding wrote:

Hi

I've had a request from a client to investigate doing an arabic 
version of his app. The rev docs say right to left scripts aren't 
supported. Has anyone worked around this?


Cheers


Well, how about starting with setting the fontLanguage to Arabic ?
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: arabic script

2009-11-17 Thread Monte Goulding

Hi

I've had a request from a client to investigate doing an arabic  
version of his app. The rev docs say right to left scripts aren't  
supported. Has anyone worked around this?


Cheers


Well, how about starting with setting the fontLanguage to Arabic ?


Hmm... I'm just guessing but I think I'd need a work around to handle  
the fact that right to left scripts aren't supported. At least that's  
what it says in the docs. As I don't know Arabic I thought asking here  
might help but perhaps no-one has bumped into this limitation yet?


Cheers

Monte
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution