From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nic James Ferrier Newsgroups: gmane.emacs.devel Subject: Re: Saving markup formats Date: Wed, 20 Jun 2007 02:02:23 +0100 Message-ID: <87lkefe8v4.fsf@kanga.tapsellferrier.co.uk> References: <871wgi9jzb.fsf@jidanni.org> <87odjlwpu1.fsf@jurta.org> <87ir9r1m99.fsf@jurta.org> <87myz2i9tj.fsf@jurta.org> <87r6ocx0tk.fsf_-_@jurta.org> <87d4zuyvn6.fsf@gmx.de> <87fy4prmdf.fsf@jurta.org> <87r6o7ecnk.fsf@kanga.tapsellferrier.co.uk> <4678708C.1080508@gmail.com> <87odjbeapk.fsf@kanga.tapsellferrier.co.uk> <46787713.1050800@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182301405 28675 80.91.229.12 (20 Jun 2007 01:03:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2007 01:03:25 +0000 (UTC) Cc: rms@gnu.org, Emacs Devel To: "Lennart Borgman \(gmail\)" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 03:03:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I0obQ-0002QO-KW for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2007 03:03:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0obQ-0007Ig-5G for ged-emacs-devel@m.gmane.org; Tue, 19 Jun 2007 21:03:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0obN-0007Ib-BA for emacs-devel@gnu.org; Tue, 19 Jun 2007 21:03:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0obK-0007IP-U8 for emacs-devel@gnu.org; Tue, 19 Jun 2007 21:03:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0obK-0007IM-NZ for emacs-devel@gnu.org; Tue, 19 Jun 2007 21:03:14 -0400 Original-Received: from owls-tree.tapsellferrier.co.uk ([81.187.188.218] helo=owls-house.tapsellferrier.co.uk) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I0obJ-0007OR-0H; Tue, 19 Jun 2007 21:03:13 -0400 Original-Received: from nicferrier.tapsellferrier.co.uk ([172.31.50.1] helo=localhost) by owls-house.tapsellferrier.co.uk with esmtp (Exim 4.60 #1 (Debian)) id 1I0oWm-0007wh-9P; Wed, 20 Jun 2007 01:58:32 +0100 Original-Received: by localhost (Postfix, from userid 1000) id C4A18C06E7; Wed, 20 Jun 2007 02:02:23 +0100 (BST) In-Reply-To: <46787713.1050800@gmail.com> (Lennart Borgman's message of "Wed\, 20 Jun 2007 02\:38\:43 +0200") X-detected-kernel: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:73369 Archived-At: "Lennart Borgman (gmail)" writes: >> I have a clue... but I'm not really interested >> in editing them as XML files. > > I guess that would be the price (to edit them as XML). I understand it > as if you want some intermediate view. I think that is reasonable only > on an abstract level (like navigating etc). I want emacs to be my word processor. I don't care about wysiwyg. I just want to be able to edit the files. I don't think this is unreasonable since most of the information is in well-marked up documents. Let me tell you about how I make my CV right now: - I edit the CV in org mode - I transform org mode to XOXO/XHTML using elisp - I run an XSLT transform to turn the XOXO into XHTML - I run an XSLT transform to turn the XHTML into an OpenDoc content.xml file - I zip the new content.xml file up with a standard template for the other files that come with an OpenDoc file So essentially I'm doing there what I'm talking about here. Just in a long winded way and using more than just elisp. org-mode is providing stylistic markup which has syntax and can be serialized to some syntax not it's own (XOXO in this case). Instead of this I don't see why I shouldn't be able to write a mode that stores text in properties as a set of named styles (in the case of OpenDoc these would be derived from the Relax-NG Schema and from a template of common styles); eg in elisp manual text property syntax: #("Nic Ferrier - CV" 0 16 (element h2)) #("Nic is a hacker with some crazy ideas" 0 37 (element para style p1)) this would be quite simple to display nicely in Emacs (in a variety of ways) and it has all the syntactic information necessary to serialize back to an OpenDoc document. I just need some way of getting the XML into the text properties. And xmltok might help with that. -- Nic Ferrier http://www.tapsellferrier.co.uk PS in *principle* I don't see any reason why word is any different than OpenDoc. It's just XML at the end of the day. Wouldn't it be a coup to be able to edit Word files in Emacs?