Skip to content

Commit

Permalink
Adds middle dot (U+00B7) to list of shorthand dot-like chars for mover.
Browse files Browse the repository at this point in the history
Added test

Fixes: 204
  • Loading branch information
NSoiffer committed Oct 31, 2023
1 parent 46382d1 commit 9b1cf66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rules/Braille/UEB/UEB_Rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@
-
name: single-char-exceptions # GTM 12
tag: [mover, munder]
match: "*[2][string-length(.) = 1 and ( translate(., '_¯→.˙~^','')='' or (parent::m:mover and text()='⌒') )]"
match: "*[2][string-length(.) = 1 and ( translate(., '_¯→.·˙~^','')='' or (parent::m:mover and text()='⌒') )]"
replace:
- test:
# omit grouping indicators in the following cases
Expand Down Expand Up @@ -293,7 +293,7 @@
then: [t: "⠱"]
- else_if: "*[2][text()='→']"
then: [t: "⠘⠱"]
- else_if: "*[2][text()='.' or text()='˙']"
- else_if: "*[2][text()='.' or text()='·' or text()='˙']"
then: [t: "⠘⠲"]
- else_if: "*[2][text()='~']"
then: [t: "⠸⠱"]
Expand Down
7 changes: 7 additions & 0 deletions tests/braille/UEB/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ fn not_number_space_blocks() {
test_braille("UEB", expr, "⠼⠁⠃⠉⠀⠼⠙⠑⠋");
}

#[test]
fn dot_above_bug_204() {
// https://github.com/NSoiffer/MathCAT/issues/204
let expr = "<math> <mn>0.</mn> <mover> <mn>6</mn> <mo>&middot;</mo> </mover> </math>";
test_braille("UEB", expr, "⠼⠚⠲⠣⠼⠋⠜⠘⠲");
}

#[test]
fn space_hack_between_digits() {
// https://github.com/NSoiffer/MathCAT/issues/144
Expand Down

0 comments on commit 9b1cf66

Please sign in to comment.