Re: setting bold, italic, etc in sgml files with PSGML 1.3.0

Ron Ross <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
Lennart Staflin <[email protected]> writes:

> On tisdag, juli 9, 2002, at 09:21 , Ron Ross wrote:
>
>> I noticed some recent changes to face-setting functions in the Changelog
>> file, but I'm having a hard time understanding what's going on. I see
>> that many face operations are conditioned on `sgml-use-text-properties',
>> `t' for text properties, `nil' for overlays. The value of this in my
>> setup is the default (`t'), I've never changed it (besides, that
>> variable exists since at least 1999).
>
> The variable has existed, but its default value has changed. Try setting
> it to nil.

Duh. Setting it to nil did the trick.... But the following proved much
more interesting.

> There is some experimental code hidden away in psgml-debug. It allows
> you to specify the face to use for the content of an element with a
> process instruction (in the DTD):
>
> <?PSGML ELEMENT h1 face=bold >
> <?PSGML ELEMENT h2 face=bold-italic >
> <?PSGML ELEMENT h3 face=italic >
> <?PSGML ELEMENT title face=bold >
> <?PSGML ELEMENT em face=italic >
> <?PSGML ELEMENT i face=italic >
>
> To enable it you will have to load psgml-debug, or better extract the
> code from psgml-debug and put it somewhere else.

Yay! This is working very well. I copied all the PI processing code with
the required library calls to a file, named psgml-data.el, gave it a
(provide 'psgml-data) statement, loaded it with (require 'psgml-data),
added the processing instructions to the DTD, and loaded an instance of
it - works like a charm.

Although I hesitate to modify standard public DTDs in this way, this is
more than fine for my small personal DTD.

Thanks for the great work,

Ron




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.