File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,19 +92,23 @@ <h1>Universal Default Justification Experiment</h1>
9292 if ( c . textContent . match ( charCats [ 'space' ] ) ) {
9393 c . setAttribute ( 'class' , 'space' ) ;
9494 numSpaces ++ ;
95- if ( n && n . textContent . match ( charCats [ 'han' ] ) ||
95+ if ( n &&
96+ n . textContent . match ( charCats [ 'han' ] ) ||
97+ n . textContent . match ( charCats [ 'kana' ] ) ||
9698 ( n . textContent . match ( charCats [ 'hangul' ] ) && ! splitHangul ) ) {
9799 numCJK ++ ;
98100 }
99101 }
100102 else {
101103 if ( ! n ) break ; // no space after last char
102104 if ( c . textContent . match ( charCats [ 'han' ] ) ||
105+ c . textContent . match ( charCats [ 'kana' ] ) ||
103106 ( c . textContent . match ( charCats [ 'hangul' ] ) && ! splitHangul ) ) {
104107 c . setAttribute ( 'class' , 'cjk' ) ;
105108 numCJK ++ ;
106109 }
107110 else if ( n . textContent . match ( charCats [ 'han' ] ) ||
111+ n . textContent . match ( charCats [ 'kana' ] ) ||
108112 ( n . textContent . match ( charCats [ 'hangul' ] ) && ! splitHangul ) ) {
109113 numCJK ++ ;
110114 }
You can’t perform that action at this time.
0 commit comments