Skip to content

briandfoy/unicode-tussle

Repository files navigation

Coverage Status

The Unicode::Tussle module

This is the README for the Unicode::Tussle Perl module. You're probably looking at this because you don't know where else to find what you're looking for. Read this once and you might never have to read one again for any Perl module.

Legacy module adjustments

If you want to use the `hantest` program, you need to install a patched version of Lingua::JA::Romanize::Japanese from https://github.com/briandfoy/lingua-ja-romanize-japanese. The CPAN version of the module tries to install data files from a website that doesn't exist. The data files are at https://github.com/skk-dev/dict.

If you run into problems with either of these modules, install them first then try to install this module:

% git clone https://github.com/briandfoy/lingua-ja-romanize-japanese.git /tmp/lingua-ja-romanize-japanese
% ( cd /tmp/lingua-ja-romanize-japanese && cpan . )

% git clone https://github.com/briandfoy/unicode-unihan.git /tmp/unicode-unihan
% ( cd /tmp/unicode-unihan && cpan . )

Documentation

To read about Unicode::Tussle, look at the embedded documentation in the module itself. Inside the distribution, you can format it with perldoc:

% perldoc lib/Unicode/Tussle.pm

If you have already installed the module, you can specify the module name instead of the file location:

% perldoc Unicode::Tussle

You can read the documentation and inspect the meta data on MetaCPAN.

The standard module documentation has example uses in the SYNOPSIS section, but you can also look in the examples/ directory (if it's there), or look at the test files in t/.

Installation

You can install this module with a CPAN client, which will resolve and install the dependencies:

% cpan Unicode::Tussle
% cpanm Unicode::Tussle

You can also install directly from the distribution directory, which will also install the dependencies:

% cpan .
% cpanm .

You could install just this module manually:

% perl Makefile.PL
% make
% make test
% make install

You probably don't want to do that unless you're fiddling with the module and only want to run the tests without installing anything.

Source location

The meta data, such as the source repository and bug tracker, is in Makefile.PL or the META.* files it creates. You can find that on those CPAN web interfaces, but you can also look at files directly in the source repository:

If you find a problem, file a ticket in the issue tracker:

Getting help

Although I'm happy to hear from module users in private email, that's the best way for me to forget to do something.

Besides the issue trackers, you can find help at Perlmonks or Stackoverflow, both of which have many competent Perlers who can answer your question, almost in real time. They might not know the particulars of this module, but they can help you diagnose your problem.

You might like to read brian's Guide to Solving Any Perl Problem.

You should have received a LICENSE file, but the license is also noted in the module files. About the only thing you can't do is pretend that you wrote code that you didn't.

Good luck!

Enjoy,

brian d foy, briandfoy@pobox.com