Skip to content

Commit

Permalink
style: Restile Lua across entire project with Stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Dec 13, 2023
1 parent 449584d commit 9eff608
Show file tree
Hide file tree
Showing 212 changed files with 249,948 additions and 249,933 deletions.
1,019 changes: 511 additions & 508 deletions classes/base.lua

Large diffs are not rendered by default.

504 changes: 252 additions & 252 deletions classes/bible.lua

Large diffs are not rendered by default.

458 changes: 229 additions & 229 deletions classes/book.lua

Large diffs are not rendered by default.

58 changes: 29 additions & 29 deletions classes/diglot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +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: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: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 9eff608

Please sign in to comment.