TUITextField Not compatible with Chinese Input Method #97

Closed
yarshure opened this Issue Feb 6, 2012 · 10 comments

Comments

Projects
None yet
4 participants
@yarshure

yarshure commented Feb 6, 2012

use Chinese Input Method
I input "ai" mean "爱",but when type second character,it's became "a", not "ai"
use English Input Method no problem.

@mrjjwright

This comment has been minimized.

Show comment Hide comment
@mrjjwright

mrjjwright Feb 27, 2012

In general how usable are TUITextField and TUITextView? I notice Twitter for Mac doesn't appear to use them except in the search box.

In general how usable are TUITextField and TUITextView? I notice Twitter for Mac doesn't appear to use them except in the search box.

@yarshure

This comment has been minimized.

Show comment Hide comment
@yarshure

yarshure Feb 28, 2012

currently I'm on 10.8 , input ok both Twitter and My app. I will test on 10.7.3

currently I'm on 10.8 , input ok both Twitter and My app. I will test on 10.7.3

@avaidyam

This comment has been minimized.

Show comment Hide comment
@avaidyam

avaidyam Mar 1, 2012

Would you mind sharing a code snippet? My TUITextView doesn't scroll with the text and i'm sure that both field and view are not TUIScrollView subclasses.

avaidyam commented Mar 1, 2012

Would you mind sharing a code snippet? My TUITextView doesn't scroll with the text and i'm sure that both field and view are not TUIScrollView subclasses.

@yarshure

This comment has been minimized.

Show comment Hide comment
@yarshure

yarshure Mar 1, 2012

TUITextField, office Twitter Version 2.1.1,Mac OS X 10.7.3 in the search box, have this issue

yarshure commented Mar 1, 2012

TUITextField, office Twitter Version 2.1.1,Mac OS X 10.7.3 in the search box, have this issue

@avaidyam

This comment has been minimized.

Show comment Hide comment
@avaidyam

avaidyam Mar 1, 2012

I think yarshure means to say that the TUITextField in Twitter 2.1.1 has this issue in the search box, on OS X 10.7.3.

avaidyam commented Mar 1, 2012

I think yarshure means to say that the TUITextField in Twitter 2.1.1 has this issue in the search box, on OS X 10.7.3.

@joshaber

This comment has been minimized.

Show comment Hide comment
@joshaber

joshaber Mar 1, 2012

Contributor

FWIW, we have this fixed in our fork: github/twui@6281d17

Contributor

joshaber commented Mar 1, 2012

FWIW, we have this fixed in our fork: github/twui@6281d17

@avaidyam

This comment has been minimized.

Show comment Hide comment
@avaidyam

avaidyam Mar 1, 2012

^ the GitHub/TwUI fork works perfectly! Thanks! I'd also like to know what the most current TwUI fork is? Looks like it's either joshaber's or github's.

avaidyam commented Mar 1, 2012

^ the GitHub/TwUI fork works perfectly! Thanks! I'd also like to know what the most current TwUI fork is? Looks like it's either joshaber's or github's.

@yarshure

This comment has been minimized.

Show comment Hide comment
@yarshure

yarshure Mar 2, 2012

Thanks, but I found another issue in render TUITextField, first Chinese character lost left up corner
example http://twitpic.com/8qtg57

yarshure commented Mar 2, 2012

Thanks, but I found another issue in render TUITextField, first Chinese character lost left up corner
example http://twitpic.com/8qtg57

@avaidyam

This comment has been minimized.

Show comment Hide comment
@avaidyam

avaidyam Mar 2, 2012

The TUITextField clips the view to a rounded rectangle like in iOS. It's shown below:
BOOL doMask = singleLine;
if(doMask) {
CGContextSaveGState(ctx);
CGFloat radius = floor(rect.size.height / 2);
CGContextClipToRoundRect(ctx, CGRectInset(textRect, 0.0f, -radius), radius);
}

Just remove this block of code, and you won't lose portions of the characters.

avaidyam commented Mar 2, 2012

The TUITextField clips the view to a rounded rectangle like in iOS. It's shown below:
BOOL doMask = singleLine;
if(doMask) {
CGContextSaveGState(ctx);
CGFloat radius = floor(rect.size.height / 2);
CGContextClipToRoundRect(ctx, CGRectInset(textRect, 0.0f, -radius), radius);
}

Just remove this block of code, and you won't lose portions of the characters.

@joshaber

This comment has been minimized.

Show comment Hide comment
@joshaber

joshaber May 11, 2012

Contributor

This is merged in as of #107.

Contributor

joshaber commented May 11, 2012

This is merged in as of #107.

@joshaber joshaber closed this May 11, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment