dict: 英文词典地名、人名等大小写、标点修正

* dict: Correct case for entries

* dict: bring back & comment out some words

---------

Co-authored-by: mirtlecn <mirtle.cn+github@outlook.com>
This commit is contained in:
hegotit 2024-05-30 21:43:49 +08:00 committed by GitHub
parent edee978ed4
commit c5b8efc6ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 589 additions and 578 deletions

File diff suppressed because it is too large Load Diff

View File

@ -109,7 +109,7 @@ func Sort(dictPath string, _type int) {
// 排序:拼音升序,权重降序,最后直接按 Unicode 编码排序
// 英文排序不区分大小写
if strings.Contains(dictPath, "en.dict.yaml") {
sort.Slice(contents, func(i, j int) bool {
sort.SliceStable(contents, func(i, j int) bool {
textI, textJ := strings.ToLower(contents[i].text), strings.ToLower(contents[j].text)
if strings.HasPrefix(textI, "# ") {
textI = textI[2:]