phpSyllable icon indicating copy to clipboard operation
phpSyllable copied to clipboard

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

Open manojbetma opened this issue 7 years ago • 4 comments

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 avatar Aug 17 '18 14:08 manojbetma

`<?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); } ?>`

manojbetma avatar Aug 17 '18 14:08 manojbetma

What were the results you expected?

Op vr 17 aug. 2018 16:11 schreef Manoj Prajapat [email protected]:

`<?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 .

vanderlee avatar Aug 17 '18 14:08 vanderlee

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

manojbetma avatar Aug 18 '18 02:08 manojbetma

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.

alexander-nitsche avatar Apr 20 '23 13:04 alexander-nitsche