ODT2TXT(1)

πŸ“¦
version 0.5_git20170928 Β· 2 versions
, in alpine 3.24, arch rolling

✨ NAME ✨

okay so bestie, meet odt2txt β€” your new fave little converter that turns OpenDocument Text into plain text. literally a glow-up for your files πŸ’…


🌸 SYNOPSIS 🌸

odt2txt [OPTIONS] FILENAME

πŸ¦‹ DESCRIPTION πŸ¦‹

So odt2txt is this iconic command-line tool that just… extracts the text out of OpenDocument Texts. Like the kind OpenOffice.org, KOffice, StarOffice and the whole friend group of office suites produce. she's a text ripper. it's giving main character energy πŸ”₯

And bestie, she's versatile! odt2txt can also pull text from some file formats that are similar to OpenDocument Text β€” like OpenOffice.org XML (*.sxw), which was the whole vibe back in OpenOffice.org version 1.x and older StarOffice versions. And to a lesser extent (lowkey, don't expect miracles), odt2txt may be useful to extract content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp). no cap, she tries her best πŸ’–

Oh and heads up: the FILENAME argument is mandatory. like, you cannot skip it. she needs to know which file to slay πŸŽ€


πŸ’œ OPTIONS πŸ’œ

  • --width=WIDTH β€” wraps your text lines after WIDTH characters. the default value is 65, which means any words that would extend beyond column 65 get moved to a new line. she likes her lines tidy ✨

if WIDTH is set to -1, then no lines will be broken. wild. freeform. chaos. love that for you πŸ¦‹

  • --output=FILE β€” writes the output to FILE instead of to standard output. like, take it somewhere nice πŸ’Œ
  • --subst=SUBST β€” picks which non-ascii characters get replaced by ascii look-a-likes. valid values for SUBST are all, some and none:
    • --subst=all β€” substitute all characters for which substitutions are known πŸ‘‘
    • --subst=some β€” substitute all characters which the output charset does not contain. this is the default 🫢
    • --subst=none β€” substitute no characters, periodt πŸ™ˆ
  • --encoding=X β€” don't try to autodetect the terminal encoding, just convert the document to encoding X unconditionally. and to find out which terminal encoding will be used in automatic mode, use --encoding=show πŸ‘€
  • --raw β€” print raw XML. raw. unfiltered. no makeup πŸ’€
  • --raw-input β€” the input file is a raw XML (fodt, fods, ...) 🌈
  • --version β€” shows version and copyright information ⭐

Copyright Β© 2006,2007 Dennis Stosberg <dennis@stosberg.net> Uses parts of the kunzip library, Copyright 2005,2006 by Michael Kohn

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation.

(translation: it's free software, be nice, share it around, that's the whole vibe πŸ’–)


🌈 SEE ALSO 🌈


okay that's the whole page bestie, go convert something iconic πŸ’…βœ¨

odt2txt 0.5 Β· 2008-06-23 β€” vintage but still ate, mwah πŸ«ΆπŸ’œ

πŸ“¦ where this page comes from