Skip to main content

Crate kanji_hanzi_converter

Crate kanji_hanzi_converter 

Source
Expand description

Converts between Japanese Kanji Characters, Traditional Chinese Characters and Simplified Chinese Characters.

Note that there’s some abiguity between the converting

E.g. “壹” in traditional chinese can be “一” or “壹” in Japanese Kanji.

Another Example for ambiguity are those entries from the underlying dataset. The correct entry is typically line 5055, the line 3365 is strange. Line Japanese Traditional Simplified 3365 學 學 学 5055 学 學 学 5383 斈 學 学

For that reason, only japanese characters that are also in the kanji list (2310 characters) are considered.

Structs§

Entry

Functions§

convert_to_japanese_kanji
Converts a string of Chinese Characters to Japanese Kanji Characters Leaves chars unchanged that can’t be converted.
convert_to_simplified_chinese
Converts a string of Japanese Kanji Character to Simplified Chinese Characters Leaves chars unchanged that can’t be converted.
convert_to_traditional_chinese
Converts a string of Japanese Kanji Character to Traditional Chinese Characters Leaves chars unchanged that can’t be converted.
get_hashmap
get_kanji_list