Get rid of the lookahead-y dots
Summary: The `\dots` and `\dots{c,o,b,i,m}` commands do more than just show characters, they add extra space and `\dots` also looks ahead to determine what kind of environment it is in (see [this math.sx post] (http://tex.stackexchange.com/questions/122491/difference-of-the-dots)). We can't support that yet, so remove them. Also, add comments to the extract_ttf script to show what caracters we are extracting metrics for. Test Plan: - Make sure tests work Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D13151
This commit is contained in:
parent
2920348bdd
commit
79ab06d88d
|
@ -6,14 +6,14 @@ import json
|
||||||
|
|
||||||
metrics_to_extract = {
|
metrics_to_extract = {
|
||||||
"Main-Regular": [
|
"Main-Regular": [
|
||||||
u"\u2260",
|
u"\u2260", # \neq
|
||||||
u"\u2245",
|
u"\u2245", # \cong
|
||||||
u"\u0020",
|
u"\u0020", # space
|
||||||
u"\u00a0",
|
u"\u00a0", # nbsp
|
||||||
u"\u2026",
|
u"\u2026", # \ldots
|
||||||
u"\u22ef",
|
u"\u22ef", # \cdots
|
||||||
u"\u22f1",
|
u"\u22f1", # \ddots
|
||||||
u"\u22ee",
|
u"\u22ee", # \vdots
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
30
symbols.js
30
symbols.js
|
@ -769,41 +769,11 @@ var symbols = {
|
||||||
group: "punct",
|
group: "punct",
|
||||||
replace: "\u2026"
|
replace: "\u2026"
|
||||||
},
|
},
|
||||||
"\\dotsc": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u2026"
|
|
||||||
},
|
|
||||||
"\\dotso": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u2026"
|
|
||||||
},
|
|
||||||
"\\dots": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u2026"
|
|
||||||
},
|
|
||||||
"\\cdots": {
|
"\\cdots": {
|
||||||
font: "main",
|
font: "main",
|
||||||
group: "punct",
|
group: "punct",
|
||||||
replace: "\u22ef"
|
replace: "\u22ef"
|
||||||
},
|
},
|
||||||
"\\dotsb": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u22ef"
|
|
||||||
},
|
|
||||||
"\\dotsm": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u22ef"
|
|
||||||
},
|
|
||||||
"\\dotsi": {
|
|
||||||
font: "main",
|
|
||||||
group: "punct",
|
|
||||||
replace: "\u22ef"
|
|
||||||
},
|
|
||||||
"\\ddots": {
|
"\\ddots": {
|
||||||
font: "main",
|
font: "main",
|
||||||
group: "punct",
|
group: "punct",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user