An Arabic example will show different phenomena:

Keystrokes ARABIC LETTER TEH
ARABIC LETTER TEH ARABIC LIGATURE LAMALIF WITH HAMZA ABOVE
ARABIC LETTER LAM ARABIC LETTER HIGH HAMZA ALEF
Input characters ت
ت
ل
أ ل
أ
Encoded characters (byte values in hex) 062A 062A 0644 0623 0644 0623
Display The displayed output appears, from right to left, as: initial teh glyph attached to a middle teh glyph, two lam-alef ligatures with hamza above.
Example: Arabic
Here the first two keystrokes each produce an input character and an encoded character, but the pair is displayed as a single glyph ('ARABIC LAMALIF HAMZA A', a lam-alef ligature).