Skip to content

Commit

Permalink
chore(typesetters,outputters,packages): Clean in-code comments
Browse files Browse the repository at this point in the history
No code change
  • Loading branch information
Omikhleia authored and Didier Willis committed Aug 23, 2023
1 parent 01d12c7 commit d365af8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions outputters/base.lua
Expand Up @@ -34,11 +34,11 @@ function outputter.debugFrame (_, _, _) end

function outputter.debugHbox (_, _, _) end

function outputter.linkAnchor (_, _, _) end
function outputter.linkAnchor (_, _, _) end -- Unstable API

function outputter.enterLinkTarget (_, _, _) end
function outputter.enterLinkTarget (_, _, _) end -- Unstable API

function outputter.leaveLinkTarget (_, _, _, _, _, _, _) end
function outputter.leaveLinkTarget (_, _, _, _, _, _, _) end -- Unstable API

function outputter.setMetadata (_, _, _) end

Expand Down
2 changes: 2 additions & 0 deletions outputters/libtexpdf.lua
Expand Up @@ -47,6 +47,8 @@ function outputter:_ensureInit ()
if not started then
local w, h = SILE.documentState.sheetSize[1], SILE.documentState.sheetSize[2]
local fname = self:getOutputFilename()
-- Ideally we could want to set the PDF CropBox, BleedBox, TrimBox...
-- Our wrapper only manages the MediaBox at this point.
pdf.init(fname == "-" and "/dev/stdout" or fname, w, h, SILE.full_version)
pdf.beginpage()
started = true
Expand Down
2 changes: 1 addition & 1 deletion packages/cropmarks/init.lua
Expand Up @@ -7,7 +7,7 @@ local outcounter = 1

local function outputMarks ()
local page = SILE.getFrame("page")
-- Length of cromark bars
-- Length of crop mark bars
local cropsz = 20
-- Ensure the crop marks stay outside the bleed area
local offset = math.max(10, SILE.documentState.bleed / 2)
Expand Down
4 changes: 1 addition & 3 deletions typesetters/base.lua
Expand Up @@ -940,14 +940,12 @@ function typesetter:makeHbox (content)
local ox = atypesetter.frame.state.cursorX
local oy = atypesetter.frame.state.cursorY
SILE.outputter:setCursor(atypesetter.frame.state.cursorX, atypesetter.frame.state.cursorY)
-- BEGIN SILEX FIX DEBUG
SU.debug("hboxes", function ()
-- setCursor also invoked by the internal hboxes etc.
-- setCursor is also invoked by the internal (wrapped) hboxes etc.
-- so we must show our debug box before outputting its content.
SILE.outputter:debugHbox(box, box:scaledWidth(line))
return "Drew debug outline around hbox"
end)
-- END SILEX FIX DEBUG
for _, node in ipairs(box.value) do
node:outputYourself(atypesetter, line)
end
Expand Down

0 comments on commit d365af8

Please sign in to comment.