XML, the Perl Way


NAME

  ooo2txt


DESCRIPTION

read a Star/Open Office file (only Writer is supported at the moment, .sxw/.stw files) and display the text.


SYNOPSYS

  ooo2txt doc.sxw                 # output text (in utf-8) for the document
  ooo2txt -e ISO-8859-15 doc.sxw  # output ISO-8859-15 encoded text for the doc
  0002txt -n doc.sxw              # output text, titles are numbered
  0002txt -e NUM_CUST doc.sxw     # output field NUM_CUST for the doc
  ooo2txt -f all doc.sxw          # output all fields for the doc
  ooo2txt -o doc.sxw              # output outline (titles are numbered)


OPTIONS


TODO

  format tables properly
  get the style information to properly number titles


BUGS

  tables are not displayed properly
  numbering is very crude


PREREQUISITE

Archive::Zip

XML::Twig

XML::Parser

To use the -e option a way to convert encodings is needed (Text::Iconv and Iconv, Encode or Unicode::Strings and Unicode::Map8)


AUTHOR

Michel Rodriguez <mirod@xmltwig.com> based on work by F. Labbe <fred@frederic-labbe.com> <frederic.labbe@ch-avranches-granville.fr>


LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Comments can be sent to mirod@xmltwig.com


SEE ALSO

OpenOffice.org: http://www.openoffice.org/ XML::Twig: http://www.xmltwig.com Ooo2txt: http://ooo2txt.fr.st/