P? 18. feb. 2005 kl. 16.58 skrev Hussein Shafie:

> I think the "'Alt-(' which should give '['" problem is fixed now.

Thanks a lot - your updated xxe.jar fixed the Alt key (and also 
Shift-Alt key) problem!

> ---------------------------------------------------------
> 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).

I assume there is a similar reason why Unicode combining chars also 
behave erroneous? Test (still on the Mac):

Select one of the Unicode key layouts (North S?mi, Norwegian Extended, 
USA Extended), and type the following: 'c' followed by 'Shift-Alt-c'. 
While Alt-c gives the dead key cedilla (which can combine with a c as 
the next input char to give ?) in standard MacOS/Cocoa/Carbon apps, 
Shift-Alt-c gives the combining diacritic that combines with the 
preceeding char to produce a new char (which may or may not be an 
existing precomposed char in Unicode).

If you do the above in the styled view in XXE, the normal dead key will 
give you nothing (as explained in the previous mail), while the 
combining diacritic will give you a square, and make the cursor be 
badly disaligned.

Thanks a lot again for the quick turnaround! Looking forward to see 
your fix included in the regular download:-)

Regards,
Sjur


Reply via email to