Skip to content

Commit b08dc1c

Browse files
committed
(hanyu7) some better alt readings handling
1 parent 7f995a5 commit b08dc1c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

dics/hanyu7/hanyu7.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ export async function processHanyu7(
170170
reading = r1;
171171
entryContents.splice(1, 0, `(${r2})`);
172172
}
173+
const youSplit = reading.split("又");
174+
if (youSplit.length > 1) {
175+
reading = youSplit[0]!;
176+
entryContents.splice(1, 0, `(${youSplit.slice(1).join(" ")})`);
177+
}
173178
const definitionContentsForReading = {
174179
tag: "span",
175180
content: entryContents,

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/17.2",
8-
hanyu7: "2025/12/17.2",
8+
hanyu7: "2025/12/20.1",
99
};
1010

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

0 commit comments

Comments
 (0)