From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80558 Path: news.gmane.org!not-for-mail From: =?utf-8?B?SWRyaXMgU2FtYXdpIEhhbWlkINin2K/YsdmK2LMgICDYs9mF2KfZiNmKIA==?= =?utf-8?B?2K3Yp9mF2K8=?= Newsgroups: gmane.comp.tex.context Subject: [***SPAM***] Re: Typesetting LibreOffice (ODT) documents with ConTeXt Date: Wed, 30 Jan 2013 15:13:38 -0700 Organization: csu Message-ID: References: <51097527.2090600@meahan.net> <51097DB7.3080704@meahan.net> <5109951F.3030107@uni-bonn.de> 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"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1359584076 27465 80.91.229.3 (30 Jan 2013 22:14:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Jan 2013 22:14:36 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 30 23:14:56 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 1U0fvj-0006Ei-6z for gctc-ntg-context-518@m.gmane.org; Wed, 30 Jan 2013 23:14:55 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0E4C31028F; Wed, 30 Jan 2013 23:14:37 +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 Hi2Yr7VBUtkI; Wed, 30 Jan 2013 23:14:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 135631027E; Wed, 30 Jan 2013 23:14:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B2AD1027E for ; Wed, 30 Jan 2013 23:14:33 +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 X78tqBxCxVYc for ; Wed, 30 Jan 2013 23:14:31 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id EA0301023D for ; Wed, 30 Jan 2013 23:14:30 +0100 (CET) Original-Received: from pace.ACNS.ColoState.EDU (pace.acns.colostate.edu [129.82.100.168]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r0UMESfX008339 for ; Wed, 30 Jan 2013 23:14:29 +0100 Original-Received: from jansen.ColoState.EDU (jansen.acns.colostate.edu [129.82.100.132]) by pace.ACNS.ColoState.EDU (8.13.8/8.12.11) with ESMTP id r0UMEQdr009568 for ; Wed, 30 Jan 2013 15:14:26 -0700 Original-Received: from ishamid-pc ([184.21.117.108]) (authenticated bits=0) by jansen.ColoState.EDU (8.13.1/8.13.1) with ESMTP id r0UME8rF002982 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Wed, 30 Jan 2013 15:14:23 -0700 In-Reply-To: <5109951F.3030107@uni-bonn.de> User-Agent: Opera Mail/12.12 (Win32) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.9.8327, 1.0.431, 0.0.0000 definitions=2013-01-30_07:2013-01-30,2013-01-30,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1211240000 definitions=main-1301300179 X-Bayes-Prob: 0.9999 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=129.82.100.168; country=US; region=CO; city=Fort Collins; postalcode=80523; latitude=40.4555; longitude=-105.4648; metrocode=751; areacode=970; http://maps.google.com/maps?q=40.4555,-105.4648&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TISmesXR - fea8e4ee6aaf - 20130130 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:80558 Archived-At: On Wed, 30 Jan 2013 14:48:15 -0700, Thomas A. Schmitz wrote: > > 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. Ah, it sounds so simple, doesn't it? :D > 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. In light of years spent as the editor of an academic journal, with the corresponding pain involved in converting countless doc-file contributions to odt to context, I have to agree with Thomas. Of course Bill is apparently the author of the files he wishes to convert, so he can impose some structural discipline on his own odt work -- and perhaps teach his wife to write in the same style ;-) But in general odt is too much of a mess for my limited skills. And although Bill does not "like it in the least" I am not aware of a better cross-format solution than markdown/pandoc whenever I am forced to deal with M$-Word workflows and ConTeXt in my own writing. If I can go out on a limb: What Bill seems to want is a general WYSIWYG->ConTeXt solution. Generalizing Thomas's remark, I'm not sure that the word-processor paradigm is appropriate for such a thing (unless one is very disciplined in using the word processor). But a WYSIWYG structured layout processor like Framemaker (is there some free imitation out there?) may output xml that is more regular, predictable, and easier to map to ConTeXt than any M$-Word imitation. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___________________________________________________________________________________ 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 ___________________________________________________________________________________