Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/briandfoy/unicode-unihan
(Perl) Adjustments to Dan Kogai's Unicode::Unihan module
https://github.com/briandfoy/unicode-unihan
perl perl-module
Last synced: 25 days ago
JSON representation
(Perl) Adjustments to Dan Kogai's Unicode::Unihan module
- Host: GitHub
- URL: https://github.com/briandfoy/unicode-unihan
- Owner: briandfoy
- Created: 2021-12-11T07:02:36.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-23T00:02:07.000Z (over 1 year ago)
- Last Synced: 2024-10-08T22:46:22.460Z (about 1 month ago)
- Topics: perl, perl-module
- Language: Perl
- Homepage:
- Size: 4.53 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
This module is maintain for legacy support.
NAME
Unicode::Unihan - The Unihan Data Base 5.1.0SYNOPSIS
use Unicode::Unihan;
my $uh = Unicode::Unihan->new;
print join("," => $uh->Mandarin("\x{5c0f}\x{98fc}\x{5f3e}")), "\n";ABSTRACT
This module provides a user-friendly interface to the Unicode Unihan
Database 5.1. With this module, the Unihan database is as easy as shown
in the SYNOPSIS above.DESCRIPTION
The first thing you do is make the database available. Just sayuse Unicode::Unihan;
my $uh = new Unicode::Unihan;That's all you have to say. After that, you can access the database via
$uh->*tag*($string) where *tag* is the tag in the Unihan Database,
without 'k' prefix.$data = $uh->*tag*($string)
@data = $uh->*tag*($string)
The first form (scalar context) returns the Unihan Database entry of
the first character in $string. The second form (array context) checks
the entry for each character in $string.@data = $uh->Mandarin("\x{5c0f}\x{98fc}\x{5f3e}");
# @data is now ('SHAO4 XIAO3','SI4','DAN4')@data = $uh->JapaneseKun("\x{5c0f}\x{98fc}\x{5f3e}");
# @data is now ('CHIISAI KO O','KAU YASHINAU','TAMA HAZUMU HIKU')FIELDS AND THEIR MEANINGS
For a complete list of tags, their meaning, and information on parsing
the value field, see .SEE ALSO
perlunintro
perlunicode
The Unihand Database
AUTHOR
of the Module
Dan Kogaiof the Source Data
Unicode, Inc.COPYRIGHT AND LICENSE
of the Module
Copyright 2002-2008 by Dan Kogai, All rights reserved.This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.of the Source Data
Copyright (c) 1996-2008 Unicode, Inc. All Rights reserved.Name: Unihan database
Unicode version: 5.1.0
Table version: 1.1
Date: 3 March 2008