4 ms·
In emacs counsel-unicode-char brings up a menu where you type to narrow for example entering trademark gives you both the ® and ™ On my phone's keyboard typing
by michaelmrose 5y ago
In emacs counsel-unicode-char brings up a menu where you type to narrow for example entering trademark gives you both the ® and ™
On my phone's keyboard typing the words registered or trademark bring up those options as completions.
Word and libre office have the menu under insert
I actually like the emacs version the best. One could even rig up a deal with emacs client to effectively use it outside of emacs by popping up a floating window then shoving the result into the clipboard.
- zelphirkalt 5y agoAh, cool function that I did not know about before, thank you! Any idea, why it does not list all unicode characters? For example, if I search for what charmap shows me as description of "你", "you, second person pronoun", then the results in Emacs are empty.
- jfk13 5y agoPresumably the lookup is based on Unicode character names. The name of "你" is CJK UNIFIED IDEOGRAPH-4F60. Charmap must be showing you information from some sort of dictionary entry or similar, but that's not part of the identity or name of the Unicode character, any more than the name of the Unicode character U+0049 "I" is "first person singular pronoun" (it's actually named LATIN CAPITAL LETTER I); that's just what it happens to mean in one particular language.
- zelphirkalt 5y agoThat makes sense. A character might mean one thing in one language and another in another language. Even when I enter "4F60" it does not show up. Seems some ranges are missing.
- michaelmrose 5y agoHere is something else neat https://github.com/jeremija/unipicker https://github.com/jeremija/unipicker Can be run with --command="rofi -dmenu" to filter via rofi and piped to xdotool type to insert immediately