This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: PSGML mode
- From: Karl Eichwalder <keichwa at gmx dot net>
- To: Fredrik Svensson <fred at ludd dot luth dot se>
- Cc: DocBook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 14 Sep 2002 15:31:02 +0200
- Subject: DOCBOOK-APPS: Re: PSGML mode
- References: <Pine.GSO.4.33.0209111111470.3823-100000@brother.ludd.luth.se>
Fredrik Svensson <fred@ludd.luth.se> writes:
> I would like to set up so that I can use entities on the fly when pressing
> a strange german character like for example ö (ö), so I don't have to
> write six characters to get one character.
From the manual:
Translating between characters and entity references
====================================================
Set the variable `sgml-display-char-list-filename' to a file that
contains mappings between all characters present in the presentation
character set, and their "standard replacement text" names, e.g. "å" ->
"[aring ]", e.t.c.
The default value for this variable is `iso88591.map'.
Then use the functions (also in the Modify menu)
`sgml-charent-to-display-char'
`sgml-display-char-to-charent'
to translate between entities and characters.
-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-
You can access both these commands in the "Modify" menu.
> Idealy I'd like the original character to be displayed by emacs but
> the entity written to file.
Maybe, one can do it with write-file-hooks resp. write-file-functions.
Perhaps you can find hints in the Psgmls mailinglist archive:
http://lists.sourceforge.net/mailman/listinfo/psgml-user
--
ke@suse.de (work) / keichwa@gmx.net (home): |
http://www.suse.de/~ke/ | ,__o
Free Translation Project: | _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/ | (*)/'(*)