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

Lennart Staflin <[email protected]>
Newsgroups gmane.emacs.psgml.user
Message-ID <[email protected]>
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.


> So, is this a bug, or is it by design? If there's another programmatic
> way of setting bold, italic, etc., I would like to know how. (Actually,
> I was hoping to do something like this with psgml-fs.el).

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.

//Lennart



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
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.