Skip to content

Commit 98bdfcd

Browse files
committed
cleared pinyin a little bit better in hanyu7
1 parent 71e9f01 commit 98bdfcd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dics/hanyu7/hanyu7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export async function processHanyu7(
139139
.toArray()
140140
.map((el) =>
141141
traverse($, el, term.headword, (r) => {
142+
r = r.replace(/-|\/\//g, " ");
142143
if (!reading) {
143144
reading = r;
144145
return "";
@@ -181,7 +182,6 @@ export async function processHanyu7(
181182
data: { hanyu7: "definitions-parent" },
182183
lang: "zh-CN",
183184
} satisfies StructuredContentNode;
184-
reading = reading.replace(/-|\/\//g, " ");
185185
const pinyinTermEntry = new TermEntry(term.headword)
186186
.setReading(reading)
187187
.addDetailedDefinition({

export.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { processHanyu7 } from "./dics/hanyu7/hanyu7.ts";
55

66
const versions = {
77
guifan: "2025/12/29.3",
8-
hanyu7: "2025/12/29.3",
8+
hanyu7: "2025/12/29.4",
99
};
1010

1111
const guifanPinyinDic = new Dictionary({ fileName: "guifan-pinyin.zip" });

0 commit comments

Comments
 (0)