update fonts and metrics so that accents are positioned correctly (#1094)

* update fonts and metrics so that accents are positioned correctly

* fix degree symbol, move more accents into the 0x2c0-0x2df range

* fix accents in Unicode screenshots

* update jest snapshots, update AccentsText to include requested characters

* update fonts submodule, add unicode chars to AccentsText test

* update submodules after merging its PR
This commit is contained in:
Kevin Barabash
2018-01-26 19:46:57 -05:00
committed by GitHub
parent 53203ed92c
commit f03849c831
9 changed files with 230 additions and 208 deletions

View File

@@ -22,22 +22,13 @@ $map{cmr10} = {
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => 0x60, # \grave
0x12 => 0x2CB, # \grave
0x12 => [0x300,-500,0], # \grave (combining)
0x13 => 0xB4, # \acute
0x13 => 0x2CA, # \acute
0x13 => [0x301,-500,0], # \acute (combining)
0x14 => 0x2C7, # \check
0x14 => [0x30C,-500,0], # \check (combining)
0x15 => 0x2D8, # \breve
0x15 => [0x306,-500,0], # \breve (combining)
0x16 => 0xAF, # \bar
0x16 => 0x2C9, # \bar
0x16 => [0x304,-500,0], # \bar (combining)
0x17 => [0xB0,-125,0], # ring above
0x17 => [0x2DA,-125,0], # ring above
0x17 => [0x30A,-625,0], # ring above (combining)
0x17 => [0xB0,-125,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
@@ -51,19 +42,15 @@ $map{cmr10} = {
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => 0x2C6, # \hat
0x5E => [0x302,-500,0], # \hat (combining)
0x5F => [0x2D9,111,0], # \dot
0x5F => [0x307,-389,0], # \dot (combining)
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-310], # underline
0x7D => [0x30B,-500,0], # double acute (combining)
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => 0x2DC, # \tilde
0x7E => [0x303,-500,0], # \tilde (combining)
0x7F => 0xA8, # \ddot
0x7F => [0x308,-500,0], # \ddot (combining)
0x19 => 0xDF, # sharp S
0x1A => 0xE6, # ae ligature
0x1B => 0x153, # oe ligature
@@ -441,12 +428,13 @@ $map{cmti10} = {
[7,8] => 0x3A5, # \Upsilon, \Phi
[9,0xA] => 0x3A8, # \Psi, \Omega
0x12 => [0x300,-511,0], # \grave (combining)
0x13 => [0x301,-511,0], # \acute (combining)
0x14 => [0x30C,-511,0], # \check (combining)
0x15 => [0x306,-511,0], # \breve (combining)
0x16 => [0x304,-511,0], # \bar (combining)
0x17 => [0x30A,-671,0], # ring above (combining)
0x12 => 0x2CB, # \grave
0x13 => 0x2CA, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => [0xB0,-160,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x23] => 0x21, # !, ", #,
0x22 => 0x201D, # "
@@ -461,16 +449,23 @@ $map{cmti10} = {
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => [0x302,-511,0], # \hat (combining)
0x5F => [0x307,-409,0], # \dot (combining)
0x5E => 0x2C6, # \hat
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-310], # underline
0x7D => [0x30B,-511,0], # double acute (combining)
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => [0x303,-511,0], # \tilde (combining)
0x7F => [0x308,-511,0], # \ddot (combining)
0x7E => 0x2DC, # \tilde
0x7F => 0xA8, # \ddot
0x19 => 0xDF, # sharp S
0x1A => 0xE6, # ae ligature
0x1B => 0x153, # oe ligature
0x1C => 0xF8, # o with slash
0x1D => 0xC6, # AE ligature
0x1E => 0x152, # OE ligature
0x1F => 0xD8, # O with slash
],
};
@@ -487,22 +482,13 @@ $map{cmbx10} = {
0x10 => 0x131, # \imath (roman bold)
0x11 => 0x237, # \jmath (roman bold)
0x12 => 0x60, # \grave
0x12 => 0x2CB, # \grave
0x12 => [0x300,-575,0], # \grave (combining)
0x13 => 0xB4, # \acute
0x13 => 0x2CA, # \acute
0x13 => [0x301,-575,0], # \acute (combining)
0x14 => 0x2C7, # \check
0x14 => [0x30C,-575,0], # \check (combining)
0x15 => 0x2D8, # \breve
0x15 => [0x306,-575,0], # \breve (combining)
0x16 => 0xAF, # \bar
0x16 => 0x2C9, # \bar
0x16 => [0x304,-575,0], # \bar (combining)
0x17 => [0xB0,-147,0], # ring above
0x17 => [0x2DA,-147,0], # ring above
0x17 => [0x30A,-722,0], # ring above (combining)
0x17 => [0xB0,-147,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
@@ -516,19 +502,22 @@ $map{cmbx10} = {
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => 0x2C6, # \hat
0x5E => [0x302,-575,0], # \hat (combining)
0x5F => [0x2D9,128,0], # \dot
0x5F => [0x307,-447,0], # \dot (combining)
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-310], # underline
0x7D => [0x30B,-575,0], # double acute (combining)
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => 0x2DC, # \tilde
0x7E => [0x303,-575,0], # \tilde (combining)
0x7F => 0xA8, # \ddot
0x7F => [0x308,-575,0], # \ddot (combining)
0x19 => 0xDF, # sharp S
0x1A => 0xE6, # ae ligature
0x1B => 0x153, # oe ligature
0x1C => 0xF8, # o with slash
0x1D => 0xC6, # AE ligature
0x1E => 0x152, # OE ligature
0x1F => 0xD8, # O with slash
],
};
@@ -987,12 +976,13 @@ $map{cmtt10} = {
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => [0x300,-525,0], # \grave (combining)
0x13 => [0x301,-525,0], # \acute (combining)
0x14 => [0x30C,-525,0], # \check (combining)
0x15 => [0x306,-525,0], # \breve (combining)
0x16 => [0x304,-525,0], # \bar (combining)
0x17 => [0x30A,-525,0], # ring above (combining)
0x12 => 0x2CB, # \grave
0x13 => 0x2CA, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => 0xB0, # \degree
0x17 => 0x02DA, # \r, ring above
0x20 => 0x2423, # graphic representation of space
[0x21,0x7F] => 0x21,
@@ -1024,12 +1014,12 @@ $map{cmssbx10} = {
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => [0x300,-550,0], # \grave (combining)
0x13 => [0x301,-550,0], # \acute (combining)
0x14 => [0x30C,-550,0], # \check (combining)
0x15 => [0x306,-550,0], # \breve (combining)
0x16 => [0x304,-550,0], # \bar (combining)
0x17 => [0x30A,-608,0], # ring above (combining)
0x13 => 0xB4, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => [0xB0,-58,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
@@ -1042,60 +1032,16 @@ $map{cmssbx10} = {
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => [0x302,-550,0], # \hat (combining)
0x5F => [0x307,-428,0], # \dot (combining)
0x5E => 0x2C6, # \hat
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-350], # underline
0x7D => [0x30B,-550,0], # double acute (combining)
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => [0x303,-550,0], # \tilde (combining)
0x7F => [0x308,-550,0], # \ddot (combining)
],
};
$map{cmssi10} = {
"SansSerif-Italic" => [
[0,1] => 0x393, # \Gamma, \Delta
2 => 0x398, # \Theta
3 => 0x39B, # \Lambda
4 => 0x39E, # \Xi
5 => 0x3A0, # \Pi
6 => 0x3A3, # \Sigma
[7,8] => 0x3A5, # \Upsilon, \Phi
[9,0xA] => 0x3A8, # \Psi, \Omega
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => [0x300,-500,0], # \grave (combining)
0x13 => [0x301,-500,0], # \acute (combining)
0x14 => [0x30C,-500,0], # \check (combining)
0x15 => [0x306,-500,0], # \breve (combining)
0x16 => [0x304,-500,0], # \bar (combining)
0x17 => [0x30A,-613,0], # ring above (combining)
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
0x27 => 0x2019, # '
[0x30,0x39] => 0x30, # 0-9
[0x3A,0x3B] => 0x3A, # :, ;
0x3D => 0x3D, # =
[0x3F,0x40] => 0x3F, # ?, @
[0x41,0x5A] => 0x41, # A-Z
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => [0x302,-500,0], # \hat (combining)
0x5F => [0x307,-389,0], # \dot (combining)
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-350], # underline
0x7D => [0x30B,-500,0], # double acute (combining)
0x7E => [0x7E,0,-350], # ~
0x7E => [0x303,-500,0], # \tilde (combining)
0x7F => [0x308,-500,0], # \ddot (combining)
0x7E => 0x2DC, # \tilde
0x7F => 0xA8, # \ddot
],
};
@@ -1112,12 +1058,13 @@ $map{cmss10} = {
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => [0x300,-500,0], # \grave (combining)
0x13 => [0x301,-500,0], # \acute (combining)
0x14 => [0x30C,-500,0], # \check (combining)
0x15 => [0x306,-500,0], # \breve (combining)
0x16 => [0x304,-500,0], # \bar (combining)
0x17 => [0x30A,-542,0], # ring above (combining)
0x12 => 0x2CB, # \grave
0x13 => 0x2CA, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => [0xB0,-142,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
@@ -1130,13 +1077,102 @@ $map{cmss10} = {
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => [0x302,-500,0], # \hat (combining)
0x5F => [0x307,-389,0], # \dot (combining)
0x5E => 0x2C6, # \hat
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-350], # underline
0x7D => [0x30B,-500,0], # double acute (combining)
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => 0x2DC, # \tilde
0x7F => 0xA8, # \ddot
],
};
$map{cmssi10} = {
"SansSerif-Italic" => [
[0,1] => 0x393, # \Gamma, \Delta
2 => 0x398, # \Theta
3 => 0x39B, # \Lambda
4 => 0x39E, # \Xi
5 => 0x3A0, # \Pi
6 => 0x3A3, # \Sigma
[7,8] => 0x3A5, # \Upsilon, \Phi
[9,0xA] => 0x3A8, # \Psi, \Omega
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x12 => 0x2CB, # \grave
0x13 => 0x2CA, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => [0xB0,-113,0], # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
0x27 => 0x2019, # '
[0x30,0x39] => 0x30, # 0-9
[0x3A,0x3B] => 0x3A, # :, ;
0x3D => 0x3D, # =
[0x3F,0x40] => 0x3F, # ?, @
[0x41,0x5A] => 0x41, # A-Z
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => 0x2C6, # \hat
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-350], # underline
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => 0x2DC, # \tilde
0x7F => 0xA8, # \ddot
],
};
$map{cmss10} = {
"SansSerif-Regular" => [
[0,1] => 0x393, # \Gamma, \Delta
2 => 0x398, # \Theta
3 => 0x39B, # \Lambda
4 => 0x39E, # \Xi
5 => 0x3A0, # \Pi
6 => 0x3A3, # \Sigma
[7,8] => 0x3A5, # \Upsilon, \Phi
[9,0xA] => 0x3A8, # \Psi, \Omega
0x10 => 0x131, # \imath (roman)
0x11 => 0x237, # \jmath (roman)
0x13 => 0x2CA, # \acute
0x14 => 0x2C7, # \check
0x15 => 0x2D8, # \breve
0x16 => 0x2C9, # \bar
0x17 => 0xB0, # \degree
0x17 => 0x02DA, # \r, ring above
[0x21,0x2F] => 0x21, # !, ", #, $, %, &, ', (, ), *, +, comma, -, ., /
0x22 => 0x201D, # "
0x27 => 0x2019, # '
[0x30,0x39] => 0x30, # 0-9
[0x3A,0x3B] => 0x3A, # :, ;
0x3D => 0x3D, # =
[0x3F,0x40] => 0x3F, # ?, @
[0x41,0x5A] => 0x41, # A-Z
0x5B => 0x5B, # [
0x5C => 0x201C, # ``
[0x5D,0x5E] => 0x5D, # ], ^
0x5E => 0x2C6, # \hat
0x5F => 0x2D9, # \dot
0x60 => 0x2018, # `
[0x61,0x7A] => 0x61, # a-z
[0x7B,0x7C] => 0x2013, # \endash, \emdash
0x7B => [0x5F,0,-350], # underline
0x7D => 0x2DD, # double acute
0x7E => [0x7E,0,-350], # ~
0x7E => [0x303,-500,0], # \tilde (combining)
0x7F => [0x308,-500,0], # \ddot (combining)

View File

@@ -451,7 +451,6 @@ export default {
"93": [0.25, 0.75, 0, 0, 0.31944],
"94": [0, 0.69444, 0, 0, 0.575],
"95": [0.31, 0.13444, 0.03194, 0, 0.575],
"96": [0, 0.69444, 0, 0, 0.575],
"97": [0, 0.44444, 0, 0, 0.55902],
"98": [0, 0.69444, 0, 0, 0.63889],
"99": [0, 0.44444, 0, 0, 0.51111],
@@ -484,13 +483,18 @@ export default {
"126": [0.35, 0.34444, 0, 0, 0.575],
"168": [0, 0.69444, 0, 0, 0.575],
"172": [0, 0.44444, 0, 0, 0.76666],
"175": [0, 0.59611, 0, 0, 0.575],
"176": [0, 0.69444, 0, 0, 0.86944],
"177": [0.13333, 0.63333, 0, 0, 0.89444],
"180": [0, 0.69444, 0, 0, 0.575],
"198": [0, 0.68611, 0, 0, 1.04166],
"215": [0.13333, 0.63333, 0, 0, 0.89444],
"216": [0.04861, 0.73472, 0, 0, 0.89444],
"223": [0, 0.69444, 0, 0, 0.59722],
"230": [0, 0.44444, 0, 0, 0.83055],
"247": [0.13333, 0.63333, 0, 0, 0.89444],
"248": [0.09722, 0.54167, 0, 0, 0.575],
"305": [0, 0.44444, 0, 0, 0.31944],
"338": [0, 0.68611, 0, 0, 1.16944],
"339": [0, 0.44444, 0, 0, 0.89444],
"567": [0.19444, 0.44444, 0, 0, 0.35139],
"710": [0, 0.69444, 0, 0, 0.575],
"711": [0, 0.63194, 0, 0, 0.575],
@@ -501,17 +505,7 @@ export default {
"729": [0, 0.69444, 0, 0, 0.31944],
"730": [0, 0.69444, 0, 0, 0.86944],
"732": [0, 0.69444, 0, 0, 0.575],
"768": [0, 0.69444, 0, 0, 0.575],
"769": [0, 0.69444, 0, 0, 0.575],
"770": [0, 0.69444, 0, 0, 0.575],
"771": [0, 0.69444, 0, 0, 0.575],
"772": [0, 0.59611, 0, 0, 0.575],
"774": [0, 0.69444, 0, 0, 0.575],
"775": [0, 0.69444, 0, 0, 0.31944],
"776": [0, 0.69444, 0, 0, 0.575],
"778": [0, 0.69444, 0, 0, 0.86944],
"779": [0, 0.69444, 0, 0, 0.575],
"780": [0, 0.63194, 0, 0, 0.575],
"733": [0, 0.69444, 0, 0, 0.575],
"824": [0.19444, 0.69444, 0, 0, 0],
"915": [0, 0.68611, 0, 0, 0.69166],
"916": [0, 0.68611, 0, 0, 0.95833],
@@ -730,19 +724,27 @@ export default {
"122": [0, 0.43056, 0.12292, 0, 0.40889],
"126": [0.35, 0.31786, 0.11585, 0, 0.51111],
"163": [0, 0.69444, 0, 0, 0.76909],
"168": [0, 0.66786, 0.10474, 0, 0.51111],
"176": [0, 0.69444, 0, 0, 0.83129],
"198": [0, 0.68333, 0.12028, 0, 0.88277],
"216": [0.04861, 0.73194, 0.09403, 0, 0.76666],
"223": [0.19444, 0.69444, 0.10514, 0, 0.53666],
"230": [0, 0.43056, 0.07514, 0, 0.71555],
"248": [0.09722, 0.52778, 0.09194, 0, 0.51111],
"305": [0, 0.43056, 0, 0.02778, 0.32246],
"338": [0, 0.68333, 0.12028, 0, 0.98499],
"339": [0, 0.43056, 0.07514, 0, 0.71555],
"567": [0.19444, 0.43056, 0, 0.08334, 0.38403],
"768": [0, 0.69444, 0, 0, 0.51111],
"769": [0, 0.69444, 0.09694, 0, 0.51111],
"770": [0, 0.69444, 0.06646, 0, 0.51111],
"771": [0, 0.66786, 0.11585, 0, 0.51111],
"772": [0, 0.56167, 0.10333, 0, 0.51111],
"774": [0, 0.69444, 0.10806, 0, 0.51111],
"775": [0, 0.66786, 0.11752, 0, 0.30667],
"776": [0, 0.66786, 0.10474, 0, 0.51111],
"778": [0, 0.69444, 0, 0, 0.83129],
"779": [0, 0.69444, 0.1225, 0, 0.51111],
"780": [0, 0.62847, 0.08295, 0, 0.51111],
"710": [0, 0.69444, 0.06646, 0, 0.51111],
"711": [0, 0.62847, 0.08295, 0, 0.51111],
"713": [0, 0.56167, 0.10333, 0, 0.51111],
"714": [0, 0.69444, 0.09694, 0, 0.51111],
"715": [0, 0.69444, 0, 0, 0.51111],
"728": [0, 0.69444, 0.10806, 0, 0.51111],
"729": [0, 0.66786, 0.11752, 0, 0.30667],
"730": [0, 0.69444, 0, 0, 0.83129],
"732": [0, 0.66786, 0.11585, 0, 0.51111],
"733": [0, 0.69444, 0.1225, 0, 0.51111],
"915": [0, 0.68333, 0.13305, 0, 0.62722],
"916": [0, 0.68333, 0, 0, 0.81777],
"920": [0, 0.68333, 0.09403, 0, 0.76666],
@@ -827,7 +829,6 @@ export default {
"93": [0.25, 0.75, 0, 0, 0.27778],
"94": [0, 0.69444, 0, 0, 0.5],
"95": [0.31, 0.12056, 0.02778, 0, 0.5],
"96": [0, 0.69444, 0, 0, 0.5],
"97": [0, 0.43056, 0, 0, 0.5],
"98": [0, 0.69444, 0, 0, 0.55556],
"99": [0, 0.43056, 0, 0, 0.44445],
@@ -861,10 +862,8 @@ export default {
"160": [0, 0, 0, 0, 0],
"168": [0, 0.66786, 0, 0, 0.5],
"172": [0, 0.43056, 0, 0, 0.66667],
"175": [0, 0.56778, 0, 0, 0.5],
"176": [0, 0.69444, 0, 0, 0.75],
"177": [0.08333, 0.58333, 0, 0, 0.77778],
"180": [0, 0.69444, 0, 0, 0.5],
"198": [0, 0.68333, 0, 0, 0.90278],
"215": [0.08333, 0.58333, 0, 0, 0.77778],
"216": [0.04861, 0.73194, 0, 0, 0.77778],
@@ -885,17 +884,7 @@ export default {
"729": [0, 0.66786, 0, 0, 0.27778],
"730": [0, 0.69444, 0, 0, 0.75],
"732": [0, 0.66786, 0, 0, 0.5],
"768": [0, 0.69444, 0, 0, 0.5],
"769": [0, 0.69444, 0, 0, 0.5],
"770": [0, 0.69444, 0, 0, 0.5],
"771": [0, 0.66786, 0, 0, 0.5],
"772": [0, 0.56778, 0, 0, 0.5],
"774": [0, 0.69444, 0, 0, 0.5],
"775": [0, 0.66786, 0, 0, 0.27778],
"776": [0, 0.66786, 0, 0, 0.5],
"778": [0, 0.69444, 0, 0, 0.75],
"779": [0, 0.69444, 0, 0, 0.5],
"780": [0, 0.62847, 0, 0, 0.5],
"733": [0, 0.69444, 0, 0, 0.5],
"824": [0.19444, 0.69444, 0, 0, 0],
"915": [0, 0.68333, 0, 0, 0.625],
"916": [0, 0.68333, 0, 0, 0.83334],
@@ -1425,19 +1414,19 @@ export default {
"121": [0.19444, 0.45833, 0.01528, 0, 0.5],
"122": [0, 0.45833, 0, 0, 0.47639],
"126": [0.35, 0.34444, 0, 0, 0.55],
"168": [0, 0.69444, 0, 0, 0.55],
"176": [0, 0.69444, 0, 0, 0.73334],
"180": [0, 0.69444, 0, 0, 0.55],
"305": [0, 0.45833, 0, 0, 0.25556],
"567": [0.19444, 0.45833, 0, 0, 0.28611],
"768": [0, 0.69444, 0, 0, 0.55],
"769": [0, 0.69444, 0, 0, 0.55],
"770": [0, 0.69444, 0, 0, 0.55],
"771": [0, 0.69444, 0, 0, 0.55],
"772": [0, 0.63778, 0, 0, 0.55],
"774": [0, 0.69444, 0, 0, 0.55],
"775": [0, 0.69444, 0, 0, 0.30556],
"776": [0, 0.69444, 0, 0, 0.55],
"778": [0, 0.69444, 0, 0, 0.73334],
"779": [0, 0.69444, 0, 0, 0.55],
"780": [0, 0.63542, 0, 0, 0.55],
"710": [0, 0.69444, 0, 0, 0.55],
"711": [0, 0.63542, 0, 0, 0.55],
"713": [0, 0.63778, 0, 0, 0.55],
"728": [0, 0.69444, 0, 0, 0.55],
"729": [0, 0.69444, 0, 0, 0.30556],
"730": [0, 0.69444, 0, 0, 0.73334],
"732": [0, 0.69444, 0, 0, 0.55],
"733": [0, 0.69444, 0, 0, 0.55],
"915": [0, 0.69444, 0, 0, 0.58056],
"916": [0, 0.69444, 0, 0, 0.91667],
"920": [0, 0.69444, 0, 0, 0.85556],
@@ -1544,19 +1533,20 @@ export default {
"121": [0.19444, 0.44444, 0.10836, 0, 0.46111],
"122": [0, 0.44444, 0.08752, 0, 0.43472],
"126": [0.35, 0.32659, 0.08826, 0, 0.5],
"168": [0, 0.67937, 0.06385, 0, 0.5],
"176": [0, 0.69444, 0, 0, 0.73752],
"305": [0, 0.44444, 0.04169, 0, 0.23889],
"567": [0.19444, 0.44444, 0.04169, 0, 0.26667],
"768": [0, 0.69444, 0, 0, 0.5],
"769": [0, 0.69444, 0.09205, 0, 0.5],
"770": [0, 0.69444, 0.0799, 0, 0.5],
"771": [0, 0.67659, 0.08826, 0, 0.5],
"772": [0, 0.60889, 0.08776, 0, 0.5],
"774": [0, 0.69444, 0.09483, 0, 0.5],
"775": [0, 0.67937, 0.07774, 0, 0.27778],
"776": [0, 0.67937, 0.06385, 0, 0.5],
"778": [0, 0.69444, 0, 0, 0.73752],
"779": [0, 0.69444, 0.09205, 0, 0.5],
"780": [0, 0.63194, 0.08432, 0, 0.5],
"710": [0, 0.69444, 0.0799, 0, 0.5],
"711": [0, 0.63194, 0.08432, 0, 0.5],
"713": [0, 0.60889, 0.08776, 0, 0.5],
"714": [0, 0.69444, 0.09205, 0, 0.5],
"715": [0, 0.69444, 0, 0, 0.5],
"728": [0, 0.69444, 0.09483, 0, 0.5],
"729": [0, 0.67937, 0.07774, 0, 0.27778],
"730": [0, 0.69444, 0, 0, 0.73752],
"732": [0, 0.67659, 0.08826, 0, 0.5],
"733": [0, 0.69444, 0.09205, 0, 0.5],
"915": [0, 0.69444, 0.13372, 0, 0.54167],
"916": [0, 0.69444, 0, 0, 0.83334],
"920": [0, 0.69444, 0.07555, 0, 0.77778],
@@ -1663,19 +1653,19 @@ export default {
"121": [0.19444, 0.44444, 0.01389, 0, 0.46111],
"122": [0, 0.44444, 0, 0, 0.43472],
"126": [0.35, 0.32659, 0, 0, 0.5],
"176": [0, 0.69444, 0, 0, 0.66667],
"305": [0, 0.44444, 0, 0, 0.23889],
"567": [0.19444, 0.44444, 0, 0, 0.26667],
"768": [0, 0.69444, 0, 0, 0.5],
"769": [0, 0.69444, 0, 0, 0.5],
"770": [0, 0.69444, 0, 0, 0.5],
"710": [0, 0.69444, 0, 0, 0.5],
"711": [0, 0.63194, 0, 0, 0.5],
"713": [0, 0.60889, 0, 0, 0.5],
"714": [0, 0.69444, 0, 0, 0.5],
"728": [0, 0.69444, 0, 0, 0.5],
"729": [0, 0.67937, 0, 0, 0.27778],
"730": [0, 0.69444, 0, 0, 0.66667],
"733": [0, 0.69444, 0, 0, 0.5],
"771": [0, 0.67659, 0, 0, 0.5],
"772": [0, 0.60889, 0, 0, 0.5],
"774": [0, 0.69444, 0, 0, 0.5],
"775": [0, 0.67937, 0, 0, 0.27778],
"776": [0, 0.67937, 0, 0, 0.5],
"778": [0, 0.69444, 0, 0, 0.66667],
"779": [0, 0.69444, 0, 0, 0.5],
"780": [0, 0.63194, 0, 0, 0.5],
"915": [0, 0.69444, 0, 0, 0.54167],
"916": [0, 0.69444, 0, 0, 0.83334],
"920": [0, 0.69444, 0, 0, 0.77778],
@@ -1968,17 +1958,18 @@ export default {
"125": [0.08333, 0.69444, 0, 0, 0.525],
"126": [0, 0.61111, 0, 0, 0.525],
"127": [0, 0.61111, 0, 0, 0.525],
"176": [0, 0.61111, 0, 0, 0.525],
"305": [0, 0.43056, 0, 0, 0.525],
"567": [0.22222, 0.43056, 0, 0, 0.525],
"768": [0, 0.61111, 0, 0, 0.525],
"769": [0, 0.61111, 0, 0, 0.525],
"711": [0, 0.56597, 0, 0, 0.525],
"713": [0, 0.56555, 0, 0, 0.525],
"714": [0, 0.61111, 0, 0, 0.525],
"715": [0, 0.61111, 0, 0, 0.525],
"728": [0, 0.61111, 0, 0, 0.525],
"730": [0, 0.61111, 0, 0, 0.525],
"770": [0, 0.61111, 0, 0, 0.525],
"771": [0, 0.61111, 0, 0, 0.525],
"772": [0, 0.56555, 0, 0, 0.525],
"774": [0, 0.61111, 0, 0, 0.525],
"776": [0, 0.61111, 0, 0, 0.525],
"778": [0, 0.61111, 0, 0, 0.525],
"780": [0, 0.56597, 0, 0, 0.525],
"915": [0, 0.61111, 0, 0, 0.525],
"916": [0, 0.61111, 0, 0, 0.525],
"920": [0, 0.61111, 0, 0, 0.525],

View File

@@ -100,14 +100,6 @@ const htmlBuilder = (group, options) => {
// Shift the accent over by the skew.
left += skew;
// The \H character that the fonts use is a combining character, and
// thus shows up much too far to the left. To account for this, we add
// a manual shift of the width of one space.
// TODO(emily): Fix this in a better way, like by changing the font
if (group.value.label === '\\H') {
left += 0.5; // twice width of space, or width of accent
}
accentBody.style.left = left + "em";
accentBody = buildCommon.makeVList({

View File

@@ -634,11 +634,11 @@ defineSymbol(math, main, inner, "\u2026", "\\ldots", true);
defineSymbol(math, main, inner, "\u22ef", "\\@cdots", true);
defineSymbol(math, main, inner, "\u22f1", "\\ddots", true);
defineSymbol(math, main, textord, "\u22ee", "\\vdots", true);
defineSymbol(math, main, accent, "\u00b4", "\\acute");
defineSymbol(math, main, accent, "\u0060", "\\grave");
defineSymbol(math, main, accent, "\u02ca", "\\acute");
defineSymbol(math, main, accent, "\u02cb", "\\grave");
defineSymbol(math, main, accent, "\u00a8", "\\ddot");
defineSymbol(math, main, accent, "\u007e", "\\tilde");
defineSymbol(math, main, accent, "\u00af", "\\bar");
defineSymbol(math, main, accent, "\u02c9", "\\bar");
defineSymbol(math, main, accent, "\u02d8", "\\breve");
defineSymbol(math, main, accent, "\u02c7", "\\check");
defineSymbol(math, main, accent, "\u005e", "\\hat");
@@ -666,7 +666,7 @@ defineSymbol(text, main, accent, "\u02d9", "\\."); // dot above
defineSymbol(text, main, accent, "\u02da", "\\r"); // ring above
defineSymbol(text, main, accent, "\u02c7", "\\v"); // caron
defineSymbol(text, main, accent, "\u00a8", '\\"'); // diaresis
defineSymbol(text, main, accent, "\u030B", "\\H"); // double acute
defineSymbol(text, main, accent, "\u02dd", "\\H"); // double acute
defineSymbol(text, main, textord, "\u2013", "--");
defineSymbol(text, main, textord, "\u2013", "\\textendash");

View File

@@ -42,7 +42,7 @@ exports[`A MathML builder accents turn into <mover accent="true"> in MathML 1`]
e
</mi>
<mo>
´
ˊ
</mo>
</mover>
<mi>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -16,8 +16,11 @@
Accents: \vec{A}\vec{x}\vec x^2\vec{x}_2^2\vec{A}^2\vec{xA}^2
AccentsText: |
\begin{array}{l}
\text{\H{e}} & \text{\'\i} \\
\text{\H{X}} & \text{\"\i} \\
\text{\'\i} & \text{\.\i} & \text{\`\i} & \text{\"\i} & \text{\H\i} & \text{\r\i} \\
\text{\'\j} & \text{\.\j} & \text{\`\j} & \text{\"\j} & \text{\H\j} & \text{\r\j} \\
\text{\'a} & \text{\.a} & \text{\`a} & \text{\"a} & \text{\H{a}} & \text{\r{a}} \\
\text{\'A} & \text{\.A} & \text{\`A} & \text{\"A} & \text{\H{A}} & \text{\r{A}} \\
\text{\.I İ} & \text{\H e e̋} & \text{\i ı}
\end{array}
Aligned: |
\begin{aligned}
@@ -287,7 +290,7 @@ Symbols1: |
\maltese\degree\pounds\$
\text{\maltese\degree\pounds\textdollar}
Text: \frac{a}{b}\text{c~ {ab} \ e}+fg
TextStacked:
TextStacked:
\begin{matrix}
\textsf{abc123 \textbf{abc123} \textit{abc123}}\\
\text{abc123 \textbf{abc123} \textit{abc123}}\\