Hi
Thanks for that I will go and have a play as out shop is Linux I wll
save to /xxe-std-26/config 

Thus to work out of box (your attachement ) add the snippet.

Anyway I will be trying out all your points to get a feel and a better
understanding of Xml Mind .

Thanks again

Chuck
On Fri, 2004-08-27 at 09:50, Hussein Shafie wrote:
> Chuck Amadi wrote:
> > I found that when I use Entity References i.e ™ for Trademarks and
> > &amp, 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.
> 
> 
> 
> 
> ______________________________________________________________________
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <configuration xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 
>   <!-- =======================================================================
>       Inserts at caret position a character specified using its entity name.
> 
>       Add parameter="[DocBook]" to use the character entities defined
>       in the DocBook 4.2 DTD, whatever is the DTD/Schema of the document
>       being edited.
>   ======================================================================== -->
> 
>   <binding>
>     <keyPressed code="F2" />
>     <command name="insertCharByName" />
>   </binding>
> 
> </configuration>
-- 
Chuck Amadi, Systems Administrator, |  http://www.smtl.co.uk/
Surgical Materials Testing Lab,     |  http://www.worldwidewounds.com/
Princess of Wales Hospital, S Wales |  http://www.dressings.org/
Tel/Fax: +44 1656-752820            |  chuck at smtl.co.uk


Reply via email to