d3plus / d3plus-text

A smart SVG text box with line wrapping and automatic font size scaling.
MIT License
105 stars 19 forks source link

Japanese chars should be treated just like Chinese. #97

Closed t-ohtsuki-cognitee closed 6 years ago

t-ohtsuki-cognitee commented 6 years ago

As stated in issue #96 , Japanese should be regarded as a "no space language", and separate treatment from Chinese language is unnecessary.

Description

Concatenated japaneseRange var into noSpaceRange and removed test for !japaneseChars.test(d). Fortunately, since Japanese shares separation characters with Chinese, there was apparently no need to augment splitChars.

Also added a minimal test following Chinese, Lao, Burmese examples.

Types of changes

Checklist