Re: Help with Pasting of RTL languages into a field
Also it may help to relate this back to our own language: what alignment should be used consistently for English text? Left? Are you sure? :) In fact it's also common enough to align center (title), right (date), etc. Left is only the default. Each par (and even tab stops) must be able to inherit and override. It defaults for our convenience but is not chiseled in stone. Alignment is a paragraph property. Arabic and Hebrew pages can be formatted too. RTL and LTR text can even exist on the same line of text. Thus alignment is ultimately up to the user (and to some extent the app designer) just as it is with LTR text. In Richmond's experiment I assume that the Google RTL text was either implicitly right aligned or inside an aligned UI container, while the RTF source was explicitly aligned at the par level. If so, both pastes make good sense! Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Help with Pasting of RTL languages into a field
I've just started playing "silly monkeys" over here: http://forums.livecode.com/viewtopic.php?f=8=32603 Richmond. On 13.05.19 23:45, Paul Dupuis via use-livecode wrote: On 5/9/2019 12:15 PM, Paul Dupuis via use-livecode wrote: I have a test stack with a single scrolling field under LC904rc2. The textDirection for the field is the default of "auto" meaning it should align LTR languages (like English) to the Left and RTL languages (like Arabic or Hebrew) to the Right. English and other LTR test is correctly Left aligned. When I paste in RTL text (Arabic for example) it is incorrectly Left aligned. I am not sure if this is a 'paste' issue (tried the 'paste' command in a button and just using Ctrl-V in the IDE) or a field issue? Or even how to tell? Does anyone else have experience with pasting RTL text from other applications (Word, Web pages, Google Translate, etc.) into LiveCode to have it align properly? Related to this, a have a vague memory of a description of the interaction of "textDirection" and "textAlign". I can find nothing in the Dictionary or Release Notes. Does anyone recall such a thing? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Help with Pasting of RTL languages into a field
On 5/9/2019 12:15 PM, Paul Dupuis via use-livecode wrote: I have a test stack with a single scrolling field under LC904rc2. The textDirection for the field is the default of "auto" meaning it should align LTR languages (like English) to the Left and RTL languages (like Arabic or Hebrew) to the Right. English and other LTR test is correctly Left aligned. When I paste in RTL text (Arabic for example) it is incorrectly Left aligned. I am not sure if this is a 'paste' issue (tried the 'paste' command in a button and just using Ctrl-V in the IDE) or a field issue? Or even how to tell? Does anyone else have experience with pasting RTL text from other applications (Word, Web pages, Google Translate, etc.) into LiveCode to have it align properly? Related to this, a have a vague memory of a description of the interaction of "textDirection" and "textAlign". I can find nothing in the Dictionary or Release Notes. Does anyone recall such a thing? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Help with Pasting of RTL languages into a field
Paul: > When I paste in RTL text (Arabic for example) > it is incorrectly Left aligned. The Dictionary may take a little poetic license with textDirection behavior; text renders inline per the rules, but I think par align is still up to the coder. You could detect the Unicode block when pasting. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Help with Pasting of RTL languages into a field
I have a test stack with a single scrolling field under LC904rc2. The textDirection for the field is the default of "auto" meaning it should align LTR languages (like English) to the Left and RTL languages (like Arabic or Hebrew) to the Right. English and other LTR test is correctly Left aligned. When I paste in RTL text (Arabic for example) it is incorrectly Left aligned. I am not sure if this is a 'paste' issue (tried the 'paste' command in a button and just using Ctrl-V in the IDE) or a field issue? Or even how to tell? Does anyone else have experience with pasting RTL text from other applications (Word, Web pages, Google Translate, etc.) into LiveCode to have it align properly? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode