Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Caret Direction



On 5/19/03 8:43 AM, Bilal didst favor us with:

> Hello;
> How to Set the Caret Direction in My MultiLangual Text Editor, I want
> it to begin from right to left and to has the exact behavior (i'm using
> a multilangual text editor and can switch between two languages
> (english and hebrew) when i press Command and space bar i changed the
> current language to hebrew so the caret should change its direction to
> right to left and vise versa with english).

All Unicode characters have a directionality attribute defined in the
Unicode standard. They can be left-to-right, right-to-left, and neutral. You
can also insert left-to-right and right-to-left marks (U+200E and U+200F) to
control the directionality of neutral characters. Maintaining the cursor
position strikes me as an implementation detail of your application, though,
in which case you would use the directionality of the characters to
determine where it should be after typing and pasting text.

Larry
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Caret Direction (From: Bilal <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.