diff options
Diffstat (limited to 'include/minikin/Hyphenator.h')
-rw-r--r-- | include/minikin/Hyphenator.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/minikin/Hyphenator.h b/include/minikin/Hyphenator.h index 47c1648..da265f0 100644 --- a/include/minikin/Hyphenator.h +++ b/include/minikin/Hyphenator.h @@ -23,7 +23,6 @@ #include <string> #include <vector> -#include <unicode/uscript.h> #include "minikin/Characters.h" #include "minikin/U16StringPiece.h" @@ -64,12 +63,7 @@ enum class HyphenationType : uint8_t { // Break the line, insert a ZWJ and hyphen at the first line, and a ZWJ at the second line. // This is used in Arabic script, mostly for writing systems of Central Asia. It's our default // behavior when a soft hyphen is used in Arabic script. - BREAK_AND_INSERT_HYPHEN_AND_ZWJ = 8, - // Break the line, and insert hyphen at current line and the beginning of the next line. It's - // very similar to BREAK_AND_INSERT_HYPHEN_AT_NEXT_LINE. BREAK_AND_INSERT_HYPHEN_AT_NEXT_LINE - // is for the words which included hyphenator but this is used to actively hyphenate words - // based on the pattern. - BREAK_AND_INSERT_HYPHEN_AT_CURRENT_AND_NEXT_LINE = 9 + BREAK_AND_INSERT_HYPHEN_AND_ZWJ = 8 }; // The hyphen edit represents an edit to the string when a word is hyphenated. @@ -236,11 +230,6 @@ private: void hyphenateFromCodes(const uint16_t* codes, size_t len, HyphenationType hyphenValue, HyphenationType* out) const; - HyphenationType hyphenationTypeBasedOnScriptAndLocale(uint32_t codePoint) const; - - bool isRepeatHyphen(UScriptCode script, - HyphenationLocale locale) const; - // See also LONGEST_HYPHENATED_WORD in LineBreaker.cpp. Here the constant is used so // that temporary buffers can be stack-allocated without waste, which is a slightly // different use case. It measures UTF-16 code units. |