DJVUTXT(1)

πŸ’– DJVUTXT(1) β€” bestie edition πŸ’–

okay so this is djvutxt, part of DjVuLibre-3.5, and it's literally the little icon that pulls the secret text out of your DjVu files. Pull up a chair 🫢


✨ NAME ✨

djvutxt β€” extract the hidden text from DjVu documents. yes bestie, the text was in there the WHOLE time πŸ™ˆ


🌸 SYNOPSIS 🌸

djvutxt [options] inputdjvufile [outputtxtfile]

πŸ¦‹ DESCRIPTION πŸ¦‹

So djvutxt decodes the hidden text layer of a DjVu document called inputdjvufile, and then prints it into outputtxtfile β€” or, if you didn't give it a file, straight onto the standard output. slay.

That hidden text layer? It's usually made with the help of some optical character recognition software. iykyk πŸ‘‘

Now, the vibe check on output modes: without the -detail and -escape options, this program simply outputs the UTF-8 text. that's it. that's the whole girl.

  • -detail makes it output S-expressions describing the text and its location πŸ“
  • -escape uses C-style escape sequences to represent nonprintable non-ASCII characters πŸ’…

πŸŽ€ OPTIONS πŸŽ€

  • --page=pagespec β€” tells it which pages should be processed πŸ‘―β€β™€οΈ When this option is not specified, the text of all pages of the document gets concatenated into the output file. The page specification pagespec contains one or more comma-separated page ranges. A page range is either a page number, or two page numbers separated by a dash. For instance, specification 1-10 outputs pages 1 to 10, and specification 1,3,99999-4 outputs pages 1 and 3, followed by all the document pages in reverse order up to page 4. not me going backwards through a document πŸ’€ iconic behavior fr fr.
  • --detail=keyword β€” this option causes djvutxt to output S-expressions specifying the position of the text in the page πŸ“Œ See the manual page djvused(1) for a description of the output format. The argument keyword specifies the maximum level of detail for which text location is reported. The recognized values are: page, column, region, para, line, word, and char. All other values are interpreted as char. periodt ✨
  • --escape β€” outputs escape sequences of the form "ooo" for all non ASCII or non printable UTF-8 characters and for the backslash character πŸͺ„ very demure, very mindful, very ASCII-safe.

πŸ’œ REMARKS πŸ’œ

Use program djvused(1) for more control over the text layer πŸ‘‘ she's the main character, djvutxt is the supporting bestie.


⭐ CREDITS ⭐

This program was initially written by Andrei Erofeev <andrew_erofeev@yahoo.com> and was then improved by Bill Riemers <docbill@sourceforge.net> and many others. It was then rewritten to use the ddjvuapi by Leon Bottou <leonb@sourceforge.net>. three glow-ups, one program, we love a collaborative queen 🌈


🌟 SEE ALSO 🌟


and that's the whole page bestie!! this one is from DjVuLibre-3.5, dated 10/11/2001 πŸŽ€ go forth and extract that hidden text, you absolute legend πŸ’–βœ¨πŸ¦‹