Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lucius-Wang/rime-config
/ functions
Functions
30 in github.com/Lucius-Wang/rime-config
⨍
Functions
30
◇
Types & classes
3
↓ 5 callers
Function
printlnTimeCost
打印耗时时间
others/script/rime/rime.go:83
↓ 4 callers
Function
contains
slice 是否包含 item
others/script/rime/rime.go:95
↓ 4 callers
Function
readToSet
将所有词库读入 set,供检查或排序使用
others/script/rime/rime.go:56
↓ 3 callers
Function
generatePinyin
生成拼音 多音字的处理: 如果 wordPinyin 没有包含多音字的映射, 返回 []string{"gao xing 地 beng qi lai"} 然后手动注音 如果 wordPinyin 包含「高兴地 gao xing de」,则将 "高兴地蹦起来" 返回 []string{"gao xin
others/script/rime/pinyin.go:352
↓ 2 callers
Function
convertToDoublePinyin
将全拼 code 转为双拼 code
others/script/rime/cn_en.go:565
↓ 2 callers
Function
getSha1
获取文件 sha1
others/script/rime/sort.go:219
↓ 2 callers
Function
isAllLower
判断 code 是否全小写,不判断空格
others/script/rime/pinyin.go:400
↓ 2 callers
Function
printfTimeCost
打印耗时时间
others/script/rime/rime.go:90
↓ 1 callers
Function
areYouOK
()
others/script/main.go:63
↓ 1 callers
Function
checkEmoji
检查 emoji-map.txt 是否合法,检查中文映射是否存在于 base 词库中
others/script/rime/emoji.go:30
↓ 1 callers
Function
checkLine
检查一行
others/script/rime/check.go:173
↓ 1 callers
Function
checkOthersTXT
检查 others.txt 里的中文映射是否存在于 base 词库中
others/script/rime/emoji.go:151
↓ 1 callers
Function
generateEmoji
从 emoji-map.txt 生成或更新 emoji.txt
others/script/rime/emoji.go:98
↓ 1 callers
Function
getRimeDir
获取 macOS Rime 配置目录
others/script/rime/rime.go:47
↓ 1 callers
Function
splitMixedWords
中英文分割,去掉间隔号和横杠 "哆啦A梦" → ["哆", "啦", "A", "梦"] "QQ号" → ["QQ", "号"] "Wi-Fi密码" → ["WiFi", "密", "码"] "特拉法尔加·D·瓦铁尔·罗" → ["特", "拉", "法", "尔", "加", "D", "瓦",
others/script/rime/cn_en.go:542
↓ 1 callers
Function
textToPinyin
生成编码
others/script/rime/cn_en.go:508
↓ 1 callers
Function
updateVersion
排序后,如果文件有改动,则修改 version 日期,并输出 "...sorted"
others/script/rime/sort.go:235
↓ 1 callers
Function
writePrefix
写入前缀内容
others/script/rime/cn_en.go:484
Function
AddWeight
AddWeight 为 ext、tencent 没权重的词条加上权重,有权重的改为 weight
others/script/rime/rime.go:105
Function
Check
Check 对传入的词库文件进行检查 dictPath: 词库文件路径 _type: 词库类型 1 只有汉字 2 汉字+注音 3 汉字+注音+权重 4 汉字+权重
others/script/rime/check.go:136
Function
CheckAndGenerateEmoji
CheckAndGenerateEmoji 检查 emoji-map.txt 是否合法,检查中文映射是否存在于 base 词库中 生成 Rime 格式的 emoji.txt 检查 other.txt 中文映射是否存在于 base 词库中
others/script/rime/emoji.go:20
Function
CnEn
CnEn 从 others/cn_en.txt 生成全拼和各个双拼的中英混输词库
others/script/rime/cn_en.go:424
Function
GeneratePinyinTest
GeneratePinyinTest 临时测试一个
others/script/rime/pinyin.go:393
Function
Pinyin
Pinyin 半自动的注音 能准确注音的,注音;拿不准的,留着手动注音
others/script/rime/pinyin.go:294
Function
Sort
(dictPath string, _type int)
others/script/rime/sort.go:19
Function
Temp
一些临时用的函数
others/script/rime/others.go:14
Function
init
()
others/script/rime/pinyin.go:242
Function
init
初始化特殊词汇列表、需要注音列表、错别字列表、拼音列表
others/script/rime/check.go:31
Function
main
()
others/script/main.go:12
Function
polyphone
列出字表中多音字的状况:是否参与自动注音
others/script/rime/others.go:21