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:
parent
edee978ed4
commit
c5b8efc6ad
File diff suppressed because it is too large
Load Diff
@ -109,7 +109,7 @@ func Sort(dictPath string, _type int) {
|
|||||||
// 排序:拼音升序,权重降序,最后直接按 Unicode 编码排序
|
// 排序:拼音升序,权重降序,最后直接按 Unicode 编码排序
|
||||||
// 英文排序不区分大小写
|
// 英文排序不区分大小写
|
||||||
if strings.Contains(dictPath, "en.dict.yaml") {
|
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)
|
textI, textJ := strings.ToLower(contents[i].text), strings.ToLower(contents[j].text)
|
||||||
if strings.HasPrefix(textI, "# ") {
|
if strings.HasPrefix(textI, "# ") {
|
||||||
textI = textI[2:]
|
textI = textI[2:]
|
||||||
|
Loading…
Reference in New Issue
Block a user