Skip to content

Commit ead8963

Browse files
committed
Removed "?" at the end of an expression being interpretted as 'fill in the blank'. In example textbooks, it was often punctuation at the end of a sentence that was smushed into the math for typographic reasons.
1 parent c6eedb9 commit ead8963

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Rules/Braille/Nemeth/Nemeth_Rules.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
tag: "!*"
3838
match: "contains(@intent, ':blank')"
3939
replace:
40-
- t: ""
40+
- t: ""
4141

4242
-
4343
name: default
@@ -263,10 +263,13 @@
263263
# rule 57 -- there is no way to get this rule completely right because some require knowing what the omitted symbol should to get spacing right (e.g., 57(3): "7×2?14")
264264
# Here we pick off cases that seem likely and doable
265265
# Note: '?' is sometimes used with mover/munder and '=' or other chars, so we need to make sure the parent is mrow
266+
# Also, "?" is sometimes used to end a sentence, so we exclude that case (last token in <math> and not preceded by an operator)
266267
- name: omissions
267268
tag: [mo, mtext]
268269
match:
269-
- "((.='?' or .='-?-') and parent::*[1][self::m:mrow]) or .='\u00A0'"
270+
- "(( (.='?' and name(EdgeNode(., 'right', 'math'))!='math') or
271+
.='-?-') and parent::*[1][self::m:mrow]) or
272+
.='\u00A0'"
270273
variables:
271274
# guess whether this needs spacing or not
272275
- IsComparisonOp: "not(

0 commit comments

Comments
 (0)