diff --git a/src/pages/create.tsx b/src/pages/create.tsx index 71233e7..ecbbcff 100644 --- a/src/pages/create.tsx +++ b/src/pages/create.tsx @@ -210,6 +210,10 @@ export default function CreateDeck(): JSX.Element { let pin = pinyin(word.trim(), { toneToNumber: true }); pin = pin.replace(/0/g, "5"); + + // replace v3 with u:3 + pin = pin.replace(/v/g, "u:"); + let pizh = await pinzhu.pinyinAndZhuyin(pin, "", ""); let pinyin1 = [decodeHtmlEntities(pizh[1])];