Hi, I’m Rikito Taniguchi. Master’s student of Computer Science at Tokyo Institute of Technology. You’ll find me working on developer tooling especially in Scala, studying programming language theory, or Web development.

Count unicode characters in JavaScript

There are several ways to count strings in JS in Unicode Code Point units instead of 16-bit units, but in the end, I wonder which method works in most environments (including legacy browsers like IE11) as of May 2017. I’ve done some research, and I’ll summarize it for you. Unicode Code Points In Unicode, all characters are assigned an ID (code point) (0 to 0x10FFFF). The code point is written as U+hexdecimal....

Rikito Taniguchi

IME event handling in JavaScript cross-browser (2017)

In 2017, when CompositionEvent is supported by many major browsers, I thought it would be easy to implement a small input completion function that supports Japanese input in JavaScript. However, the details of the implementation differed depending on the browser, and I had to do a little workaround. Test environment Windows 10 / Microsoft Edge 41.16299.150 Windows10 / InternetExplorer11 version: 11.64.16299.0 macOS Sierra 10.12.6 / Google Chrome version: 63.0.3239.84 macOS Sierra 10....

Rikito Taniguchi