MCPcopy Create free account

hub / github.com/Lucius-Wang/rime-config / functions

Functions30 in github.com/Lucius-Wang/rime-config

↓ 5 callersFunctionprintlnTimeCost
打印耗时时间
others/script/rime/rime.go:83
↓ 4 callersFunctioncontains
slice 是否包含 item
others/script/rime/rime.go:95
↓ 4 callersFunctionreadToSet
将所有词库读入 set,供检查或排序使用
others/script/rime/rime.go:56
↓ 3 callersFunctiongeneratePinyin
生成拼音 多音字的处理: 如果 wordPinyin 没有包含多音字的映射, 返回 []string{"gao xing 地 beng qi lai"} 然后手动注音 如果 wordPinyin 包含「高兴地 gao xing de」,则将 "高兴地蹦起来" 返回 []string{"gao xin
others/script/rime/pinyin.go:352
↓ 2 callersFunctionconvertToDoublePinyin
将全拼 code 转为双拼 code
others/script/rime/cn_en.go:565
↓ 2 callersFunctiongetSha1
获取文件 sha1
others/script/rime/sort.go:219
↓ 2 callersFunctionisAllLower
判断 code 是否全小写,不判断空格
others/script/rime/pinyin.go:400
↓ 2 callersFunctionprintfTimeCost
打印耗时时间
others/script/rime/rime.go:90
↓ 1 callersFunctionareYouOK
()
others/script/main.go:63
↓ 1 callersFunctioncheckEmoji
检查 emoji-map.txt 是否合法,检查中文映射是否存在于 base 词库中
others/script/rime/emoji.go:30
↓ 1 callersFunctioncheckLine
检查一行
others/script/rime/check.go:173
↓ 1 callersFunctioncheckOthersTXT
检查 others.txt 里的中文映射是否存在于 base 词库中
others/script/rime/emoji.go:151
↓ 1 callersFunctiongenerateEmoji
从 emoji-map.txt 生成或更新 emoji.txt
others/script/rime/emoji.go:98
↓ 1 callersFunctiongetRimeDir
获取 macOS Rime 配置目录
others/script/rime/rime.go:47
↓ 1 callersFunctionsplitMixedWords
中英文分割,去掉间隔号和横杠 "哆啦A梦" → ["哆", "啦", "A", "梦"] "QQ号" → ["QQ", "号"] "Wi-Fi密码" → ["WiFi", "密", "码"] "特拉法尔加·D·瓦铁尔·罗" → ["特", "拉", "法", "尔", "加", "D", "瓦",
others/script/rime/cn_en.go:542
↓ 1 callersFunctiontextToPinyin
生成编码
others/script/rime/cn_en.go:508
↓ 1 callersFunctionupdateVersion
排序后,如果文件有改动,则修改 version 日期,并输出 "...sorted"
others/script/rime/sort.go:235
↓ 1 callersFunctionwritePrefix
写入前缀内容
others/script/rime/cn_en.go:484
FunctionAddWeight
AddWeight 为 ext、tencent 没权重的词条加上权重,有权重的改为 weight
others/script/rime/rime.go:105
FunctionCheck
Check 对传入的词库文件进行检查 dictPath: 词库文件路径 _type: 词库类型 1 只有汉字 2 汉字+注音 3 汉字+注音+权重 4 汉字+权重
others/script/rime/check.go:136
FunctionCheckAndGenerateEmoji
CheckAndGenerateEmoji 检查 emoji-map.txt 是否合法,检查中文映射是否存在于 base 词库中 生成 Rime 格式的 emoji.txt 检查 other.txt 中文映射是否存在于 base 词库中
others/script/rime/emoji.go:20
FunctionCnEn
CnEn 从 others/cn_en.txt 生成全拼和各个双拼的中英混输词库
others/script/rime/cn_en.go:424
FunctionGeneratePinyinTest
GeneratePinyinTest 临时测试一个
others/script/rime/pinyin.go:393
FunctionPinyin
Pinyin 半自动的注音 能准确注音的,注音;拿不准的,留着手动注音
others/script/rime/pinyin.go:294
FunctionSort
(dictPath string, _type int)
others/script/rime/sort.go:19
FunctionTemp
一些临时用的函数
others/script/rime/others.go:14
Functioninit
()
others/script/rime/pinyin.go:242
Functioninit
初始化特殊词汇列表、需要注音列表、错别字列表、拼音列表
others/script/rime/check.go:31
Functionmain
()
others/script/main.go:12
Functionpolyphone
列出字表中多音字的状况:是否参与自动注音
others/script/rime/others.go:21