From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22745 Path: news.gmane.org!not-for-mail From: Idris Samawi Hamid Newsgroups: gmane.comp.tex.context Subject: RE: DOC/RTF to ConTeXt via XML Date: Tue, 27 Sep 2005 08:50:32 -0600 Message-ID: <4372F02C@webmail.colostate.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127832991 23137 80.91.229.2 (27 Sep 2005 14:56:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2005 14:56:31 +0000 (UTC) Cc: Adam Lindsay Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 27 16:56:27 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EKGoy-0000q7-2Q for gctc-ntg-context-518@m.gmane.org; Tue, 27 Sep 2005 16:52:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C018A127DF; Tue, 27 Sep 2005 16:52:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28754-03; Tue, 27 Sep 2005 16:52:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 508A1127DE; Tue, 27 Sep 2005 16:50:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F2A1127DE for ; Tue, 27 Sep 2005 16:50:39 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28699-03 for ; Tue, 27 Sep 2005 16:50:38 +0200 (CEST) Original-Received: from eagle.colostate.edu (eagle.acns.colostate.edu [129.82.100.90]) by ronja.ntg.nl (Postfix) with ESMTP id F07381278F for ; Tue, 27 Sep 2005 16:50:37 +0200 (CEST) Original-Received: from lamar.ColoState.EDU (lamar.acns.colostate.edu [129.82.100.75]) by eagle.colostate.edu (AIX5.1/8.11.6p2/8.11.0) with ESMTP id j8REoZI146138; Tue, 27 Sep 2005 08:50:35 -0600 Original-Received: from webmail.colostate.edu (csunts4.acns.colostate.edu [129.82.100.135]) by lamar.ColoState.EDU (AIX5.3/8.11.6p2/8.11.0) with ESMTP id j8REoYD418250; Tue, 27 Sep 2005 08:50:35 -0600 X-WebMail-UserID: ishamid Original-To: mailing list for ConTeXt users X-EXP32-SerialNo: 00002247, 00002264 X-Mailer: Infinite Mobile Delivery (Hydra) SMTP v3.62.01 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22745 Archived-At: Hi Christopher, Duncan, Hans, and Adam, Thank you so much for your detailed comments and suggestions. Again, I'm completely new to xml and feel like a fish out of water. OTOH I use sooo much time just manually extracting text (with innumerable transliteration diacritics) and then copying-pasting to WinEDT that I am willing to explore the xml approach if it can be made sane enough... >===== Original Message From Christopher Creutzig ===== >Duncan Hothersall wrote: >> Well, XSLT seems to have been designed, and certainly tends to be >> implemented, as a tool for simple transformations of small XML chunks. > > No, xslt is a tool for arbitrary xml -> xml conversions (and a little >more than that). Ok, you guys have lost me now-) Maybe the best thing to do is try something practical: take an average word article and see what's involved in converting it to ConTeXt. From what I gather so far the process goes something like doc => rtf rtf => OO.o OO.o => xml But here things get dicey because \startHans converting open office xml is not always easy; stay away from tab's and use high level constructs as much as possible \stopHans Question: Will a proper doc (or OO.o) template solve this problem or is this a post-OO.o-processing problem no matter what I do beforehand? >>From this discussion it seems that I (as an xml ignoramous) would be better off converting to ConTeXt code rather than processing pure xml blocks (but maybe I'm wrong). Once I get a sane xml file (this seems to be the biggest problem) what is the best tool to convert this to ConTeXt? We are all extremely busy, of course, but if anyone finds this interesting I can send a sample doc article from my journal. Maybe we can do a MyWay or something to document this process for ourselves and others, as well as find the most practical approach to creating a sane workflow. Besides, this kind of project seems to be exactly the kind of thing to illustrate the full power of ConTeXt. This is a mid-term project so no urgency (I'll keep copying and pasting for now->) Thanks again you all for your advice. Best Idris ============================ Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523