Dear Marc-André Moreau:
i see, thanks for your help.
but after I modify the code, it just work well on iPad. With iPhone, there is a
bug, when I changed input method(Not handwriting mode, keyboard mode) to
Chinese mode, the RDP view will move up and hidden.but i can also input unicode
Chinese character.it looks like the pictures of mail attachment .
1. touch-mode.PNG
- Typing Chinese with handwriting mode (it work well)
2. keybard-mode.PNG
- Typing Chinese with keyboard mode (the rdp view moved up and hidden)
3. after-typed-with-keyboard-mode
afer typed with keyboard mode, hidden the keyboard, the content i typed had
display, but the view could not reset normal.
Thanks for your reply.
zhanleewo
From: Marc-André Moreau
Date: 2013-03-14 01:19
To: zhanleewo
CC: freerdp-devel
Subject: Re: [Freerdp-devel] Support unicode chinese character input directly
Dear zhanleewo,
The regular workflow is to create a github fork, make your changes there, and
then create a pull request such that we can review and accept the changes to be
merged upstream.
This is interesting, can you tell me more about the difficulties of supporting
Chinese as an input language? I've recently ordered a Japanese keyboard to
properly test using it, but I don't know much about the Chinese input methods.
If there is anything I can do to help testing support for Chinese on my side
let me know, I'm interested in documenting test procedures. Usually support for
CJK languages is broken because the developers don't know anything about them
(my knowledge in this area is limited as well).
Best regards,
- Marc-Andre
On Wed, Mar 13, 2013 at 1:09 PM, zhanleewo <zhanle...@gmail.com> wrote:
Dear All:
I want to commit a patch which support chinese input method on iOS
platform.with this patch you can input unicode chinese character directly.
File: SOURCE_ROOT/client/iOS/Controllers/RDPSessionViewController.m
Method: - (BOOL)textField:(UITextField *)textField
shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString
*)string
Change to:
- (BOOL)textField:(UITextField *)textField
shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString
*)string{ if(string == nil || [string length] == 0) { // key touched is
backspace if(range.length > 0) { [[RDPKeyboard
getSharedRDPKeyboard] sendBackspaceKeyStroke]; } return NO; }
if([[UITextInputMode currentInputMode].primaryLanguage
isEqualToString:@"zh-Hans"] && (([string characterAtIndex:0] >= 'a' &&
[string characterAtIndex:0] <= 'z') || ([string characterAtIndex:0]
>= 'A' && [string characterAtIndex:0] <= 'Z'))) { for(int i = 0 ; i <
[string length] ; i++) { unichar curChar = [string
characterAtIndex:i]; if(curChar == '\n')
[[RDPKeyboard getSharedRDPKeyboard] sendEnterKeyStroke]; }
return YES; } for(int i = 0 ; i < [string length] ; i++) {
unichar curChar = [string characterAtIndex:i]; if(curChar == '\n')
[[RDPKeyboard getSharedRDPKeyboard] sendEnterKeyStroke]; else
[[RDPKeyboard getSharedRDPKeyboard] sendUnicode:curChar]; }
textField.text = @"UserInput"; return NO;}
zhanleewo
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Freerdp-devel mailing list
Freerdp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel