Linux .doc to Text Conversions Inadequate

Written By
Web Webster
Web Webster
Sep 23, 2010

[ Thanks to Brendan Scott for this
link. ]

“Having a look at converting doc and html to text on
Linux. While these are good for indexing purposes, they aren’t that
great for actually presenting the output. Column Width

“The engines which perform pretty well, like wvText and lynx
(via html) have the annoying ‘feature’ of formatting to a column
width. This means that it is very hard to predict what are actually
paragraph breaks and what are just the pager splitting lines. Using
wvHtml can then be transformed by html2text -width 0 to avoid this
width problem (although results are a little haphazard at times).
Lynx maxes out at a width of about 990 characters, but there are
plenty of paragraphs around which exceed that length. I take it
back about html2text -width 0, which seems to fail more often than
it succeeds. However, it does seem to honour large width arguments
(unlike lynx which has a magic number limiting the width) –
width 20000 seems to work (although if there is a line, it inserts
20000 ‘=’ characters)”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.