Hyphenate

Versión 2.0.5 (34.8 KB) por Stephen23
Word hyphenation using Franklin Mark Liang's algorithm (aka Knuth-Liang algorithm). Used in TeX and LaTeX
74 descargas
Actualizado 13 Jan 2024
Word hyphenation using Franklin Mark Liang's algorithm (aka Knuth-Liang algorithm). As used by Knuth in TeX and LaTeX, and ported to many other languages. 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'
Note
I just ported this algorithm to MATLAB, but am not responsible for it deciding where it splits words.
Note that the Liang algorithm does not provide all possible hyphenation points for all words. The algorithm provides most correct hyphenation points without providing any incorrect ones, i.e. HYPHENATE returns a subset of the correct hyphenation points.

Citar como

Stephen23 (2024). Hyphenate (https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.5), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Fractals en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
2.0.5

See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.5

2.0.4.0

See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.4

2.0.3

See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.3

2.0.2

See release notes for this release on GitHub: https://github.com/DrosteEffect/Hyphenate/releases/tag/v2.0.2

2.0.0

* Now accepts the word as a scalar string (and returns a string array).
* Add error IDs.

1.1.0

* Add Barbara Beeton's exceptions.

1.0.0.0

* Fixed tags

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.