山科 氷魚 (YAMASHINA Hio)

NAME

Pod::MultiLang::Dict - heading dictionary manager

SYNOPSIS

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

DESCRIPTION

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

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

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.