Hacker News new | past | comments | ask | show | jobs | submit login

On Linux/xorg I use the qwerty international layout and a dead compose key for the rarely used symbols.

Example: é is "altgr+e", ç is "altgr+", while Ω is "right-ctrl, shift+w" and ⁶ is "right-ctrl,^,6" etc.

You can do it all with the compose key. But for typing in french I find altgr+e to be faster than "rightctrl,',e".




The difference is if you don’t use these characters a lot, compose+accent, letter is a lot easier to remember than altgr+random key.

Especially when it’s not printed on your keyboard.


I was trying to make a grave accent, opposite direction to an acute, on Win10 - everything I tried seemed to make acute accents ... how do I, please?


Windows uses what they call "alt codes," where you hold down the alt key and type a numerical code on your numeric keypad. You can find them with a search: here's one site:

https://sites.psu.edu/symbolcodes/windows/codealt/

Note that you can't just do an accent and apply it to any character (like compose). You have to put in the code for the accented character.


Yes, I thought there had to be a grave accent method like altgr+e makes é, say altgr+ee makes è (it's easy on a touchscreen phone keyboard!).


If you have a 105 key (EU, tall return) layout, consider changing to a layout with the ` as dead key. For example, the Irish layout is pretty much just the UK layout with dead key functionality + euro sign. `e will then type è while AltGr+e will type é.

If you have a 104 key (US, wide return) keyboard layout, you can try the US international layout. In that case, shift-~ will get you ` and you can use the same compose rules as above.


nowadays the easiest way is to google the character by its name and add "unicode", then copy-paste, unless you do it a lot.

e.g. "a acute unicode" yields https://www.compart.com/en/unicode/U+00E1


That's not really easy...


Never said it’s easy ;) just the easiest…


Depending on your layout (I guess?) it's more easier to just type ´ (or any other dead key) and then the letter you want. éêè ...


Assuming US keyboard, you can use US International as a secondary layout. That would make typing “single quote” then the letter an acute accented letter.

So ‘ then a would become á


That's an acute, I want the accent the other way - and I know I could learn the alt-code but it's crazy if there isn't an easier way using the keyboard alone.

Why isn't it altgr+(letter) and repeated presses like holding down the letter on an Android mobile phone touch keyboard?


For Ω and other rarely used symbols, I just type: <Ctrl>+<Shift>+U 2126 <Space>.

Works like a charm in pretty much any program and keyboard layout.

For the more common acute/grave/.. letters, I use

  setxkbmap -layout latin,<local layout> -variant ,qwerty -option grp:switch,grp:alt_shift_toggle
Then I can use the nice us keyboard without dead keys for programming and access the local layout by holding <AltGr> (right alt) for local characters (usually via localized dead keys).




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: