Katoeri-Hiragana input underline drawing
Katoeri-Hiragana input underline drawing
- Subject: Katoeri-Hiragana input underline drawing
- From: Rimas <email@hidden>
- Date: Mon, 15 Dec 2008 15:42:47 +0200
Hello,
I am wondering if it is possible to draw this underline manually? I am
talking about underline which is visible when entering text in
Katoeri-Hiragana and characters are in undermined state.
I have tried to use "-
(void)drawGlyphsForGlyphRange:(NSRange)glyphsToShow
atPoint:(NSPoint)origin" and "-
(void)drawBackgroundForGlyphRange:(NSRange)glyphsToShow
atPoint:(NSPoint)origin". But these methods doesn't draw underline.
I have noticed, that marked text range is exactly what I want, but the
problem is - how to know WHEN underline is required? TextView
markedTextAttributes returns dictionary, which has only yellow
background. The same you can see when entering Opt+e, for example.
Looks like this depends on input locale. But I have no idea how
Katoeri-Hiragana should be detected.
Any kind of help is very appreciate.
Regards,
Rimas M.
_______________________________________________
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