Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 5a17fc3

Browse files
author
张国晔
committed
Version 1.0
0 parents  commit 5a17fc3

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DS_Store
2+
*.deb
3+
obj/
4+
_/
5+
*theos

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
ARCHS = armv7 armv7s arm64
2+
TARGET = iphone:clang:7.1:6.0
3+
4+
include theos/makefiles/common.mk
5+
6+
TWEAK_NAME = PinyinUI
7+
PinyinUI_FILES = Tweak.x
8+
9+
include $(THEOS_MAKE_PATH)/tweak.mk
10+
ADDITIONAL_OBJCFLAGS = -fobjc-arc
11+
12+
after-install::
13+
install.exec "killall -9 SpringBoard"

PinyinUI.plist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

Tweak.x

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
%hook NSBundle
2+
3+
- (id)localizedStringForKey:(id)key value:(id)value table:(id)table {
4+
id string = %orig(key, value, table);
5+
if ([string isKindOfClass:[NSString class]]) {
6+
string = [string mutableCopy];
7+
CFStringTransform((CFMutableStringRef)string, NULL, kCFStringTransformMandarinLatin, NO);
8+
}
9+
return string;
10+
}
11+
12+
%end

control

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Package: com.ccdog.pinyinui
2+
Name: PinyinUI
3+
Depends: firmware (>= 6.0), mobilesubstrate
4+
Version: 1.0
5+
Architecture: iphoneos-arm
6+
Description: Convert all Chinese on UI to Pinyin.
7+
Author: CC-Dog <[email protected]>
8+
Section: Tweaks

0 commit comments

Comments
 (0)