Permalink
Browse files

libhangul xml formatted data

  • Loading branch information...
youknowone committed Nov 28, 2017
1 parent 37b0076 commit 43dff144c0f5ec68098fce70f52b29de24d8413a
Showing with 887,938 additions and 29 deletions.
  1. +200 −4 Gureum.xcodeproj/project.pbxproj
  2. +2 −1 OSX/CIMInputControllerGureum.m
  3. +4 −0 OSX/GureumAppDelegate.m
  4. +4 −6 OSX/GureumComposer.m
  5. +12 −12 OSX/HangulComposer.m
  6. +25 −2 OSX/Info.plist
  7. +2 −2 OSX/RomanComposer.swift
  8. +2 −0 OSX/data/hanja/.gitignore
  9. +317,803 −0 OSX/data/hanja/all.txt
  10. +997 −0 OSX/data/hanja/compat-table.txt
  11. +850 −0 OSX/data/hanja/emoticon.txt
  12. +845 −0 OSX/data/hanja/emoticonr.txt
  13. +27,496 −0 OSX/data/hanja/freq-hanja.txt
  14. +219,287 −0 OSX/data/hanja/freq-hanjaeo.txt
  15. +28,342 −0 OSX/data/hanja/hanjac.txt
  16. +13,535 −0 OSX/data/hanja/hanjar.txt
  17. +275,056 −0 OSX/data/hanja/hanjaw.txt
  18. +165 −0 OSX/data/hanja/merge2.py
  19. +987 −0 OSX/data/hanja/mssymbolr.txt
  20. +152 −0 OSX/data/hanja/reverse-hanja.py
  21. +21 −0 OSX/data/hanja/reverse.py
  22. +29 −0 OSX/data/keyboards/hangul-combination-39.xml
  23. +21 −0 OSX/data/keyboards/hangul-combination-3f.xml
  24. +111 −0 OSX/data/keyboards/hangul-combination-3gc.xml
  25. +94 −0 OSX/data/keyboards/hangul-combination-3gs.xml
  26. +40 −0 OSX/data/keyboards/hangul-combination-default.xml
  27. +356 −0 OSX/data/keyboards/hangul-combination-full.xml
  28. +105 −0 OSX/data/keyboards/hangul-keyboard-2.xml
  29. +105 −0 OSX/data/keyboards/hangul-keyboard-2y.xml
  30. +105 −0 OSX/data/keyboards/hangul-keyboard-32.xml
  31. +105 −0 OSX/data/keyboards/hangul-keyboard-39.xml
  32. +105 −0 OSX/data/keyboards/hangul-keyboard-39s.xml
  33. +105 −0 OSX/data/keyboards/hangul-keyboard-3f.xml
  34. +105 −0 OSX/data/keyboards/hangul-keyboard-3fs.xml
  35. +105 −0 OSX/data/keyboards/hangul-keyboard-3gc.xml
  36. +105 −0 OSX/data/keyboards/hangul-keyboard-3gs.xml
  37. +105 −0 OSX/data/keyboards/hangul-keyboard-3s.xml
  38. +105 −0 OSX/data/keyboards/hangul-keyboard-3y.xml
  39. +186 −0 OSX/data/keyboards/hangul-keyboard-ahn.xml
  40. +151 −0 OSX/data/keyboards/hangul-keyboard-ro.xml
  41. +2 −1 OSX/ko.lproj/InfoPlist.strings
  42. +1 −1 libhangul-objc
  43. +5 −0 tools/build_product.sh

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -10,6 +10,7 @@
#import "GureumAppDelegate.h"
@implementation CIMInputController (Gureum)
- (IBAction)checkRecentVersion:(id)sender {
@@ -68,4 +69,4 @@ - (IBAction)openWebsiteIssues:(id)sender {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://meok.gureum.io"]];
}
@end
@end
View
@@ -16,11 +16,15 @@
#import "GureumPreferencesWindowController.h"
#import <Hangul/HGInputContext.h>
@implementation GureumAppDelegate
@synthesize menu;
- (void)awakeFromNib {
//[Fabric with:@[CrashlyticsKit]];
[HGKeyboard initialize];
self->sharedInputManager = [[CIMInputManager alloc] init];
View
@@ -34,7 +34,8 @@
NSString *kGureumInputSourceIdentifierHan3_2011Loose = @"org.youknowone.inputmethod.Gureum.han3-2011loose";
NSString *kGureumInputSourceIdentifierHan3_2012 = @"org.youknowone.inputmethod.Gureum.han3-2012";
NSString *kGureumInputSourceIdentifierHan3_2012Loose = @"org.youknowone.inputmethod.Gureum.han3-2012loose";
NSString *kGureumInputSourceIdentifierHan3FinalNoShift = @"org.youknowone.inputmethod.Gureum.han3finalnoshift";
NSString *kGureumInputSourceIdentifierHan3FinalNoShiftCompat = @"org.youknowone.inputmethod.Gureum.han3finalnoshiftcompat";
NSString *kGureumInputSourceIdentifierHan3FinalNoShiftSymbol = @"org.youknowone.inputmethod.Gureum.han3finalnoshiftsymbol";
NSString *kGureumInputSourceIdentifierHan3_2014 = @"org.youknowone.inputmethod.Gureum.han3-2014";
NSString *kGureumInputSourceIdentifierHan3_2015 = @"org.youknowone.inputmethod.Gureum.han3-2015";
@@ -72,19 +73,16 @@ + (void)initialize {
@"2", kGureumInputSourceIdentifierHan2,
@"2y", kGureumInputSourceIdentifierHan2Classic,
@"3f", kGureumInputSourceIdentifierHan3Final,
@"3fl", kGureumInputSourceIdentifierHan3FinalLoose,
@"39", kGureumInputSourceIdentifierHan390,
@"39l", kGureumInputSourceIdentifierHan390Loose,
@"3s", kGureumInputSourceIdentifierHan3NoShift,
@"3y", kGureumInputSourceIdentifierHan3Classic,
@"32", kGureumInputSourceIdentifierHan3Layout2,
@"ro", kGureumInputSourceIdentifierHanRoman,
@"ahn", kGureumInputSourceIdentifierHanAhnmatae,
@"3gc", kGureumInputSourceIdentifierHan3FinalNoShiftCompat,
@"3gs", kGureumInputSourceIdentifierHan3FinalNoShiftSymbol,
@"3-2011", kGureumInputSourceIdentifierHan3_2011,
@"3-2011l", kGureumInputSourceIdentifierHan3_2011Loose,
@"3-2012", kGureumInputSourceIdentifierHan3_2012,
@"3-2012l", kGureumInputSourceIdentifierHan3_2012Loose,
@"3fs", kGureumInputSourceIdentifierHan3FinalNoShift,
@"3-2014", kGureumInputSourceIdentifierHan3_2014,
@"3-2015", kGureumInputSourceIdentifierHan3_2015,
nil];
View
@@ -308,8 +308,8 @@ - (void)candidateSelectionChanged:(NSAttributedString *)candidateString {
- (HGHanjaTable *)characterTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"hanjac" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"hanjac" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
@@ -318,8 +318,8 @@ - (HGHanjaTable *)characterTable {
- (HGHanjaTable *)wordTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"hanjaw" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"hanjaw" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
@@ -328,8 +328,8 @@ - (HGHanjaTable *)wordTable {
- (HGHanjaTable *)reversedTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"hanjar" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"hanjar" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
@@ -338,8 +338,8 @@ - (HGHanjaTable *)reversedTable {
- (HGHanjaTable *)MSSymbolTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"mssymbol" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"mssymbol" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
@@ -348,8 +348,8 @@ - (HGHanjaTable *)MSSymbolTable {
- (HGHanjaTable *)emoticonTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"emoticon" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"emoticon" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
@@ -358,8 +358,8 @@ - (HGHanjaTable *)emoticonTable {
- (HGHanjaTable *)emoticonReversedTable {
static HGHanjaTable *sharedHanjaTable = nil;
if (sharedHanjaTable == nil) {
NSBundle *bundle = [NSBundle bundleForClass:[HGHanjaTable class]];
NSString *path = [bundle pathForResource:@"emoticonr" ofType:@"txt"];
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"emoticonr" ofType:@"txt" inDirectory:@"hanja"];
sharedHanjaTable = [[HGHanjaTable alloc] initWithContentOfFile:path];
}
return sharedHanjaTable;
View
@@ -303,12 +303,35 @@
<key>tsInputModeScriptKey</key>
<string>smKorean</string>
</dict>
<key>org.youknowone.inputmethod.Gureum.han3finalnoshift</key>
<key>org.youknowone.inputmethod.Gureum.han3finalnoshiftcompat</key>
<dict>
<key>KeyboardLayout</key>
<string>com.apple.inputmethod.Korean.3SetKorean</string>
<key>TISInputSourceID</key>
<string>org.youknowone.inputmethod.Gureum.han3finalnoshift</string>
<string>org.youknowone.inputmethod.Gureum.han3finalnoshiftcompat</string>
<key>TISIntendedLanguage</key>
<string>ko</string>
<key>tsInputModeAlternateMenuIconFileKey</key>
<string>han3.png</string>
<key>tsInputModeDefaultStateKey</key>
<false/>
<key>tsInputModeIsVisibleKey</key>
<true/>
<key>tsInputModeMenuIconFileKey</key>
<string>han3final.png</string>
<key>tsInputModePaletteIconFileKey</key>
<string>han3.png</string>
<key>tsInputModePrimaryInScriptKey</key>
<false/>
<key>tsInputModeScriptKey</key>
<string>smKorean</string>
</dict>
<key>org.youknowone.inputmethod.Gureum.han3finalnoshiftsymbol</key>
<dict>
<key>KeyboardLayout</key>
<string>com.apple.inputmethod.Korean.3SetKorean</string>
<key>TISInputSourceID</key>
<string>org.youknowone.inputmethod.Gureum.han3finalnoshiftsymbol</string>
<key>TISIntendedLanguage</key>
<string>ko</string>
<key>tsInputModeAlternateMenuIconFileKey</key>
View
@@ -54,7 +54,7 @@ class RomanComposer: CIMComposer {
return nil
}
override func inputController(_ controller: CIMInputController!, inputText string: String!, key keyCode: Int, modifiers flags: NSEventModifierFlags, client sender: Any!) -> CIMInputTextProcessResult {
override func inputController(_ controller: CIMInputController!, inputText string: String!, key keyCode: Int, modifiers flags: NSEvent.ModifierFlags, client sender: Any!) -> CIMInputTextProcessResult {
if !string.isEmpty && keyCode < 0x33 && !flags.contains(NSAlternateKeyMask) {
var newString = string
@@ -119,7 +119,7 @@ class DvorakComposer: CIMComposer {
return nil
}
override func inputController(_ controller: CIMInputController!, inputText string: String!, key keyCode: Int, modifiers flags: NSEventModifierFlags, client sender: Any!) -> CIMInputTextProcessResult {
override func inputController(_ controller: CIMInputController!, inputText string: String!, key keyCode: Int, modifiers flags: NSEvent.ModifierFlags, client sender: Any!) -> CIMInputTextProcessResult {
let qwerty = "`1234567890-=\\qwertyuiop[]asdfghjkl;'zxcvbnm,./~!@#$%^&*()_+|QWERTYUIOP{}ASDFGHJKL:\"ZXCVBNM<>?"
let dvorak = "`1234567890[]\\',.pyfgcrl/=aoeuidhtns-;qjkxbmwvz~!@#$%^&*(){}|\"<>PYFGCRL?+AOEUIDHTNS_:QJKXBMWVZ"
var map: [Character: Character] = [:]
@@ -0,0 +1,2 @@
hanja.txt
mssymbol.txt
Oops, something went wrong.

0 comments on commit 43dff14

Please sign in to comment.