Language based scanning

2009-10-13 Thread Nz Gmail

Hi,
Is there is a way to figure out the occurance of Arabic chars so the  
label's alignment would be set accordingly (right to left)? 
 
___


Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Language based scanning

2009-10-13 Thread Ricky Sharp
You probably do not want to approach things this way. Arabic is  
bidirectional and you may have situations where you have a mixture of  
languages.


What you should look at instead is to just localize your app to  
Arabic. In the Arabic version of your nibs, make the necessary  
adjustments.


Sent from my iPhone

On Oct 13, 2009, at 6:16 AM, Nz Gmail nassers...@gmail.com wrote:


Hi,
Is there is a way to figure out the occurance of Arabic chars so the  
label's alignment would be set accordingly (right to left)? 
___


Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rsharp%40mac.com

This email sent to rsh...@mac.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Language based scanning

2009-10-13 Thread John Joyce

 Language based scanning
To: cocoa-dev@lists.apple.com cocoa-dev@lists.apple.com
Message-ID: 21331617-f39c-4f3b-8f4b-795be101a...@gmail.com
Content-Type: text/plain;   charset=us-ascii;   format=flowed;  
delsp=yes

Hi,
Is there is a way to figure out the occurance of Arabic chars so the
label's alignment would be set accordingly (right to left)?

Part of the localization process in Cocoa is to create your localized  
nib/xib files.
This includes adjusting interface elements and layout accordingly so  
that it makes sense for different languages/cultures.
Even some ready-made interface elements don't think left-to-right...  
so you may want to customize things appropriately.


It all depends on how seriously you take given locale as a market for  
an app.


As much as people sometimes think they want easy, scriptable,  
automated localization of the UI, it just doesn't work that way.

You SHOULD hand-tool the UI for all locales.
Do it like you're building something for your own children.

When your users don't have to think, and even better, when they say to  
themselves, oh!? That's clever, subtle, thoughtful! then you have  
done a wonderful job.


In the words of Apple: Surprise and Delight.

This is the Mac OS, and the user experience is paramount unless it is  
a command line tool...

(but even then...)

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Language based scanning

2009-10-13 Thread Jens Alfke


On Oct 13, 2009, at 8:35 AM, John Joyce wrote:

Part of the localization process in Cocoa is to create your  
localized nib/xib files.
This includes adjusting interface elements and layout accordingly so  
that it makes sense for different languages/cultures.
Even some ready-made interface elements don't think left-to-right...  
so you may want to customize things appropriately.


By default, controls use the 'natural' text direction of the system  
locale. That means left-to-right in most languages, but right-to-left  
in Arabic / Hebrew / Urdu. So I believe that if you leave the  
direction alone, it will do the right thing.


—Jens___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com