Opened 7 years ago

Last modified 7 years ago

#79 closed defect

Dead keys produce diacritic character output (diacritic+combined characters, instead of combined only) in PM version — at Version 5

Reported by: Alfredo Fernández Díaz Owned by:
Priority: major Milestone: Release_1.1
Component: eFTEPM Version: Release_1.0
Keywords: PM dead key input unwanted double character Cc: Alfredo Fernández Díaz

Description (last modified by Alfredo Fernández Díaz)

Background: in most languages, accented/combined/composite characters are typed in by pressing a sequence of two keys: a "dead" key for the diacritic, followed by a "normal" key for the base character, f.e. I should press ´ + a to get á.

This works as expected in VIO eFTE2, but in PM eFTE2 two characters are produced: "´á", "¨ö", etc. (I kind of understand this, because getting keyboard input is totally different in PM and VIO.)

FTEPM/2006 has the same problem.

I suspect PM actually produces two characters for these combinations, somehow marking the first one for replacement, and it is up to the application to handle it: both system E and Aaron Lawrence's AE show the diacritic character *after* the cursor when a dead key is pressed, and when a normal key is pressed, the accent character is replaced and the cursor position is moved after the combined character as normal.

Example: I press "dead" "^" and I see "^", then I press "A", and "^" is replaced with "Â" and cursor is moved.

EPM does not ever show the accent character nor moves the cursor, it only shows the final combined character after the normal key is pressed.

Change History (12)

comment:1 by Alfredo Fernández Díaz, 7 years ago

Cc: Alfredo Fernández Díaz added

comment:2 by Gregg Young, 7 years ago

This must be code page, language and/or country specific or I don't understand what you mean. This doesn't work in anything here.

comment:3 by Alfredo Fernández Díaz, 7 years ago

I take it you have never had to type a composite character like "á", then? You have to press a sequence of two keys to get it.

I am attaching some captures of PM editors output after key 1 and key 2 are pressed, in case that clarifies the problem:
-E/AE: weird thing displaying ´ and not moving the cursor, but all is well that ends well.
-EPM: output only after key 2; everything is correct.
-eFTEPM: WRONG.

by Alfredo Fernández Díaz, 7 years ago

Attachment: e_key1.png added

E/AE output after first key, "dead" ´, is pressed.

by Alfredo Fernández Díaz, 7 years ago

Attachment: e_key2.png added

E/AE output after second key, normal "a", is pressed.

by Alfredo Fernández Díaz, 7 years ago

Attachment: epm_key2.png added

EPM only diplays the combined character "á" after the key sequence is completed.

by Alfredo Fernández Díaz, 7 years ago

Attachment: epm_info.png added

EPM will tell you that in CP850, "á" has ASCII code 160

by Alfredo Fernández Díaz, 7 years ago

Attachment: eftepm_key1.png added

eFTEPM: first key ("dead" ' ), first output character ´. Cursor moves like we're done.

by Alfredo Fernández Díaz, 7 years ago

Attachment: eftepm_key2.png added

eFTEPM: second key (normal "a" ), second output character "á", "first character" is kept. WRONG.

by Alfredo Fernández Díaz, 7 years ago

Attachment: eftepm_key2.2.png added

eFTEPM: second key (normal "a" ), second output character "á", "first character" (unsolicited) is kept. WRONG.

comment:4 by Alfredo Fernández Díaz, 7 years ago

I sent the last capture twice because of connection hiccups. Please pay no heed.

comment:5 by Alfredo Fernández Díaz, 7 years ago

Description: modified (diff)
Summary: Dead keys input produces additional, unwanted characters in PM versionDead keys produce diacritic character output (diacritic+combined characters, instead of combined only) in PM version

Tried to make the description and summary clearer.

Note: See TracTickets for help on using tickets.