• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: display unicode string one character at a time, not at simple as it seems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display unicode string one character at a time, not at simple as it seems


  • Subject: Re: display unicode string one character at a time, not at simple as it seems
  • From: mathew davis <email@hidden>
  • Date: Wed, 18 Feb 2009 16:48:21 +1100

Hi Micheal,

thanks for writing

I need to write text onto tiles which will be laid out horizontally.

Ideally these tiles shouldn't be much wider than an uppercase W. The tiles cannot overlap.


ideally I'd like to break the string in to:

the smallest possible segments which do not need to horizontally overlap when displayed in order to make sense to a reader.



so the composed character sequence:

	g̈

	U+0067 ( g ) latin small letter g
	U+0308 ( ̈ ) combining diaeresis

would need to be one substring because the glyphs overlap horizontally


the composed character sequence in Thai:

	เก

	U+0E40 ( เ ) thai character sara e
	U+0E01 ( ก ) thai character ko kai

would ideally be broken into two substrings, but:

	 กึ

would have to be one substring


(my apologies to thai readers if I'm matching vowels with consonants which can't go together or accidentally writing obscenities)



In Thai you can get composed character sequences that look a bit like

	เกอะ

So to fit that on a tile not much wider than 'W'
I'd need to make it in a really small font.
It would be much better if I could break it into four separate pieces

I'm not worried about letters which normally overlap slightly due to kerning,
what i'm worried about is being legible


I'm also not worried about using special ligatures, such as can be used for joining f and l, unless due to a special feature of the language it needs to be preserved to be grammatically correct.




At the moment i'm using rangeOfComposedCharacterSequenceAtIndex.

And if a sequence is too wide for my tile I scale it down.


does that make sense?

cheers

Mathew











_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >display unicode string one character at a time, not at simple as it seems (From: mathew davis <email@hidden>)
 >Re: display unicode string one character at a time, not at simple as it seems (From: Michael Ash <email@hidden>)

  • Prev by Date: RE: Adding Multiple NSWindow or NSPanel into another NSWindow
  • Next by Date: Re: Adding Multiple NSWindow or NSPanel into another NSWindow
  • Previous by thread: Re: display unicode string one character at a time, not at simple as it seems
  • Next by thread: Drop Down Toolbar Button
  • Index(es):
    • Date
    • Thread