Sjur N?rsteb? Moshagen wrote:
> On
> <http://www.xmlmind.com/xmleditor/known_problems.html#problems_on_mac>
> you write:
>
>> Problem: Non US keyboards only: dead keys don't work. For example,
>> with a French keyboard, typing "^" (dead circumflex) followed by "o"
>> should give "?". In fact, it gives "o".
>>
>> Workaround: None.
>
>
> Although it would be nice to have this fixed, what is worse is that it
> is not possible to use Alt-key combinations to write.
>
> Example:
>
> 1) Select the Norwegian keyboard layout
> 2) Click somewhere in the styled view
> 3) try to type Alt-( - it should give [, but returns nothing
>
> It DOES work when typing in the attribute value field in the attribute
> pane. Even dead keys work there. As this proves that it is possible to
> write using dead keys and Alt keys in XMLEditor, although not in the
> main text area, I would very much ask you to solve this problem. The
> combination of the two bugs makes it very cumbersome to write
> non-english or multilingual documents, even just technical English
> documents.
>
> Configuration:
>
> XXE 2.8p1
> MacOS 10.3.8 (latest version)
> Java 1.4.2_05 (latest version)
David Mundie wrote:
> I second this request. I'd hesitate to do so, except I can't believe there's
> much effort involved, since other Java-based XML editors on the Mac do it
> right, and apparently XMLEditor does it also in certain contexts.
I think the "'Alt-(' which should give '['" problem is fixed now.
If you want, you can download right now the xxe.jar which fixes this
problem from:
---
http://www.xmlmind.com/xmleditor/_download/xxe.jar
2005-02-18 15:29 1861515bytes
---
Note that this xxe.jar is for *V2.9* *Standard Edition*.
To install it on the Mac, replace xxe.jar found in distribution
directory by the above xxe.jar
XXE distribution directory is found *inside the application bundle*.
Using the Finder, Ctrl-click or right-click on the XMLEditor icon and
then choose "Show Package Contents" from the pop-menu in order to open
the application bundle.
If XXE is installed in /Applications/, XXE distribution directory is
/Applications/XMLEditor.app/Contents/Resources/Java/.
---------------------------------------------------------
PS: The "'Alt-(' which should give '['" problem is very different from
the dead key problem. The former was easy the solve. The latter is not.
The document views in XXE are custom components and not javax.swing.text
components.
That's why things that works in the text fields of the attribute pane
(javax.swing.JTextField) may not work in the document view
(com.xmlmind.xmleditor.view.DocumentPane).
Now the question is: why everything works fine in javax.swing.JTextField
and not in com.xmlmind.xmleditor.view.DocumentPane?
Answer: supporting dead keys on the Mac requires a Java Component to be
an InputMethod ``active'' client.
All Swing text components are InputMethod ``active'' clients.
com.xmlmind.xmleditor.view.DocumentPane is not.
Being an InputMethod ``active'' client for the sole purpose of
supporting dead keys is considered to be overkill by XMLmind. That's why
we have filed a bug report to Apple (with no answer).
Try jEdit on the Mac and you'll see that jEdit behaves exactly like XXE
for example when you type Alt-N (which is supposed to give dead tilde:
'~') or '^' and then 'o'. And this, for exactly the same reasons: like
XXE, jEdit is not javax.swing.text-based.