Cannot write character è

0

0

I have an English version of Windows 10 operating system with Hungarian keyboard. The general use of non-Hungarian Latin special characters (and I guess this is the same of all the Latin keyboards) is the following: first the accent should be written, and then the base character should be pressed. For example, accent ˇ exists on my keyboard on key 2 with AltGr, so the Slavic č letter can be written as follows: AltGr+2, then release, and then press C. (When I want just the accent, I simply press space after the accent.) This works also with some other accents.

The problem is that it does not work with the following two special accents:

  • ~ (AltGr+1), so I cannot write for example the Spanish letter ñ
  • ` (AltGr+7), so I cannot write for example the French letter è (not to mixed up with é, which is a native character on my keyboard)

On my previous laptop it worked. Being relatively frequent characters, I guess there must be a setting which tells if these should be primarily treated as accents or direct characters, and I guess that just the default has been changed. Does anyone has any idea about how to set up or how to overcome the problem?

Csaba Faragó

Posted 2019-05-24T20:49:23.660

Reputation: 1

Answers

0

Here are two work-arounds:

  • Press Windows, type char and select *Character Map'. Use that application to enter any character in any font on your PC, copied into the clipboard.
  • N.B., note the keystroke shown at bottom of dialog, e.g. Alt+0241 for tilde-n, ñ.
  • In most windows applications, you can insert that character by pressing and holding Altand typing 0241 using the numeric keypad (not the numner keys above the letters).

Character Map

Admittedly, this is not as convenient as using a dead key combination, such as Ctrl~n, which serves as a mnemonic instead of enigmatic `02411 for the ANSI value.

DrMoishe Pippik

Posted 2019-05-24T20:49:23.660

Reputation: 13 291

