├── iOS-uyghur-keyboard-webview ├── UyghurSDK │ ├── ALKATIP Basma Tom.TTF │ ├── key_btn_gray@2x.png │ ├── key_btn_normal@2x.png │ └── UyghurSDK_iOS.framework │ │ ├── Modules │ │ └── module.modulemap │ │ ├── Info.plist │ │ ├── UyghurSDK_iOS │ │ ├── Headers │ │ ├── UIAlmasLabel.h │ │ ├── UyConvert.h │ │ ├── UIAlmasButton.h │ │ ├── Constant.h │ │ ├── NSMutableDictionary+DicHelper.h │ │ ├── UySyllableLabel.h │ │ ├── UIPlaceHolderTextView.h │ │ ├── UyghurSDK_iOS.h │ │ ├── UyghurKeyboard.h │ │ ├── NSString+StrHelper.h │ │ └── UySyllableDrawer.h │ │ ├── _CodeSignature │ │ └── CodeResources │ │ ├── rbbirpt.txt │ │ └── regexcst.txt ├── MainViewController.h ├── AppDelegate.h ├── main.m ├── WebInputViewController.h ├── test.html ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── WebInputViewController.m ├── AppDelegate.m ├── MainViewController.m └── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard ├── iOS-uyghur-keyboard-webview.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── .gitignore ├── README.md ├── iOS-uyghur-keyboard-webviewTests ├── Info.plist └── iOS_uyghur_keyboard_webviewTests.m └── LICENSE /iOS-uyghur-keyboard-webview/UyghurSDK/ALKATIP Basma Tom.TTF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alimjan2009/iOS-uyghur-keyboard-webview/HEAD/iOS-uyghur-keyboard-webview/UyghurSDK/ALKATIP Basma Tom.TTF -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/key_btn_gray@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alimjan2009/iOS-uyghur-keyboard-webview/HEAD/iOS-uyghur-keyboard-webview/UyghurSDK/key_btn_gray@2x.png -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/key_btn_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alimjan2009/iOS-uyghur-keyboard-webview/HEAD/iOS-uyghur-keyboard-webview/UyghurSDK/key_btn_normal@2x.png -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module UyghurSDK_iOS { 2 | umbrella header "UyghurSDK_iOS.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alimjan2009/iOS-uyghur-keyboard-webview/HEAD/iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Info.plist -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/UyghurSDK_iOS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Alimjan2009/iOS-uyghur-keyboard-webview/HEAD/iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/UyghurSDK_iOS -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UIAlmasLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlmasLabel.h 3 | // Tapqu2 4 | // 5 | // Created by Captain on 14-2-22. 6 | // Copyright (c) 2014年 Captain. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface UIAlmasLabel : UILabel 12 | //设置字体大小 13 | -(void)setTextSize:(CGFloat)size; 14 | @end 15 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/MainViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // MainViewController.h 3 | // Dinner 4 | // 5 | // Created by alimjan on 15/4/30. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface MainViewController : UIViewController 12 | { 13 | 14 | __weak IBOutlet UIWebView *webView; 15 | 16 | } 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // iOS-uyghur-keyboard-webview 4 | // 5 | // Created by alimjan on 15/7/3. 6 | // Copyright (c) 2015年 alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UyConvert.h: -------------------------------------------------------------------------------- 1 | #ifndef CONVERT_H_ 2 | #define CONVERT_H_ 3 | 4 | 5 | typedef unsigned short UChar16; 6 | UChar16* toEx(UChar16* wData,int inLen,int *outLen); 7 | UChar16* toBase(UChar16* wData,int inLen,int *outLen); 8 | UChar16* toULY(UChar16* wData,int inLen,int *outLen); 9 | UChar16* toSelawen(UChar16* wData,int inLen,int *outLen); 10 | #endif 11 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UIAlmasButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlmasButton.h 3 | // Tapqu2 4 | // 5 | // Created by Captain on 14-2-22. 6 | // Copyright (c) 2014年 Captain. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | 12 | @interface UIAlmasButton : UIButton 13 | /** 14 | * 对所有的状态设置按钮文字 15 | * 16 | */ 17 | -(void)setTitleForAllStates:(NSString*)title; 18 | @end 19 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // iOS-uyghur-keyboard-webview 4 | // 5 | // Created by alimjan on 15/7/3. 6 | // Copyright (c) 2015年 alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/Constant.h: -------------------------------------------------------------------------------- 1 | // 2 | // Constant.h 3 | // Tapqu2 4 | // 5 | // Created by Captain on 14-2-22. 6 | // Copyright (c) 2014年 Captain. All rights reserved. 7 | // 8 | 9 | #ifndef Constant_h 10 | #define Constant_h 11 | //打印辅助函数 12 | #define D(x) NSLog(@"%d",x) 13 | #define F(x) NSLog(@"%f",x) 14 | #define S(x) NSLog(@"%@",x) 15 | 16 | //字体宏 17 | #define FONTWITHSIZE(X) [UIFont fontWithName:@"Alkatip Basma Tom" size:X] 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/WebInputViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // WebInputViewController.h 3 | // Dinner 4 | // 5 | // Created by alimjan on 15/5/4. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface WebInputViewController : UIViewController 12 | typedef void(^onConfirmClick)(NSString *); 13 | @property(nonatomic,strong)onConfirmClick block; 14 | @property(nonatomic,strong)NSString *textHint; 15 | @property(nonatomic,strong)NSString *textValue; 16 | 17 | @end 18 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/NSMutableDictionary+DicHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSMutableDictionary+DicHelper.h 3 | // Syllabel 4 | // 5 | // Created by Alimjan on 15/1/31. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface NSMutableDictionary (DicHelper) 12 | //仿JAVA写的几个工具函数 13 | -(void)putInt:(int) k with:(int)v; 14 | -(int)getInt:(int)k; 15 | -(void)putStr:(int) k with:(NSString*)v; 16 | -(NSString*)getStr:(int)k; 17 | 18 | @end 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | *.pbxuser 5 | !default.pbxuser 6 | *.mode1v3 7 | !default.mode1v3 8 | *.mode2v3 9 | !default.mode2v3 10 | *.perspectivev3 11 | !default.perspectivev3 12 | xcuserdata 13 | *.xccheckout 14 | *.moved-aside 15 | DerivedData 16 | *.hmap 17 | *.ipa 18 | *.xcuserstate 19 | 20 | # CocoaPods 21 | # 22 | # We recommend against adding the Pods directory to your .gitignore. However 23 | # you should judge for yourself, the pros and cons are mentioned at: 24 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 25 | # 26 | #Pods/ 27 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UySyllableLabel.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlmasLabel.h 3 | // Tapqu2 4 | // 5 | // Created by Captain on 14-2-22. 6 | // Copyright (c) 2014年 Captain. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import "Constant.h" 12 | #import "UySyllableDrawer.h" 13 | @interface UySyllableLabel : UILabel 14 | { 15 | 16 | } 17 | //绘制函数 18 | @property(nonatomic,strong) UySyllableDrawer *drawer; 19 | //获取文字控件需要绘制的高度 20 | -(CGFloat)getHeigthByWidth:(CGFloat)width; 21 | //设置行间距 22 | @property(nonatomic,setter=setLineSpacing:)CGFloat lineSpacing; 23 | @end 24 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UIPlaceHolderTextView.h: -------------------------------------------------------------------------------- 1 | // 2 | // UIPlaceHolderTextView.h 3 | // CNR 4 | // 5 | // Created by Alimjan on 15/3/3. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | #import 12 | #import "UIAlmasLabel.h" 13 | @interface UIPlaceHolderTextView : UITextView{ 14 | 15 | } 16 | //提示文字控件 17 | @property(strong,nonatomic) UIAlmasLabel *lblPlaceHolder; 18 | //提示文字颜色 19 | @property (strong, nonatomic) UIColor *placeholderColor; 20 | //提示文字内容 21 | @property (strong, nonatomic) NSString *placeholder; 22 | 23 | @end -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # iOS-uyghur-keyboard-webview 2 | ئ‍ايفۇندىكى webview غا ئۇيغۇرچە كىرگۈزۈش ئۇسۇلى 3 | 4 | 5 | ---------- 6 | 7 | 8 | ## كەسمە رەسىملەر 9 | ![enter image description here](http://115.29.113.224/issue/forgit.gif) 10 | 11 | 12 | ---------- 13 | 14 | 15 | ## ئىشىلتىش ئۇسۇلى 16 | html دىكى input قا تۆۋەندىكىنى قاتىمىز 17 | 18 | ```javascript 19 | 20 | 28 | ``` 29 | 30 | ---------- 31 | ## e-mail:822161777@qq.com -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webviewTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | sad.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Alimjan 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UyghurSDK_iOS.h: -------------------------------------------------------------------------------- 1 | // 2 | // UyghurSDK_iOS.h 3 | // UyghurSDK_iOS 4 | // 5 | // Created by Alimjan on 15/3/6. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for UyghurSDK_iOS. 12 | FOUNDATION_EXPORT double UyghurSDK_iOSVersionNumber; 13 | 14 | //! Project version string for UyghurSDK_iOS. 15 | FOUNDATION_EXPORT const unsigned char UyghurSDK_iOSVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | 21 | 22 | #import 23 | #import 24 | #import 25 | #import 26 | 27 | #import 28 | #import 29 | #import 30 | #import 31 | #import 32 | #import 33 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webviewTests/iOS_uyghur_keyboard_webviewTests.m: -------------------------------------------------------------------------------- 1 | // 2 | // iOS_uyghur_keyboard_webviewTests.m 3 | // iOS-uyghur-keyboard-webviewTests 4 | // 5 | // Created by alimjan on 15/7/3. 6 | // Copyright (c) 2015年 alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface iOS_uyghur_keyboard_webviewTests : XCTestCase 13 | 14 | @end 15 | 16 | @implementation iOS_uyghur_keyboard_webviewTests 17 | 18 | - (void)setUp { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown { 24 | // Put teardown code here. This method is called after the invocation of each test method in the class. 25 | [super tearDown]; 26 | } 27 | 28 | - (void)testExample { 29 | // This is an example of a functional test case. 30 | XCTAssert(YES, @"Pass"); 31 | } 32 | 33 | - (void)testPerformanceExample { 34 | // This is an example of a performance test case. 35 | [self measureBlock:^{ 36 | // Put the code you want to measure the time of here. 37 | }]; 38 | } 39 | 40 | @end 41 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UyghurKeyboard.h: -------------------------------------------------------------------------------- 1 | // 2 | // UyghurKeyboard.h 3 | // iOS Custom Keyboards 4 | // 5 | // Created by Alimjan on 15/3/1. 6 | // Copyright (c) 2015年 Kulpreet Chilana. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | #import 12 | 13 | 14 | typedef void(^UyghurKeyboardReturn)(); 15 | 16 | @interface UyghurKeyboard : UIView 17 | 18 | @property (strong, nonatomic) IBOutlet UIImageView *keyboardBackground; 19 | @property (strong, nonatomic) IBOutletCollection(UIButton) NSMutableArray *characterKeys; 20 | @property (strong, nonatomic) IBOutlet UIButton *shiftButton; 21 | @property (strong, nonatomic) IBOutlet UIButton *altButton; 22 | @property (strong, nonatomic) IBOutlet UIButton *returnButton; 23 | @property (strong, nonatomic) IBOutlet UIButton *deleteButton; 24 | @property (strong) id textView; 25 | @property (strong, nonatomic) IBOutlet UIButton *spaceButton; 26 | 27 | //返回键点击时被调用 28 | @property(strong,nonatomic)UyghurKeyboardReturn uyghurKeyboardReturnBlock; 29 | //是否只显示一行,屏蔽\n,会触发UyghurKeyboardReturn 30 | @property(nonatomic)BOOL isOneLineMode; 31 | @end 32 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/NSString+StrHelper.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSString+StrHelper.h 3 | // Syllabel 4 | // 5 | // Created by Alimjan on 15/1/31. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | typedef enum { 13 | English, 14 | UyGhur, 15 | Float, 16 | Punctuation, 17 | Space, 18 | UnKnown 19 | } StringType; 20 | @interface NSString (StrHelper) 21 | //仿JAVA写的几个工具函数 22 | -(NSString*)subString:(int) f andWith:(int)t; 23 | //分音节函数 24 | -(NSArray*)getSyllable; 25 | //根据给定的字体获取文字宽度 26 | -(CGFloat)getWith:(UIFont*) f; 27 | //获取文字类型 28 | -(StringType)getStringTypes; 29 | //根据给定的正则,判断是否符合 30 | -(BOOL)matches:(NSString*)regex; 31 | //判断是否是维吾尔语 32 | -(BOOL)isUyGhurWord:(unichar) c; 33 | //替换字符串 34 | -(NSString*)replaceAllByOld:(NSString*)search byNew:(NSString*)replace; 35 | //去除文字两段的空格 36 | -(NSString*)trim; 37 | //获取可以加拉长字符的位置 38 | -(NSMutableArray*)getWillElongedPosition; 39 | 40 | 41 | 42 | //转换扩展区 43 | -(NSString*)toEx; 44 | //转换扩展区,第一个位置不加\u202b 45 | -(NSString*)toExWithoutRTL; 46 | //转换基本区 47 | -(NSString*)toBase; 48 | //转换维吾尔语的uly 形式 49 | -(NSString*)toULY; 50 | //转换斯拉夫形式 51 | -(NSString*)toSelawen; 52 | 53 | @end 54 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | UIAppFonts 6 | 7 | ALKATIP Basma Tom.TTF 8 | 9 | CFBundleDevelopmentRegion 10 | en 11 | CFBundleExecutable 12 | $(EXECUTABLE_NAME) 13 | CFBundleIdentifier 14 | sad.$(PRODUCT_NAME:rfc1034identifier) 15 | CFBundleInfoDictionaryVersion 16 | 6.0 17 | CFBundleName 18 | $(PRODUCT_NAME) 19 | CFBundlePackageType 20 | APPL 21 | CFBundleShortVersionString 22 | 1.0 23 | CFBundleSignature 24 | ???? 25 | CFBundleVersion 26 | 1 27 | LSRequiresIPhoneOS 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIMainStoryboardFile 32 | Main 33 | UIRequiredDeviceCapabilities 34 | 35 | armv7 36 | 37 | UISupportedInterfaceOrientations 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationLandscapeLeft 41 | UIInterfaceOrientationLandscapeRight 42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/Headers/UySyllableDrawer.h: -------------------------------------------------------------------------------- 1 | // 2 | // NSObject+LineProperty.h 3 | // Syllabel 4 | // 5 | // Created by Alimjan on 15/1/31. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | 13 | enum SyllabelTextAlighnment { 14 | Left,Center,Right 15 | }; 16 | @interface SpaceSeperator:NSObject 17 | { 18 | 19 | } 20 | @property(strong,nonatomic)NSString* sep; 21 | @property(nonatomic)float width; 22 | 23 | @end 24 | 25 | @interface ElongatedWord:NSObject 26 | { 27 | 28 | } 29 | @property(strong,nonatomic)NSString* sep; 30 | @property(nonatomic)float width; 31 | 32 | @end 33 | 34 | @interface WordSeperator:NSObject 35 | { 36 | 37 | } 38 | @property(strong,nonatomic)NSString* sep; 39 | @property(nonatomic)float width; 40 | 41 | 42 | @end 43 | 44 | @interface UySyllableDrawer:NSObject 45 | { 46 | CGFloat width,floatNowX,floatNowY; 47 | int intLineNumberToDraw,intLineNumberInParagraphDraw; 48 | WordSeperator *wordSeperator; 49 | ElongatedWord *elongatedWord; 50 | SpaceSeperator *spaceSeperator; 51 | UIFont *font; 52 | BOOL isNeedWordSep; 53 | } 54 | //文字对齐方式 55 | @property(nonatomic)enum SyllabelTextAlighnment textAlighnment; 56 | //文字行数 57 | @property(nonatomic)int lines; 58 | //最多行数 59 | @property(nonatomic)int maxLines; 60 | //首航缩进距离 61 | @property(nonatomic)CGFloat firstLineIntendWidth; 62 | //行间距 63 | @property(nonatomic)CGFloat floatLineSpacing; 64 | //根据给定的条件,绘制文字 65 | -(void)draw:(CGFloat)w andStr:(NSString*)strText andX:(CGFloat )x andY:(CGFloat )y andFont:(UIFont*)fnt; 66 | +(CGFloat)getWordsSeperatorWidth; 67 | +(CGFloat)getSpaceSeperatorWidth; 68 | +(CGFloat)getElongatedWordWidth; 69 | +(NSString*)getElongatedWord; 70 | //根据文字,字体,宽度,获取行数 71 | -(int)getDrawLineNumber:(int)lineWidth with:(NSString*)text with:(UIFont*)fnt; 72 | //设置行高 73 | @property(nonatomic)CGFloat floatLineHeight; 74 | //绘制颜色 75 | @property(nonatomic)UIColor *textColor; 76 | 77 | @end 78 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/WebInputViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // WebInputViewController.m 3 | // Dinner 4 | // 5 | // Created by alimjan on 15/5/4. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import "WebInputViewController.h" 10 | #import 11 | @interface WebInputViewController () 12 | { 13 | __weak IBOutlet UIPlaceHolderTextView *textView; 14 | UyghurKeyboard *keyboard; 15 | } 16 | @end 17 | 18 | @implementation WebInputViewController 19 | 20 | - (void)viewDidLoad { 21 | [super viewDidLoad]; 22 | // Do any additional setup after loading the view. 23 | 24 | keyboard = [[UyghurKeyboard alloc]init]; 25 | [keyboard setTextView:textView]; 26 | [keyboard setIsOneLineMode:YES]; 27 | textView.font = FONTWITHSIZE(14); 28 | textView.layer.borderColor = [UIColor grayColor].CGColor; 29 | textView.layer.borderWidth = 1/[UIScreen mainScreen].scale; 30 | textView.placeholderColor = [UIColor grayColor]; 31 | [keyboard setUyghurKeyboardReturnBlock:^(){ 32 | [self onConfirmClicked:nil]; 33 | }]; 34 | if (self.textHint) { 35 | textView.placeholder = self.textHint; 36 | }else 37 | textView.placeholder = @"مەزمۇن كىرگۈزۈڭ..."; 38 | 39 | 40 | if (self.textValue!=nil&&self.textValue.length>0) { 41 | textView.text = self.textValue; 42 | textView.lblPlaceHolder.hidden = YES; 43 | } 44 | 45 | } 46 | 47 | - (void)didReceiveMemoryWarning { 48 | [super didReceiveMemoryWarning]; 49 | // Dispose of any resources that can be recreated. 50 | } 51 | - (IBAction)onConfirmClicked:(id)sender { 52 | if (self.block) { 53 | NSString *str = textView.text; 54 | if ([str hasPrefix:@"\u202b"] ) { 55 | str = [str substringFromIndex:1]; 56 | } 57 | self.block(str); 58 | } 59 | [self dismissViewControllerAnimated:YES completion:nil]; 60 | } 61 | - (IBAction)onReturn:(id)sender { 62 | [self dismissViewControllerAnimated:YES completion:nil]; 63 | } 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // iOS-uyghur-keyboard-webview 4 | // 5 | // Created by alimjan on 15/7/3. 6 | // Copyright (c) 2015年 alimjan. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/MainViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // MainViewController.m 3 | // Dinner 4 | // 5 | // Created by alimjan on 15/4/30. 6 | // Copyright (c) 2015年 Alimjan. All rights reserved. 7 | // 8 | 9 | #import "MainViewController.h" 10 | #import "WebInputViewController.h" 11 | #import 12 | 13 | 14 | //#define LOAD_URL @"http://192.168.1.7/mweb/veglist.aspx?sid=75769EB9399A0E892F06B98EE4F6EE1D&tm=150508190209221&id=105" 15 | //#define LOAD_URL @"http://www.mulazim.com/mweb/index.aspx" 16 | //#define LOAD_URL @"http://192.168.1.7/mweb/" 17 | #define LOAD_URL @"http://www.mulazim.com/" 18 | 19 | @interface MainViewController (){ 20 | 21 | } 22 | 23 | @end 24 | 25 | @implementation MainViewController 26 | 27 | - (void)viewDidLoad { 28 | [super viewDidLoad]; 29 | // Do any additional setup after loading the view. 30 | webView.delegate=self; 31 | [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:LOAD_URL]]]; 32 | NSString *filePath = [[NSBundle mainBundle]pathForResource:@"test" ofType:@"html"]; 33 | NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil]; 34 | [webView loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]]; 35 | } 36 | /**=========================== webView链接 中调用 OC===============================*/ 37 | /**webView的代理方法:加载页面有关. 当直接返回为NO时,会调用JS方法 38 | 其中request参数与发送请求有关*/ 39 | - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { 40 | 41 | NSString *urlStr = request.URL.absoluteString; 42 | urlStr = [urlStr stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; 43 | // NSLog(@"%@",urlStr = [urlStr stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] ); 44 | // 格式 neng://loadUrl/blog.csdn.net 协议/方法/网址 45 | //判断链接中的协议头,如果是neng://, 则进行相关操作 46 | if ([urlStr hasPrefix:@"almas:"]) { 47 | //拿到除去协议头的后部 48 | NSArray *array = [urlStr componentsSeparatedByString:@":"]; 49 | NSString *input_id = [array objectAtIndex:1]; 50 | WebInputViewController *wiVC = [self.storyboard instantiateViewControllerWithIdentifier:@"WebInputViewController"]; 51 | wiVC.textValue = [array objectAtIndex:2]; 52 | wiVC.textHint = [array objectAtIndex:3]; 53 | [wiVC setBlock:^(NSString *result){ 54 | NSString *func = [NSString stringWithFormat:@"settext(\'%@\',\'%@\')",input_id,result]; 55 | [webView stringByEvaluatingJavaScriptFromString:func]; 56 | }]; 57 | [self presentViewController:wiVC animated:YES completion:nil]; 58 | 59 | return NO; 60 | } 61 | 62 | return YES; 63 | } 64 | 65 | 66 | @end 67 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Headers/Constant.h 8 | 9 | dregzzQ108W77sx0pBVLO97Jo1o= 10 | 11 | Headers/NSMutableDictionary+DicHelper.h 12 | 13 | wrReE+oJvEH5sywvsbmwWDIBkYk= 14 | 15 | Headers/NSString+StrHelper.h 16 | 17 | KhESVkksrrWTll9WpeGG4FIg9Q0= 18 | 19 | Headers/UIAlmasButton.h 20 | 21 | oRa6cGCKSWlkMQZg8b/uvxt4fBU= 22 | 23 | Headers/UIAlmasLabel.h 24 | 25 | FbDuFtLvlWQsEoFFQSD2zYthvGU= 26 | 27 | Headers/UIPlaceHolderTextView.h 28 | 29 | O1jP1TaWAYeArKo09I1brNdFVx8= 30 | 31 | Headers/UyConvert.h 32 | 33 | fxk/UPsnHBnpp7vP0cMUSe0xJZQ= 34 | 35 | Headers/UySyllableDrawer.h 36 | 37 | kAh/8AUk6mojNEM+V3dYv+EeAYM= 38 | 39 | Headers/UySyllableLabel.h 40 | 41 | amZ5Xmqw85xpoAWF02PstaRMd5U= 42 | 43 | Headers/UyghurKeyboard.h 44 | 45 | pVW51FQ9UZwpEn793DK56gXXk38= 46 | 47 | Headers/UyghurSDK_iOS.h 48 | 49 | 2rCk/jS5wtlK2Zf79lHmoV/Bsfk= 50 | 51 | Info.plist 52 | 53 | 27OAeOTQn6g2N8p6jT67e1m9OV4= 54 | 55 | Modules/module.modulemap 56 | 57 | GjzxMhEU7XMg2zBLgtd48txE+vM= 58 | 59 | rbbirpt.txt 60 | 61 | T+3qmBkoaw5bRh7mE1Afq8MjXU8= 62 | 63 | regexcst.txt 64 | 65 | YeNTqTc2bAgtYZgHcACa7ouoNJw= 66 | 67 | 68 | files2 69 | 70 | Headers/Constant.h 71 | 72 | dregzzQ108W77sx0pBVLO97Jo1o= 73 | 74 | Headers/NSMutableDictionary+DicHelper.h 75 | 76 | wrReE+oJvEH5sywvsbmwWDIBkYk= 77 | 78 | Headers/NSString+StrHelper.h 79 | 80 | KhESVkksrrWTll9WpeGG4FIg9Q0= 81 | 82 | Headers/UIAlmasButton.h 83 | 84 | oRa6cGCKSWlkMQZg8b/uvxt4fBU= 85 | 86 | Headers/UIAlmasLabel.h 87 | 88 | FbDuFtLvlWQsEoFFQSD2zYthvGU= 89 | 90 | Headers/UIPlaceHolderTextView.h 91 | 92 | O1jP1TaWAYeArKo09I1brNdFVx8= 93 | 94 | Headers/UyConvert.h 95 | 96 | fxk/UPsnHBnpp7vP0cMUSe0xJZQ= 97 | 98 | Headers/UySyllableDrawer.h 99 | 100 | kAh/8AUk6mojNEM+V3dYv+EeAYM= 101 | 102 | Headers/UySyllableLabel.h 103 | 104 | amZ5Xmqw85xpoAWF02PstaRMd5U= 105 | 106 | Headers/UyghurKeyboard.h 107 | 108 | pVW51FQ9UZwpEn793DK56gXXk38= 109 | 110 | Headers/UyghurSDK_iOS.h 111 | 112 | 2rCk/jS5wtlK2Zf79lHmoV/Bsfk= 113 | 114 | Modules/module.modulemap 115 | 116 | GjzxMhEU7XMg2zBLgtd48txE+vM= 117 | 118 | rbbirpt.txt 119 | 120 | T+3qmBkoaw5bRh7mE1Afq8MjXU8= 121 | 122 | regexcst.txt 123 | 124 | YeNTqTc2bAgtYZgHcACa7ouoNJw= 125 | 126 | 127 | rules 128 | 129 | ^ 130 | 131 | ^.*\.lproj/ 132 | 133 | optional 134 | 135 | weight 136 | 1000 137 | 138 | ^.*\.lproj/locversion.plist$ 139 | 140 | omit 141 | 142 | weight 143 | 1100 144 | 145 | ^version.plist$ 146 | 147 | 148 | rules2 149 | 150 | .*\.dSYM($|/) 151 | 152 | weight 153 | 11 154 | 155 | ^ 156 | 157 | weight 158 | 20 159 | 160 | ^(.*/)?\.DS_Store$ 161 | 162 | omit 163 | 164 | weight 165 | 2000 166 | 167 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 168 | 169 | nested 170 | 171 | weight 172 | 10 173 | 174 | ^.* 175 | 176 | ^.*\.lproj/ 177 | 178 | optional 179 | 180 | weight 181 | 1000 182 | 183 | ^.*\.lproj/locversion.plist$ 184 | 185 | omit 186 | 187 | weight 188 | 1100 189 | 190 | ^Info\.plist$ 191 | 192 | omit 193 | 194 | weight 195 | 20 196 | 197 | ^PkgInfo$ 198 | 199 | omit 200 | 201 | weight 202 | 20 203 | 204 | ^[^/]+$ 205 | 206 | nested 207 | 208 | weight 209 | 10 210 | 211 | ^embedded\.provisionprofile$ 212 | 213 | weight 214 | 20 215 | 216 | ^version\.plist$ 217 | 218 | weight 219 | 20 220 | 221 | 222 | 223 | 224 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | ALKATIPBasmaTom 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 58 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/rbbirpt.txt: -------------------------------------------------------------------------------- 1 | 2 | #***************************************************************************** 3 | # 4 | # Copyright (C) 2002-2003, International Business Machines Corporation and others. 5 | # All Rights Reserved. 6 | # 7 | #***************************************************************************** 8 | # 9 | # file: rbbirpt.txt 10 | # ICU Break Iterator Rule Parser State Table 11 | # 12 | # This state table is used when reading and parsing a set of RBBI rules 13 | # The rule parser uses a state machine; the data in this file define the 14 | # state transitions that occur for each input character. 15 | # 16 | # *** This file defines the RBBI rule grammar. This is it. 17 | # *** The determination of what is accepted is here. 18 | # 19 | # This file is processed by a perl script "rbbicst.pl" to produce initialized C arrays 20 | # that are then built with the rule parser. 21 | # 22 | 23 | # 24 | # Here is the syntax of the state definitions in this file: 25 | # 26 | # 27 | #StateName: 28 | # input-char n next-state ^push-state action 29 | # input-char n next-state ^push-state action 30 | # | | | | | 31 | # | | | | |--- action to be performed by state machine 32 | # | | | | See function RBBIRuleScanner::doParseActions() 33 | # | | | | 34 | # | | | |--- Push this named state onto the state stack. 35 | # | | | Later, when next state is specified as "pop", 36 | # | | | the pushed state will become the current state. 37 | # | | | 38 | # | | |--- Transition to this state if the current input character matches the input 39 | # | | character or char class in the left hand column. "pop" causes the next 40 | # | | state to be popped from the state stack. 41 | # | | 42 | # | |--- When making the state transition specified on this line, advance to the next 43 | # | character from the input only if 'n' appears here. 44 | # | 45 | # |--- Character or named character classes to test for. If the current character being scanned 46 | # matches, peform the actions and go to the state specified on this line. 47 | # The input character is tested sequentally, in the order written. The characters and 48 | # character classes tested for do not need to be mutually exclusive. The first match wins. 49 | # 50 | 51 | 52 | 53 | 54 | # 55 | # start state, scan position is at the beginning of the rules file, or in between two rules. 56 | # 57 | start: 58 | escaped term ^break-rule-end doExprStart 59 | white_space n start 60 | '$' scan-var-name ^assign-or-rule doExprStart 61 | '!' n rev-option 62 | ';' n start # ignore empty rules. 63 | eof exit 64 | default term ^break-rule-end doExprStart 65 | 66 | # 67 | # break-rule-end: Returned from doing a break-rule expression. 68 | # 69 | break-rule-end: 70 | ';' n start doEndOfRule 71 | white_space n break-rule-end 72 | default errorDeath doRuleError 73 | 74 | 75 | # 76 | # ! We've just scanned a '!', indicating either a !!key word flag or a 77 | # !Reverse rule. 78 | # 79 | rev-option: 80 | '!' n option-scan1 81 | default reverse-rule ^break-rule-end doReverseDir 82 | 83 | option-scan1: 84 | name_start_char n option-scan2 doOptionStart 85 | default errorDeath doRuleError 86 | 87 | option-scan2: 88 | name_char n option-scan2 89 | default option-scan3 doOptionEnd 90 | 91 | option-scan3: 92 | ';' n start 93 | white_space n option-scan3 94 | default errorDeath doRuleError 95 | 96 | 97 | reverse-rule: 98 | default term ^break-rule-end doExprStart 99 | 100 | 101 | # 102 | # term. Eat through a single rule character, or a composite thing, which 103 | # could be a parenthesized expression, a variable name, or a Unicode Set. 104 | # 105 | term: 106 | escaped n expr-mod doRuleChar 107 | white_space n term 108 | rule_char n expr-mod doRuleChar 109 | '[' scan-unicode-set ^expr-mod 110 | '(' n term ^expr-mod doLParen 111 | '$' scan-var-name ^term-var-ref 112 | '.' n expr-mod doDotAny 113 | default errorDeath doRuleError 114 | 115 | 116 | 117 | # 118 | # term-var-ref We've just finished scanning a reference to a $variable. 119 | # Check that the variable was defined. 120 | # The variable name scanning is in common with assignment statements, 121 | # so the check can't be done there. 122 | term-var-ref: 123 | default expr-mod doCheckVarDef 124 | 125 | 126 | # 127 | # expr-mod We've just finished scanning a term, now look for the optional 128 | # trailing '*', '?', '+' 129 | # 130 | expr-mod: 131 | white_space n expr-mod 132 | '*' n expr-cont doUnaryOpStar 133 | '+' n expr-cont doUnaryOpPlus 134 | '?' n expr-cont doUnaryOpQuestion 135 | default expr-cont 136 | 137 | 138 | # 139 | # expr-cont Expression, continuation. At a point where additional terms are 140 | # allowed, but not required. 141 | # 142 | expr-cont: 143 | escaped term doExprCatOperator 144 | white_space n expr-cont 145 | rule_char term doExprCatOperator 146 | '[' term doExprCatOperator 147 | '(' term doExprCatOperator 148 | '$' term doExprCatOperator 149 | '.' term doExprCatOperator 150 | '/' look-ahead doExprCatOperator 151 | '{' n tag-open doExprCatOperator 152 | '|' n term doExprOrOperator 153 | ')' n pop doExprRParen 154 | default pop doExprFinished 155 | 156 | 157 | # 158 | # look-ahead Scanning a '/', which identifies a break point, assuming that the 159 | # remainder of the expression matches. 160 | # 161 | # Generate a parse tree as if this was a special kind of input symbol 162 | # appearing in an otherwise normal concatenation expression. 163 | # 164 | look-ahead: 165 | '/' n expr-cont-no-slash doSlash 166 | default errorDeath 167 | 168 | 169 | # 170 | # expr-cont-no-slash Expression, continuation. At a point where additional terms are 171 | # allowed, but not required. Just like 172 | # expr-cont, above, except that no '/' 173 | # look-ahead symbol is permitted. 174 | # 175 | expr-cont-no-slash: 176 | escaped term doExprCatOperator 177 | white_space n expr-cont 178 | rule_char term doExprCatOperator 179 | '[' term doExprCatOperator 180 | '(' term doExprCatOperator 181 | '$' term doExprCatOperator 182 | '.' term doExprCatOperator 183 | '|' n term doExprOrOperator 184 | ')' n pop doExprRParen 185 | default pop doExprFinished 186 | 187 | 188 | # 189 | # tags scanning a '{', the opening delimiter for a tag that identifies 190 | # the kind of match. Scan the whole {dddd} tag, where d=digit 191 | # 192 | tag-open: 193 | white_space n tag-open 194 | digit_char tag-value doStartTagValue 195 | default errorDeath doTagExpectedError 196 | 197 | tag-value: 198 | white_space n tag-close 199 | '}' tag-close 200 | digit_char n tag-value doTagDigit 201 | default errorDeath doTagExpectedError 202 | 203 | tag-close: 204 | white_space n tag-close 205 | '}' n expr-cont-no-tag doTagValue 206 | default errorDeath doTagExpectedError 207 | 208 | 209 | 210 | # 211 | # expr-cont-no-tag Expression, continuation. At a point where additional terms are 212 | # allowed, but not required. Just like 213 | # expr-cont, above, except that no "{ddd}" 214 | # tagging is permitted. 215 | # 216 | expr-cont-no-tag: 217 | escaped term doExprCatOperator 218 | white_space n expr-cont-no-tag 219 | rule_char term doExprCatOperator 220 | '[' term doExprCatOperator 221 | '(' term doExprCatOperator 222 | '$' term doExprCatOperator 223 | '.' term doExprCatOperator 224 | '/' look-ahead doExprCatOperator 225 | '|' n term doExprOrOperator 226 | ')' n pop doExprRParen 227 | default pop doExprFinished 228 | 229 | 230 | 231 | 232 | # 233 | # Variable Name Scanning. 234 | # 235 | # The state that branched to here must have pushed a return state 236 | # to go to after completion of the variable name scanning. 237 | # 238 | # The current input character must be the $ that introduces the name. 239 | # The $ is consummed here rather than in the state that first detected it 240 | # so that the doStartVariableName action only needs to happen in one 241 | # place (here), and the other states don't need to worry about it. 242 | # 243 | scan-var-name: 244 | '$' n scan-var-start doStartVariableName 245 | default errorDeath 246 | 247 | 248 | scan-var-start: 249 | name_start_char n scan-var-body 250 | default errorDeath doVariableNameExpectedErr 251 | 252 | scan-var-body: 253 | name_char n scan-var-body 254 | default pop doEndVariableName 255 | 256 | 257 | 258 | # 259 | # scan-unicode-set Unicode Sets are parsed by the the UnicodeSet class. 260 | # Within the RBBI parser, after finding the first character 261 | # of a Unicode Set, we just hand the rule input at that 262 | # point of to the Unicode Set constructor, then pick 263 | # up parsing after the close of the set. 264 | # 265 | # The action for this state invokes the UnicodeSet parser. 266 | # 267 | scan-unicode-set: 268 | '[' n pop doScanUnicodeSet 269 | 'p' n pop doScanUnicodeSet 270 | 'P' n pop doScanUnicodeSet 271 | default errorDeath 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | # 280 | # assign-or-rule. A $variable was encountered at the start of something, could be 281 | # either an assignment statement or a rule, depending on whether an '=' 282 | # follows the variable name. We get to this state when the variable name 283 | # scanning does a return. 284 | # 285 | assign-or-rule: 286 | white_space n assign-or-rule 287 | '=' n term ^assign-end doStartAssign # variable was target of assignment 288 | default term-var-ref ^break-rule-end # variable was a term in a rule 289 | 290 | 291 | 292 | # 293 | # assign-end This state is entered when the end of the expression on the 294 | # right hand side of an assignment is found. We get here via 295 | # a pop; this state is pushed when the '=' in an assignment is found. 296 | # 297 | # The only thing allowed at this point is a ';'. The RHS of an 298 | # assignment must look like a rule expression, and we come here 299 | # when what is being scanned no longer looks like an expression. 300 | # 301 | assign-end: 302 | ';' n start doEndAssign 303 | default errorDeath doRuleErrorAssignExpr 304 | 305 | 306 | 307 | # 308 | # errorDeath. This state is specified as the next state whenever a syntax error 309 | # in the source rules is detected. Barring bugs, the state machine will never 310 | # actually get here, but will stop because of the action associated with the error. 311 | # But, just in case, this state asks the state machine to exit. 312 | errorDeath: 313 | default n errorDeath doExit 314 | 315 | 316 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 943C1EF01B47E68400718FEB /* test.html in Resources */ = {isa = PBXBuildFile; fileRef = 943C1EEF1B47E68400718FEB /* test.html */; }; 11 | 94B9C3EE1B46A396002B99E1 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B9C3ED1B46A396002B99E1 /* main.m */; }; 12 | 94B9C3F11B46A396002B99E1 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B9C3F01B46A396002B99E1 /* AppDelegate.m */; }; 13 | 94B9C3F71B46A396002B99E1 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C3F51B46A396002B99E1 /* Main.storyboard */; }; 14 | 94B9C3F91B46A396002B99E1 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C3F81B46A396002B99E1 /* Images.xcassets */; }; 15 | 94B9C3FC1B46A396002B99E1 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C3FA1B46A396002B99E1 /* LaunchScreen.xib */; }; 16 | 94B9C4081B46A396002B99E1 /* iOS_uyghur_keyboard_webviewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B9C4071B46A396002B99E1 /* iOS_uyghur_keyboard_webviewTests.m */; }; 17 | 94B9C4151B46A3D2002B99E1 /* MainViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B9C4121B46A3D2002B99E1 /* MainViewController.m */; }; 18 | 94B9C4161B46A3D2002B99E1 /* WebInputViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 94B9C4141B46A3D2002B99E1 /* WebInputViewController.m */; }; 19 | 94B9C41E1B46B1DB002B99E1 /* ALKATIP Basma Tom.TTF in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C41A1B46B1DB002B99E1 /* ALKATIP Basma Tom.TTF */; }; 20 | 94B9C41F1B46B1DB002B99E1 /* key_btn_gray@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C41B1B46B1DB002B99E1 /* key_btn_gray@2x.png */; }; 21 | 94B9C4201B46B1DB002B99E1 /* key_btn_normal@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 94B9C41C1B46B1DB002B99E1 /* key_btn_normal@2x.png */; }; 22 | 94B9C4211B46B1DB002B99E1 /* UyghurSDK_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 94B9C41D1B46B1DB002B99E1 /* UyghurSDK_iOS.framework */; }; 23 | 94B9C4221B46B1E5002B99E1 /* UyghurSDK_iOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 94B9C41D1B46B1DB002B99E1 /* UyghurSDK_iOS.framework */; }; 24 | 94B9C4231B46B1E5002B99E1 /* UyghurSDK_iOS.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 94B9C41D1B46B1DB002B99E1 /* UyghurSDK_iOS.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 25 | /* End PBXBuildFile section */ 26 | 27 | /* Begin PBXContainerItemProxy section */ 28 | 94B9C4021B46A396002B99E1 /* PBXContainerItemProxy */ = { 29 | isa = PBXContainerItemProxy; 30 | containerPortal = 94B9C3E01B46A396002B99E1 /* Project object */; 31 | proxyType = 1; 32 | remoteGlobalIDString = 94B9C3E71B46A396002B99E1; 33 | remoteInfo = "iOS-uyghur-keyboard-webview"; 34 | }; 35 | /* End PBXContainerItemProxy section */ 36 | 37 | /* Begin PBXCopyFilesBuildPhase section */ 38 | 94B9C4241B46B1E5002B99E1 /* Embed Frameworks */ = { 39 | isa = PBXCopyFilesBuildPhase; 40 | buildActionMask = 2147483647; 41 | dstPath = ""; 42 | dstSubfolderSpec = 10; 43 | files = ( 44 | 94B9C4231B46B1E5002B99E1 /* UyghurSDK_iOS.framework in Embed Frameworks */, 45 | ); 46 | name = "Embed Frameworks"; 47 | runOnlyForDeploymentPostprocessing = 0; 48 | }; 49 | /* End PBXCopyFilesBuildPhase section */ 50 | 51 | /* Begin PBXFileReference section */ 52 | 943C1EEF1B47E68400718FEB /* test.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = test.html; sourceTree = ""; }; 53 | 94B9C3E81B46A396002B99E1 /* iOS-uyghur-keyboard-webview.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "iOS-uyghur-keyboard-webview.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | 94B9C3EC1B46A396002B99E1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 55 | 94B9C3ED1B46A396002B99E1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 56 | 94B9C3EF1B46A396002B99E1 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 57 | 94B9C3F01B46A396002B99E1 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 58 | 94B9C3F61B46A396002B99E1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 59 | 94B9C3F81B46A396002B99E1 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 60 | 94B9C3FB1B46A396002B99E1 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 61 | 94B9C4011B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "iOS-uyghur-keyboard-webviewTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | 94B9C4061B46A396002B99E1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 63 | 94B9C4071B46A396002B99E1 /* iOS_uyghur_keyboard_webviewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = iOS_uyghur_keyboard_webviewTests.m; sourceTree = ""; }; 64 | 94B9C4111B46A3D2002B99E1 /* MainViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MainViewController.h; sourceTree = ""; }; 65 | 94B9C4121B46A3D2002B99E1 /* MainViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MainViewController.m; sourceTree = ""; }; 66 | 94B9C4131B46A3D2002B99E1 /* WebInputViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebInputViewController.h; sourceTree = ""; }; 67 | 94B9C4141B46A3D2002B99E1 /* WebInputViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WebInputViewController.m; sourceTree = ""; }; 68 | 94B9C41A1B46B1DB002B99E1 /* ALKATIP Basma Tom.TTF */ = {isa = PBXFileReference; lastKnownFileType = file; path = "ALKATIP Basma Tom.TTF"; sourceTree = ""; }; 69 | 94B9C41B1B46B1DB002B99E1 /* key_btn_gray@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "key_btn_gray@2x.png"; sourceTree = ""; }; 70 | 94B9C41C1B46B1DB002B99E1 /* key_btn_normal@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "key_btn_normal@2x.png"; sourceTree = ""; }; 71 | 94B9C41D1B46B1DB002B99E1 /* UyghurSDK_iOS.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = UyghurSDK_iOS.framework; sourceTree = ""; }; 72 | /* End PBXFileReference section */ 73 | 74 | /* Begin PBXFrameworksBuildPhase section */ 75 | 94B9C3E51B46A396002B99E1 /* Frameworks */ = { 76 | isa = PBXFrameworksBuildPhase; 77 | buildActionMask = 2147483647; 78 | files = ( 79 | 94B9C4211B46B1DB002B99E1 /* UyghurSDK_iOS.framework in Frameworks */, 80 | 94B9C4221B46B1E5002B99E1 /* UyghurSDK_iOS.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | 94B9C3FE1B46A396002B99E1 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | ); 89 | runOnlyForDeploymentPostprocessing = 0; 90 | }; 91 | /* End PBXFrameworksBuildPhase section */ 92 | 93 | /* Begin PBXGroup section */ 94 | 94B9C3DF1B46A396002B99E1 = { 95 | isa = PBXGroup; 96 | children = ( 97 | 94B9C3EA1B46A396002B99E1 /* iOS-uyghur-keyboard-webview */, 98 | 94B9C4041B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests */, 99 | 94B9C3E91B46A396002B99E1 /* Products */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | 94B9C3E91B46A396002B99E1 /* Products */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 94B9C3E81B46A396002B99E1 /* iOS-uyghur-keyboard-webview.app */, 107 | 94B9C4011B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests.xctest */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | 94B9C3EA1B46A396002B99E1 /* iOS-uyghur-keyboard-webview */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 943C1EEF1B47E68400718FEB /* test.html */, 116 | 94B9C4191B46B1DB002B99E1 /* UyghurSDK */, 117 | 94B9C4111B46A3D2002B99E1 /* MainViewController.h */, 118 | 94B9C4121B46A3D2002B99E1 /* MainViewController.m */, 119 | 94B9C4131B46A3D2002B99E1 /* WebInputViewController.h */, 120 | 94B9C4141B46A3D2002B99E1 /* WebInputViewController.m */, 121 | 94B9C3EF1B46A396002B99E1 /* AppDelegate.h */, 122 | 94B9C3F01B46A396002B99E1 /* AppDelegate.m */, 123 | 94B9C3F51B46A396002B99E1 /* Main.storyboard */, 124 | 94B9C3F81B46A396002B99E1 /* Images.xcassets */, 125 | 94B9C3FA1B46A396002B99E1 /* LaunchScreen.xib */, 126 | 94B9C3EB1B46A396002B99E1 /* Supporting Files */, 127 | ); 128 | path = "iOS-uyghur-keyboard-webview"; 129 | sourceTree = ""; 130 | }; 131 | 94B9C3EB1B46A396002B99E1 /* Supporting Files */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | 94B9C3EC1B46A396002B99E1 /* Info.plist */, 135 | 94B9C3ED1B46A396002B99E1 /* main.m */, 136 | ); 137 | name = "Supporting Files"; 138 | sourceTree = ""; 139 | }; 140 | 94B9C4041B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 94B9C4071B46A396002B99E1 /* iOS_uyghur_keyboard_webviewTests.m */, 144 | 94B9C4051B46A396002B99E1 /* Supporting Files */, 145 | ); 146 | path = "iOS-uyghur-keyboard-webviewTests"; 147 | sourceTree = ""; 148 | }; 149 | 94B9C4051B46A396002B99E1 /* Supporting Files */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 94B9C4061B46A396002B99E1 /* Info.plist */, 153 | ); 154 | name = "Supporting Files"; 155 | sourceTree = ""; 156 | }; 157 | 94B9C4191B46B1DB002B99E1 /* UyghurSDK */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 94B9C41A1B46B1DB002B99E1 /* ALKATIP Basma Tom.TTF */, 161 | 94B9C41B1B46B1DB002B99E1 /* key_btn_gray@2x.png */, 162 | 94B9C41C1B46B1DB002B99E1 /* key_btn_normal@2x.png */, 163 | 94B9C41D1B46B1DB002B99E1 /* UyghurSDK_iOS.framework */, 164 | ); 165 | path = UyghurSDK; 166 | sourceTree = ""; 167 | }; 168 | /* End PBXGroup section */ 169 | 170 | /* Begin PBXNativeTarget section */ 171 | 94B9C3E71B46A396002B99E1 /* iOS-uyghur-keyboard-webview */ = { 172 | isa = PBXNativeTarget; 173 | buildConfigurationList = 94B9C40B1B46A396002B99E1 /* Build configuration list for PBXNativeTarget "iOS-uyghur-keyboard-webview" */; 174 | buildPhases = ( 175 | 94B9C3E41B46A396002B99E1 /* Sources */, 176 | 94B9C3E51B46A396002B99E1 /* Frameworks */, 177 | 94B9C3E61B46A396002B99E1 /* Resources */, 178 | 94B9C4241B46B1E5002B99E1 /* Embed Frameworks */, 179 | ); 180 | buildRules = ( 181 | ); 182 | dependencies = ( 183 | ); 184 | name = "iOS-uyghur-keyboard-webview"; 185 | productName = "iOS-uyghur-keyboard-webview"; 186 | productReference = 94B9C3E81B46A396002B99E1 /* iOS-uyghur-keyboard-webview.app */; 187 | productType = "com.apple.product-type.application"; 188 | }; 189 | 94B9C4001B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests */ = { 190 | isa = PBXNativeTarget; 191 | buildConfigurationList = 94B9C40E1B46A396002B99E1 /* Build configuration list for PBXNativeTarget "iOS-uyghur-keyboard-webviewTests" */; 192 | buildPhases = ( 193 | 94B9C3FD1B46A396002B99E1 /* Sources */, 194 | 94B9C3FE1B46A396002B99E1 /* Frameworks */, 195 | 94B9C3FF1B46A396002B99E1 /* Resources */, 196 | ); 197 | buildRules = ( 198 | ); 199 | dependencies = ( 200 | 94B9C4031B46A396002B99E1 /* PBXTargetDependency */, 201 | ); 202 | name = "iOS-uyghur-keyboard-webviewTests"; 203 | productName = "iOS-uyghur-keyboard-webviewTests"; 204 | productReference = 94B9C4011B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests.xctest */; 205 | productType = "com.apple.product-type.bundle.unit-test"; 206 | }; 207 | /* End PBXNativeTarget section */ 208 | 209 | /* Begin PBXProject section */ 210 | 94B9C3E01B46A396002B99E1 /* Project object */ = { 211 | isa = PBXProject; 212 | attributes = { 213 | LastUpgradeCheck = 0630; 214 | ORGANIZATIONNAME = alimjan; 215 | TargetAttributes = { 216 | 94B9C3E71B46A396002B99E1 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | }; 219 | 94B9C4001B46A396002B99E1 = { 220 | CreatedOnToolsVersion = 6.3.1; 221 | TestTargetID = 94B9C3E71B46A396002B99E1; 222 | }; 223 | }; 224 | }; 225 | buildConfigurationList = 94B9C3E31B46A396002B99E1 /* Build configuration list for PBXProject "iOS-uyghur-keyboard-webview" */; 226 | compatibilityVersion = "Xcode 3.2"; 227 | developmentRegion = English; 228 | hasScannedForEncodings = 0; 229 | knownRegions = ( 230 | en, 231 | Base, 232 | ); 233 | mainGroup = 94B9C3DF1B46A396002B99E1; 234 | productRefGroup = 94B9C3E91B46A396002B99E1 /* Products */; 235 | projectDirPath = ""; 236 | projectRoot = ""; 237 | targets = ( 238 | 94B9C3E71B46A396002B99E1 /* iOS-uyghur-keyboard-webview */, 239 | 94B9C4001B46A396002B99E1 /* iOS-uyghur-keyboard-webviewTests */, 240 | ); 241 | }; 242 | /* End PBXProject section */ 243 | 244 | /* Begin PBXResourcesBuildPhase section */ 245 | 94B9C3E61B46A396002B99E1 /* Resources */ = { 246 | isa = PBXResourcesBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 943C1EF01B47E68400718FEB /* test.html in Resources */, 250 | 94B9C4201B46B1DB002B99E1 /* key_btn_normal@2x.png in Resources */, 251 | 94B9C3F71B46A396002B99E1 /* Main.storyboard in Resources */, 252 | 94B9C3FC1B46A396002B99E1 /* LaunchScreen.xib in Resources */, 253 | 94B9C3F91B46A396002B99E1 /* Images.xcassets in Resources */, 254 | 94B9C41E1B46B1DB002B99E1 /* ALKATIP Basma Tom.TTF in Resources */, 255 | 94B9C41F1B46B1DB002B99E1 /* key_btn_gray@2x.png in Resources */, 256 | ); 257 | runOnlyForDeploymentPostprocessing = 0; 258 | }; 259 | 94B9C3FF1B46A396002B99E1 /* Resources */ = { 260 | isa = PBXResourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | ); 264 | runOnlyForDeploymentPostprocessing = 0; 265 | }; 266 | /* End PBXResourcesBuildPhase section */ 267 | 268 | /* Begin PBXSourcesBuildPhase section */ 269 | 94B9C3E41B46A396002B99E1 /* Sources */ = { 270 | isa = PBXSourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | 94B9C4161B46A3D2002B99E1 /* WebInputViewController.m in Sources */, 274 | 94B9C3F11B46A396002B99E1 /* AppDelegate.m in Sources */, 275 | 94B9C4151B46A3D2002B99E1 /* MainViewController.m in Sources */, 276 | 94B9C3EE1B46A396002B99E1 /* main.m in Sources */, 277 | ); 278 | runOnlyForDeploymentPostprocessing = 0; 279 | }; 280 | 94B9C3FD1B46A396002B99E1 /* Sources */ = { 281 | isa = PBXSourcesBuildPhase; 282 | buildActionMask = 2147483647; 283 | files = ( 284 | 94B9C4081B46A396002B99E1 /* iOS_uyghur_keyboard_webviewTests.m in Sources */, 285 | ); 286 | runOnlyForDeploymentPostprocessing = 0; 287 | }; 288 | /* End PBXSourcesBuildPhase section */ 289 | 290 | /* Begin PBXTargetDependency section */ 291 | 94B9C4031B46A396002B99E1 /* PBXTargetDependency */ = { 292 | isa = PBXTargetDependency; 293 | target = 94B9C3E71B46A396002B99E1 /* iOS-uyghur-keyboard-webview */; 294 | targetProxy = 94B9C4021B46A396002B99E1 /* PBXContainerItemProxy */; 295 | }; 296 | /* End PBXTargetDependency section */ 297 | 298 | /* Begin PBXVariantGroup section */ 299 | 94B9C3F51B46A396002B99E1 /* Main.storyboard */ = { 300 | isa = PBXVariantGroup; 301 | children = ( 302 | 94B9C3F61B46A396002B99E1 /* Base */, 303 | ); 304 | name = Main.storyboard; 305 | sourceTree = ""; 306 | }; 307 | 94B9C3FA1B46A396002B99E1 /* LaunchScreen.xib */ = { 308 | isa = PBXVariantGroup; 309 | children = ( 310 | 94B9C3FB1B46A396002B99E1 /* Base */, 311 | ); 312 | name = LaunchScreen.xib; 313 | sourceTree = ""; 314 | }; 315 | /* End PBXVariantGroup section */ 316 | 317 | /* Begin XCBuildConfiguration section */ 318 | 94B9C4091B46A396002B99E1 /* Debug */ = { 319 | isa = XCBuildConfiguration; 320 | buildSettings = { 321 | ALWAYS_SEARCH_USER_PATHS = NO; 322 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 323 | CLANG_CXX_LIBRARY = "libc++"; 324 | CLANG_ENABLE_MODULES = YES; 325 | CLANG_ENABLE_OBJC_ARC = YES; 326 | CLANG_WARN_BOOL_CONVERSION = YES; 327 | CLANG_WARN_CONSTANT_CONVERSION = YES; 328 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 329 | CLANG_WARN_EMPTY_BODY = YES; 330 | CLANG_WARN_ENUM_CONVERSION = YES; 331 | CLANG_WARN_INT_CONVERSION = YES; 332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 333 | CLANG_WARN_UNREACHABLE_CODE = YES; 334 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 335 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 336 | COPY_PHASE_STRIP = NO; 337 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 338 | ENABLE_STRICT_OBJC_MSGSEND = YES; 339 | GCC_C_LANGUAGE_STANDARD = gnu99; 340 | GCC_DYNAMIC_NO_PIC = NO; 341 | GCC_NO_COMMON_BLOCKS = YES; 342 | GCC_OPTIMIZATION_LEVEL = 0; 343 | GCC_PREPROCESSOR_DEFINITIONS = ( 344 | "DEBUG=1", 345 | "$(inherited)", 346 | ); 347 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 348 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 349 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 350 | GCC_WARN_UNDECLARED_SELECTOR = YES; 351 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 352 | GCC_WARN_UNUSED_FUNCTION = YES; 353 | GCC_WARN_UNUSED_VARIABLE = YES; 354 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 355 | MTL_ENABLE_DEBUG_INFO = YES; 356 | ONLY_ACTIVE_ARCH = YES; 357 | SDKROOT = iphoneos; 358 | }; 359 | name = Debug; 360 | }; 361 | 94B9C40A1B46A396002B99E1 /* Release */ = { 362 | isa = XCBuildConfiguration; 363 | buildSettings = { 364 | ALWAYS_SEARCH_USER_PATHS = NO; 365 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 366 | CLANG_CXX_LIBRARY = "libc++"; 367 | CLANG_ENABLE_MODULES = YES; 368 | CLANG_ENABLE_OBJC_ARC = YES; 369 | CLANG_WARN_BOOL_CONVERSION = YES; 370 | CLANG_WARN_CONSTANT_CONVERSION = YES; 371 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 372 | CLANG_WARN_EMPTY_BODY = YES; 373 | CLANG_WARN_ENUM_CONVERSION = YES; 374 | CLANG_WARN_INT_CONVERSION = YES; 375 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 376 | CLANG_WARN_UNREACHABLE_CODE = YES; 377 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 378 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 379 | COPY_PHASE_STRIP = NO; 380 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 381 | ENABLE_NS_ASSERTIONS = NO; 382 | ENABLE_STRICT_OBJC_MSGSEND = YES; 383 | GCC_C_LANGUAGE_STANDARD = gnu99; 384 | GCC_NO_COMMON_BLOCKS = YES; 385 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 386 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 387 | GCC_WARN_UNDECLARED_SELECTOR = YES; 388 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 389 | GCC_WARN_UNUSED_FUNCTION = YES; 390 | GCC_WARN_UNUSED_VARIABLE = YES; 391 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 392 | MTL_ENABLE_DEBUG_INFO = NO; 393 | SDKROOT = iphoneos; 394 | VALIDATE_PRODUCT = YES; 395 | }; 396 | name = Release; 397 | }; 398 | 94B9C40C1B46A396002B99E1 /* Debug */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 402 | FRAMEWORK_SEARCH_PATHS = ( 403 | "$(inherited)", 404 | "$(PROJECT_DIR)/iOS-uyghur-keyboard-webview/UyghurSDK", 405 | ); 406 | INFOPLIST_FILE = "iOS-uyghur-keyboard-webview/Info.plist"; 407 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 408 | PRODUCT_NAME = "$(TARGET_NAME)"; 409 | }; 410 | name = Debug; 411 | }; 412 | 94B9C40D1B46A396002B99E1 /* Release */ = { 413 | isa = XCBuildConfiguration; 414 | buildSettings = { 415 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 416 | FRAMEWORK_SEARCH_PATHS = ( 417 | "$(inherited)", 418 | "$(PROJECT_DIR)/iOS-uyghur-keyboard-webview/UyghurSDK", 419 | ); 420 | INFOPLIST_FILE = "iOS-uyghur-keyboard-webview/Info.plist"; 421 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 422 | PRODUCT_NAME = "$(TARGET_NAME)"; 423 | }; 424 | name = Release; 425 | }; 426 | 94B9C40F1B46A396002B99E1 /* Debug */ = { 427 | isa = XCBuildConfiguration; 428 | buildSettings = { 429 | BUNDLE_LOADER = "$(TEST_HOST)"; 430 | FRAMEWORK_SEARCH_PATHS = ( 431 | "$(SDKROOT)/Developer/Library/Frameworks", 432 | "$(inherited)", 433 | ); 434 | GCC_PREPROCESSOR_DEFINITIONS = ( 435 | "DEBUG=1", 436 | "$(inherited)", 437 | ); 438 | INFOPLIST_FILE = "iOS-uyghur-keyboard-webviewTests/Info.plist"; 439 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 440 | PRODUCT_NAME = "$(TARGET_NAME)"; 441 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOS-uyghur-keyboard-webview.app/iOS-uyghur-keyboard-webview"; 442 | }; 443 | name = Debug; 444 | }; 445 | 94B9C4101B46A396002B99E1 /* Release */ = { 446 | isa = XCBuildConfiguration; 447 | buildSettings = { 448 | BUNDLE_LOADER = "$(TEST_HOST)"; 449 | FRAMEWORK_SEARCH_PATHS = ( 450 | "$(SDKROOT)/Developer/Library/Frameworks", 451 | "$(inherited)", 452 | ); 453 | INFOPLIST_FILE = "iOS-uyghur-keyboard-webviewTests/Info.plist"; 454 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 455 | PRODUCT_NAME = "$(TARGET_NAME)"; 456 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/iOS-uyghur-keyboard-webview.app/iOS-uyghur-keyboard-webview"; 457 | }; 458 | name = Release; 459 | }; 460 | /* End XCBuildConfiguration section */ 461 | 462 | /* Begin XCConfigurationList section */ 463 | 94B9C3E31B46A396002B99E1 /* Build configuration list for PBXProject "iOS-uyghur-keyboard-webview" */ = { 464 | isa = XCConfigurationList; 465 | buildConfigurations = ( 466 | 94B9C4091B46A396002B99E1 /* Debug */, 467 | 94B9C40A1B46A396002B99E1 /* Release */, 468 | ); 469 | defaultConfigurationIsVisible = 0; 470 | defaultConfigurationName = Release; 471 | }; 472 | 94B9C40B1B46A396002B99E1 /* Build configuration list for PBXNativeTarget "iOS-uyghur-keyboard-webview" */ = { 473 | isa = XCConfigurationList; 474 | buildConfigurations = ( 475 | 94B9C40C1B46A396002B99E1 /* Debug */, 476 | 94B9C40D1B46A396002B99E1 /* Release */, 477 | ); 478 | defaultConfigurationIsVisible = 0; 479 | defaultConfigurationName = Release; 480 | }; 481 | 94B9C40E1B46A396002B99E1 /* Build configuration list for PBXNativeTarget "iOS-uyghur-keyboard-webviewTests" */ = { 482 | isa = XCConfigurationList; 483 | buildConfigurations = ( 484 | 94B9C40F1B46A396002B99E1 /* Debug */, 485 | 94B9C4101B46A396002B99E1 /* Release */, 486 | ); 487 | defaultConfigurationIsVisible = 0; 488 | defaultConfigurationName = Release; 489 | }; 490 | /* End XCConfigurationList section */ 491 | }; 492 | rootObject = 94B9C3E01B46A396002B99E1 /* Project object */; 493 | } 494 | -------------------------------------------------------------------------------- /iOS-uyghur-keyboard-webview/UyghurSDK/UyghurSDK_iOS.framework/regexcst.txt: -------------------------------------------------------------------------------- 1 | 2 | #***************************************************************************** 3 | # 4 | # Copyright (C) 2002-2007, International Business Machines Corporation and others. 5 | # All Rights Reserved. 6 | # 7 | #***************************************************************************** 8 | # 9 | # file: regexcst.txt 10 | # ICU Regular Expression Parser State Table 11 | # 12 | # This state table is used when reading and parsing a regular expression pattern 13 | # The pattern parser uses a state machine; the data in this file define the 14 | # state transitions that occur for each input character. 15 | # 16 | # *** This file defines the regex pattern grammar. This is it. 17 | # *** The determination of what is accepted is here. 18 | # 19 | # This file is processed by a perl script "regexcst.pl" to produce initialized C arrays 20 | # that are then built with the rule parser. 21 | # 22 | 23 | # 24 | # Here is the syntax of the state definitions in this file: 25 | # 26 | # 27 | #StateName: 28 | # input-char n next-state ^push-state action 29 | # input-char n next-state ^push-state action 30 | # | | | | | 31 | # | | | | |--- action to be performed by state machine 32 | # | | | | See function RBBIRuleScanner::doParseActions() 33 | # | | | | 34 | # | | | |--- Push this named state onto the state stack. 35 | # | | | Later, when next state is specified as "pop", 36 | # | | | the pushed state will become the current state. 37 | # | | | 38 | # | | |--- Transition to this state if the current input character matches the input 39 | # | | character or char class in the left hand column. "pop" causes the next 40 | # | | state to be popped from the state stack. 41 | # | | 42 | # | |--- When making the state transition specified on this line, advance to the next 43 | # | character from the input only if 'n' appears here. 44 | # | 45 | # |--- Character or named character classes to test for. If the current character being scanned 46 | # matches, peform the actions and go to the state specified on this line. 47 | # The input character is tested sequentally, in the order written. The characters and 48 | # character classes tested for do not need to be mutually exclusive. The first match wins. 49 | # 50 | 51 | 52 | 53 | 54 | # 55 | # start state, scan position is at the beginning of the pattern. 56 | # 57 | start: 58 | default term doPatStart 59 | 60 | 61 | 62 | 63 | # 64 | # term. At a position where we can accept the start most items in a pattern. 65 | # 66 | term: 67 | quoted n expr-quant doLiteralChar 68 | rule_char n expr-quant doLiteralChar 69 | '[' n set-open ^set-finish doSetBegin 70 | '(' n open-paren 71 | '.' n expr-quant doDotAny 72 | '^' n expr-quant doCaret 73 | '$' n expr-quant doDollar 74 | '\' n backslash 75 | '|' n term doOrOperator 76 | ')' n pop doCloseParen 77 | eof term doPatFinish 78 | default errorDeath doRuleError 79 | 80 | 81 | 82 | # 83 | # expr-quant We've just finished scanning a term, now look for the optional 84 | # trailing quantifier - *, +, ?, *?, etc. 85 | # 86 | expr-quant: 87 | '*' n quant-star 88 | '+' n quant-plus 89 | '?' n quant-opt 90 | '{' n interval-open doIntervalInit 91 | '(' n open-paren-quant 92 | default expr-cont 93 | 94 | 95 | # 96 | # expr-cont Expression, continuation. At a point where additional terms are 97 | # allowed, but not required. No Quantifiers 98 | # 99 | expr-cont: 100 | '|' n term doOrOperator 101 | ')' n pop doCloseParen 102 | default term 103 | 104 | 105 | # 106 | # open-paren-quant Special case handling for comments appearing before a quantifier, 107 | # e.g. x(?#comment )* 108 | # Open parens from expr-quant come here; anything but a (?# comment 109 | # branches into the normal parenthesis sequence as quickly as possible. 110 | # 111 | open-paren-quant: 112 | '?' n open-paren-quant2 doSuppressComments 113 | default open-paren 114 | 115 | open-paren-quant2: 116 | '#' n paren-comment ^expr-quant 117 | default open-paren-extended 118 | 119 | 120 | # 121 | # open-paren We've got an open paren. We need to scan further to 122 | # determine what kind of quantifier it is - plain (, (?:, (?>, or whatever. 123 | # 124 | open-paren: 125 | '?' n open-paren-extended doSuppressComments 126 | default term ^expr-quant doOpenCaptureParen 127 | 128 | open-paren-extended: 129 | ':' n term ^expr-quant doOpenNonCaptureParen # (?: 130 | '>' n term ^expr-quant doOpenAtomicParen # (?> 131 | '=' n term ^expr-cont doOpenLookAhead # (?= 132 | '!' n term ^expr-cont doOpenLookAheadNeg # (?! 133 | '<' n open-paren-lookbehind 134 | '#' n paren-comment ^term 135 | 'i' paren-flag doBeginMatchMode 136 | 'd' paren-flag doBeginMatchMode 137 | 'm' paren-flag doBeginMatchMode 138 | 's' paren-flag doBeginMatchMode 139 | 'u' paren-flag doBeginMatchMode 140 | 'w' paren-flag doBeginMatchMode 141 | 'x' paren-flag doBeginMatchMode 142 | '-' paren-flag doBeginMatchMode 143 | '(' n errorDeath doConditionalExpr 144 | '{' n errorDeath doPerlInline 145 | default errorDeath doBadOpenParenType 146 | 147 | open-paren-lookbehind: 148 | '=' n term ^expr-cont doOpenLookBehind # (?<= 149 | '!' n term ^expr-cont doOpenLookBehindNeg # (?