Skip to content

Commit b090a5e

Browse files
committed
Move rules involving implicit braille to the second pass
1 parent 0ed5b70 commit b090a5e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/translator.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,6 @@ impl TranslationTable {
259259
Boundary::NumberWord,
260260
Boundary::Word,
261261
),
262-
Rule::Endnum {
263-
chars,
264-
dots: Braille::Implicit,
265-
..
266-
} => translations.insert(
267-
chars.to_string(),
268-
resolve_implicit_dots(&chars, &character_definitions)?,
269-
Boundary::NumberWord,
270-
Boundary::Word,
271-
),
272262
// the base rule is handled in the second pass
273263
Rule::Base { .. } => (),
274264
// display rules are ignored for translation tables
@@ -403,6 +393,16 @@ impl TranslationTable {
403393
Boundary::None,
404394
Boundary::NotWord,
405395
),
396+
Rule::Endnum {
397+
chars,
398+
dots: Braille::Implicit,
399+
..
400+
} => translations.insert(
401+
chars.to_string(),
402+
resolve_implicit_dots(&chars, &character_definitions)?,
403+
Boundary::NumberWord,
404+
Boundary::Word,
405+
),
406406
_ => (),
407407
}
408408
}

0 commit comments

Comments
 (0)