• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/HTML/H04-May-2008-5,7023,684

scripts/H04-May-2008-976145

t/H04-May-2008-1,4441,225

tfiles/H03-May-2022-108

Build.PLH A D04-May-2008588 2423

ChangesH A D04-May-200823.3 KiB734530

DEVNOTESH A D04-May-20082.5 KiB9870

MANIFESTH A D04-May-20081.7 KiB8685

MANIFEST.SKIPH A D04-May-2008336 3329

META.ymlH A D04-May-2008554 2827

Makefile.PLH A D04-May-2008775 2321

READMEH A D04-May-20084 KiB15091

TODOH A D04-May-20081.1 KiB3725

README

1
2==== NAME ====
3
4HTML::TextToHTML - convert plain text file to HTML.
5
6
7==== VERSION ====
8
9This describes version ``2.50'' of HTML::TextToHTML.
10
11
12==== DESCRIPTION ====
13
14HTML::TextToHTML converts plain text files to HTML. The txt2html script uses
15this module to do the same from the command-line.
16
17It supports headings, tables, lists, simple character markup, and
18hyperlinking, and is highly customizable. It recognizes some of the apparent
19structure of the source document (mostly whitespace and typographic layout),
20and attempts to mark that structure explicitly using HTML. The purpose for
21this tool is to provide an easier way of converting existing text documents
22to HTML format, giving something nicer than just whapping the text into a
23big PRE block.
24
25
26==   History   ==
27
28The original txt2html script was written by Seth Golub (see
29http://www.aigeek.com/txt2html/), and converted to a perl module by Kathryn
30Andersen (see http://www.katspace.com/tools/text_to_html/) and made into a
31sourceforge project by Sun Tong (see
32http://sourceforge.net/projects/txt2html/). Earlier versions of the
33HTML::TextToHTML module called the included script texthyper so as not to
34clash with the original txt2html script, but now the projects have all been
35merged.
36
37
38==== REQUIRES ====
39
40HTML::TextToHTML requires Perl 5.8.1 or later.
41
42For installation, it needs:
43
44    Module::Build
45
46The txt2html script needs:
47
48    Getopt::Long
49    Getopt::ArgvFile
50    Pod::Usage
51    File::Basename
52
53For testing, it also needs:
54
55    Test::More
56
57For debugging, it also needs:
58
59    YAML::Syck
60
61
62==== INSTALLATION ====
63
64Make sure you have the dependencies installed first! (see REQUIRES above)
65
66Some of those modules come standard with more recent versions of perl, but I
67thought I'd mention them anyway, just in case you may not have them.
68
69If you don't know how to install these, try using the CPAN module, an easy
70way of auto-installing modules from the Comprehensive Perl Archive Network,
71where the above modules reside. Do "perldoc perlmodinstall" or "perldoc
72CPAN" for more information.
73
74To install this module type the following:
75
76   perl Build.PL
77   ./Build
78   ./Build test
79   ./Build install
80
81Or, if you're on a platform (like DOS or Windows) that doesn't like the "./"
82notation, you can do this:
83
84   perl Build.PL
85   perl Build
86   perl Build test
87   perl Build install
88
89In order to install somewhere other than the default, such as in a directory
90under your home directory, like "/home/fred/perl" go
91
92   perl Build.PL --install_base /home/fred/perl
93
94as the first step instead.
95
96This will install the files underneath /home/fred/perl.
97
98You will then need to make sure that you alter the PERL5LIB variable to find
99the modules, and the PATH variable to find the script.
100
101Therefore you will need to change: your path, to include
102/home/fred/perl/script (where the script will be)
103
104        PATH=/home/fred/perl/script:${PATH}
105
106the PERL5LIB variable to add /home/fred/perl/lib
107
108        PERL5LIB=/home/fred/perl/lib:${PERL5LIB}
109
110Note that the system links dictionary will be installed as
111"/home/fred/perl/share/txt2html/txt2html.dict"
112
113If you want to install in a temporary install directory (such as if you are
114building a package) then instead of going
115
116   perl Build install
117
118go
119
120   perl Build install destdir=/my/temp/dir
121
122and it will be installed there, with a directory structure under
123/my/temp/dir the same as it would be if it were installed plain. Note that
124this is NOT the same as setting --install_base, because certain things are
125done at build-time which use the install_base info.
126
127See "perldoc perlrun" for more information on PERL5LIB, and see "perldoc
128Module::Build" for more information on installation options.
129
130
131==== AUTHOR ====
132
133    Kathryn Andersen (RUBYKAT)
134    perlkat AT katspace dot com
135    http//www.katspace.com/
136
137based on txt2html by Seth Golub
138
139
140==== COPYRIGHT AND LICENCE ====
141
142Original txt2html script copyright (c) 1994-2000 Seth Golub <seth AT
143aigeek.com>
144
145Copyright (c) 2002-2005 by Kathryn Andersen
146
147This program is free software; you can redistribute it and/or modify it
148under the same terms as Perl itself.
149
150