vanderlee / phpSyllable

PHP Syllable splitter/counter and Hyphenator for text and HTML. Multi-language, customisable, cached and fast!
http://vanderlee.github.io/phpSyllable/
117 stars 80 forks source link

Not working with : abeyant , abraxas , abraxas , pipeline etc #26

Open manojbetma opened 6 years ago

manojbetma commented 6 years ago

Word => Result

abeyant => abeyant pipeline => pipeline abradant => abradant abraxas => abraxas Beautiful => Beau-ti-ful Engineering => En-gi-neer-ing Doctor => Doc-tor trade => trade business => busi-ness

manojbetma commented 6 years ago

`<?php require_once(dirname(FILE) . '/classes/autoloader.php'); $syllable = new Syllable('en-us'); $syllable->setHyphen(new Syllable_Hyphen_Dash());

$test = array(); $test[] = "abeyant"; $test[] = "abradant"; $test[] = "abraxas"; $test[] ="pipeline"; $test[] ="Beautiful"; $test[] ="Engineering"; $test[] ="Doctor"; $test[] ="trade"; $test[] ="business";

for($i=0;$i<count($test);$i++) { $word = $test[$i]; echo $word." => ".$syllable->hyphenateText($word); }
?>`

vanderlee commented 6 years ago

What were the results you expected?

Op vr 17 aug. 2018 16:11 schreef Manoj Prajapat notifications@github.com:

`<?php require_once(dirname(FILE) . '/classes/autoloader.php'); $syllable = new Syllable('en-us'); $syllable->setHyphen(new Syllable_Hyphen_Dash());

$test = array(); $test[] = "abeyant"; $test[] = "abradant"; $test[] = "abraxas"; $test[] ="pipeline"; $test[] ="Beautiful"; $test[] ="Engineering"; $test[] ="Doctor"; $test[] ="trade"; $test[] ="business";

for($i=0;$i<count($test);$i++) { $word = $test[$i]; echo $word." => ".$syllable->hyphenateText($word); } ?>`

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vanderlee/phpSyllable/issues/26#issuecomment-413878401, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnoGEyIc-nCwXeLHCCGgPKYRdu-IVDgks5uRs79gaJpZM4WBoLw .

manojbetma commented 6 years ago

Thank you for your time. Most results as per expected but not work with few words.

i think it should be = abeyant => a-bey-ant pipeline => pipe-line abradant => a-bra-dant abraxas => a-brax-as

alexander-nitsche commented 1 year ago

Would be interesting if this is due to insufficient tex language files or a bug in \Vanderlee\Syllable\Syllable::parseWord().

If the first, the names of the tex language file authors are mentioned in the file's header.