From 5df6c2aefebe3d2abcc939a88e294876d59f03ca Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 13:26:17 +0200 Subject: Adding upstream version 0.72. Signed-off-by: Daniel Baumann --- lib/Locale/Po4a/AsciiDoc.pm | 1449 +++++++++++++++ lib/Locale/Po4a/BibTeX.pm | 146 ++ lib/Locale/Po4a/Chooser.pm | 178 ++ lib/Locale/Po4a/Common.pm | 252 +++ lib/Locale/Po4a/Dia.pm | 114 ++ lib/Locale/Po4a/Docbook.pm | 2060 +++++++++++++++++++++ lib/Locale/Po4a/Gemtext.pm | 193 ++ lib/Locale/Po4a/Guide.pm | 153 ++ lib/Locale/Po4a/Halibut.pm | 448 +++++ lib/Locale/Po4a/InProgress/Debconf.pm | 226 +++ lib/Locale/Po4a/InProgress/NewsDebian.pm | 155 ++ lib/Locale/Po4a/Ini.pm | 120 ++ lib/Locale/Po4a/KernelHelp.pm | 170 ++ lib/Locale/Po4a/LaTeX.pm | 397 ++++ lib/Locale/Po4a/Man.pm | 2904 ++++++++++++++++++++++++++++++ lib/Locale/Po4a/Po.pm | 1618 +++++++++++++++++ lib/Locale/Po4a/Pod.pm | 287 +++ lib/Locale/Po4a/RubyDoc.pm | 527 ++++++ lib/Locale/Po4a/Sgml.pm | 1372 ++++++++++++++ lib/Locale/Po4a/TeX.pm | 1756 ++++++++++++++++++ lib/Locale/Po4a/Texinfo.pm | 613 +++++++ lib/Locale/Po4a/Text.pm | 1072 +++++++++++ lib/Locale/Po4a/TransTractor.pm | 1337 ++++++++++++++ lib/Locale/Po4a/Wml.pm | 210 +++ lib/Locale/Po4a/Xhtml.pm | 245 +++ lib/Locale/Po4a/Xml.pm | 2539 ++++++++++++++++++++++++++ lib/Locale/Po4a/Yaml.pm | 160 ++ 27 files changed, 20701 insertions(+) create mode 100644 lib/Locale/Po4a/AsciiDoc.pm create mode 100644 lib/Locale/Po4a/BibTeX.pm create mode 100644 lib/Locale/Po4a/Chooser.pm create mode 100644 lib/Locale/Po4a/Common.pm create mode 100644 lib/Locale/Po4a/Dia.pm create mode 100644 lib/Locale/Po4a/Docbook.pm create mode 100644 lib/Locale/Po4a/Gemtext.pm create mode 100644 lib/Locale/Po4a/Guide.pm create mode 100644 lib/Locale/Po4a/Halibut.pm create mode 100644 lib/Locale/Po4a/InProgress/Debconf.pm create mode 100644 lib/Locale/Po4a/InProgress/NewsDebian.pm create mode 100644 lib/Locale/Po4a/Ini.pm create mode 100644 lib/Locale/Po4a/KernelHelp.pm create mode 100644 lib/Locale/Po4a/LaTeX.pm create mode 100644 lib/Locale/Po4a/Man.pm create mode 100644 lib/Locale/Po4a/Po.pm create mode 100644 lib/Locale/Po4a/Pod.pm create mode 100644 lib/Locale/Po4a/RubyDoc.pm create mode 100644 lib/Locale/Po4a/Sgml.pm create mode 100644 lib/Locale/Po4a/TeX.pm create mode 100644 lib/Locale/Po4a/Texinfo.pm create mode 100644 lib/Locale/Po4a/Text.pm create mode 100644 lib/Locale/Po4a/TransTractor.pm create mode 100644 lib/Locale/Po4a/Wml.pm create mode 100644 lib/Locale/Po4a/Xhtml.pm create mode 100644 lib/Locale/Po4a/Xml.pm create mode 100644 lib/Locale/Po4a/Yaml.pm (limited to 'lib/Locale/Po4a') diff --git a/lib/Locale/Po4a/AsciiDoc.pm b/lib/Locale/Po4a/AsciiDoc.pm new file mode 100644 index 0000000..6fe1cd1 --- /dev/null +++ b/lib/Locale/Po4a/AsciiDoc.pm @@ -0,0 +1,1449 @@ +#!/usr/bin/perl -w + +# http://asciidoc.org/userguide.html + +=encoding UTF-8 + +=head1 NAME + +Locale::Po4a::AsciiDoc - convert AsciiDoc documents from/to PO files + +=head1 DESCRIPTION + +The po4a (PO for anything) project goal is to ease translations (and more +interestingly, the maintenance of translations) using gettext tools on +areas where they were not expected like documentation. + +Locale::Po4a::AsciiDoc is a module to help the translation of documentation in +the AsciiDoc format. + +=cut + +package Locale::Po4a::AsciiDoc; + +use 5.16.0; +use strict; +use warnings; + +require Exporter; +use vars qw(@ISA @EXPORT); +@ISA = qw(Locale::Po4a::TransTractor); +@EXPORT = qw(); + +use Locale::Po4a::TransTractor; +use Locale::Po4a::Common; +use YAML::Tiny; + +=head1 OPTIONS ACCEPTED BY THIS MODULE + +These are this module's particular options: + +=over + +=item B + +The name of a file containing definitions for po4a, as defined in the +B section. +You can use this option if it is not possible to put the definitions in +the document being translated. + +In a definitions file, lines must not start by two slashes, but directly +by B. + +=item B + +Space-separated list of attribute entries you want to translate. By default, +no attribute entries are translatable. + +=item B + +Space-separated list of macro definitions. + +=item B