Skip to content

Commit 8ce645e

Browse files
authored
Merge pull request #50 from alerque/sile-v015-only
Drop support for SILE v0.14.x
2 parents 245e06d + a4982df commit 8ce645e

File tree

5 files changed

+9
-21
lines changed

5 files changed

+9
-21
lines changed

.github/workflows/sile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
sileVersion: [ "v0.15.9", "v0.14.17" ]
11+
sileVersion: [ "v0.15.9" ]
1212
runs-on: ubuntu-22.04
1313
container:
1414
image: ghcr.io/sile-typesetter/sile:${{ matrix.sileVersion }}

Dockerfile

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ ARG RUNTIME_DEPS
2020
# Install run-time dependencies
2121
RUN pacman --needed --noconfirm -Sq $RUNTIME_DEPS && yes | pacman -Sccq
2222

23-
# Setup LuaRocks for use with LuaJIT roughly matching SILE's internal VM
24-
RUN luarocks config lua_version 5.1 && \
25-
luarocks config lua_interpreter luajit && \
26-
luarocks config variables.LUA "$(command -v luajit)"
27-
2823
# Set at build time, forces Docker’s layer caching to reset at this point
2924
ARG REVISION
3025
ARG VERSION

classes/fontproof/init.lua

+4-11
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ local function getGitCommit ()
3232
end
3333

3434
function class:_init (options)
35-
-- Dodge deprecation notices until we drop v0.14 support
36-
if SILE.types then
37-
SILE.nodefactory = SILE.types.node
38-
end
3935

4036
_scratch = {
4137
runhead = {},
@@ -60,7 +56,7 @@ function class:_init (options)
6056
self:loadPackage("features")
6157
self:loadPackage("color")
6258

63-
SILE.settings:set("document.parindent", SILE.nodefactory.glue(0))
59+
SILE.settings:set("document.parindent", SILE.types.node.glue(0))
6460
SILE.settings:set("document.spaceskip")
6561
return self
6662
end
@@ -152,10 +148,7 @@ function class:endPage ()
152148
fontinfo = fontinfo .. (" %s"):format(self.options.script)
153149
end
154150
local gitcommit = getGitCommit()
155-
local function inputFilename ()
156-
return SILE.input.filename and SILE.input.filename or SILE.input.filenames[1]
157-
end
158-
local templateinfo = ("%s"):format(inputFilename())
151+
local templateinfo = ("%s"):format(SILE.input.filenames[1])
159152
local dateinfo = os.date("%A %d %b %Y %X %z %Z")
160153
local sileinfo = ("SILE %s"):format(SILE.version)
161154
local harfbuzzinfo = ("HarfBuzz %s"):format(hb.version())
@@ -168,8 +161,8 @@ function class:endPage ()
168161
harfbuzzinfo
169162
)
170163
SILE.typesetNaturally(SILE.getFrame("runningHead"), function ()
171-
SILE.settings:set("document.rskip", SILE.nodefactory.hfillglue())
172-
SILE.settings:set("typesetter.parfillskip", SILE.nodefactory.glue(0))
164+
SILE.settings:set("document.rskip", SILE.types.node.hfillglue())
165+
SILE.settings:set("typesetter.parfillskip", SILE.types.node.glue(0))
173166
SILE.settings:set("document.spaceskip", SILE.shaper:measureChar(" ").width)
174167
SILE.call("font", {
175168
family = _scratch.runhead.family,

hooks/build

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -e
88

99
REVISION=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
1010

11-
RUNTIME_DEPS='luarocks luajit words'
11+
RUNTIME_DEPS='words'
1212

1313
: "${DOCKER_BUILDKIT:=1}"
1414
export DOCKER_BUILDKIT

packages/fontproof/init.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function package:registerCommands ()
296296
SILE.typesetter:typeset(header:sub(1, hexDigits))
297297
end)
298298
local nbox = SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes]
299-
local centeringglue = SILE.nodefactory.glue((width - nbox.width) / 2)
299+
local centeringglue = SILE.types.node.glue((width - nbox.width) / 2)
300300
SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes] = centeringglue
301301
SILE.typesetter:pushHorizontal(nbox)
302302
SILE.typesetter:pushGlue(centeringglue)
@@ -314,7 +314,7 @@ function package:registerCommands ()
314314
local char = glyphs[ix + 1].uni
315315
if glyphs[ix + 1].present then
316316
local left = SILE.shaper:measureChar(char).width
317-
local centeringglue = SILE.nodefactory.glue((width - left) / 2)
317+
local centeringglue = SILE.types.node.glue((width - left) / 2)
318318
SILE.typesetter:pushGlue(centeringglue)
319319
SILE.typesetter:typeset(char)
320320
SILE.typesetter:pushGlue(centeringglue)
@@ -335,7 +335,7 @@ function package:registerCommands ()
335335
SILE.typesetter:typeset(string.format("%04X", glyphs[ix + 1].cp))
336336
end)
337337
local nbox = SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes]
338-
local centeringglue = SILE.nodefactory.glue((width - nbox.width) / 2)
338+
local centeringglue = SILE.types.node.glue((width - nbox.width) / 2)
339339
SILE.typesetter.state.nodes[#SILE.typesetter.state.nodes] = centeringglue
340340
SILE.typesetter:pushHorizontal(nbox)
341341
SILE.typesetter:pushGlue(centeringglue)

0 commit comments

Comments
 (0)