From dbef11798725ba1bf6cbdb838cbeb0103fd65976 Mon Sep 17 00:00:00 2001 From: yuuki toriyama Date: Mon, 12 Aug 2024 14:21:52 +0900 Subject: [PATCH] =?UTF-8?q?update:=20=E7=80=A7=E6=9C=AC=E3=81=AE=E8=A1=A8?= =?UTF-8?q?=E8=A8=98=E6=8F=BA=E3=82=8C:=20=E3=80=8C=E7=80=A7=E6=9C=AC?= =?UTF-8?q?=E3=80=8D=E3=81=A8=E3=80=8C=E6=BB=9D=E6=9C=AC=E3=80=8D=E3=81=AE?= =?UTF-8?q?=E8=A1=A8=E8=A8=98=E6=8F=BA=E3=82=8C=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/parser/adapter/orthographical_variant_adapter.rs | 2 ++ core/src/tokenizer/read_town.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/core/src/parser/adapter/orthographical_variant_adapter.rs b/core/src/parser/adapter/orthographical_variant_adapter.rs index ceed8b3f..9e6fb611 100644 --- a/core/src/parser/adapter/orthographical_variant_adapter.rs +++ b/core/src/parser/adapter/orthographical_variant_adapter.rs @@ -29,6 +29,7 @@ pub trait OrthographicalVariants { const 梼: Variant; const 葛: Variant; const 蛍: Variant; + const 瀧: Variant; } impl OrthographicalVariants for Variant { @@ -55,6 +56,7 @@ impl OrthographicalVariants for Variant { const 梼: Variant = &["梼", "檮"]; const 葛: Variant = &["葛󠄀", "葛"]; const 蛍: Variant = &["蛍", "螢"]; + const 瀧: Variant = &["瀧", "滝"]; } pub struct OrthographicalVariantAdapter { diff --git a/core/src/tokenizer/read_town.rs b/core/src/tokenizer/read_town.rs index 1f216530..d0a648e6 100644 --- a/core/src/tokenizer/read_town.rs +++ b/core/src/tokenizer/read_town.rs @@ -93,6 +93,7 @@ fn find_town(input: &str, candidates: &Vec) -> Option<(String, String)> Variant::穂, Variant::梼, Variant::蛍, + Variant::瀧, ], }; if let Some(result) = adapter.apply(input, candidate) {