Index: trunk/extensions/Math/mathParserTests.txt |
— | — | @@ -85,3 +85,16 @@ |
86 | 86 | <img class="tex" alt="\Stigma\stigma\varstigma" src="/images/math/7/b/9/7b9233276816994a33a5e968202cef6e.png" /> |
87 | 87 | </p> |
88 | 88 | !! end |
| 89 | + |
| 90 | +!! test |
| 91 | +BUG 19547: Apostrophe / single quotes in math \text{...} |
| 92 | +!! input |
| 93 | +<math>\text{next years}</math> |
| 94 | +<math>\text{next year's}</math> |
| 95 | +<math>\text{`next' year}</math> |
| 96 | +!! result |
| 97 | +<p><span class="texhtml" dir="ltr">next years</span> |
| 98 | +<span class="texhtml" dir="ltr">next year's</span> |
| 99 | +<span class="texhtml" dir="ltr">`next' year</span> |
| 100 | +</p> |
| 101 | +!! end |
Index: trunk/extensions/Math/math/lexer.mll |
— | — | @@ -11,8 +11,8 @@ |
12 | 12 | let delimiter_uf_lt = ['(' ')' '.'] |
13 | 13 | let literal_uf_op = ['+' '-' '*' '='] |
14 | 14 | let delimiter_uf_op = ['/' '|'] |
15 | | -let boxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' ' ' '\128'-'\255'] |
16 | | -let aboxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' ' '] |
| 15 | +let boxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' '\'' '`' ' ' '\128'-'\255'] |
| 16 | +let aboxchars = ['0'-'9' 'a'-'z' 'A'-'Z' '+' '-' '*' ',' '=' '(' ')' ':' '/' ';' '?' '.' '!' '\'' '`' ' '] |
17 | 17 | |
18 | 18 | rule token = parse |
19 | 19 | space + { token lexbuf } |