Line Break for East Asian People
npm install asianbreak> Line Break for East Asian People
[travis-image]: https://travis-ci.org/hakatashi/AsianBreak.svg?branch=master
[travis-url]: https://travis-ci.org/hakatashi/AsianBreak
[coveralls-image]: https://coveralls.io/repos/github/hakatashi/AsianBreak/badge.svg?branch=master
[coveralls-url]: https://coveralls.io/github/hakatashi/AsianBreak?branch=master
[gemnasium-image]: https://gemnasium.com/hakatashi/AsianBreak.svg
[gemnasium-url]: https://gemnasium.com/hakatashi/AsianBreak
[npm-image]: https://img.shields.io/npm/v/asianbreak.svg
[nodeico-image]: https://nodei.co/npm/asianbreak.png?downloads=true
[npm-url]: http://npmjs.com/package/asianbreak
[license-image]: https://img.shields.io/npm/l/asianbreak.svg
[![npm status][nodeico-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![Dependency Status][gemnasium-image]][gemnasium-url]
[![npm version][npm-image]][npm-url]
[![LICENSE][license-image]][npm-url]

``js
const asianbreak = require('asianbreak');
asianbreak(
そのとき汽車はだんだん川からはなれて崖の上を通るようになりました。
向う岸もまた黒いいろの崖が川の岸を下流に下るにしたがってだんだん高くなって行くのでした。
そしてちらっと大きなとうもろこしの木を見ました。
その葉はぐるぐるに縮れ葉の下にはもう美しい緑いろの大きな苞が赤い毛を吐いて
真珠のような実もちらっと見えたのでした。
);`
This module exposes single asianbreak(texts[, options]) function.
* Type: String[] | String
An array of string which supporse to constitute
Inline Formatting Context of CSS2.1.
For this example:
`html`
日本語は、
を使用する。
only
creates inline formatting context and
`js`
const texts = ['\n 日本語は、\n ', '', '漢', '', '字', '', '', '\n を使用する。\n'];
then you'll get:
`js`
const result = asianbreak(texts);
console.log(result); // ['\n 日本語は、', '', '漢', '', '字', '', '', 'を使用する。\n'];
If you restored it to original HTML, it should be:
`html``
日本語は、
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.
* Type: Object
Unimplemented