This is a very basic wrapper for the phpHyphenator library. It is based on the JavaScript Hyphenator by Mathias Nater.
Requirements ¶
Only tested with Yii 1.1.12, but should work with previous versions as well.
You must download the phpHyphenator archive from the project page and unzip it inside the extension directory.
Usage ¶
$hyphen = Yii::createComponent('application.extensions.eHyphen.EHyphen');
$article = $hyphen->hyphenation($article);
You can also set a custom language and hyphenation patterns path. Default to current language and patterns subdirectory of the phpHyphenator library.
$hyphen = Yii::createComponent('application.extensions.eHyphen.EHyphen', 'en', '/path/to/patterns/');
$article = $hyphen->hyphenation($article);
User Contributed Notes
Leave a comment
If you have any questions, please ask in the forum instead.
Join the conversation to share a note.