diff --git a/liblouis/compileTranslationTable.c b/liblouis/compileTranslationTable.c index a413c8dbbc..0aee418758 100644 --- a/liblouis/compileTranslationTable.c +++ b/liblouis/compileTranslationTable.c @@ -4932,9 +4932,12 @@ compileRule (FileInfo * nested) if (!addRule (nested, opcode, &ruleChars, &ruleDots, after, before)) ok = 0; - TranslationTableCharacter *c = compile_findCharOrDots(ruleChars.chars[0], 0); - if(c) - c->attributes |= CTC_NumericMode; + if(opcode == CTO_DecPoint) + { + TranslationTableCharacter *c = compile_findCharOrDots(ruleChars.chars[0], 0); + if(c) + c->attributes |= CTC_NumericMode; + } } // if(opcode != CTO_DecPoint) // {