Merge pull request #364 from nvaccess/uebBackThing
UEB grade 2: Fix back-translation of whole word contractions followed by other contractions.
diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c
index 6e4ccff..2b8b434 100644
--- a/liblouis/compileTranslationTable.c
+++ b/liblouis/compileTranslationTable.c
@@ -3406,8 +3406,6 @@
{
attr = CTC_Letter | CTC_UpperCase;
upperCell = addCharOrDots (nested, upperDots.chars[k], 1);
- if (upperDots.length != 1)
- attr = CTC_Space;
upperCell->attributes |= attr;
upperCell->uppercase = upperCell->realchar;
}
diff --git a/tests/yaml/en-ueb-g2_backward.yaml b/tests/yaml/en-ueb-g2_backward.yaml
index 41f20c6..a001c82 100644
--- a/tests/yaml/en-ueb-g2_backward.yaml
+++ b/tests/yaml/en-ueb-g2_backward.yaml
@@ -51,3 +51,20 @@
# See https://github.com/liblouis/liblouis/pull/350
- [⠍⠂⠞, "meat"]
- [⠓⠂⠙, "head"]
+
+ # #364: Whole word contractions followed by other contractions.
+ # In this case, the whole word contraction should not apply.
+ - [⠁⠇⠐⠕, alone]
+ - [⠃⠜, bar]
+ - [⠃⠢, ben]
+ - [⠠⠃⠢, Ben]
+ - [⠙⠨⠑, dance]
+ - [⠋⠰⠑, fence]
+ - [⠓⠻, her]
+ - [⠎⠯, sand]
+ - [⠎⠔, sin]
+ - [⠎⠬, sing]
+ - [⠠⠎⠬, Sing]
+ - [⠎⠷, sof]
+ - [⠎⠰⠛, song]
+ - [⠹⠬, thing]