Skip to content

Commit

Permalink
style: Re-format Lua code across entire project with StyLua
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed May 29, 2024
1 parent f691c24 commit d3d3bd7
Show file tree
Hide file tree
Showing 248 changed files with 394,766 additions and 382,831 deletions.
966 changes: 500 additions & 466 deletions classes/base.lua

Large diffs are not rendered by default.

498 changes: 251 additions & 247 deletions classes/bible.lua

Large diffs are not rendered by default.

442 changes: 224 additions & 218 deletions classes/book.lua

Large diffs are not rendered by default.

59 changes: 29 additions & 30 deletions classes/diglot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,37 @@ local class = pl.class(plain)
class._name = "diglot"

function class:_init (options)
plain._init(self, options)
self:loadPackage("counters")
plain._init(self, options)
self:loadPackage("counters")

self:registerPostinit(function ()
SILE.scratch.counters.folio = { value = 1, display = "arabic" }
end)

self:declareFrame("a", {
left = "8.3%pw",
right = "48%pw",
top = "11.6%ph",
bottom = "80%ph"
})
self:declareFrame("b", {
left = "52%pw",
right = "100%pw-left(a)",
top = "top(a)",
bottom = "bottom(a)"
})
self:declareFrame("folio", {
left = "left(a)",
right = "right(b)",
top = "bottom(a)+3%ph",
bottom = "bottom(a)+8%ph"
})
self:loadPackage("parallel", {
frames = {
left = "a",
right = "b"
}
})
self:registerPostinit(function ()
SILE.scratch.counters.folio = { value = 1, display = "arabic" }
end)

self:declareFrame("a", {
left = "8.3%pw",
right = "48%pw",
top = "11.6%ph",
bottom = "80%ph",
})
self:declareFrame("b", {
left = "52%pw",
right = "100%pw-left(a)",
top = "top(a)",
bottom = "bottom(a)",
})
self:declareFrame("folio", {
left = "left(a)",
right = "right(b)",
top = "bottom(a)+3%ph",
bottom = "bottom(a)+8%ph",
})
self:loadPackage("parallel", {
frames = {
left = "a",
right = "b",
},
})
end

return class
Loading

0 comments on commit d3d3bd7

Please sign in to comment.