SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Data-Phrasebook-Loader-XML rpm build for : openSUSE Tumbleweed. For other distributions click perl-Data-Phrasebook-Loader-XML.

Name : perl-Data-Phrasebook-Loader-XML
Version : 0.16 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 6.68 Date : 2024-08-05 20:37:55
Group : Development/Libraries/Perl Source RPM : perl-Data-Phrasebook-Loader-XML-0.16-6.68.src.rpm
Size : 0.02 MB
Packager : (none)
Summary : Absract your phrases with XML
Description :
This class loader implements phrasebook patterns using XML.

Phrases can be contained within one or more dictionaries, with each phrase
accessible via a unique key. Phrases may contain placeholders, please see
Data::Phrasebook for an explanation of how to use these. Groups of phrases
are kept in a dictionary. The first dictionary is used as the default,
unless a specific dictionary is requested.

In this implementation, the dictionaries and phrases are implemented with
an XML document. This document is the same as implement by
Class::Phrasebook.

The XML document type definition is as followed:

< ?xml version=\"1.0\"?>
< !DOCTYPE phrasebook [
< !ELEMENT phrasebook (dictionary)*>
< !ELEMENT dictionary (phrase)*>
< !ATTLIST dictionary name CDATA #REQUIRED>
< !ELEMENT phrase (#PCDATA)>
< !ATTLIST phrase name CDATA #REQUIRED>
]>

An example XML file:

< ?xml version=\"1.0\"?>
< !DOCTYPE phrasebook [
< !ELEMENT phrasebook (dictionary)*>
< !ELEMENT dictionary (phrase)*>
< !ATTLIST dictionary name CDATA #REQUIRED>
< !ELEMENT phrase (#PCDATA)>
< !ATTLIST phrase name CDATA #REQUIRED>
]>

< phrasebook>
< dictionary name=\"EN\">
< phrase name=\"HELLO_WORLD\">Hello World!!!< /phrase>
< phrase name=\"THE_HOUR\">The time now is $hour.< /phrase>
< phrase name=\"ADDITION\">add $a and $b and you get $c< /phrase>
< phrase name=\"THE_AUTHOR\">Barbie< /phrase>
< /dictionary>

< dictionary name=\"FR\">
< phrase name=\"HELLO_WORLD\">Bonjour le Monde!!!< /phrase>
< phrase name=\"THE_HOUR\">Il est maintenant $hour.< /phrase>
< phrase name=\"ADDITION\">$a + $b = $c< /phrase>
< phrase name=\"THE_AUTHOR\">Barbie< /phrase>
< /dictionary>

< dictionary name=\"NL\">
< phrase name=\"HELLO_WORLD\">Hallo Werld!!!< /phrase>
< phrase name=\"THE_HOUR\">Het is nu $hour.< /phrase>
< phrase name=\"ADDITION\">$a + $b = $c< /phrase>
< phrase name=\"THE_AUTHOR\">Barbie< /phrase>
< /dictionary>
< /phrasebook>

Note that, unlike Class::Phrasebook, this implementation does not search
the default dictionary if a phrase is not found in the specified
dictionary. This may change in the future.

Each phrase should have a unique name within a dictionary, which is then
used as a reference key. Within the phrase text placeholders can be used,
which are then replaced with the appropriate values once the get() method
is called.

The parameter \'ignore_whitespace\', will remove any extra whitespace from
the phrase. This includes leading and trailing whitespace. Whitespace
around a newline, including the newline, is replace with a single space.

If you need to use the \'< \' symbol in your XML, you\'ll need to use \'<\'
instead.



my $q = Data::Phrasebook->new(
class => \'Fnerk\',
loader => \'XML\',
file => \'phrases.xml\',
);

my $phrase = $q->fetch(\'TEST\'); # returns \'$a < $b\'

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-D/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Data-Phrasebook-Loader-XML-0.16-6.68.noarch.rpm
     

Provides :
perl(Data::Phrasebook::Loader::XML)
perl-Data-Phrasebook-Loader-XML

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(Data::Phrasebook) >= 0.24
perl(Test::More) >= 0.70
perl(XML::Parser)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Data
/usr/lib/perl5/vendor_perl/5.40.0/Data/Phrasebook
/usr/lib/perl5/vendor_perl/5.40.0/Data/Phrasebook/Loader
/usr/lib/perl5/vendor_perl/5.40.0/Data/Phrasebook/Loader/XML.pm
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML/Changes
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML/LICENSE
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML/README
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML/examples
/usr/share/doc/packages/perl-Data-Phrasebook-Loader-XML/examples/examples.txt
/usr/share/man/man3/Data::Phrasebook::Loader::XML.3pm.gz

 
ICM