Chuck Amadi wrote:
> I found that when I use Entity References i.e ™ for Trademarks and
> &, for say me & you . It doesn't produce the desired text when I use
> a Docbook script to check and produce the xml it adds ™& say
> instead of ™
[1] Use Options|Options, Save Tab.
[a] Here select "US-ASCII" in the "Encoding" combobox
[b] Make sure that "Save characters outside encoding as entity
references" is checked.
[c] In the text field "Always save these characters as entity
references", add 0x26 which is the ASCII code of "&" in hexadecimal.
(This step is only needed for characters which are part of ASCII but
that you want to see treated as special characters.)
[2] Now please never type something like "™" or "&". If you
type "foo", XXE understand this as "f" "o" "o". Similarly if you type
"&", XXE understands this as "&" "a" "m" "p" ";" and nothing more.
* If you want to get an "&", simply type "&"! It will be saved as
"&" in your XML file because of the settings done in step [1].
* If you want to get the trade sign, you have two ways to get it:
[A] Use the Character Tool (one of the tabs at the right of the window)
and click on the trade sign (you'll find it in the "Superscripts and
Subscripts" character range).
[B] OR if you prefer, specify it by its name (i.e. "trade").
Unlike [A], [B] does not work out of the box. You need to bind command
"insertCharByName" to a keystroke. This is done by adding this snippet
to your customize.xxe:
---
<binding>
<keyPressed code="F2" />
<command name="insertCharByName" />
</binding>
---
Please find such a customize.xxe attached to this email. If you don't
have one, simply copy it to C:\Documents and Settings\<your
name>\xxe2\config and restart XXE.
After that, if you want to get the trade sign, press F2, when the dialog
box is displayed, type "trade" in its text field (or type "t" then
*space*, "r" then *space*, etc, to use *auto-completion*).
Works the same for greek letters and any other character entity defined
in the DocBook DTD.
You can change F2 to any sequence of keystrokes you want.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: customize.xxe
Type: text/xml
Size: 759 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20040827/fd6a7327/attachment.xml