日常更新; fix #319

This commit is contained in:
Dvel 2023-06-03 16:21:25 +08:00
parent 7a3eb8ab80
commit 3e71e4f95d
10 changed files with 817 additions and 453 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -7,7 +7,7 @@
#
---
name: en_ext
version: "2023-05-31"
version: "2023-06-03"
sort: by_weight
...
# 一些杂项
@ -2215,3 +2215,8 @@ Upscayl Upscayl
Cocos Creator CocosCreator
John Wick JohnWick
firetruck firetruck
prankster prankster
pranksters pranksters
npm npm
Node Package Manager npm
Node Package Manager NodePackageManager

View File

@ -3306,6 +3306,7 @@ boom boom 💣
铁链 铁链 ⛓️
锁链 锁链 ⛓️
链子 链子 ⛓️
铁链子 铁链子 ⛓️
钩子 钩子 🪝
挂钩 挂钩 🪝
铁钩 铁钩 🪝

View File

@ -1,7 +1,7 @@
# Emoji 映射表
# 根据此文件生成 emoji.txt
#
# version: "2023-05-31"
# version: "2023-06-03"
#
# 中文映射由 Dvel 纯手工打造 https://github.com/iDvel/rime-ice
#
@ -1445,7 +1445,7 @@ S$ 新加坡元 新加坡币
⚖️ 天平
🦯 白手杖 手杖
🔗 链接
⛓️ 链条 铁链 锁链 链子
⛓️ 链条 铁链 锁链 链子 铁链子
🪝 钩子 挂钩 铁钩 弯钩
🧰 工具箱
🧲 磁铁 吸铁石 磁力 磁石

View File

@ -173,7 +173,7 @@ func Check(dictPath string, _type int) {
func checkLine(dictPath string, _type int, line string, lineNumber int, wg *sync.WaitGroup) {
defer wg.Done()
// 忽略注释base 中有很多被注视了词汇,暂时没有删除
// 忽略注释base 中有很多被注释了的词汇,暂时没有删除
if strings.HasPrefix(line, "#") {
// 注释以 '#' 开头,但不是以 '# '开头(强迫症晚期)
if !strings.HasPrefix(line, "# ") {
@ -187,10 +187,6 @@ func checkLine(dictPath string, _type int, line string, lineNumber int, wg *sync
fmt.Println("empty line", line)
}
// 开头结尾有空格
if strings.HasPrefix(line, " ") || strings.HasSuffix(line, " ") {
fmt.Println()
}
// +---------------------------------------------------------------
// | 开始检查分割后的内容,分割为: 词汇text 编码code 权重weight
// +---------------------------------------------------------------
@ -201,7 +197,7 @@ func checkLine(dictPath string, _type int, line string, lineNumber int, wg *sync
text = parts[0]
case _type == 2 && len(parts) == 2: // 两列,【汉字+注音】
text, code = parts[0], parts[1]
case _type == 3 && len(parts) == 3: // 列,【汉字+注音+权重】
case _type == 3 && len(parts) == 3: // 列,【汉字+注音+权重】
text, code, weight = parts[0], parts[1], parts[2]
case _type == 4 && len(parts) == 2: // 两列,【汉字+权重】
text, weight = parts[0], parts[1]

View File

@ -1,8 +1,25 @@
package rime
import (
"fmt"
)
// 一些临时用的函数
func Temp() {
// defer os.Exit(11)
}
// 列出 ext 和 tencent 词库中有多少行包含多音字的词汇
func listPolyphone() {
count := 0
for _, line := range ExtSet.Union(TencentSet).ToSlice() {
for _, char := range line {
if len(hanPinyin[string(char)]) > 1 {
count++
break
}
}
}
fmt.Println("count:", count)
}

View File

@ -1,3 +1,12 @@
一踏糊涂
一蹋糊涂
一榻糊涂
一塌胡涂
地一卷
国产零零漆
世外桃园
全材
人心慌慌
知道拉
费劲了心思
费劲千辛万苦
@ -3231,3 +3240,4 @@
金石南里
新石南路
石南镇
安全材料

View File

@ -176,7 +176,6 @@
龟裂
般若
酢浆草
的一部分
不省心
不省油
不省钱
@ -186,7 +185,9 @@
的弟弟
唵嘛呢嘛呢叭咪吽
乐府
的一天
的一
地一
得一
兰若
琅邪
给予
@ -230,3 +231,8 @@
奥米伽
亲家
都统
传给
还小
还要
一圈