Impressive work, congratulations are in order. On Sun, Feb 1, 2015 at 6:11 AM, Ron Savage <[email protected]> wrote:
> Outputs tables in any one of several supported types. > > Features: > o Generic interface to all supported table formatso Separately specify > header/data/footer rowso Separately include/exclude header/data/footer > rowso Align cell values > > Each column has its own alignment option, left, center or right. > > For internally generated HTML, this is done with a CSS div within each td, > not with the obsolete td align attribute. > > But decimal places are not alignable, yet, as discussed in the "TODO" > <http://metacpan.org/module/Text::Table::Manifold#TODO>. > o Escape HTML entities or URIs > > But not both at the same time! > o Extend short header/data/footer rows with empty strings or undef > > Auto-extension results in all rows being the same length. > > This takes place before the transformation, if any, mentioned next. > o Tranform cell values which are empty strings and undefo Pad cell valueso > Handle UFT8o Return the table as an arrayref of lines or as a string > > The arrayref is returned by "render([%hash])" > <http://metacpan.org/module/Text::Table::Manifold#render_hash_>, and the > string by "render_as_string([%hash])" > <http://metacpan.org/module/Text::Table::Manifold#render_as_string_hash_>. > > When returning a string by calling render_as_string() (which calls > render()), you can specify how the lines in the arrayref are joined. > > In the same way the format parameter discussed just below controls the > output, the join parameter controls the join. > > The format of the output is controlled by the format parameter to new(), > or by the parameter to the "format([$format])" > <http://metacpan.org/module/Text::Table::Manifold#format_format_> method, > or by the value of the format key in the hash passed to "render([%hash])" > <http://metacpan.org/module/Text::Table::Manifold#render_hash_> and > "render_as_string(%hash])" > <http://metacpan.org/module/Text::Table::Manifold#render_as_string_hash_>, > and must be one of these imported constants: > o format_internal_boxed > > All headers, footers and table data are surrounded by ASCII characters. > > The rendering is done internally. > > See scripts/internal.boxed.pl and output file data/internal.boxed.log. > o format_internal_github > > Render as github-flavoured markdown. > > The rendering is done internally. > > See scripts/internal.github.pl and output file data/internal.github.log. > o format_internal_html > > Render as a HTML table. You can use the "pass_thru([$hashref])" > <http://metacpan.org/module/Text::Table::Manifold#pass_thru_hashref_> method > to set options for the HTML table. > > The rendering is done internally. > > See scripts/internal.html.pl and output file data/internal.html.log. > o format_html_table > > Passes the data to HTML::Table <http://metacpan.org/module/HTML::Table>. > You can use the "pass_thru([$hashref])" > <http://metacpan.org/module/Text::Table::Manifold#pass_thru_hashref_> method > to set options for the HTML::Table object constructor. > > Warning: You must use Text::Table::Manifold's data() method, or the data > parameter > to new(), and not the -data option to HTML::Table. This is because the > module processes the data before calling the HTML::Table constructor. > o format_text_csv > > Passes the data to Text::CSV <http://metacpan.org/module/Text::CSV>. You > can use the "pass_thru([$hashref])" > <http://metacpan.org/module/Text::Table::Manifold#pass_thru_hashref_> method > to set options for the Text::CSV object constructor. > > See scripts/text.csv.pl and output file data/text.csv.log. > o format_text_unicodebox_table > > Passes the data to Text::UnicodeBox::Table > <http://metacpan.org/module/Text::UnicodeBox::Table>. You can use the > "pass_thru([$hashref])" > <http://metacpan.org/module/Text::Table::Manifold#pass_thru_hashref_> method > to set options for the Text::UnicodeBox::Table object constructor. > > See scripts/text.unicodebox.table.pl and output file > data/text.unicodebox.table.log. > > See also scripts/synopsis.pl, and the output data/synopsis.log. > > -- > You received this message because you are subscribed to the Google Groups > "marpa parser" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
