![]() |
TextFilesToHTML.pl - Generate HTML table file(s) from TextFile(s)
TextFilesToHTML.pl ... TextFile(s)...
TextFilesToHTML.pl [-a, --align left | center | right,[top | middle | bottom]] [-b, --border borderwidth] [--cellpadding padding] [--cellspacing spacing] [--footer string] [-d, --displaylinks top | bottom | both] [--displaylinksinfo line | table | both] [-h, --help] [--headeralign left | center | right,[top | middle | bottom]] [--headercolor ''#RRGGBB''] [--highlight ''fieldlabel,datatype,criterion,value,[fieldlabel,datatype,criterion,value,]...''] [--highlightby colnum | collabel] [--highlightcolor ''#RRGGBB,#RRGGBB''] [--highlightstyle text | background] [--indelim comma | semicolon] [-m, --mode plain | shade | highlight | shadedhighlight] [-n, --numrows number] [-o, --overwrite] [-r, --root rootname] [--stylesheet old | new | none] [--stylesheetname filename] [ --shadecolor ''#RRGGBB,#RRGGBB''] [-t, --title string] [--titledisplay yes | no] [-w, --workingdir dirname] TextFile(s)...
Generate HTML file(s) from TextFile(s). The HTML file(s) contain data tables and appropriate navigational links to view other tables. These files can be generated for local viewing or deployment on a web server. A variety of options are provided to control style and appearence of tables.
Multiple TextFile(s) names are separated by spaces. The valid file extensions are .csv and .tsv for comma/semicolon and tab delimited text files respectively. All other file names are ignored. All the text files in a current directory can be specified by *.csv, *.tsv, or the current directory name. The --indelim option determines the format of TextFile(s). Any file which doesn't correspond to the format indicated by --indelim option is ignored.
Default values: left,middle
Default values: center,middle
For highlightbycolnum mode, input text format contains these quartets: colnum,datatype,criterion,value,.... Possible datatype values: numeric or text. Possible criterion values: le, ge, or eq. Examples: ''1,numeric,le,450>'' or ''2,numeric,ge,150,6,numeric,le,10''.
For highlightbycollabel mode, input text format contains these quartets: collabel,datatype,criterion,value,....
For --highlighstyle option values of text and background, these colors represent text or background colors respectively. For a specific column, first color string is used for values which meet criterion indicated by --highlight option; the second color is used for rest of the values.
Default values for background --highlightstyle: #0fff0f,#ff0f0f. And default values for text --highlightstyle: #0fbb0f,#ff0f0f. Hexadecimal strings for both --highlightstyle colors correspond to reddish and greenish.
Possible values: plain, shade, highlight, or shadedhighlight. Default: shade.
For TextFile(s) with more than maximum number of rows specified per table, this directory tree is generated using <Name> where <Name> corresponds to <root> or <InitialTextFileName>:Top dir - <Name>-html; Sub dirs - html and mols. <Top dir> contains <Name>.html and <Name>.css files and <sub dir> html conatins various <Name>Lines<Start>To<End>.html files; <sub dir> mols is created as needed and contains
This option is ignored for multiple input files.
Stylesheet file contains various properties which control apperance of HTML pages: type, size, and color of fonts; background color; and so on.
For old value, an existing stylesheet file specified by --stylesheetname option is used for each HTML file; no new stylesheet file is created. This option is quite handy for deploying HTML file(s) on a web server: assuming you specify a valid stylesheet file location relative to your WWWRoot, a reference to this stylesheet is added to each HTML file. For local deployment of HTML file(s), a complete path to a local stylesheet is fine as well.
For create value, a new stylesheet is created and reference to this local stylesheet is added to each HTML file. Use option --stylesheetname to specify name.
For none value, stylesheet usage is completely ignored.
For create value of -s --stylesheet option, a new stylesheet file is created using -r --root option. And value of --stylesheetname is simply ignored.
Default value: ''#ffffff,#e0e9eb'' - it's white and very light blue for odd and even number rows.
To generate HTML tables with rows background filled with white and greyish colors and navigation links on top and botton of each page, type:
To generate HTML tables with rows background filled with golden and greyish colors, navigation links on top and botton of each page, 10 rows in each table, greyish header row color, and cell spacing of 1, type:
To generate plain HTML tables with 10 rows in each table and navigation links only at the bottom, type:
To highlight values in column 3 using specified highlight criteria and fill in default background colors, type:
To highlight values in column MolWeight using specified highlight criteria, color the text using default colors, and add a footer message in every page, type:
JoinTextFiles.pl, MergeTextFilesWithSD.pl, ModifyTextFilesFormat.pl, SplitTextFiles.pl, SortTextFiles.pl
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.