From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80556 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Typesetting LibreOffice (ODT) documents with ConTeXt Date: Wed, 30 Jan 2013 22:48:15 +0100 Message-ID: <5109951F.3030107@uni-bonn.de> References: <51097527.2090600@meahan.net> <51097DB7.3080704@meahan.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359582507 13028 80.91.229.3 (30 Jan 2013 21:48:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2013 21:48:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 30 22:48:47 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U0fWP-0003nd-VY for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jan 2013 22:48:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 741391028A; Wed, 30 Jan 2013 22:48:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C-NCt0pe1TTF; Wed, 30 Jan 2013 22:48:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 86E9E1027E; Wed, 30 Jan 2013 22:48:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AB5B1027E for ; Wed, 30 Jan 2013 22:48:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 0QCyYwYHe+bp for ; Wed, 30 Jan 2013 22:48:17 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 6928D1023D for ; Wed, 30 Jan 2013 22:48:15 +0100 (CET) Original-Received: from uni-bonn.de (x23.rhrz.uni-bonn.de [131.220.15.155]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0ULal4Y021538 for ; Wed, 30 Jan 2013 22:36:47 +0100 Original-Received: from [87.178.57.78] (account tschmit1@uni-bonn.de HELO [192.168.0.37]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.4) with ESMTPSA id 36524184 for ntg-context@ntg.nl; Wed, 30 Jan 2013 22:48:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-Bayes-Prob: 0.0027 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.155; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WISlALCG - beb71f3355a5 - 20130130 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80556 Archived-At: 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 and elements which may be completely irrelevant. And whenever I thought I had figured out what some cryptic abbreviation (say, ) 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 ___________________________________________________________________________________