Pod::MultiLang::Dict - heading dictionary manager


Pod-MultiLang documentation  | view source Contained in the Pod-MultiLang distribution.

Index


NAME

Top

Pod::MultiLang::Dict - heading dictionary manager

SYNOPSIS

Top

 my $dictmgr = Pod::MultiLang::Dict->new();
 $dictmgr->load_dict(@langs);
 my @tranlates = $dictmgr->find_word([@langs],$word);

DESCRIPTION

Top

heading word translate dictionary for Pod::MultiLang.

dictionary for each language is placed at Pod::MultiLang::Dict::xx. loaded by use statement from load_dict;

METHODS

Top

new
  my $dictmgr = Pod::MultiLang::Dict->new();

create an instance. but all instance has same condition.

load_dict
  $dictmgr->load_dict(@langs);
  $dictmgr->load_dict(\@langs);

load dictionary for specified language.

find_word
  @multilingual = $dictmgr->find_word(\@langs,$text);

translate English to other. "a AND b" is acceptable.

METHODS required for dictionary

Top

static_table
  $text = $dictmgr->make_link

returns hash reference which contains 'English word' => 'Foreign Word'.

make_linktext
  $text = $dictmgr->make_linktext($lang,$name,$section);

make link text for L<> interior sequence which has no text part.


Pod-MultiLang documentation  | view source Contained in the Pod-MultiLang distribution.