8000 GitHub - sters/mikan.php: Resolve method of Japanese line break problem.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Resolve method of Japanese line break problem.

License

Notifications You must be signed in to change notification settings

sters/mikan.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mikan.php

CircleCI Packagist

Resolve method of Japanese line break problem.

Transform from: Mikan.js - 機械学習を用いていない日本語改行問題へのソリューション

Usage

$mikan = new Mikan();
$result = $mikan->split('常に最新、最高のモバイル。Androidを開発した同じチームから。');

var_dump($result);
----
array(8) {
  [0]=>
  string(6) "常に"
  [1]=>
  string(9) "最新、"
  [2]=>
  string(9) "最高の"
  [3]=>
  string(15) "モバイル。"
  [4]=>
  string(10) "Androidを"
  [5]=>
  string(12) "開発した"
  [6]=>
  string(6) "同じ"
  [7]=>
  string(18) "チームから。"
}

This library will only splitting text, you need to make presentation logic yourself. How about css styling, see transform from codes.
Mikan.js - 機械学習を用いていない日本語改行問題へのソリューション

About

Resolve method of Japanese line break problem.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

0