Package org.daisy.dotify.translator.impl
Class DummyHyphenator
- java.lang.Object
-
- org.daisy.dotify.translator.impl.DummyHyphenator
-
- All Implemented Interfaces:
HyphenatorInterface
public class DummyHyphenator extends Object implements HyphenatorInterface
TODO: add java doc.
-
-
Constructor Summary
Constructors Constructor Description DummyHyphenator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginLimit()
Gets the begin limit.int
getEndLimit()
Gets the end limit.String
hyphenate(String phrase)
Hyphenates the phrase, inserting soft hyphens at all possible breakpoints.void
setBeginLimit(int beginLimit)
Sets the begin limit.void
setEndLimit(int endLimit)
Sets the end limit.
-
-
-
Method Detail
-
hyphenate
public String hyphenate(String phrase)
Description copied from interface:HyphenatorInterface
Hyphenates the phrase, inserting soft hyphens at all possible breakpoints.- Specified by:
hyphenate
in interfaceHyphenatorInterface
- Parameters:
phrase
- the phrase to hyphenate- Returns:
- the hyphenated string
-
getBeginLimit
public int getBeginLimit()
Description copied from interface:HyphenatorInterface
Gets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
getBeginLimit
in interfaceHyphenatorInterface
- Returns:
- returns the begin limit
-
setBeginLimit
public void setBeginLimit(int beginLimit)
Description copied from interface:HyphenatorInterface
Sets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
setBeginLimit
in interfaceHyphenatorInterface
- Parameters:
beginLimit
- the begin limit
-
getEndLimit
public int getEndLimit()
Description copied from interface:HyphenatorInterface
Gets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
getEndLimit
in interfaceHyphenatorInterface
- Returns:
- returns the end limit
-
setEndLimit
public void setEndLimit(int endLimit)
Description copied from interface:HyphenatorInterface
Sets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
setEndLimit
in interfaceHyphenatorInterface
- Parameters:
endLimit
- the end limit
-
-