Skip to content

Commit 7f995a5

Browse files
committed
sanitized zhuyin readings a little bit more
1 parent 42bc642 commit 7f995a5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dics/guifan/guifan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export async function processGuifan(
151151
});
152152
const zhuyinTermEntry = new TermEntry(term.headword)
153153
.setReading(
154-
p2z((reading ?? "").replaceAll("-", " ")).replaceAll(" ", "")
154+
p2z((reading ?? "").replace(/-|\/\//g, " ")).replaceAll(" ", "")
155155
)
156156
.addDetailedDefinition({
157157
type: "structured-content",

dics/hanyu7/hanyu7.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export async function processHanyu7(
183183
content: definitionContentsForReading,
184184
});
185185
const zhuyinTermEntry = new TermEntry(term.headword)
186-
.setReading(p2z(reading.replaceAll("-", " ")).replaceAll(" ", ""))
186+
.setReading(p2z(reading.replace(/-|\/\//g, " ")).replaceAll(" ", ""))
187187
.addDetailedDefinition({
188188
type: "structured-content",
189189
content: definitionContentsForReading,

export.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { processGuifan } from "./dics/guifan/guifan.ts";
44
import { processHanyu7 } from "./dics/hanyu7/hanyu7.ts";
55

66
const versions = {
7-
guifan: "2025/12/17.1",
8-
hanyu7: "2025/12/17.1",
7+
guifan: "2025/12/17.2",
8+
hanyu7: "2025/12/17.2",
99
};
1010

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

0 commit comments

Comments
 (0)