+ this.currentFontState.width(currentFontState.mapChar(inwordPunctuation)));
}
}
// are there any hyphenation points
Hyphenation hyph =
Hyphenator.hyphenate(hyphProps.language, hyphProps.country,
wordToHyphenate,
hyphProps.hyphenationRemainCharacterCount,
hyphProps.hyphenationPushCharacterCount);
// no hyphenation points and no inword non letter character
if (hyph == null && preString == null) {
if (remainingString.length() > 0) {
return wordStart - 1;
} else {
return wordStart;
}
// no hyphenation points, but a inword non-letter character
} else if (hyph == null && preString != null) {
remainingString.append(preString);
// is.addMapWord(startChar,remainingString);
this.addWord(startChar, remainingString);
return wordStart + remainingString.length();
// hyphenation points and no inword non-letter character
} else if (hyph != null && preString == null) {
int index = getFinalHyphenationPoint(hyph, remainingWidth);
if (index != -1) {
remainingString.append(hyph.getPreHyphenText(index));
remainingString.append(this.hyphProps.hyphenationChar);
// is.addMapWord(startChar,remainingString);
this.addWord(startChar, remainingString);
return wordStart + remainingString.length() - 1;
}
// hyphenation points and a inword non letter character
} else if (hyph != null && preString != null) {
int index = getFinalHyphenationPoint(hyph, remainingWidth);
if (index != -1) {
remainingString.append(preString.append(hyph.getPreHyphenText(index)));
remainingString.append(this.hyphProps.hyphenationChar);
// is.addMapWord(startChar,remainingString);
this.addWord(startChar, remainingString);
return wordStart + remainingString.length() - 1;
} else {