Skip to content

A rubygem that automatically add sapce(U+0020) between CJK and other unicode code points, for better reading experience, with Markdown syntax concerned.

Notifications You must be signed in to change notification settings

openSUSE-zh/rubygem-cjk_auto_space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubygem-cjk_auto_space

A rubygem that automatically add sapce(U+0020) between CJK and other unicode code points, for better reading experience, with Markdown syntax concerned.

Usage

"你好world哈哈".cjk_auto_space // => "你好 world 哈哈"

Benchmark

titles.txt

ruby benchmark_cjk_auto_space.rb 
                   user     system      total        real
autocorrect-rb  0.065535   0.019145   0.084680 (  0.085009)
cjk_auto_space  0.008270   0.004089   0.012359 (  0.012361)

posts.txt

ruby benchmark_cjk_auto_space.rb 
                   user     system      total        real
autocorrect-rb 11.361764   0.012041  11.373805 ( 11.379011)
cjk_auto_space  9.522672   0.260081   9.782753 (  9.785318)

About

A rubygem that automatically add sapce(U+0020) between CJK and other unicode code points, for better reading experience, with Markdown syntax concerned.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published