Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

text::mecab::dict(3pm) [debian man page]

Text::MeCab::Dict(3pm)					User Contributed Perl Documentation				    Text::MeCab::Dict(3pm)

NAME
Text::MeCab::Dict - Utility To Work With MeCab Dictionary SYNOPSIS
use Text::MeCab::Dict; my $dict = Text::MeCab::Dict->new( dict_source => "/path/to/mecab-ipadic-source" ); $dict->add( surface => $surface, # XXX left_id => $left_id, # XXXID right_id => $right_id, # XXXID cost => $cost, # XXX pos => $part_of_speech, # XX category1 => $category1, # XXXXX1 category2 => $category2, # XXXXX2 category3 => $category3, # XXXXX3 # XXX this below two parameter names need blessing from a knowing # expert, and is subject to change inflect => $inflect, # XXX inflect_type => $inflect_type, # XXX original => $original, # XX yomi => $yomi, # XX pronounce => $pronounce, # XX extra => @extras, # XXXXXX ); $dict->write('foo.csv'); $dict->rebuild(); METHODS
new Creates a new instance of Text::MeCab::Dict. The path to the source of mecab-ipadic is required: my $dict = Text::MeCab::Dict->new( dict_source => "/path/to/mecab-ipadic-source" ); If you are in an environment where mecab-config is NOT available, you must also specify libexecdir, which is where mecab-dict-index is installed: my $dict = Text::MeCab::Dict->new( dict_source => "/path/to/mecab-ipadic-source", libexecdir => "/path/to/mecab/libexec/", ); add Adds a new entry to be appended to the dictionary. Please see SYNOPSIS for arguments. write Writes out the entries that were added via add() to the specified file location. If the file name does not look like an absolute path, the name will be treated relatively from dict_source rebuild Rebuilds the index. This usually requires that you are have root privileges SEE ALSO
http://mecab.sourceforge.net/dic.html perl v5.14.2 2011-07-15 Text::MeCab::Dict(3pm)

Check Out this Related Man Page

Text::PDF::TTFont(3pm)					User Contributed Perl Documentation				    Text::PDF::TTFont(3pm)

NAME
Text::PDF::TTFont - Inherits from Text::PDF::Dict and represents a TrueType font within a PDF file. DESCRIPTION
A font consists of two primary parts in a PDF file: the header and the font descriptor. Whilst two fonts may share font descriptors, they will have their own header dictionaries including encoding and widhth information. INSTANCE VARIABLES
There are no instance variables beyond the variables which directly correspond to entries in the appropriate PDF dictionaries. METHODS
Text::PDF::TTFont->new($parent, $fontfname, $pdfname, %opts) Creates a new font resource for the given fontfile. This includes the font descriptor and the font stream. The $pdfname is the name by which this font resource will be known throught a particular PDF file. All font resources are full PDF objects. $t->width($text) Measures the width of the given text according to the widths in the font $t->trim($text, $len) Trims the given text to the given length (in per mille em) returning the trimmed text $t->out_text($text) Indicates to the font that the text is to be output and returns the text to be output $f->copy Copies the font object excluding the name, widths and encoding, etc. TITLE
Text::PDF::TTIOString - internal IO type handle for string output for font embedding. This code is ripped out of IO::Scalar, to save the direct dependence for so little. See IO::Scalar for details perl v5.8.8 2006-09-09 Text::PDF::TTFont(3pm)
Man Page