Open manojbetma opened 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);
}
?>`
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 .
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
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.
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