App-Bernard
view release on metacpan or search on metacpan
lib/App/Bernard.pm view on Meta::CPAN
Transliterates the given expression. This is
output before any other file.
=head2 -U, --update
Checks to see whether there's an updated version
of the Shavian set used for transliteration, and
downloads it if there is.
This is not currently implemented.
=head2 -m <magic>, --magic <magic>
Selects an alternative mode of operation. The
defalt is C<single>, which behaves as described
above. Other values have other effects,
described in "Magic modes", below.
=head2 -p, --apostrophe
George Bernard Shaw believed that apostrophes,
which he called "uncouth bacilli", were redundant.
In honour of this opinion, the C<-p> option
strips apostrophes from the transliterated
output where they occur within words. The rare
apostrophes at the beginnings or endings of words
(as in C<'tis>) will not be stripped, in case
you use them for quotation marks.
This is not currently implemented.
=head2 -D, --define
This allows you to define the Shavian spelling of
a word temporarily. Its argument is the
Latin-alphabet spelling, followed by an equals sign,
followed by the Shavian spelling. In case
you cannot type Shavian letters, you may use the
standard ASCII-armouring. For example, to cause
the word "of" to be written out in full, rather
than as a single-letter abbreviation, use C<-Dof=ov>.
This is not currently implemented.
=head1 MAGIC MODES
These are selected using the C<-m> or C<--magic>
switch.
=head2 single
This is the default, and behaves as described above.
=head2 gnome
In this mode, the sole non-option argument should be
the name of a Shavian .po file. The master template
for that package will be downloaded and merged with
the .po file, the transliterations will be updated,
and then run through C<msgfmt -c> to check them.
Alternatively, the non-option argument may be the
name of a directory. Each subdirectory of this
directory should contain a GNOME package, which
contains a file C<po/en@shaw.po>. Each of these
files will be acted on as described in the previous
paragraph.
=head2 unarmour
This undoes the effect of the C<-a> or C<--armour>
switch. The single non-option argument is a file,
which is output verbatim except that characters from
the Latin alphabet will be replaced with their
corresponding values in the old Shavian-to-Latin
mapping.
This is not currently implemented.
=head1 BUGS
Probably many.
Code to update the Shavian transliteration of Firefox
exists, but has not yet been merged into C<bernard>.
It will be merged at some point.
It will also be possible later to translate
Qt's C<.ts> files.
Code to handle C<.srt> subtitle files exists,
but has not yet been merged.
It doesn't handle any other alphabets than Shavian
and the conventional alphabet. At least Deseret
will be added.
There are several other planned features which are
as yet unimplemented.
=head1 COPYRIGHT
This Perl module is copyright (C) Thomas Thurman, 2010.
This is free software, and can be used/modified under the same terms as
Perl itself.
( run in 0.539 second using v1.01-cache-2.11-cpan-96521ef73a4 )