Skip to content

Commit

Permalink
update: 瀧本の表記揺れ: 「瀧本」と「滝本」の表記揺れに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
YuukiToriyama committed Aug 12, 2024
1 parent a9d64cd commit dbef117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/parser/adapter/orthographical_variant_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub trait OrthographicalVariants {
const: Variant;
const: Variant;
const: Variant;
const: Variant;
}

impl OrthographicalVariants for Variant {
Expand All @@ -55,6 +56,7 @@ impl OrthographicalVariants for Variant {
const: Variant = &["梼", "檮"];
const: Variant = &["葛󠄀", "葛"];
const: Variant = &["蛍", "螢"];
const: Variant = &["瀧", "滝"];
}

pub struct OrthographicalVariantAdapter {
Expand Down
1 change: 1 addition & 0 deletions core/src/tokenizer/read_town.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ fn find_town(input: &str, candidates: &Vec<String>) -> Option<(String, String)>
Variant::穂,
Variant::梼,
Variant::蛍,
Variant::瀧,
],
};
if let Some(result) = adapter.apply(input, candidate) {
Expand Down

0 comments on commit dbef117

Please sign in to comment.