Remove one of the substitutions.

This commit is contained in:
Nathan Vegdahl 2024-09-22 20:34:13 +02:00
parent 282a717053
commit b7f6b1fa31

View File

@ -28,7 +28,6 @@ const COMMON_SUBS: &[(&str, &str, (&str, &str))] = &[
("", "ガク", ("ヒタイ", "ヒタイ")), ("", "ガク", ("ヒタイ", "ヒタイ")),
("", "", ("ホカ", "ホカ")), ("", "", ("ホカ", "ホカ")),
("", "ワタクシ", ("ワタシ", "ワタシ")), ("", "ワタクシ", ("ワタシ", "ワタシ")),
("", "トー", ("ナド", "ナド")),
("大分", "オーイタ", ("ダイブ", "ダイブ")), ("大分", "オーイタ", ("ダイブ", "ダイブ")),
("日本", "ニッポン", ("ニホン", "ニホン")), ("日本", "ニッポン", ("ニホン", "ニホン")),
("日本人", "ニッポンジン", ("ニホンジン", "ニホンジン")), ("日本人", "ニッポンジン", ("ニホンジン", "ニホンジン")),
@ -769,12 +768,6 @@ mod tests {
r#"<ruby>私<rt>ワタシ</rt></ruby>"# r#"<ruby>私<rt>ワタシ</rt></ruby>"#
); );
// The added 卵 is to trigger the parse we're testing of 等.
assert_eq!(
gen.add_html_furigana("卵等"),
r#"<ruby>卵<rt>タマゴ</rt></ruby><ruby>等<rt>ナド</rt></ruby>"#
);
assert_eq!( assert_eq!(
gen.add_html_furigana("大分"), gen.add_html_furigana("大分"),
r#"<ruby>大分<rt>ダイブ</rt></ruby>"# r#"<ruby>大分<rt>ダイブ</rt></ruby>"#