ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Typesetting LibreOffice (ODT) documents with ConTeXt
Date: Wed, 30 Jan 2013 22:48:15 +0100	[thread overview]
Message-ID: <5109951F.3030107@uni-bonn.de> (raw)
In-Reply-To: <alpine.LNX.2.02.1301301608140.14761@ybpnyubfg.ybpnyqbznva>

On 01/30/2013 10:12 PM, Aditya Mahajan wrote:
> On Wed, 30 Jan 2013, Bill Meahan wrote:
>
>> An XSLT stylesheet would allow direct export of a document from
>> LO-W which could then be be tweaked if necessary.
>
> Another option is to uncompress the odt file (IIUC, it is just a
> zip), and process it directly in ConTeXt
> (http://www.pragma-ade.com/general/manuals/xml-mkiv.pdf).
>
> This approach is more flexible than XSLT stylesheets, but it ties you
> to ConTeXt (with XSLT, in principle, you can switch to other formats
>  relatively easily).
>
> In essence it boils down to understanding the ODT XML Schema and
> figuring out the mapping to context commands.
>

I am no expert here, but I have tried this approach a while ago when I
was typesetting an edited volume. The authors sent me MS Word files, 
which I saved as OOO. But the xml in open office was just too messy to 
deal with. It doesn't provide logical structure, but tries to recreate 
the visual output, so you get dozens of different <span type="this"> and 
<span type="that"> elements which may be completely irrelevant. And 
whenever I thought I had figured out what some cryptic abbreviation 
(say, <span font="T6">) meant ("italic"), I then learnt that in the next 
document I opened, it may mean something completely different. I would 
be interested in finding a fully automated work flow, but I'm somewhat 
sceptical that it exists. And don't even think about round-trip 
conversion, I don't think this will be possible.

Just my 2 cents.

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  parent reply	other threads:[~2013-01-30 21:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30 19:31 Bill Meahan
2013-01-30 19:45 ` Idris Samawi Hamid ادريس   سماوي حامد
2013-01-30 20:08   ` Bill Meahan
2013-01-30 21:12     ` Aditya Mahajan
2013-01-30 21:21       ` Wolfgang Schuster
2013-01-30 22:07         ` Bill Meahan
2013-01-30 21:48       ` Thomas A. Schmitz [this message]
2013-01-30 22:13         ` [***SPAM***] " Idris Samawi Hamid ادريس   سماوي حامد
2013-01-30 23:54           ` Aditya Mahajan
2013-01-30 23:54           ` Bill Meahan
2013-01-31  8:51             ` Alan BRASLAU
2013-01-31 10:02             ` Henning Hraban Ramm
2013-01-30 20:59   ` Pablo Rodríguez
2013-01-31  9:19 ` Keith J. Schultz
2013-01-31 21:03   ` Bill Meahan
2013-02-09 16:51 ` Facepalm (was Typesetting LibreOffice (ODT) documents with ConTeXt) Bill Meahan
2013-02-09 23:44   ` Aditya Mahajan
2013-02-10 15:38     ` Bill Meahan
2013-02-10 17:07   ` Idris Samawi Hamid ادريس   سماوي حامد
2013-02-10 18:47     ` Bill Meahan
2013-02-10 19:21       ` Idris Samawi Hamid ادريس   سماوي حامد

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=5109951F.3030107@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --cc=ntg-context@ntg.nl \
    /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).