Armenian emphasis mark (U+055B) is used for interjections, so treat it as an exclamation mark.

This commit is contained in:
Reece H. Dunn
2017-04-22 18:54:21 +01:00
parent bc13173ac4
commit 5c6bc0e556
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -38,7 +38,6 @@
static const unsigned short punct_chars[] = {
0x00a1, // inverted exclamation
0x00bf, // inverted question
0x055b, // Armenian emphasis mark
0
};
@@ -46,7 +45,6 @@ static const unsigned short punct_chars[] = {
static const unsigned int punct_attributes[] = {
CLAUSE_SEMICOLON | CLAUSE_OPTIONAL_SPACE_AFTER, // inverted exclamation
CLAUSE_SEMICOLON | CLAUSE_OPTIONAL_SPACE_AFTER, // inverted question
CLAUSE_PERIOD | CLAUSE_PUNCTUATION_IN_WORD, // Armenian emphasis mark
0
};
+1 -1
View File
@@ -66,7 +66,7 @@ test_armenian()
{
printf("testing Armenian (Armn) script classification\n");
assert(clause_type_from_codepoint(0x055B) == (CLAUSE_PERIOD | CLAUSE_PUNCTUATION_IN_WORD));
assert(clause_type_from_codepoint(0x055B) == (CLAUSE_EXCLAMATION | CLAUSE_PUNCTUATION_IN_WORD));
assert(clause_type_from_codepoint(0x055C) == (CLAUSE_EXCLAMATION | CLAUSE_PUNCTUATION_IN_WORD));
assert(clause_type_from_codepoint(0x055D) == CLAUSE_COMMA);
assert(clause_type_from_codepoint(0x055E) == (CLAUSE_QUESTION | CLAUSE_PUNCTUATION_IN_WORD));