Skip to content

[MATLAB] Word hyphenation using Franklin Liang's algorithm. As used in TeX, LaTeX, and other languages.

License

Notifications You must be signed in to change notification settings

DrosteEffect/Hyphenate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hyphenate

Word hyphenation using Franklin Mark Liang's algorithm (aka Knuth-Liang algorithm). As used by Knuth in TeX and LaTeX.

HYPHENATE provides a function to hyphenate words. HYPHENATE takes the word, and returns the parts that can be separated by hyphens.

Examples

>> hyphenate("hyphenation")
ans =
    "hy"    "phen"    "a"    "tion"

>> hyphenate('supercalifragilisticexpialidocious')
ans =
    'su'    'per'    'cal'    'ifrag'    'ilis'    'tic'    'ex'    'pi'    'ali'    'do'    'cious'

>> hyphenate('project')
ans =
    'project'

About

[MATLAB] Word hyphenation using Franklin Liang's algorithm. As used in TeX, LaTeX, and other languages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages