4 ms·
As a web dev with a secret love for typography, I use these all the time in similar situations e.g. the hair space around em-dashes. I'm also trying, where poss
by oneeyedpigeon 11y ago
As a web dev with a secret love for typography, I use these all the time in similar situations e.g. the hair space around em-dashes. I'm also trying, where possible, to ensure our CMS auto-corrects just for things like em-dashes in the first place; our writers find it difficult to use all the typographically correct punctuation, particularly when keyboard support is fairly weak.
On that issue (sort of), which text editor is best for supporting this kind of thing? Ideally, I want something that a) makes it easy to insert Unicode characters e.g. based on a name lookup b) more clearly identifies the exact Unicode character my cursor is on. It would be useful if, in both cases, common punctuation (these spaces, dashes, quotes) were flagged particularly 'well', but a general solution would be a good start.
- noir_lord 11y agoOne approach that I've used in intellij when writing HTML templates is to use the live templates to replace a string with the right html entity. So I can do thinsp<tab> and it'll replace with Lots of editors support something like live templates so that would be one solution (if you are writing the HTML directly).
- molteanu 11y agoEmacs has the interactive built-in function insert-char (C-x 8 RET). You are prompted for the hex value or the Unicode name. It has autocompletion via the TAB key, so you can easily navigate through the Unicode names. Use describe-char to get info about the character you are currently on. See also Xah's page: http://ergoemacs.org/emacs/emacs_n_unicode.html http://ergoemacs.org/emacs/emacs_n_unicode.html