ODT2TXT(1)

πŸ’– ODT2TXT πŸ’–

okay bestie, sit down, because this lil cutie odt2txt is a simple converter from OpenDocument Text to plain text and honestly? it's giving underrated icon energy. no cap.


✨ SYNOPSIS ✨

odt2txt [OPTIONS] FILENAME

🌸 DESCRIPTION 🌸

so like. odt2txt is a command-line tool that extracts the text out of OpenDocument Texts β€” the kind produced by OpenOffice.org, KOffice, StarOffice and others. it just yoinks the words right out of there and hands them to you. slay.

it can also pull text from some file formats that are basically OpenDocument Text's cousins, like OpenOffice.org XML (*.sxw), which was used by OpenOffice.org version 1.x and older StarOffice versions. and to a lesser extent, odt2txt may be useful for extracting content from OpenDocument spreadsheets (*.ods) and OpenDocument presentations (*.odp). not its main character moment, but it'll do it. πŸ’…

🫢 heads up: the FILENAME argument is mandatory. you gotta give it a file. it's not gonna guess.

πŸŽ€ OPTIONS πŸŽ€

  • --width=WIDTH β€” wrap 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. tidy!
    • if WIDTH is set to -1 then no lines will be broken. chaos mode, but make it text.
  • --output=FILE β€” write output to FILE instead of to standard output. love a redirect moment.
  • --subst=SUBST β€” pick which non-ascii characters get replaced by ascii look-a-likes. valid values for SUBST are all, some and none. the way that this one has sub-options… obsessed.
    • --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, so if you didn't pick anything, this is what you're getting, bestie.
    • --subst=none β€” substitute no characters. keep them exactly as they are. periodt.
  • --encoding=X β€” do not try to autodetect the terminal encoding, just convert the document to encoding X unconditionally. and if you wanna know which terminal encoding would be used in automatic mode? use --encoding=show. iykyk. πŸ‘‘
  • --raw β€” print raw XML. straight up, no filter, just the XML.
  • --version β€” show 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. fr fr, respect the license. 🫑


🌈 SEE ALSO 🌈

https://github.com/dstosberg/odt2txt


✨ and that's the whole vibe check, bestie. this was odt2txt version 0.5, dated 2008-06-23, from the ODT2TXT(1) manual. go forth and convert. πŸ’–πŸ¦‹πŸŒΈ