Package 'mjchar'

Title: R Interface to Moji Joho Kiban Ideographs
Description: Information and searches on the set of Kanji characters provided as Moji Joho Kiban Ideographs.
Authors: Shinya Uryu [aut, cre]
Maintainer: Shinya Uryu <suika1127@gmail>
License: MIT + file LICENSE
Version: 0.0.0.9000
Built: 2024-11-06 05:58:14 UTC
Source: https://github.com/uribo/mjchar

Help Index


Check how Kanji characters are used

Description

Check how Kanji characters are used

Usage

is_jyouyou_kanji(x)

is_jinmeiyou_kanji(x)

kakusu(x)

busyu(x)

Arguments

x

kanji character

Examples

is_jyouyou_kanji("\U74DC")
is_jyouyou_kanji("\U6A39")
is_jyouyou_kanji(c("\u8af8", "\u884c", "\u7121", "\u5e38"))

is_jinmeiyou_kanji("\U74DC")
is_jinmeiyou_kanji(c("\u590f", "\u76ee", "\u6f31", "\u77f3"))

kakusu("\U74DC")
busyu("\U74DC")

List for moji information

Description

List for moji information

Usage

moji_information(x, .keep_dictionary_page = FALSE)

Arguments

x

kanji character

.keep_dictionary_page

Whether to include page numbers in the various dictionaries.

Examples

moji_information("\U74dc")
moji_information("\U74dc", .keep_dictionary_page = TRUE)

Convert to mjcode

Description

Convert to mjcode

Usage

moji_to_mjcode(x)

Arguments

x

kanji character

Examples

moji_to_mjcode("\u74dc")

Find out how to read

Description

Find out how to read

Usage

moji_to_yomi(x)

Arguments

x

kanji character

Examples

moji_to_yomi("\U74DC")
moji_to_yomi("\U3436")

Random Sample for Kanji

Description

Random Sample for Kanji

Usage

sample_moji(size)

Arguments

size

a positive number, the number of items to choose from.

Examples

sample_moji(1)

Search kanji on mojikiban

Description

Search kanji on mojikiban

Usage

search_mojikiban(x, input_type)

Arguments

x

kanji character or mjcode

input_type

font or mjcode

Examples

search_mojikiban("\U74dc", input_type = "font")
search_mojikiban("MJ017521", "mjcode")