[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: enriched-mode and switching major modes.
From: |
Oliver Scholz |
Subject: |
Re: enriched-mode and switching major modes. |
Date: |
Mon, 20 Sep 2004 21:35:40 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (windows-nt) |
Oliver Scholz <address@hidden> writes:
> <blush/> I have to admit that I have never thought of the `category'
> property, instead I have always experimented with implementing its
> functionality myself. Thanks for the reminder. This might indeed be
> useful.
I think we need a way for merging categories, if those are supposed to
be used.
In RTF we have:
(section stylesheets: specifying both character and paragraph
formatting properties)
paragraph stylesheets: specifying both character and paragraph
formatting properties
character stylesheets: specifying only character formatting
properties
explicit setting of propeties, bother character and paragraph
formatting.
These four need to be merged in that order. I'd like to use the
`category' text property for both character and paragraph formatting,
but I don't know how.
I used to solve that problem in my past prototypes by maintaining two
text properties, one for character and one for paragraph properties.
These text properties would hold a vector each with all necessary
formatting properties, including a reference to a stylesheet, if any.
A fontification function in `jit-lock' would then resolve the
formatting information accordingly and create an anonymous face. This
works. But finding a way to use the `category' text property would be
nicer.
Here is a make-up example for the issue in XHTML:
<?xml version="1.0" encoding="us-ascii" ?>
<html>
<head>
<title>Lirum larum</title>
<style type="text/css">
h2 { text-decoration: underline }
span.charstyle
{
font-style: italic;
color: blue;
}
span.special { font-size: 12pt; }
<!-- Think of span.charstyle as the character formatting
stylesheet in RTF and of span.special as explicit
overwriting of a character formatting property. -->
</style>
</head>
<body>
<h2>The headline plus <span class="charstyle">character formatting
stylesheet plus
<span class="special">explicitely added
properties.</span></span></h2>
</body>
</html>
Oliver
--
Oliver Scholz Jour des Récompenses de l'Année 212 de la Révolution
Ostendstr. 61 Liberté, Egalité, Fraternité!
60314 Frankfurt a. M.
- Re: enriched-mode and switching major modes., (continued)
- Re: enriched-mode and switching major modes., Robert J. Chassell, 2004/09/20
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/17
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/18
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/18
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/19
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/20
- Re: enriched-mode and switching major modes., Kim F. Storm, 2004/09/20
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/20
- Re: enriched-mode and switching major modes., Kim F. Storm, 2004/09/20
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/20
- Re: enriched-mode and switching major modes.,
Oliver Scholz <=
- Re: enriched-mode and switching major modes., Kim F. Storm, 2004/09/20
- Re: enriched-mode and switching major modes., Oliver Scholz, 2004/09/21
- Re: enriched-mode and switching major modes., Kim F. Storm, 2004/09/21
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/22
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/21
- Re: enriched-mode and switching major modes., Miles Bader, 2004/09/21
- Re: enriched-mode and switching major modes., James Clark, 2004/09/21
- Re: enriched-mode and switching major modes., Richard Stallman, 2004/09/23
- Re: enriched-mode and switching major modes., Kai Grossjohann, 2004/09/21
- Re: enriched-mode and switching major modes., Kim F. Storm, 2004/09/21