[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xml-parse-file and text properties
From: |
Richard Stallman |
Subject: |
Re: xml-parse-file and text properties |
Date: |
Mon, 24 Jul 2006 14:22:05 -0400 |
Usually yes, but not always. All normal compositions
(i.e. compositions for displaying a script in the correct
way) are registered in composition-function-table (a
char-table). So, by looking up the table for each
character, we can recover compositions (though very slow).
Interesting.
But, it's possible to manually compose some text.
We can consider that improper use of the composition property;
we need not cater to it.
That leaves us in a peculiar in-between situation. If discarding
these properties altered what text would be written in a file, it
would be very bad, and it would be clear we need to preserve these
properties. But that is not the case. Nonetheless, the text will
display wrong if subsequently reinserted in a buffer. All in all, I
think that is enough reason for xml.el to preserve the composition
property.
So the question is how.
One first step would be to write a function that operates on a string
and discards all text properties except composition. More generally,
all except a certain specified list of property names.
I think that should be done at the C level for speed.
- Re: xml-parse-file and text properties, (continued)
- Re: xml-parse-file and text properties, Richard Stallman, 2006/07/20
- Re: xml-parse-file and text properties, Stefan Monnier, 2006/07/21
- Re: xml-parse-file and text properties, JD Smith, 2006/07/21
- Re: xml-parse-file and text properties, Stefan Monnier, 2006/07/21
- Re: xml-parse-file and text properties, JD Smith, 2006/07/21
- Re: xml-parse-file and text properties, Richard Stallman, 2006/07/22
- Re: xml-parse-file and text properties, Kenichi Handa, 2006/07/23
- Re: xml-parse-file and text properties, Stefan Monnier, 2006/07/23
- Re: xml-parse-file and text properties, Kenichi Handa, 2006/07/24
- Re: xml-parse-file and text properties,
Richard Stallman <=
- Re: xml-parse-file and text properties, Stuart D. Herring, 2006/07/24
- Re: xml-parse-file and text properties, Richard Stallman, 2006/07/24
- Re: xml-parse-file and text properties, Stefan Monnier, 2006/07/25
- Re: xml-parse-file and text properties, Richard Stallman, 2006/07/25
- Re: xml-parse-file and text properties, Stefan Monnier, 2006/07/24
- Re: xml-parse-file and text properties, Richard Stallman, 2006/07/24
- Re: xml-parse-file and text properties, Thien-Thi Nguyen, 2006/07/21
- Re: xml-parse-file and text properties, JD Smith, 2006/07/21
- Re: xml-parse-file and text properties, Eli Zaretskii, 2006/07/22
- Re: xml-parse-file and text properties, JD Smith, 2006/07/24