{"id":90,"date":"2014-09-21T00:00:50","date_gmt":"2014-09-20T22:00:50","guid":{"rendered":"http:\/\/kurt.www.pinboard.jp\/blog\/?p=90"},"modified":"2014-09-06T14:51:05","modified_gmt":"2014-09-06T12:51:05","slug":"unicode-characters","status":"publish","type":"post","link":"http:\/\/kurt.www.pinboard.jp\/blog\/kurt\/90\/","title":{"rendered":"Unicode characters"},"content":{"rendered":"<p>There are thousands and thousands of characters in <a href=\"http:\/\/unicode-table.com\/en\/\" target=\"_bank\">unicode<\/a>. There are also lots of symbols and pictographs which can be useful even if you don&#8217;t write in a foreign language.<!--more--><\/p>\n<p>When I create some lists, I very much like to use checkboxes:<\/p>\n<table style=\"background-color: #eeeeff;\">\n<tbody valign=\"top\">\n<tr>\n<td>\u2714 setup a blog<br \/>\n\u2718 configure the blog to be multi-tenant<br \/>\no add content to the blog<br \/>\n<span style=\"font-size: large;\">\u2610<\/span> todo item<br \/>\n<span style=\"font-size: large;\">\u2611<\/span> done item<br \/>\n<span style=\"font-size: large;\">\u2612<\/span> will not do item<\/p>\n<p>Because we had <span style=\"font-size: large;\">\u26c8<\/span> here, we went by <span style=\"font-size: large;\">\u2708<\/span> to some place with lots of <span style=\"font-size: large;\">\u2600<\/span> where we wouldn&#8217;t need a <span style=\"font-size: large;\">\u2602<\/span>. So we&#8217;re now under a <span style=\"font-size: large;\">\u26f1 \u270d<\/span> this card to you.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>These special characters usually can not be inserted directly from your keyboard. To add them in your text, press <span style=\"color: green;\">CTRL-vu<\/span> followed by the four digit hexcode of the unicode character.<\/p>\n<ul>\n<li>\u2714 is hex code 2714<\/li>\n<li>\u2718 is hex code 2718<\/li>\n<li><span style=\"font-size: large;\">\u2610<\/span> is hex code 2610<\/li>\n<li><span style=\"font-size: large;\">\u2611<\/span> is hex code 2611<\/li>\n<li><span style=\"font-size: large;\">\u2612<\/span> is hex code 2612<\/li>\n<\/ul>\n<p>There are unicode characters which a hex code longer than 4 digits. In my version of vim, I can enter them with <span style=\"color: green;\">CTRL-vU<\/span> (capital U) followed by the hex code. in this case, the hex code can be as long or as short as it needs to be. To signify the end of the hex code, something must be typed which is not a valid hexadeciman digit (for example &lt;SPACE&gt; or &lt;RETURN&gt;).<\/p>\n<p>If you have a character in a text of which you would like to know the hexcode, this is easy to find out with vim. Place the cursor on the character and in command mode type <span style=\"color: green;\">ga<\/span>. Vim will show you the character, its decimal, hexadecimal and octal code in the status line.<\/p>\n<table>\n<tbody valign=\"top\">\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">CTRL-vu &lt;4-digit hex code&gt;<\/td>\n<td>(in insert mode) insert the character with the specified hex code<\/td>\n<\/tr>\n<tr>\n<td style=\"color: green;\">CTRL-vU &lt;hex code&gt;&lt;non-hex-digit&gt;<\/td>\n<td>(in insert mode) insert the character with the specified hex code (and the non-hex-digit character)<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color: lightyellow; color: green;\">ga<\/td>\n<td>show the decimal, hexadecimal and octal value of the character under the cursor<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>There are thousands and thousands of characters in unicode. There are also lots of symbols and pictographs which can be useful even if you don&#8217;t write in a foreign language.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[17],"_links":{"self":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/90"}],"collection":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":22,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":125,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions\/125"}],"wp:attachment":[{"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kurt.www.pinboard.jp\/blog\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}