Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
manojbetma opened this issue Aug 17, 2018 · 4 comments
Open

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

manojbetma opened this issue Aug 17, 2018 · 4 comments

Comments

@manojbetma
Copy link

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
Copy link
Author

`<?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
Copy link
Owner

vanderlee commented Aug 17, 2018 via email

@manojbetma
Copy link
Author

manojbetma commented Aug 18, 2018

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@vanderlee @manojbetma @alexander-nitsche and others