9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@9fans.net
Subject: [9fans] MS office XML to txt/troff
Date: Tue, 26 Feb 2013 11:26:31 +0000	[thread overview]
Message-ID: <17e7dc36f4edf6c62ea30d223ebd627b@quintile.net> (raw)

New toys in my contrib to convert modern
microsoft office XML files to text or troff/tbl source.

these live in a directory opc as the standard is known as Open
Packaging Conventions and there may be more tools to come.

docx2troff works pretty well, the formatting is imperfect but
looks OK, embedded drawings are ignored (sorry, too hard).

xlsx2txt works find for text output but custom number formats are
not handled which is disappointing - this means they work fine
for most documents but "clever" spreadsheets can cause problems.
This may get fixed one day - feel free if you want to try.

code in /n/sources/contrib/steve/opc.tgz and depends on
/n/sources/contrib/steve/libxml.tgz

fixes and extensions greatfully received. please don't reformat
the code without contacting me first.

-Steve



             reply	other threads:[~2013-02-26 11:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-26 11:26 Steve Simon [this message]
2013-03-02 20:53 ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17e7dc36f4edf6c62ea30d223ebd627b@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).