diff options
author | sgeerken <devnull@localhost> | 2012-06-27 16:12:17 +0200 |
---|---|---|
committer | sgeerken <devnull@localhost> | 2012-06-27 16:12:17 +0200 |
commit | d3dd7eb3379c495cfd9a138d36e40a410188f202 (patch) | |
tree | 28506b276d4705780475af1a9dd611f04f157822 /dw/hyphenator.cc | |
parent | 8549cdf4519e800fb0f56ebb48490a6e202418cf (diff) |
First version of automatic hyphenation. (Still a large number of bugs.)
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r-- | dw/hyphenator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc index 998b7975..b617993a 100644 --- a/dw/hyphenator.cc +++ b/dw/hyphenator.cc @@ -134,7 +134,7 @@ Vector <String> *Hyphenator::hyphenateWord(const char *word) { Vector <String> *pieces = new Vector <String> (1, true); - if (!isHyphenationCandidate (word) <= 4) { + if (!isHyphenationCandidate (word)) { pieces->put (new String (word)); return pieces; } @@ -184,7 +184,7 @@ Vector <String> *Hyphenator::hyphenateWord(const char *word) points.put (new Integer (0), 2); points.put (new Integer (0), points.size () - 2); points.put (new Integer (0), points.size () - 3); - + // Examine the points to build the pieces list. char temp[strlen (word) + 1], *ptemp = temp; |