On 7 Apr 2015, at 00:15, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
A suggestion, though:
Try building your character set using ‘characterSetWithRange:’ and/or the
NSMutableCharacterSet methods
On Apr 7, 2015, at 02:21 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
it allowed me to create a replacement for characterSetWithCharactersInString:
which actually works
The only suggestion I have is to return ‘mus.copy’ instead of ‘mus’.
Given that we know NSCharacterSet has some
On Apr 7, 2015, at 2:24 PM, Jens Alfke j...@mooseyard.com wrote:
This is the same process that allows you to put Japanese or Cyrillic
characters in a string and render them in Helvetica or Papyrus even though
those fonts don’t support those character sets.
I really want to see a Cyrillic
On Apr 7, 2015, at 12:59 PM, Charles Srstka cocoa...@charlessoft.com wrote:
I really want to see a Cyrillic version of Papyrus now. ;-)
http://ihateyouare.deviantart.com/art/Papyrus-Plain-Cyrillic-165111766
http://ihateyouare.deviantart.com/art/Papyrus-Plain-Cyrillic-165111766
You’re
On Apr 6, 2015, at 2:09 PM, Jack Brindle jackbrin...@me.com wrote:
Have you checked the Font you are using to display the character string to
see if it contains the bicycle character? If not, you probably won’t get the
character you seek.
Fonts have nothing to do with it; they’re an
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
Before this thread heads further into outer space…
I suspect it [NSCharacterSet] is just broken. Look here, for example:
http://stackoverflow.com/questions
On Apr 6, 2015, at 9:57 AM, Charles Srstka cocoa...@charlessoft.com wrote:
The problem, then, is likely the fact that NSCharacterSet considers a
“character” simply as a UTF-16 code point, rather than a true Unicode
character as Swift does.
That should not matter. UTF-16 is a variable
On 7 Apr 2015, at 00:15, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
Before this thread heads further into outer space…
I suspect
On Apr 6, 2015, at 10:15 AM, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
The problem is that it’s unclear whether the “characters
On Apr 6, 2015, at 12:29 , Greg Parker gpar...@apple.com wrote:
my understanding is that when Cocoa says character it usually means UTF-16
code unit. @.length == 2, for example. Cocoa's string API designed when
Unicode was still a true 16-bit character set.
I would have said so, too,
Morris
quinceymor...@rivergatesoftware.com wrote:
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
Before this thread heads further into outer space…
I suspect it [NSCharacterSet] is just broken. Look here
If you're unable to do what you need with Cocoa, maybe it would work to use ICU.
Michael David Crawford, Consulting Software Engineer
mdcrawf...@gmail.com
http://www.warplife.com/mdc/
Available for Software Development in the Portland, Oregon Metropolitan
Area.
On Mon, Apr 6, 2015 at 4:57
. Denkmann gerr...@mdenkmann.de
wrote:
On 7 Apr 2015, at 00:15, Quincey Morris
quinceymor...@rivergatesoftware.com wrote:
On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
Where is my bicycle gone? What am I doing wrong?
Before this thread heads further into outer
On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote:
On 4/6/2015 12:29 PM, Greg Parker wrote:
I'm not an expert here, but my understanding is that when Cocoa says
character it usually means UTF-16 code unit. @.length == 2, for
example. Cocoa's string API designed when Unicode
On 4/6/2015 12:29 PM, Greg Parker wrote:
I'm not an expert here, but my understanding is that when Cocoa says
character it usually means UTF-16 code unit. @.length == 2,
for example. Cocoa's string API designed when Unicode was still a true
16-bit character set.
That would be UCS-2
On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
2. characterSetWithCharactersInString seems to take only the lower 16 bits of
the code points in the string. Bug.
Works ok though, if all chars in the string have code points ≥ 0x1 (e.g.
턞)
The
On 4/6/2015 4:03 PM, Greg Parker wrote:
On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote:
On 4/6/2015 12:29 PM, Greg Parker wrote:
I'm not an expert here, but my understanding is that when Cocoa says character it usually means
UTF-16 code unit. @.length == 2, for example. Cocoa's
On 4/6/2015 4:29 PM, pscott wrote:
On 4/6/2015 4:03 PM, Greg Parker wrote:
On Apr 6, 2015, at 2:20 PM, pscott psc...@skycoast.us wrote:
On 4/6/2015 12:29 PM, Greg Parker wrote:
I'm not an expert here, but my understanding is that when Cocoa
says character it usually means UTF-16 code unit.
On Apr 6, 2015, at 16:29 , pscott psc...@skycoast.us wrote:
But what you were describing *would* be UCS-2. To claim UTF-16 support,
variable length encoding must be handled.
It’s pretty much understood — on this list — that NSString is based on UTF-16,
so we tend to cut the corner that’s
On 7 Apr 2015, at 05:44, Greg Parker gpar...@apple.com wrote:
On Apr 6, 2015, at 11:15 AM, Gerriet M. Denkmann gerr...@mdenkmann.de
wrote:
2. characterSetWithCharactersInString seems to take only the lower 16 bits
of the code points in the string. Bug.
Works ok though, if all chars
On 7 Apr 2015, at 03:42, Quincey Morris quinceymor...@rivergatesoftware.com
wrote:
On Apr 6, 2015, at 12:29 , Greg Parker gpar...@apple.com wrote:
my understanding is that when Cocoa says character it usually means
UTF-16 code unit. @.length == 2, for example. Cocoa's string API
characterSetWithCharactersInString: string ];
BOOL pq = [ charSet longCharacterIsMember: 0x1F6B2 ];
NSLog(@%s CharacterSet from \%@\ contains %s
(0x1F6B2),__FUNCTION__, string, pq ? : no );
This prints:
CharacterSet from abc xyz contains no (0x1F6B2)
Where is my bicycle gone
(0x1F6B2),__FUNCTION__, string, pq ? : no );
This prints:
CharacterSet from abc xyz contains no (0x1F6B2)
Where is my bicycle gone? What am I doing wrong?
Gerriet.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin
On Mon, 6 Apr 2015 11:36:38 -0500, Charles Srstka said:
Objective-C doesn’t support Unicode in source files (although Swift does).
Yes it does, and it has for many years too.
Cheers,
--
Sean McBride, B. Eng
longCharacterIsMember: 0x1F6B2 ];
NSLog(@%s CharacterSet from \%@\ contains %s
(0x1F6B2),__FUNCTION__, string, pq ? : no );
This prints:
CharacterSet from abc xyz contains no (0x1F6B2)
Where is my bicycle gone? What am I doing wrong?
Objective-C doesn’t support Unicode in source
On Apr 6, 2015, at 11:45:52, Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
NSString *string = @abc xyz;// BICYCLE = U+1F6B2
If this is so: why did my compiler not tell me about this?
NSString *string = @abc 〄 xyz;// JAPANESE INDUSTRIAL STANDARD
SYMBOL =
On Apr 6, 2015, at 11:49 AM, Sean McBride s...@rogue-research.com wrote:
On Mon, 6 Apr 2015 11:36:38 -0500, Charles Srstka said:
Objective-C doesn’t support Unicode in source files (although Swift does).
Yes it does, and it has for many years too.
Huh, I just checked the documentation,
On 6 Apr 2015, at 23:52, Steve Mills sjmi...@mac.com wrote:
On Apr 6, 2015, at 11:45:52, Gerriet M. Denkmann gerr...@mdenkmann.de wrote:
NSString *string = @abc xyz;// BICYCLE = U+1F6B2
If this is so: why did my compiler not tell me about this?
NSString *string
28 matches
Mail list logo