Autokey Unicode characters
Usage
This script adds all the unicode character abbreviations supported by Julia to autokey. However, instead of [TAB]
, they are triggered on [SPACE]
. If you do not want perform the replacement, simply hit [BACKSPACE]
afterwards.
Installation & Requirements
- Install autokey. Only works on X11, no Wayland support.
- Execute
generate_phrases.py
(requires python ≥3.7) - Restart autokey
Features
For overview see Supported Alphabets
Advantages of Unicode
- Work even when MathJax / LaTeX is not available.
- Is character efficient.
- Increases readability of uncompiled documents.
- Copy-paste persistance.
Compatibility with MathJax & LaTeX
- MathJax supports unicode characters:
$\sin(\theta)$
and$\sin(θ)$
should look exactly the same. - LaTeX has unicode compatibility, at least in math-mode when using the unicode-math package and compiling with LuaLaTeX
Known Issues & Limitations
- So far was only tested with Ubuntu 20.04 LTS and Autokey 0.95.10
- Seems to behave weird with Gnome Terminal, no idea what's going on.
- Can show strange behaviour with VSCode.
- Seems to be fixable by deleting all
[shift]+[insert]
hotkeys combinations. (File > Preferences > Keyboard Shortcuts
) - Our macros here insert symbols with
[shift]+[insert]
and VScode seems to mess with that
- Seems to be fixable by deleting all
- Composed characters seem to not always work as intended, not many editors render them correctly.
- Doesn't support multiple sub/super-scripts like Julia does (e.g. in REPL,
a\^(k)+[TAB]
) gives a⁽ᵏ⁾. With AutoKey we need to add the superscripts one at a time. - Seems like it doesnt work with a German keyboard because AutoKey interprets
\
and[AltGr]+?
(what you type on a German keyboard to get backslash) as different things.
Supported Alphabets
Serif Font
family | bf |
it |
bi |
---|---|---|---|
latin | 𝐚𝐛𝐜𝐀𝐁𝐂 | 𝑎𝑏𝑐𝐴𝐵𝐶 | 𝒂𝒃𝒄𝑨𝑩𝑪 |
greek | 𝛂𝛃𝛄𝚨𝚩𝚪 | 𝛼𝛽𝛾𝛢𝛣𝛤 | 𝜶𝜷𝜸𝜜𝜝𝜞 |
letter |
Sans Serif Font
family | sans |
bsans |
isans |
bisans |
---|---|---|---|---|
latin | 𝖺𝖻𝖼𝖠𝖡𝖢 | 𝗮𝗯𝗰𝗔𝗕𝗖 | 𝘢𝘣𝘤𝘈𝘉𝘊 | 𝙖𝙗𝙘𝘼𝘽𝘾 |
greek | ??𝝱𝝲𝝖𝝗𝝘 | 𝞪𝞫𝞬𝞐𝞑𝞒 | ||
letter | 𝟢𝟣𝟤 | 𝟬𝟭𝟮 |
Speciality Font
family | tt |
bb |
frak |
bfrak |
scr |
bscr |
---|---|---|---|---|---|---|
latin | 𝚊𝚋𝚌𝙰𝙱𝙲 | 𝕒𝕓𝕔𝔸𝔹ℂ | 𝔞𝔟𝔠𝔄𝔅ℭ | 𝖆𝖇𝖈𝕬𝕭𝕮 | 𝒶𝒷𝒸𝒜ℬ𝒞 | 𝓪𝓫𝓬𝓐𝓑𝓒 |
greek | ||||||
letter | 𝟶𝟷𝟸 | 𝟘𝟙𝟚 |