Skip to content

Commit

Permalink
chore(core): Fix typos in code across project
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Nov 2, 2024
1 parent f8e7c69 commit 8ef298a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/lists/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ package._name = "lists"
-- This is still in L1.1}
-- \end{itemize}
-- But personally, for simple lists, I prefer the first "more readable" one.
-- Lists from Mardown, obviously, due to their structure, would need the
-- Lists from Markdown, obviously, due to their structure, would need the
-- second technique.
--

Expand Down
12 changes: 6 additions & 6 deletions packages/math/base-elements.lua
Original file line number Diff line number Diff line change
Expand Up @@ -699,16 +699,16 @@ function elements.underOver:_stretchyReshapeToBase (part)
end
elseif part:is_a(elements.underOver) then
-- Big assumption here: only considering one level of stacked under/over.
local hasStreched = false
local hasStretched = false
for _, elt in ipairs(part.children) do
if elt.is_a(elements.text) and elt.kind == "operator" and SU.boolean(elt.stretchy, false) then
local stretched = elt:_horizStretchyReshape(self.base.width)
if stretched then
hasStreched = true
hasStretched = true
end
end
end
if hasStreched then
if hasStretched then
-- We need to re-calculate the shape so positions are re-calculated on each
-- of its own parts.
-- (Added after seeing that Mozilla test f19 was not rendering correctly.)
Expand All @@ -722,9 +722,9 @@ function elements.underOver:shape ()
if not (self.mode == mathMode.display or self.mode == mathMode.displayCramped) and isBaseLargeOp then
-- FIXME
-- Added the "largeop" condition, but it's kind of a workaround:
-- It should rather be the "moveablelimits" propery in MathML, but we do not have that yet.
-- It should rather be the "moveablelimits" property in MathML, but we do not have that yet.
-- When the base is a moveable limit, the under/over scripts are not placed under/over the base,
-- but ather to the right of it, when display mode is not used.
-- but other to the right of it, when display mode is not used.
-- Notable effects:
-- Mozilla MathML test 19 (on "k times" > overbrace > base)
-- Maxwell's Equations in MathML3 Test Suite "complex1" (on the vectors in fractions)
Expand Down Expand Up @@ -1496,7 +1496,7 @@ function elements.sqrt:shape ()
end
-- Position the radicand
self.radicand.relX = self.symbolWidth + self.offsetX
-- Compute the dimentions of the whole radical
-- Compute the dimensions of the whole radical
self.width = self.radicand.width + self.symbolWidth + self.offsetX
self.height = self.symbolHeight + self.radicalVerticalGap + self.extraAscender
self.depth = self.radicand.depth
Expand Down
4 changes: 2 additions & 2 deletions sile-lua.1.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
.B [\fIoptions\fR]
.B [\fIINPUT\fR]
.SH DESCRIPTION
The SILE Typesetter reads input file(s) and typesets the content into a rendered documument format, typically PDF.
The SILE Typesetter reads input file(s) and typesets the content into a rendered document format, typically PDF.
.LP
By default, input files may be in declarative SIL markup, structured XML, or programatic Lua.
By default, input files may be in declarative SIL markup, structured XML, or programmatic Lua.
The input format is automatically detected by the active modules.
By default, the output will be a file with the same name as the first input file with the extension changed to .pdf.
The output filename can be overridden with the \fB\-\-output\fR argument.
Expand Down
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use clap::Parser;
use std::path::PathBuf;

/// The SILE Typesetter reads input file(s) and typesets the content into a rendered documument
/// The SILE Typesetter reads input file(s) and typesets the content into a rendered document
/// format, typically PDF.
///
/// By default, input files may be in declarative SIL markup, structured XML, or programatic Lua.
/// By default, input files may be in declarative SIL markup, structured XML, or programmatic Lua.
/// The input format is automatically detected by the active modules. By default, the output will
/// be a file with the same name as the first input file with the extension changed to .pdf. The
/// output filename can be overridden with the `--output` argument. Using `--backend` one can
Expand Down
2 changes: 1 addition & 1 deletion src/embed.rs.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub fn inject_embedded_loaders(lua: &Lua) {
"rusile" => lua
.create_function(move |lua, _: ()| crate::get_rusile_exports(lua))
.map(LuaValue::Function),
_ => format!("Module '{module}' is embeded in Rust binary").into_lua(lua),
_ => format!("Module '{module}' is embedded in Rust binary").into_lua(lua),
})
.unwrap();
loaders.push(embedded_rusile_loader).unwrap();
Expand Down

0 comments on commit 8ef298a

Please sign in to comment.