mirror of https://github.com/tLDP/LDP
doc and text changes
This commit is contained in:
parent
bf91cab29b
commit
200cde5443
|
@ -20,5 +20,5 @@ like DocBook, go ahead and run, as root:
|
|||
|
||||
make install
|
||||
|
||||
to copy the files to the appropriate locations.
|
||||
as root to copy the files to the appropriate locations.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ WriteMakefile(
|
|||
AUTHOR => 'David Merrill <david@lupercalia.net>',
|
||||
ABSTRACT => 'Converts WikiText documents into DocBook XML.',
|
||||
NOECHO => '',
|
||||
VERSION_FROM => 'lib/Wt2Db.pm',
|
||||
VERSION_FROM => 'wt2db',
|
||||
EXE_FILES => [ qw( wt2db ) ],
|
||||
PREREQ_PM => {
|
||||
'File::Basename' => 0,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
=head1 NAME
|
||||
|
||||
B<wt2db> - utility to convert WikiText documents into DocBook XML.
|
||||
B<wt2db> - utility to convert WikiText documents into DocBook XML/SGML.
|
||||
|
||||
=head1 SYNOPSIS
|
||||
|
||||
|
@ -9,11 +9,19 @@ B<wt2db> [I<OPTION>] [I<FILE>]
|
|||
=head1 DESCRIPTION
|
||||
|
||||
B<wt2db> converts a text file in a special format similar to that used
|
||||
in WikiWikiWebs into valid DocBook XML.
|
||||
in WikiWikiWebs into DocBook XML/SGML.
|
||||
|
||||
The DocBook it writes out is only
|
||||
a fragment, not a complete document, because it has no DOCTYPE declaration.
|
||||
And due to the source format, there is no meta-data, such as in an
|
||||
<articleinfo> structure.
|
||||
|
||||
As part of a larger publishing or document processing system, it is
|
||||
expected that later processing will supply these elements.
|
||||
|
||||
By default it reads from STDIN and writes to STDOUT. However, if given a
|
||||
filename, it will read that file, and an output filename can also be
|
||||
specified.
|
||||
specified as a command-line option.
|
||||
|
||||
=head1 OPTIONS
|
||||
|
||||
|
@ -25,8 +33,12 @@ B<-h>, B<--help> show a usage message.
|
|||
|
||||
=head1 BUGS
|
||||
|
||||
None currently known. Please report bugs to the author at
|
||||
<david@lupercalia.net>.
|
||||
Bugs are tracked in the SourceForge project page at:
|
||||
|
||||
http://www.sourceforge.net/projects/linuxdoc
|
||||
|
||||
If you report a bug in B<wt2db>, specify wt2db as the category so it will
|
||||
be routed the appropriate person.
|
||||
|
||||
=head1 RESTRICTIONS
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
#
|
||||
package Wt2Db;
|
||||
|
||||
$VERSION = '0.3';
|
||||
|
||||
use File::Basename;
|
||||
use HTML::Entities;
|
||||
use FileHandle;
|
||||
|
@ -13,12 +11,12 @@ use Exporter;
|
|||
|
||||
@ISA = qw(Exporter);
|
||||
@EXPORT = qw(
|
||||
new,
|
||||
ProcessFile,
|
||||
ProcessLine,
|
||||
ProcessEnd,
|
||||
Buffer,
|
||||
Reset,
|
||||
new
|
||||
ProcessFile
|
||||
ProcessLine
|
||||
ProcessEnd
|
||||
Buffer
|
||||
Reset
|
||||
);
|
||||
|
||||
# These keep track of which constructs we're in the middle of
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/perl
|
||||
#
|
||||
#Converts txt files into docbook.
|
||||
#Converts txt files into DocBook XML/SGML.
|
||||
#
|
||||
$VERSION = '0.3';
|
||||
$VERSION = '0.4-pre';
|
||||
|
||||
use Wt2Db;
|
||||
$WT2DB = new Wt2Db;
|
||||
|
@ -43,7 +43,7 @@ sub version {
|
|||
print "wt2db version $VERSION\n";
|
||||
print "Copyright (c) 2001, 2002 David Merrill \<david\@lupercalia.net\>.\n";
|
||||
print "\n";
|
||||
print "Converts a WikiText file into DocBook.\n";
|
||||
print "Converts a WikiText file into DocBook XML/SGML.\n";
|
||||
print "\n";
|
||||
print "This is free software; see the source for copying conditions. There is no\n";
|
||||
print "warranty; not even for merchantability or fitness for a particular purpose.\n";
|
||||
|
|
Loading…
Reference in New Issue