annotate docs/scripts/txt/TextFilesToHTML.txt @ 3:90ea638ce878 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:11:59 -0500
parents 2abf0d43254d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
1 NAME
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
2 TextFilesToHTML.pl - Generate HTML table file(s) from TextFile(s)
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
3
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
4 SYNOPSIS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
5 TextFilesToHTML.pl ... TextFile(s)...
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
6
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
7 TextFilesToHTML.pl [-a, --align left | center | right,[top | middle |
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
8 bottom]] [-b, --border borderwidth] [--cellpadding padding]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
9 [--cellspacing spacing] [--footer string] [-d, --displaylinks top |
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
10 bottom | both] [--displaylinksinfo line | table | both] [-h, --help]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
11 [--headeralign left | center | right,[top | middle | bottom]]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
12 [--headercolor "#RRGGBB"] [--highlight
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
13 "fieldlabel,datatype,criterion,value,[fieldlabel,datatype,criterion,valu
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
14 e,]..."] [--highlightby colnum | collabel] [--highlightcolor
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
15 "#RRGGBB,#RRGGBB"] [--highlightstyle text | background] [--indelim comma
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
16 | semicolon] [-m, --mode plain | shade | highlight | shadedhighlight]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
17 [-n, --numrows number] [-o, --overwrite] [-r, --root rootname]
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
18 [--stylesheet old | new | none] [--stylesheetname filename] [
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
19 --shadecolor "#RRGGBB,#RRGGBB"] [-t, --title string] [--titledisplay yes
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
20 | no] [-w, --workingdir dirname] TextFile(s)...
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
21
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
22 DESCRIPTION
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
23 Generate HTML file(s) from *TextFile(s)*. The HTML file(s) contain data
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
24 tables and appropriate navigational links to view other tables. These
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
25 files can be generated for local viewing or deployment on a web server.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
26 A variety of options are provided to control style and appearence of
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
27 tables.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
28
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
29 Multiple *TextFile(s)* names are separated by spaces. The valid file
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
30 extensions are *.csv* and *.tsv* for comma/semicolon and tab delimited
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
31 text files respectively. All other file names are ignored. All the text
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
32 files in a current directory can be specified by **.csv*, **.tsv*, or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
33 the current directory name. The --indelim option determines the format
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
34 of *TextFile(s)*. Any file which doesn't correspond to the format
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
35 indicated by --indelim option is ignored.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
36
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
37 OPTIONS
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
38 -a, --align *left | center | right,[top | middle | bottom]*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
39 Horizontal and vertical alignment for table rows except for header
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
40 row which is specified using --headeralign option. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
41 horizontal alignment values: *left, center, or right*. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
42 vertical alignment values: *top, middle, or bottom*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
43
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
44 Default values: *left,middle*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
45
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
46 -b, --border *borderwidth*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
47 Table border width. Default value: 1 for *plain* and *highlight*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
48 mode; 0 for *shade* and *shadedhightlight* mode. Zero indicates no
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
49 border.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
50
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
51 --cellpadding *padding*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
52 Table cell padding. Default value: *2*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
53
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
54 --cellspacing *spacing*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
55 Table cell spacing. Default value: *1*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
56
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
57 --footer *string*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
58 Text string to be included at bottom of each HTML file. Default:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
59 none.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
60
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
61 -d, --displaylinks *top | bottom | both*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
62 Specify where to display navigation links in each HTML file for
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
63 accessing all other HTML files. Possible values: *top, bottom, or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
64 both*. Default value: *both*. This option is only valid during
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
65 multiple HTML files generation for an input file.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
66
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
67 --displaylinksinfo *line | table | both*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
68 Control display of additional information along with navigational
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
69 links: Showing line n of m is displyed for line and showing table n
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
70 of m for table. Possible values: *line | table | both*. Default:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
71 *both*. This option is only valid during multiple HTML files
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
72 generation.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
73
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
74 -h, --help
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
75 Print this help message
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
76
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
77 --headeralign *left | center | right,[top | middle | bottom]*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
78 Horizontal and vertical alignment for table header rows. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
79 horizontal alignment values: *left, center, or right*. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
80 vertical alignment values: *top, middle, or bottom*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
81
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
82 Default values: *center,middle*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
83
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
84 --headercolor *"#RRGGBB"*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
85 Color used to fill background of table header row containing column
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
86 labels represented as a hexadecimal string. None for -m, --mode
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
87 option value of *plain* and *#ccccff*, light blue, for others.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
88
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
89 --highlight
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
90 *"fieldlabel,datatype,criterion,value,[fieldlabel,datatype,criterion,val
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
91 ue,]..."*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
92 This value is mode specific. It specifies how to highlight various
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
93 column values for each text file. Same set of quartets values are
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
94 applied to all *TextFile(s)*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
95
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
96 For *highlightbycolnum* mode, input text format contains these
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
97 quartets: *colnum,datatype,criterion,value,...*. Possible datatype
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
98 values: *numeric or text*. Possible criterion values: *le, ge, or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
99 eq*. Examples: "1,numeric,le,450>" or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
100 "2,numeric,ge,150,6,numeric,le,10".
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
101
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
102 For *highlightbycollabel* mode, input text format contains these
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
103 quartets: *collabel,datatype,criterion,value,...*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
104
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
105 --highlightby *colnum | collabel*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
106 This value is mode specific. It indicates how columns to be
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
107 highlighted are specified using --hightlight option. Possible
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
108 values: *colnum or collabel*. Default value: *colnum*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
109
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
110 --highlightcolor *"#RRGGBB,#RRGGBB"*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
111 Colors used to highlight column values during *highlight* and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
112 *shadedhightlight* mode represented as hexadecimal strings.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
113
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
114 For --highlighstyle option values of *text* and *background*, these
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
115 colors represent text or background colors respectively. For a
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
116 specific column, first color string is used for values which meet
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
117 criterion indicated by --highlight option; the second color is used
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
118 for rest of the values.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
119
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
120 Default values for *background* --highlightstyle: *#0fff0f,#ff0f0f*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
121 And default values for *text* --highlightstyle: *#0fbb0f,#ff0f0f*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
122 Hexadecimal strings for both --highlightstyle colors correspond to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
123 *reddish* and *greenish*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
124
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
125 --highlightstyle *text | background*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
126 This value is mode specific. It indicates highlight style used to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
127 differentiate column values which pass a specified criterion from
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
128 others. Possible values: *text or background*. Default:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
129 *background*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
130
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
131 --indelim *comma | semicolon*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
132 Input delimiter for CSV *TextFile(s)*. Possible values: *comma or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
133 semicolon*. Default value: *comma*. For TSV files, this option is
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
134 ignored and *tab* is used as a delimiter.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
135
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
136 -m, --mode *plain | shade | highlight | shadedhighlight*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
137 Specify how to generate HTML table(s): plain tables with line
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
138 borders, background of alternate rows filled with a specified color,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
139 column values hightlighted using a specified criteria, or
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
140 combination of previous two styles.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
141
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
142 Possible values: *plain, shade, highlight, or shadedhighlight*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
143 Default: *shade*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
144
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
145 -n, --numrows *number*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
146 Maximum number of rows per table. Default value: *100*. Use 0 to put
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
147 all rows into one table. For *TextFile(s)* with more than maximum
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
148 number of specified rows, multiple HTML tables, with appropriate
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
149 navigation links, are created.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
150
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
151 -o, --overwrite
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
152 Overwrite existing files.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
153
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
154 -r, --root *rootname*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
155 New file or directory name is generated using the root: <root>.html
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
156 or <root>-html. Default new file name: <InitialTextFileName>.html.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
157 Default directory name: <InitialTextFileName>-html.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
158
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
159 For *TextFile(s)* with more than maximum number of rows specified
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
160 per table, this directory tree is generated using <Name> where
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
161 <Name> corresponds to <root> or <InitialTextFileName>:Top dir -
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
162 <Name>-html; Sub dirs - html and mols. <Top dir> contains
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
163 <Name>.html and <Name>.css files and <sub dir> html conatins various
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
164 <Name>Lines<Start>To<End>.html files; <sub dir> mols is created as
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
165 needed and contains
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
166
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
167 This option is ignored for multiple input files.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
168
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
169 --stylesheet *old | new | none*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
170 Controls usage of stylesheet for newly generated HTML file(s).
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
171 Possible values: *old, new, or none*. Default value: *new*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
172
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
173 Stylesheet file contains various properties which control apperance
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
174 of HTML pages: type, size, and color of fonts; background color; and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
175 so on.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
176
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
177 For *old* value, an existing stylesheet file specified by
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
178 --stylesheetname option is used for each HTML file; no new
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
179 stylesheet file is created. This option is quite handy for deploying
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
180 HTML file(s) on a web server: assuming you specify a valid
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
181 stylesheet file location relative to your WWWRoot, a reference to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
182 this stylesheet is added to each HTML file. For local deployment of
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
183 HTML file(s), a complete path to a local stylesheet is fine as well.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
184
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
185 For *create* value, a new stylesheet is created and reference to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
186 this local stylesheet is added to each HTML file. Use option
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
187 --stylesheetname to specify name.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
188
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
189 For *none* value, stylesheet usage is completely ignored.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
190
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
191 --stylesheetname *filename*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
192 Stylesheet file name to be used in conjunction with -s --stylesheet
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
193 option. It is only valid for *old* value of -s --stylesheet option.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
194 Specify a valid stylesheet file location relative to your WWWRoot
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
195 and a reference to this stylesheet is added to each HTML file.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
196 Example: "/stylesheets/MyStyleSheet.css". Or a complete path name to
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
197 a local stylesheet file.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
198
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
199 For *create* value of -s --stylesheet option, a new stylesheet file
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
200 is created using -r --root option. And value of --stylesheetname is
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
201 simply ignored.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
202
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
203 --shadecolor *"#RRGGBB,#RRGGBB"*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
204 Colors used to fill background of rows during *shade* and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
205 *shadedhightlight* mode represented as a pair of hexadecimal string;
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
206 the first and second color values are used for odd and even number
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
207 rows respectively.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
208
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
209 Default value: *"#ffffff,#e0e9eb"* - it's white and very light blue
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
210 for odd and even number rows.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
211
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
212 -t, --title *string*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
213 Title for HTML table(s). Default value: <TextFileName>. For multiple
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
214 input files, -r --root option is used to generate appropriate
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
215 titles.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
216
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
217 --titledisplay *yes | no*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
218 Display title for HTML table(s). Possible values: *yes or no*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
219 Default value: *yes*.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
220
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
221 -w, --workingdir *dirname*
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
222 Location of working directory. Default: current directory.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
223
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
224 EXAMPLES
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
225 To generate HTML tables with rows background filled with white and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
226 greyish colors and navigation links on top and botton of each page,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
227 type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
228
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
229 % TextFilesToHTML.pl -o Sample1.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
230
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
231 To generate HTML tables with rows background filled with golden and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
232 greyish colors, navigation links on top and botton of each page, 10 rows
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
233 in each table, greyish header row color, and cell spacing of 1, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
234
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
235 % TextFilesToHTML.pl -o -n 10 --headeralign "center" --headercolor
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
236 "#a1a1a1" --shadecolor "#ddd700,#d1d1d1" --cellspacing 1
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
237 Sample1.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
238
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
239 To generate plain HTML tables with 10 rows in each table and navigation
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
240 links only at the bottom, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
241
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
242 % TextFilesToHTML.pl -o -n 10 --displaylinks bottom -m plain
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
243 Sample1.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
244
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
245 To highlight values in column 3 using specified highlight criteria and
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
246 fill in default background colors, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
247
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
248 % TextFilesToHTML.pl -n 10 --highlight "3,numeric,le,450"
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
249 --highlightby colnum --highlightstyle background -m
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
250 shadedhighlight -o Sample1.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
251
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
252 To highlight values in column MolWeight using specified highlight
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
253 criteria, color the text using default colors, and add a footer message
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
254 in every page, type:
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
255
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
256 % TextFilesToHTML.pl -n 4 --highlight "MolWeight,numeric,le,500"
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
257 --highlightby collabel --highlightstyle text -m shadedhighlight -o
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
258 --footer "Copyright (C) MayaChemTools" --cellspacing 1 Sample1.csv
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
259
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
260 AUTHOR
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
261 Manish Sud <msud@san.rr.com>
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
262
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
263 SEE ALSO
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
264 JoinTextFiles.pl, MergeTextFilesWithSD.pl, ModifyTextFilesFormat.pl,
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
265 SplitTextFiles.pl, SortTextFiles.pl
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
266
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
267 COPYRIGHT
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
268 Copyright (C) 2015 Manish Sud. All rights reserved.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
269
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
270 This file is part of MayaChemTools.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
271
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
272 MayaChemTools is free software; you can redistribute it and/or modify it
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
273 under the terms of the GNU Lesser General Public License as published by
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
274 the Free Software Foundation; either version 3 of the License, or (at
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
275 your option) any later version.
2abf0d43254d Uploaded
deepakjadmin
parents:
diff changeset
276