This part of code seems a duplicate of that in `jspinyin.js`.
But should be fine if we're going to refine the testing with our unit test framework.