Skip to content

Commit

Permalink
fix(packages): Correct spelling of bevelled→beveled in Math display t…
Browse files Browse the repository at this point in the history
…ypes
  • Loading branch information
alerque committed Nov 14, 2024
1 parent aec6be4 commit d34beef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/math/base-elements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1594,12 +1594,12 @@ end

function elements.padded.output (_, _, _, _) end

-- Bevelled fractions are not part of MathML Core, and MathML4 does not
-- Beveled fractions are not part of MathML Core, and MathML4 does not
-- exactly specify how to compute the layout.
elements.bevelledFraction = pl.class(elements.fraction) -- Inherit from fraction
elements.fraction._type = "BevelledFraction"
elements.beveledFraction = pl.class(elements.fraction) -- Inherit from fraction
elements.fraction._type = "BeveledFraction"

function elements.bevelledFraction:shape ()
function elements.beveledFraction:shape ()
local constants = self:getMathMetrics().constants
local scaleDown = self:getScaleDown()
local hSkew = constants.skewedFractionHorizontalGap * scaleDown
Expand Down Expand Up @@ -1628,7 +1628,7 @@ function elements.bevelledFraction:shape ()
self.barX = self.numerator.relX + self.numerator.width
end

function elements.bevelledFraction:output (x, y, line)
function elements.beveledFraction:output (x, y, line)
local h = self.height:tonumber()
local d = self.depth:tonumber()
local barwidth = scaleWidth(self.barWidth, line):tonumber()
Expand Down
6 changes: 3 additions & 3 deletions packages/math/typesetter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ function ConvertMathML (_, content)
if #children ~= 2 then
SU.error("Wrong number of children in mfrac: " .. #children)
end
return SU.boolean(content.options.bevelled, false)
and b.bevelledFraction(content.options, children[1], children[2])
return SU.boolean(content.options.beveled, false)
and b.beveledFraction(content.options, children[1], children[2])
or b.fraction(content.options, children[1], children[2])
elseif content.command == "msqrt" then
local children = convertChildren(content)
Expand Down Expand Up @@ -214,7 +214,7 @@ local function handleMath (_, mbox, options)

if mode == "display" then
-- See https://github.com/sile-typesetter/sile/issues/2160
-- We are not excactly doing the right things here with respect to
-- We are not exactly doing the right things here with respect to
-- paragraphing expectations.
-- The vertical penalty will flush the previous paragraph, if any.
SILE.call("penalty", { penalty = SILE.settings:get("math.predisplaypenalty"), vertical = true })
Expand Down

0 comments on commit d34beef

Please sign in to comment.