[tokenization] breaking dashes or double hyphens break a word while other dashes don't
This commit is contained in:
@@ -117,9 +117,9 @@ katakana = {katakana_chars}+;
|
||||
// WB13a and WB13b
|
||||
word_extend_num_letter = ({letter}|{numeric_chars}|{katakana}|{extend_num_letter_chars})+{extend_num_letter_chars}({letter}|{numeric_chars}|{katakana}|{extend_num_letter_chars})*;
|
||||
|
||||
possible_word_char = {letter}|{mark_spacing_combining_chars}|{mark_enclosing_chars}|{mark_nonspacing_chars}|{non_breaking_dash}|{punct_connector_chars}|{currency_symbol_chars}|{symbol_modifier_chars}|{symbol_math_chars}|{symbol_other_chars}|{digit};
|
||||
possible_word_char = {letter}|{mark_spacing_combining_chars}|{mark_enclosing_chars}|{mark_nonspacing_chars}|{punct_connector_chars}|{currency_symbol_chars}|{symbol_modifier_chars}|{symbol_math_chars}|{symbol_other_chars}|{digit};
|
||||
//possible_word_char = [^\+\(\)\[\]}{\/\\\,:;!"&\? 0-9\t\u00A0\u2000-\u200A\u3000\r\n\u2028\u2029\u000B\u000C\u0085\u0096\u0097\u2013\u2014\u2015\u0000];
|
||||
any_word = ({possible_word_char}*{letter}+{possible_word_char}*);
|
||||
any_word = (({possible_word_char}*{letter}+{possible_word_char}*{non_breaking_dash})*{possible_word_char}*{letter}+{possible_word_char}*);
|
||||
|
||||
apos_word = ("'"?({latinish_letter}+"'")+{latinish_letter}+"'"?);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user