1 var jpntext = (function() {
10 kind: function(text) {
12 if (global.isAscii(text)) {
15 else if (global.isHiragana(text)) {
18 else if (global.isKatakana(text)) {
21 else if (global.isKanji(text)) {
27 return global.KIND[result];
29 isAscii: function(text) {
30 var re = /^[\u0000-\u00ff]+$/;
33 isKanji: function(text) {
34 var re = /^([\u4e00-\u9fcf]|[\u3400-\u4dbf]|[\u20000-\u2a6df]|[\uf900-\ufadf])+$/;
37 isHiragana: function(text) {
38 var re = /^[\u3040-\u309f]+$/;
41 isKatakana: function(text) {
42 var re = /^[\u30a0-\u30ff]+$/;