From: Nic James Ferrier <nferrier@tapsellferrier.co.uk>
To: rms@gnu.org
Cc: emacs-devel@gnu.org, Oliver Scholz <alkibiades@gmx.de>
Subject: Re: Saving markup formats
Date: Wed, 20 Jun 2007 00:40:31 +0100 [thread overview]
Message-ID: <87r6o7ecnk.fsf@kanga.tapsellferrier.co.uk> (raw)
In-Reply-To: <E1I0m8a-0000da-Hc@fencepost.gnu.org> (Richard Stallman's message of "Tue\, 19 Jun 2007 18\:25\:24 -0400")
Richard Stallman <rms@gnu.org> writes:
> To save files as RTF does not require that we use the structured
> nesting features of RTF. We want to be able to read such RTF files,
> and when doing som we can either flatten the structure or record it by
> means of markup text (effectively, open and close braces in the text
> itself).
That's interesting. You see emacs buffers as a primary contruct in the
implementation of a word processor.
I'd prefer to be talking about something other than RTF, say OpenDoc,
because it is acutally more useful now than RTF.
I'm not an expert, but I've done a little hacking with OpenDoc. It is
an XML format but comes wrapped up in a zip file.
In otherwords if I give you my CV in OpenDoc I'm giving you a zip file
with a number of XML files in it.
There always seems to be one XML file with the content of the document
in it. It consists of a number of logical style definitions followed
by markup describing the content of the document and applying styles.
Here's a little bit of content from the top of an OpenDoc document:
<office:body>
<office:text>
<office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
<text:sequence-decls>
<text:sequence-decl text:display-outline-level="0"
text:name="Illustration"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Table"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Text"/>
<text:sequence-decl text:display-outline-level="0"
text:name="Drawing"/>
</text:sequence-decls>
Nic Ferrier
<text:h text:style-name="Heading_20_1">Nic Ferrier - Curriculum Vitae</text:h>
<text:p text:style-name="Standard">Nic is a hacker.</text:p><text:p text:style-name="Standard"/>
It's mostly gobbledegook, as you can see. Checking the schema for
OpenDoc I note that most of the above (the office:forms element and
the text:sequence-decls element) is optional.
Now, an emacs textual representation of a styled document would seem
to be a really useful thing to have. This would be capable of
attaching styles to text via properties. The styles would come from
one of a number of sets of predefined styles; there might be an HTML
set or an OpenDoc set.
The definition of a style would have to be very loose. Probably just a
text string as an identifier and then something attached to the text
string.
Then we could write importers to the styled form and "displayers" of
the styled form, like the current emacs rich text mode. The styles
would be defined by the import/export programs and the "displayer".
It would be a start.
I think such a plan would require nxml-mode, at least James Clark's
xmltok lisp library which comes with nxml-mode.
--
Nic Ferrier
http://www.tapsellferrier.co.uk
next prev parent reply other threads:[~2007-06-19 23:40 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <871wgi9jzb.fsf@jidanni.org>
[not found] ` <87odjlwpu1.fsf@jurta.org>
[not found] ` <E1HyNsO-000697-UX@fencepost.gnu.org>
[not found] ` <87ir9r1m99.fsf@jurta.org>
[not found] ` <E1Hys3j-0004Ml-Vp@fencepost.gnu.org>
[not found] ` <87myz2i9tj.fsf@jurta.org>
[not found] ` <E1HzHMV-0002cZ-DJ@fencepost.gnu.org>
[not found] ` <87r6ocx0tk.fsf_-_@jurta.org>
[not found] ` <E1HzdLq-0006ns-K7@fencepost.gnu.org>
2007-06-16 19:56 ` Saving markup formats Reiner Steib
2007-06-17 18:54 ` Juri Linkov
2007-06-17 21:08 ` Nic James Ferrier
2007-06-17 21:18 ` Lennart Borgman (gmail)
2007-06-17 21:57 ` Juri Linkov
2007-06-17 22:13 ` Lennart Borgman (gmail)
2007-06-17 22:27 ` Nic James Ferrier
2007-06-17 22:37 ` Lennart Borgman (gmail)
2007-06-17 22:47 ` Nic James Ferrier
2007-06-17 23:02 ` Lennart Borgman (gmail)
2007-06-17 23:13 ` Nic James Ferrier
2007-06-17 23:46 ` Lennart Borgman (gmail)
2007-06-18 8:03 ` Nic James Ferrier
2007-06-18 8:26 ` Lennart Borgman (gmail)
2007-06-18 8:44 ` Nic James Ferrier
2007-06-18 9:25 ` Dave Pawson
2007-06-18 21:25 ` Juri Linkov
2007-06-18 22:13 ` Nic James Ferrier
2007-06-19 7:18 ` Dave Pawson
2007-06-19 7:41 ` Nic James Ferrier
2007-06-17 23:08 ` Jason Rumney
2007-06-18 0:30 ` XML editing wishlist (was: Saving markup formats) Drew Adams
2007-06-18 8:10 ` XML editing wishlist Lennart Borgman (gmail)
2007-06-18 13:51 ` Drew Adams
2007-06-18 14:39 ` Lennart Borgman (gmail)
2007-06-19 23:57 ` Lennart Borgman (gmail)
2007-06-20 20:49 ` Vagn Johansen
2007-06-17 21:55 ` Saving markup formats Juri Linkov
2007-06-18 21:31 ` Richard Stallman
2007-06-18 0:05 ` Oliver Scholz
2007-06-18 21:19 ` Juri Linkov
2007-06-19 7:43 ` Oliver Scholz
2007-06-19 13:38 ` Drew Adams
2007-06-19 13:59 ` Stefan Monnier
2007-06-19 22:25 ` Richard Stallman
2007-06-19 23:40 ` Nic James Ferrier [this message]
2007-06-20 0:10 ` Lennart Borgman (gmail)
2007-06-20 0:22 ` Nic James Ferrier
2007-06-20 0:38 ` Lennart Borgman (gmail)
2007-06-20 1:02 ` Nic James Ferrier
2007-06-20 2:19 ` Jeremy Maitin-Shepard
2007-06-20 8:51 ` David House
2007-06-20 10:16 ` Nic James Ferrier
2007-06-20 10:46 ` David House
2007-06-20 10:56 ` Nic James Ferrier
2007-06-20 9:45 ` Mathias Dahl
2007-06-20 10:19 ` Nic James Ferrier
2007-06-20 11:20 ` Mathias Dahl
2007-06-20 11:49 ` Nic James Ferrier
2007-06-20 0:08 ` Oliver Scholz
2007-06-20 5:37 ` David Kastrup
2007-06-20 10:05 ` Oliver Scholz
2007-06-20 10:23 ` Nic James Ferrier
2007-06-20 11:12 ` Oliver Scholz
2007-06-20 11:20 ` Nic James Ferrier
2007-06-20 12:36 ` Oliver Scholz
2007-06-20 17:36 ` Richard Stallman
2007-06-20 20:10 ` Nic James Ferrier
2007-06-21 0:05 ` Nic James Ferrier
2007-06-21 3:59 ` Davis Herring
2007-06-21 7:56 ` Nic James Ferrier
2007-06-21 10:07 ` Thien-Thi Nguyen
2007-06-21 10:31 ` Nic James Ferrier
2007-06-21 10:52 ` Kim F. Storm
2007-06-21 12:50 ` Thien-Thi Nguyen
2007-06-21 13:05 ` Davis Herring
2007-06-21 13:23 ` Nic James Ferrier
2007-06-22 1:51 ` Richard Stallman
2007-06-21 17:32 ` Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87r6o7ecnk.fsf@kanga.tapsellferrier.co.uk \
--to=nferrier@tapsellferrier.co.uk \
--cc=alkibiades@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).