Thanks for answering! It is interesting what you wrote, but indeed did not answer my question (why ˇ or ´ works differently than ~ or `).Regarding to the certain example: for the letter ñ I have no keystroke, and at me the Alt + 0241 is ń, and not ñ. – Csaba Faragó – 2019-05-25T19:36:50.200

0

The reason this is not working for you is because the keyboard layout you have selected does not support it.

In order to make your keyboard support it, plus most language characters, change (or add) English -> United States International as a keyboard layout. This way, all the keys you say work, and others too.

For example AltGr + 5 = €, AltGr + c = ©, AltGr + l = ø, AltGr+w = å and of course ' + c = ç and ~+n = ñ.

LPChip

Posted 2019-05-24T20:49:23.660

Reputation: 42 190

Thanks for your suggestion. Indeed, I have US keyboard layout as well (and I could install Spanish or French, of course); indeed my real question is why accents ˇ and ´ work different than ` and ~. – Csaba Faragó – 2019-05-25T19:44:25.467

A keyboard layout simply defines what characters are present for a keyboard. Even though you may be able to type them, the keyboard layout is a driver that converts the keystrokes into actual keypresses, and AltGr and combining chars to form another is handled by the keyboard driver. So if your layout does not offer this, it simply doesn't work or works differently. – LPChip – 2019-05-25T22:23:55.007

0

Install AutoHotKey and put the desired characters to letters still unused with AltGr key.

<^>!e::è    ; AltGr + e produces è
<^>!e::ñ    ; AltGr + r produces ñ

This way, you can type them in similar way as you type [ or {. I am doing this and it works nicely.

UPDATE:

If you do not want to occupy limited slots of your AltGr shortcut space, consider this alternative which has almost unlimited namespace:

:*:§e\::è    ; typing §e\ e produces è
:*:§n~::ñ    ; typing §n~ e produces ñ

This is especially considerable of the Hungarian keyboard. I tested it on my Slovak keyboard which is very similar and it works nicely. Let me explain the sequence, which is easy to remember:

  • it starts with § what means we want to type a special character
  • second character is the base character we want to type (e or n)
  • third character indicates character modifier (\for ˋ, ~ for ˜, v for ˇ ...you get the idea) so č will be §cv

Based on the above schematics you can define many characters you need.

miroxlav

Posted 2019-05-24T20:49:23.660

Reputation: 9 376

I believe your keyboard layout actually has to have the keys in order for this to work, because it will have to "type" the key, so I don't think this will work for him, but I could be mistaken. – LPChip – 2019-05-24T21:25:25.563

@LPChip – I have Slovak keyboard layout which is very similar to Hungarian in many aspects and I am successfully using this. I checked Hungarian layout for unoccupied AltGr combinations before suggesting them above. So I think it will work. – miroxlav – 2019-05-24T21:27:19.200

ah ok. :) good to hear this workaround works then. – LPChip – 2019-05-24T21:30:51.933

Thanks for suggesting. I'll use it when I needed these characters intensively; now I am just curious why accents ˇ or ´ work different than ~ or `. – Csaba Faragó – 2019-05-25T19:42:19.380

@CsabaFaragó – in which program are you attempting to write that character? – miroxlav – 2019-05-27T19:07:07.527

Any, e.g. Notepad++, Word, Excel or any browser. The same should work everywhere. – Csaba Faragó – 2019-05-29T04:43:36.620

@CsabaFaragó – that is not quite true. In Notepad++, they will work only with file encoding set to UTF-8 or others which can accomodate more than 256 -character table. They will not work with those 8-bit encodings character tables of which do not contain these characters, but in that case typed character will be translated into another character. – miroxlav – 2019-05-29T06:10:18.903

@miroxlav Yes, that's true. I presumed that the encoding allows that character. So even if I can write è in whatever other manner (e.g. copy-paste, using its Alt code, select it from table, assign a hotkey, whatever else), so I have in my character table, I cannot do it with AltGr + 7 and then e, which simply works with š, ć, ë etc. – Csaba Faragó – 2019-05-30T07:13:37.707

Btw. the Alt code of è should be 0232 according to https://www.alt-codes.net/, but I get č. The nearby Alt codes work well, e.g. 0231 for ç and 0233 for é. So there is something really strange in my settings.

– Csaba Faragó – 2019-05-30T07:18:18.517

@CsabaFaragó – try the codes without leading zero. Also, you can solve this for once by additional macros in the AHK. I'll update the answer. – miroxlav – 2019-05-30T08:37:03.720

Alt + 232 is Φ. – Csaba Faragó – 2019-05-30T13:54:16.000

@CsabaFaragó – then just implement the above proposal and your problem is solved. I made about 100 characters available that way for myself. – miroxlav – 2019-05-30T14:51:15.690

@CsabaFaragó – after you consider the answers and you clearly find one as the most helpful, please mark it as accepted to indicate to others what helped you. Also, upvote any quality answers. For more information on both actions, please see the [tour]. – miroxlav – 2019-06-15T21:30:25.510

0

Your confusion seems to be that diacritics are always typed the same way. It's not like that. Different languages type differently, different keyboard layouts type differently

The general use of non-Hungarian Latin special characters (and I guess this is the same of all the Latin keyboards) is the following: first the accent should be written, and then the base character should be pressed.

If the diacritic is typed before the character then it's called a dead key, because in real typewriters that key doesn't move the cursor which means what was typed will be combined with the base letter later. However some languages doesn't use dead keys at all. For example in the standard Vietnamese keyboard layout (which no one uses) all the diacritics are type after the base letter, producing a combining character. Vietnamese people actually use the US layout with an IME and type the diacritic according to some rules after the base letter and the sequence will be transformed to the correct word by the IME

Many other languages' keyboards have specific keys for the accented letters, so they don't use dead keys either. For example French keyboard have a dedicated key for é, è, à... so they just press those keys directly without any ` ́ accents

Some keyboard layouts use the AltGr key to produce accented letters instead. The international US layout uses just AltGr without any dead keys. Some other layouts use both dead keys and AltGr keys

AltGr generally produces the whole key, not dead key, so if ~ and ` are typed by AltGr in your layout then you can't use it to make accented letters. If there are ñ or è in any AltGr combination then you can use it, otherwise you have to use other ways to type those letters

  • One of the ways is to use Alt codes. This is useful if you don't type that character frequently. Just enable hex numpad and press Alt+++code
  • Another way is to create a keyboard layout for your own using Microsoft Keyboard Layout Creator. This way you can also remove unused keys or reorder keys to make typing more efficient. For example you can load the Hungarian layout and add dead keys for French/Spanish and now you can type multiple languages at once without changing layout. You can use any combination of dead keys and/or AltGr keys to type any Unicode characters

Of course AutoHotkey is also a solution

See also

phuclv

Posted 2019-05-24T20:49:23.660

Reputation: 14 930