aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-04-03 14:30:10 +0200
committerSebastian Geerken <devnull@localhost>2016-04-03 14:30:10 +0200
commitf20d99f012cf66369f8d896c4915a5444d8e04fe (patch)
treeb8d30d5b10691fedcc0976435be1d71ae872fcfa /dw
parentac5f6eb878e615789029fd5cd36fb9d65c78277c (diff)
parent17601c3157a73965b23789285953953a54960ce2 (diff)
Merge with main repo.
Diffstat (limited to 'dw')
-rw-r--r--dw/hyphenator.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc
index 2811a818..601e98f9 100644
--- a/dw/hyphenator.cc
+++ b/dw/hyphenator.cc
@@ -224,17 +224,6 @@ bool Hyphenator::isHyphenationCandidate (const char *word)
*/
bool Hyphenator::isCharPartOfActualWord (char *s)
{
-#if 0
- // Return true when "s" points to a letter.
- return (s[0] >= 'a' && s[0] <= 'z') ||
- // UTF-8: starts with 0xc3
- ((unsigned char)s[0] == 0xc3 &&
- ((unsigned char)s[1] == 0xa4 /* ä */ ||
- (unsigned char)s[1] == 0xb6 /* ö */ ||
- (unsigned char)s[1] == 0xbc /* ü */ ||
- (unsigned char)s[1] == 0x9f /* ß */ ));
-#endif
-
return isAlpha (decodeUtf8 (s));
}