AsianBreak
Line Break for East Asian People
const asianbreak = ; ;
API
This module exposes single asianbreak(texts[, options])
function.
texts
- Type: String[] | String
An array of string which supporse to constitute Inline Formatting Context of CSS2.1.
For this example:
日本語は、 漢字(かんじ) を使用する。
only <p>
creates inline formatting context and <rp>
and <rt>
is supporsed to be removed
from inline context tree (in modern browsers), and texts
should be:
const texts = '\n 日本語は、\n ' '' '漢' '' '字' '' '' '\n を使用する。\n';
then you'll get:
const result = ;console; // ['\n 日本語は、', '', '漢', '', '字', '', '', 'を使用する。\n'];
If you restored it to original HTML, it should be:
日本語は、漢字(かんじ)を使用する。
How great deed is this!
If a string is supplied, it assume that context is constituted by single segment, and returns transformed segment as string.
options
- Type: Object
Unimplemented