[xml/sgml-commit] [SCM] linuxdoc-tools package for Debian. branch, master, updated. debian/0.9.60-24-gf1f1363
Agustin Martin Domingo
agmartin at debian.org
Mon Jun 15 12:31:02 UTC 2009
The following commit has been merged in the master branch:
commit d844e5855911964092e3ae0167bbd32d9d097181
Author: Agustin Martin Domingo <agmartin at debian.org>
Date: Tue May 12 00:20:37 2009 +0200
info: Add minimal support for tr variant.
diff --git a/lib/mappings/info/mapping b/lib/mappings/info/mapping
index 2d2800a..aa1b250 100644
--- a/lib/mappings/info/mapping
+++ b/lib/mappings/info/mapping
@@ -1,12 +1,31 @@
-% linuxdoc to texinfo replacement file
+% linuxdoc{,tr} to texinfo replacement file
%
+% This file contains the replacements for both linuxdoc and linuxdoctr DTDs
% Heavily based on qwertz one
%
% Copyright © 1994-1996, Matt Welsh
% Copyright © 1996, Cees de Groot
% Copyright © 1999-2000, Taketoshi Sano
% Copyright © 2008-2009 Agustin Martin
-% ------------------------------------------------------------------
+% ------------------------------------------------------------------------
+
+% ------------------------------------------------------------------------
+% linuxdoc specific things (currently nothing)
+% ------------------------------------------------------------------------
+
+% ------------------------------------------------------------------------
+% linuxdoctr specific things
+% ------------------------------------------------------------------------
+
+<trans> + "@ldt_translator "
+</trans>
+
+<tdate> + "@ldt_tdate "
+</tdate>
+
+% ------------------------------------------------------------------------
+% Everything common to linuxdoc and linuxdoctr DTDs
+% ------------------------------------------------------------------------
<qwertz> +
</qwertz> +
diff --git a/perl5lib/LinuxDocTools/InfoUtils.pm b/perl5lib/LinuxDocTools/InfoUtils.pm
index d79e2dd..3654a12 100644
--- a/perl5lib/LinuxDocTools/InfoUtils.pm
+++ b/perl5lib/LinuxDocTools/InfoUtils.pm
@@ -184,6 +184,10 @@ sub info_parse_raw_file {
$docdata{'author'} = $_;
} elsif (s/^\@subtitle\s+//){
$docdata{'subtitle'} = $_;
+ } elsif (s/^\@ldt_translator\s+//){
+ $docdata{'translator'} = $_;
+ } elsif (s/^\@ldt_tdate\s+//){
+ $docdata{'tdate'} = $_;
} else {
push @inputtext, $_;
}
@@ -270,11 +274,22 @@ sub info_write_preprocessed_file {
}
} elsif (s/^\@TOP//){
$texinfo .= "\@node top\n"
- . "\@top " . $docdata->{'title'} . "\n"
- . "\@example\n"
- . $docdata->{'author'} . "\n"
- . $docdata->{'subtitle'} . "\n"
- . "\@end example\n";
+ . "\@top " . $docdata->{'title'} . "\n\n"
+ . "\@example\n";
+
+ $texinfo .= $docdata->{'author'} . "\n"
+ if ( defined $docdata->{'author'} );
+
+ $texinfo .= $docdata->{'subtitle'} . "\n"
+ if ( defined $docdata->{'subtitle'} );
+
+ $texinfo .= $docdata->{'translator'} . "\n"
+ if ( defined $docdata->{'translator'} );
+
+ $texinfo .= $docdata->{'tdate'} . "\n"
+ if ( defined $docdata->{'tdate'} );
+
+ $texinfo .= "\@end example\n";
} else {
$texinfo .= "$_\n";
}
--
linuxdoc-tools package for Debian.
More information about the debian-xml-sgml-commit
mailing list