"Lars Preben S. Arnesen" wrote:
> 
> [ Hussein Shafie ]
> 
> > All this is detailed in the Power User's Guide.<?xml version='1.0' 
> > encoding='ISO-8859-1'?>
> > <configuration xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
> >   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> >   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";
> >   xmlns:xs="http://www.w3.org/2001/XMLSchema";>
> >
> >   <binding>
> >     <keyPressed code="F5" />
> >     <command name="insertString" parameter="&#197;" />
> >   </binding>
> >
> > </configuration>
> 
> Your example worked fine, but when I tried to bind it to the key I
> want to use, it didn't work. I used xev (I'm running Linux) to se what
> code the character is. You said that this is a font problem. How can
> that be? If this was a font problem I understand the
> box-representation of the character, but if xxe works it should at
> least store the correct character in the xml file. xxe only stores "?"
> for the special characters. I don't have the same problem with other
> java applications.
> 
> KeyPress event, serial 27, synthetic NO, window 0x5200001,
>     root 0x78, subw 0x0, time 20290615, (110,152), root:(1205,539),
>     state 0x1, keycode 34 (keysym 0xc5, Aring), same_screen YES,
>     XLookupString gives 1 characters:  "?"
> 
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <configuration xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:xs="http://www.w3.org/2001/XMLSchema";>
> 
>   <binding>
>     <keyPressed code="Aring"/>
>     <command name="insertString" parameter="&#197;" />
>   </binding>
> 
> </configuration>

I cannot reproduce your problem.

Here's the configuration I have and what I've done:

* SuSE Linux 7.2 with en_US locale.
* I've used XXE's Options+Options, Save Tab and specified ISO-8859-1 as
the desired encoding.
* I've copied the defaultbindings.xxe to ~/.xxe2/config/.
* When I type F5, it inserts "?" in the document and I see it very well.
* When I save the modified document, it contains "?" not "?". 

Here's what I suggest:

* If your keyboard has a "?" key lowercase or a dead macron, then your
problems probably come from a locale which is not properly set. Define
the LANG environment variable: export LANG=es_ES.ISO8859-1 (<-- the
example given here is for Spanish).

* If your keyboard has no  "?" key lowercase or a dead macron like my US
keyboard, you need to specify <keyPressed code="XXX"/> where XXX is one
of the supported key names. These key names are not those displayed by
xev. These key names are listed in the Power User's guide. See
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s04s01.html.

key code = (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 
            9 | A | ACCEPT | ADD | AGAIN | 
            ALL_CANDIDATES | ALPHANUMERIC | AMPERSAND | 
            ASTERISK | AT | B | BACK_QUOTE | BACK_SLASH | 
            BACK_SPACE | BRACELEFT | BRACERIGHT | C | 
            CANCEL | CAPS_LOCK | CIRCUMFLEX | CLEAR | 
            CLOSE_BRACKET | CODE_INPUT | COLON | COMMA | 
            COMPOSE | CONVERT | COPY | CUT | D | DEAD_ABOVEDOT | 
            DEAD_ABOVERING | DEAD_ACUTE | DEAD_BREVE | 
            DEAD_CARON | DEAD_CEDILLA | DEAD_CIRCUMFLEX | 
            DEAD_DIAERESIS | DEAD_DOUBLEACUTE | DEAD_GRAVE | 
            DEAD_IOTA | DEAD_MACRON | DEAD_OGONEK | 
            DEAD_SEMIVOICED_SOUND | DEAD_TILDE | 
            DEAD_VOICED_SOUND | DECIMAL | DELETE | 
            DIVIDE | DOLLAR | DOWN | E | END | ENTER | 
            EQUALS | ESCAPE | EURO_SIGN | EXCLAMATION_MARK | 
            F | F1 | F10 | F11 | F12 | F13 | F14 | F15 | F16 | F17 | 
            F18 | F19 | F2 | F20 | F21 | F22 | F23 | F24 | F3 | F4 | 
            F5 | F6 | F7 | F8 | F9 | FINAL | FIND | FULL_WIDTH | 
            G | GREATER | H | HALF_WIDTH | HELP | HIRAGANA | 
            HOME | I | INPUT_METHOD_ON_OFF | INSERT | 
            INVERTED_EXCLAMATION_MARK | J | JAPANESE_HIRAGANA | 
            JAPANESE_KATAKANA | JAPANESE_ROMAN | K | KANA | 
            KANA_LOCK | KANJI | KATAKANA | KP_DOWN | KP_LEFT | 
            KP_RIGHT | KP_UP | L | LEFT | LEFT_PARENTHESIS | 
            LESS | M | MINUS | MODECHANGE | MULTIPLY | N | 
            NONCONVERT | NUMBER_SIGN | NUMPAD0 | NUMPAD1 | 
            NUMPAD2 | NUMPAD3 | NUMPAD4 | NUMPAD5 | NUMPAD6 | 
            NUMPAD7 | NUMPAD8 | NUMPAD9 | NUM_LOCK | O | 
            OPEN_BRACKET | P | PAGE_DOWN | PAGE_UP | PASTE | 
            PAUSE | PERIOD | PLUS | PREVIOUS_CANDIDATE | 
            PRINTSCREEN | PROPS | Q | QUOTE | QUOTEDBL | R | 
            RIGHT | RIGHT_PARENTHESIS | ROMAN_CHARACTERS | 
            S | SCROLL_LOCK | SEMICOLON | SEPARATER | SLASH | 
            SPACE | STOP | SUBTRACT | T | TAB | U | UNDERSCORE | 
            UNDO | UP | V | W | X | Y | Z)

Reply via email to