return { name = "ebgaramond", version = "1.00", comment = "Goodies that complement ebgaramond.", author = "Hans Hagen & Mikael Sundqvist", copyright = "ConTeXt development team", mathematics = { parameters = { NoLimitSupFactor = 0, NoLimitSubFactor = 1200, FractionRuleThickness = 60, OverbarRuleThickness = 60, UnderbarRuleThickness = 60, AccentTopShiftUp = -75, FlattenedAccentTopShiftUp = -75, -- AccentExtendMargin = 50, -- AccentBaseHeight = 0, AccentBaseDepth = 75, -- RadicalRuleThickness = 50, -- 50 in font DelimiterPercent = 90, DelimiterShortfall = 400, -- DisplayOperatorMinHeight = 1800, -- 1300 in font (only one) PrimeRaisePercent = 85, -- 50 default -- PrimeRaiseComposedPercent = 25, -- 25 default }, tweaks = { aftercopying = { { tweak = "version", expected = "Version 2019-08-16", }, { tweak = "dimensions", list = { -- offset width italic -- -- [0x00060] = { yoffset = -0.1 }, -- grave -- -- [0x000B4] = { yoffset = -0.1 }, -- acute -- [0x002C6] = { yoffset = -0.1 }, -- hat -- [0x002DC] = { yoffset = -0.1 }, -- tilde -- -- [0x000AF] = { yoffset = -0.1 }, -- bar -- [0x002D8] = { yoffset = -0.15 }, -- breve -- [0x002D9] = { yoffset = -0.15 }, -- dot -- -- [0x000A8] = { yoffset = -0.1 }, -- ddot -- [0x020DB] = { yoffset = -0.115 }, -- dddot -- [0x002C7] = { yoffset = -0.1 }, -- check -- [0x020D7] = { yoffset = -0.1 }, -- vec -- [0x00300] = { yoffset = -0.12 , all = true }, -- widegrave -- [0x00301] = { yoffset = -0.12 , all = true }, -- wideacute -- [0x00302] = { yoffset = -0.12 , all = true }, -- widehat -- [0x00303] = { yoffset = -0.12 , all = true }, -- widetilde -- [0x00304] = { yoffset = -0.12 , all = true }, -- widebar -- [0x00306] = { yoffset = -0.12 , all = true }, -- widebreve -- [0x00307] = { yoffset = -0.12 , all = true }, -- widedot -- [0x00308] = { yoffset = -0.12 , all = true }, -- wideddot -- -- [0x020DB] = { yoffset = -0.1 , all = true }, -- widedddot -- [0x0030A] = { yoffset = -0.12 , all = true }, -- widering -- [0x0030C] = { yoffset = -0.12 , all = true }, -- widecheck -- [0x002C6] = { scale =.85, yoffset = .1, width = .85, height = .935 }, -- hat [0x00393] = { xoffset = 0.05, width = 1.05, italic = 0.075 }, -- \Gamma -- [0x003A6] = { xoffset = 0.05, width = 1.05, italic = 0 }, -- \Phi difficult! [0x003A8] = { xoffset = 0.05, width = 1.05, italic = 0.075 }, -- \Psi [0x02113] = { xoffset = 0, width = 1, italic = 0.075 }, -- \ell [0x1D436] = { xoffset = 0, width = 1, italic = 0.05 }, -- C [0x1D43D] = { xoffset = 0.3, width = 1.4, italic = 0.1 }, -- J [0x1D44B] = { xoffset = 0, width = 1, italic = 0.05 }, -- X [0x1D44F] = { xoffset = 0, width = 1, italic = 0, 1.25 }, -- b [0x1D450] = { xoffset = 0, width = 1.1, italic = 0 }, -- c [0x1D451] = { xoffset = 0, width = 1, italic = 0.05, 0.8 }, -- d [0x1D452] = { xoffset = 0, width = 1.1, italic = 0.05 }, -- e [0x1D453] = { xoffset = 0.15, width = 1.15, italic = 0.1, 1.2 }, -- f [0x1D454] = { xoffset = 0.1, width = 1.2, italic = 0.1 }, -- g [0x0210E] = { xoffset = 0, width = 1.1, italic = 0, 1.4 }, -- h [0x1D457] = { xoffset = 0.2, width = 1.25, italic = 0.05 }, -- j [0x1D458] = { xoffset = 0, width = 1, italic = 0, 1.25 }, -- k [0x1D459] = { xoffset = 0, width = 1, italic = 0.05 }, -- l [0x1D45D] = { xoffset = 0.15, width = 1.15, italic = 0, 1.4 }, -- p [0x1D45E] = { xoffset = 0, width = 1.05, italic = 0 }, -- q [0x1D45F] = { xoffset = 0, width = 1.05, italic = 0 }, -- r [0x1D461] = { xoffset = 0, width = 1, italic = 0.1 }, -- t [0x1D465] = { xoffset = 0.05, width = 1.1, italic = 0.05 }, -- x [0x1D466] = { xoffset = 0.2, width = 1.2, italic = 0, 1.35 }, -- y [0x1D6FD] = { xoffset = 0.05, width = 1.1, italic = 0.05 }, -- \beta [0x1D6FE] = { xoffset = 0, width = 1.05, italic = 0 }, -- \gamma [0x1D6FF] = { xoffset = 0, width = 1, italic = 0.1 }, -- \delta [0x1D716] = { xoffset = 0, width = 1.1, italic = 0 }, -- \epsilon [0x1D700] = { xoffset = 0, width = 1.1, italic = 0 }, -- \varepsilon [0x1D701] = { xoffset = 0, width = 1, italic = 0.15 }, -- \zeta [0x1D703] = { xoffset = 0, width = 1, italic = 0.1 }, -- \theta [0x1D705] = { xoffset = 0, width = 1, italic = 0.1 }, -- \kappa [0x1D706] = { xoffset = 0.05, width = 1.1, italic = 0 }, -- \lambda [0x1D707] = { xoffset = 0.05, width = 1.05, italic = 0 }, -- \mu [0x1D708] = { xoffset = 0, width = 1.1, italic = 0 }, -- \nu [0x1D709] = { xoffset = 0, width = 1.1, italic = 0 }, -- \xi [0x1D70B] = { xoffset = 0, width = 1.05, italic = 0 }, -- \pi [0x1D70C] = { xoffset = 0.2, width = 1.2, italic = 0 }, -- \rho [0x1D70E] = { xoffset = 0, width = 1, italic = 0.1 }, -- \sigma [0x1D70F] = { xoffset = 0.05, width = 1.05, italic = 0.1 }, -- \tau [0x1D712] = { xoffset = 0.15, width = 1.2, italic = 0.05 }, -- \chi [0x1D713] = { xoffset = 0.05, width = 1.05, italic = 0.05 }, -- \psi }, }, { tweak = "kerns", list = { [0x2F] = { topleft = -0.2, -- bottomleft = 0, -- topright = 0, bottomright = -0.2, }, ["0x7D.parts.top"] = { topright = -0.15, }, -- right brace top ["0x7D.parts.bottom"] = { bottomright = -0.15, }, -- right brace bottom ["0x7D.variants.*"] = { topright = -0.05, bottomright = -0.05, }, -- right brace variants ["0x29.parts.top"] = { topright = -0.25, }, -- right parenthesis top ["0x29.parts.bottom"] = { bottomright = -0.25, }, -- right parenthesis bottom ["0x29.variants.*"] = { topright = -0.2, bottomright = -0.2, }, -- right parenthesis variants ["0x221A.parts.top"] = { topright = 0.2, }, -- right radical top ["0x221A.parts.bottom"] = { bottomright = 0.2, }, -- right radical bottom ["0x221A.variants.*"] = { topright = 0.2, bottomright = 0.2, }, -- right radical variants -- angle [0x27E9] = { topright = -0.1, bottomright = -0.1 }, ["0x27E9.variants.*"] = { topright = -0.2, bottomright = -0.2 }, [0x27EB] = { topright = -0.1, bottomright = -0.1 }, ["0x27EB.variants.*"] = { topright = -0.2, bottomright = -0.2 }, }, }, -- Accents are a mess. We migrate the extensibles from the combiners to the base accent -- and then need to tweak the width (which is auto set because it was zero with a large -- accent anchor offset). First we copy and fix. { tweak = "extendaccents", }, { tweak = "fixaccents", }, -- First we set the dimensions of the initial accent which started out as zero but we want -- a proper width. { tweak = "dimensions", list = { -- [0x00302] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widehat -- [0x00303] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widetilde -- [0x00306] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widebreve -- [0x0030C] = { width = 1.4, anchor = 1.20, xoffset = .10 }, -- widecheck }, }, -- Then we deal with all offsets and heights in one go. So we treat the initial accent -- as well as the variants here. { tweak = "dimensions", list = { -- here we want to apply to all -- [0x00300] = { yoffset = -0.02, height = .95, all = true }, -- widegrave : 0x0060 -- [0x00301] = { yoffset = -0.02, height = .95, all = true }, -- wideacute : 0x00B4 -- [0x00302] = { yoffset = -0.03, height = .95, all = true }, -- widehat : 0x02C6 -- [0x00303] = { yoffset = -0.02, height = .95, all = true }, -- widetilde : 0x02DC -- [0x00306] = { yoffset = -0.03, height = .95, all = true }, -- widebre : 0x02D8 -- [0x0030A] = { yoffset = 0.00, height = .95, all = true }, -- widering : 0x02DA -- [0x0030C] = { yoffset = -0.03, height = .95, all = true }, -- widecheck : 0x02C7 -- [0x00304] = { yoffset = -0.05, height = .95, all = true }, -- widebar : 0x00AF -- [0x00307] = { yoffset = -0.03, height = .95, all = true }, -- widedot : 0x02D9 -- [0x00308] = { yoffset = -0.03, height = .95, all = true }, -- wideddot : 0x00A8 -- [0x020DB] = { yoffset = -0.015, height = .95, all = true }, -- widedddot : 0x20DB (self) }, }, -- We now copy these to the not wide slots so that we can set these to stretch as well, -- if only because it is less confusing and more consistent. { tweak = "copyaccents", }, -- So far for the accents. { tweak = "fixprimes", scale = 0.9, -- smaller = true, factor = 0.9, -- fake = 0.75, }, { tweak = "checkspacing", }, { tweak = "addscripts", }, { tweak = "accentdimensions", }, { tweak = "addrules", }, { tweak = "addbars", advance = 0.6, }, { tweak = "addactuarian", }, { tweak = "addequals", }, { tweak = "addfourier", variant = 1, }, }, }, alternates = { partial = { feature = 'ss02', value = 1, comment = "Curved partial" }, semibold = { feature = 'ss04', value = 1, comment = "Semibold" }, extrabold = { feature = 'ss05', value = 1, comment = "Extrabold" }, hbar = { feature = 'ss06', value = 1, comment = "Horizontal bar for h-bar" }, integral = { feature = 'ss07', value = 1, comment = "A more slanted integral sign" }, tilde = { feature = 'ss09', value = 1, comment = "A tilde variant" }, outbendingh = { feature = 'ss10', value = 1, comment = "Out-bending h" }, largeoperators = { feature = 'ss11', value = 1, comment = "Larger operators" }, }, bigs = { 1, 3, 5, 7 }, }, }