Skip to content

Commit aa565c7

Browse files
committed
deleted spaces from zhuyin readings
1 parent 61fcd16 commit aa565c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dics/guifan/guifan.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export async function processGuifan(
150150
content: definitionContentsForReading,
151151
});
152152
const zhuyinTermEntry = new TermEntry(term.headword)
153-
.setReading(p2z(reading ?? ""))
153+
.setReading(p2z(reading ?? "").replaceAll(" ", ""))
154154
.addDetailedDefinition({
155155
type: "structured-content",
156156
content: definitionContentsForReading,

dics/hanyu7/hanyu7.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export async function processHanyu7(
151151
},
152152
{
153153
tag: "span",
154-
content: p2z(r.replaceAll("·", " ")),
154+
content: p2z(r.replaceAll("·", " ")).replaceAll(" ", ""),
155155
data: { hanyu7: "zhuyin" },
156156
},
157157
] satisfies StructuredContentNode;
@@ -183,7 +183,7 @@ export async function processHanyu7(
183183
content: definitionContentsForReading,
184184
});
185185
const zhuyinTermEntry = new TermEntry(term.headword)
186-
.setReading(p2z(reading))
186+
.setReading(p2z(reading).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/15.5",
8-
hanyu7: "2025/12/15.7",
7+
guifan: "2025/12/15.8",
8+
hanyu7: "2025/12/15.8",
99
};
1010

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

0 commit comments

Comments
 (0)