summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-11-25 03:04:33 -0800
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-11-25 03:04:33 -0800
commit39a15276f5d4e73ba20149e10eabf69215fb22ef (patch)
treeb58e96ad5374bfbf0cb02b33f59277021ae56500
parent75094d65209fd457f5222809ea5570473b1d411f (diff)
added gitignore, removed creation info since it's not really relevant.
-rw-r--r--.gitignore2
-rw-r--r--README55
2 files changed, 30 insertions, 27 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..87a2e44
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+private
+fc.db
diff --git a/README b/README
index 7be31d4..d064679 100644
--- a/README
+++ b/README
@@ -1,8 +1,36 @@
+ibus-table-fc:
+ [ibus-table] 四角輸入法
+ [ibus-table] based four corners input method for Chinese.
+----------------------------------=[數據來源]=----------------------------------
+統一碼漢字數據庫
+ https://www.unicode.org/Public/UNIDATA/Unihan.zip
+ 從 Unihan_DictionaryLikeData.txt 取 kFourCornerCode 四角碼數據
+ 此數據庫僅約一萬九字有四角數據
+標識來自此
+ https://www.zhuanshuti.cn/3
+------------------------------------=[簡介]=------------------------------------
+
+按裝]=---
+$ make
+$ sudo make install
+$ ibus restart
+
+選輸入法]=---
+$ ibus engine table:fc
+
+使用]=---
+選字: F1 至 F9
+運配符: `
+注: 因此輸入法僅用數字、工能鍵及 ` 建,概可同時打英漢兩語。如需打數字、工能鍵等
+鍵請按左轉移鍵。
+
-----------------------------------=[Sources]=----------------------------------
Unihan Database from
https://www.unicode.org/Public/UNIDATA/Unihan.zip
Unihan_DictionaryLikeData.txt
has four corners info for about 16k characters
+ Sadly, it does not have four corners data for every UniHan
+ character.
Logo generated here:
https://www.zhuanshuti.cn/3
@@ -24,30 +52,3 @@ changing input methods. If you need to type a number or use english punctuation,
simply press left shift and it will change into english mode.
------------------------------=[Method of Creation]=-----------------------------
-These are just notes on how the file was created, it's largely manual and very
-janky but it works. If the UniHan database updates we can do all this again
-
-
-$ cat Unihan_DictionaryLikeData.txt | grep kFourCornerCode
-
-delete comment line
-
-In vim:
- :%s/\(.*\s.*\s\)\(.*\)\s\(.*\)/\1\2\r\1\3/
- changes duplicate four corner codes to be seperate entries
-
-In vim edit to format :
- 12345 000ABC12
- where the hex code is exactly 8 digits long
-
-then use the following to convert to actual unicode
- :%s/^\(.*\)\t\(.*\)$/echo -e "\1\\t$(echo \2 |xxd -r -ps -u | iconv -f UTF-32BE -t UTF-8)"/
-
-The following command converts hex code to actual unicode char
-$ xxd -r -ps -u | iconv -f UTF-32BE -t UTF-8
-
-Create template according to usr/share/ibus-input/tables/template.txt
-
-Counting conflicts
-$ cat four | awk '{print $1}' | sort | uniq -c | sort -n