Skip to main content

Library for CJK (chinese, japanese, korean) language data.

Project description

cihai - Python library for CJK (chinese, japanese, korean) data

Python Package Documentation Status Build Status Code Coverage License

This project is under active development. Follow our progress and check back for updates!

Installation

Python library only:

$ pip install --user cihai

CLI utility:

$ pip install --user cihai_cli

Command line

For command line tool, see cihai-cli.

Character lookup:

$ cihai info 
char: 
kCangjie: VND
kCantonese: hou2 hou3
kCihaiT: '378.103'
kDefinition: good, excellent, fine; well
kFenn: 552A
kFourCornerCode: '4744.7'
kFrequency: '1'
kGradeLevel: '1'
kHKGlyph: 0871
kHangul: 
kHanyuPinlu: hǎo(6060) hāo(142) hào(115)
kHanyuPinyin: 21028.010:hǎo,hào
kJapaneseKun: KONOMU SUKU YOI
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kPhonetic: '481'
kRSAdobe_Japan1_6: C+1975+38.3.3 C+1975+39.3.3
kRSKangXi: '38.3'
kTang: '*xɑ̀u *xɑ̌u'
kTotalStrokes: '6'
kVietnamese: háo
kXHC1983: 0445.030:hǎo 0448.030:hào
ucn: U+597D

Reverse lookup:

$ cihai lookup library
--------
char: 
kCangjie: WLGA
kCantonese: syu1
kCihaiT: '308.302'
kDefinition: library
kJapaneseOn: TOSHOKAN SHO
kMandarin: 
kPhonetic: 1235 1364
kRSAdobe_Japan1_6: C+14418+31.3.10
kRSKangXi: '31.10'
kSemanticVariant: U+5716<kMatthews
kTotalStrokes: '13'
kXHC1983: 1163.040:tú
ucn: U+5715

--------
char: 
kCangjie: VIIL
kCantonese: long4
kCihaiT: '390.506'
kDefinition: the place where the supreme stores his books; library
kHanyuPinyin: 21062.030:láng
kJapaneseOn: ROU
kMandarin: láng
kPhonetic: '832'
kRSAdobe_Japan1_6: C+21424+38.3.10
kRSKangXi: '38.9'
kTotalStrokes: '11'
kXHC1983: 0674.090:láng
ucn: U+5ACF

Works with any field:

$ cihai lookup hào
--------
char: 
kCangjie: VND
kCantonese: hou2 hou3
kCihaiT: '378.103'
kDefinition: good, excellent, fine; well
kFenn: 552A
kFourCornerCode: '4744.7'
kFrequency: '1'
kGradeLevel: '1'
kHKGlyph: 0871
kHangul: 
kHanyuPinlu: hǎo(6060) hāo(142) hào(115)
kHanyuPinyin: 21028.010:hǎo,hào
kJapaneseKun: KONOMU SUKU YOI
kJapaneseOn: KOU
kKorean: HO
kMandarin: hǎo
kPhonetic: '481'
kRSAdobe_Japan1_6: C+1975+38.3.3 C+1975+39.3.3
kRSKangXi: '38.3'
kTang: '*xɑ̀u *xɑ̌u'
kTotalStrokes: '6'
kVietnamese: háo
kXHC1983: 0445.030:hǎo 0448.030:hào
ucn: U+597D

--------
char: 
kCangjie: VNG
kCantonese: nau2
kCihaiT: '380.503'
kDefinition: girl
kFenn: 676H
kFourCornerCode: '4741.5'
kFrequency: '5'
kHKGlyph: 0876
kHanyuPinyin: 21033.100:hào,niū
kJapaneseOn: JUU NYU CHUU
kMandarin: niū
kPhonetic: '90'
kRSKangXi: '38.4'
kTotalStrokes: '7'
kXHC1983: 0836.060:niū
ucn: U+599E

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cihai-0.7.1.tar.gz (49.9 kB view details)

Uploaded Source

File details

Details for the file cihai-0.7.1.tar.gz.

File metadata

  • Download URL: cihai-0.7.1.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cihai-0.7.1.tar.gz
Algorithm Hash digest
SHA256 5d6e9345a83bb35b5cbd7e8c88bace195bb30dafe11a468a3823fce51bcf52c5
MD5 efa92214abb61fd2a7e419d713ff0e61
BLAKE2b-256 4d5ed307cf23334beeb8047c2036d460ebd7ba21f92459cf321ba4f514d2fcae

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page