|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.HyphenationAuto
Hyphenates words automatically accordingly to the language and country. The hyphenator engine was taken from FOP and uses the TEX patterns. If a language is not provided and a TEX pattern for it exists, it can be easily adapted.
| Field Summary | |
protected Hyphenator |
hyphenator
The hyphenator engine. |
protected String |
post
The second part of the hyphenated word. |
| Constructor Summary | |
HyphenationAuto(String lang,
String country,
int leftMin,
int rightMin)
Creates a new hyphenation instance usable in Chunk. |
|
| Method Summary | |
String |
getHyphenatedWordPost()
Gets the second part of the hyphenated word. |
String |
getHyphenatedWordPre(String word,
BaseFont font,
float fontSize,
float remainingWidth)
Hyphenates a word and returns the first part of it. |
String |
getHyphenSymbol()
Gets the hyphen symbol. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Hyphenator hyphenator
protected String post
| Constructor Detail |
public HyphenationAuto(String lang,
String country,
int leftMin,
int rightMin)
Chunk.
lang - the language ("en" for english, for example)country - the country ("GB" for Great-Britain or "none" for no country, for example)leftMin - the minimun number of letters before the hyphenrightMin - the minimun number of letters after the hyphen| Method Detail |
public String getHyphenSymbol()
getHyphenSymbol in interface HyphenationEvent
public String getHyphenatedWordPre(String word,
BaseFont font,
float fontSize,
float remainingWidth)
getHyphenatedWordPost().
getHyphenatedWordPre in interface HyphenationEventword - the word to hyphenatefont - the font used by this wordfontSize - the font size used by this wordremainingWidth - the width available to fit this word in
public String getHyphenatedWordPost()
getHyphenatedWordPre().
getHyphenatedWordPost in interface HyphenationEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||