README
1NAME
2 Unicode::Unihan - The Unihan Data Base 5.1.0
3
4SYNOPSIS
5 use Unicode::Unihan;
6 my $uh = Unicode::Unihan->new;
7 print join("," => $uh->Mandarin("\x{5c0f}\x{98fc}\x{5f3e}")), "\n";
8
9ABSTRACT
10 This module provides a user-friendly interface to the Unicode Unihan
11 Database 5.1. With this module, the Unihan database is as easy as shown
12 in the SYNOPSIS above.
13
14DESCRIPTION
15 The first thing you do is make the database available. Just say
16
17 use Unicode::Unihan;
18 my $uh = new Unicode::Unihan;
19
20 That's all you have to say. After that, you can access the database via
21 $uh->*tag*($string) where *tag* is the tag in the Unihan Database,
22 without 'k' prefix.
23
24 $data = $uh->*tag*($string)
25 @data = $uh->*tag*($string)
26 The first form (scalar context) returns the Unihan Database entry of
27 the first character in $string. The second form (array context) checks
28 the entry for each character in $string.
29
30 @data = $uh->Mandarin("\x{5c0f}\x{98fc}\x{5f3e}");
31 # @data is now ('SHAO4 XIAO3','SI4','DAN4')
32
33 @data = $uh->JapaneseKun("\x{5c0f}\x{98fc}\x{5f3e}");
34 # @data is now ('CHIISAI KO O','KAU YASHINAU','TAMA HAZUMU HIKU')
35
36FIELDS AND THEIR MEANINGS
37 For a complete list of tags, their meaning, and information on parsing
38 the value field, see <http://www.unicode.org/reports/tr38/>.
39
40SEE ALSO
41 perlunintro
42 perlunicode
43 The Unihand Database
44 <http://www.unicode.org/Public/UNIDATA/Unihan.html>
45
46AUTHOR
47 of the Module
48 Dan Kogai <dankogai@dan.co.jp>
49
50 of the Source Data
51 Unicode, Inc.
52
53COPYRIGHT AND LICENSE
54 of the Module
55 Copyright 2002-2008 by Dan Kogai, All rights reserved.
56
57 This library is free software; you can redistribute it and/or modify
58 it under the same terms as Perl itself.
59
60 of the Source Data
61 Copyright (c) 1996-2008 Unicode, Inc. All Rights reserved.
62
63 Name: Unihan database
64 Unicode version: 5.1.0
65 Table version: 1.1
66 Date: 3 March 2008
67
68