Skip to content

Commit be05fc5

Browse files
committed
Swap deprecated usages for current ones
1 parent 6ef2932 commit be05fc5

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

content/examples/book.sil

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
\begin[class=book,papersize=b6]{document}
2-
\begin{script}
2+
\begin{lua}
33

44
SILE.registerCommand("book:chapterfont", function (options, content)
55
SILE.call("medskip")
@@ -50,7 +50,7 @@ SILE.registerCommand("titlepage", function (options, content)
5050
SILE.call("eject")
5151
end)
5252

53-
\end{script}
53+
\end{lua}
5454
\language[main=en]
5555
\titlepage
5656
\tableofcontents

content/examples/inputfilter.sil

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
\neverindent
44
\use[module=packages.color]
55

6-
\begin{script}
7-
8-
local inputfilter = SILE.require("packages/inputfilter").exports
6+
\begin{lua}
97

108
SILE.registerCommand("uppercase", function(options, content)
11-
SILE.process(inputfilter.transformContent(content, string.upper))
9+
SILE.process(SILE.documentState.documentClass.packages.inputfilter:transformContent(content, string.upper))
1210
end, "Typeset the enclosed text as uppercase")
1311

14-
\end{script}
12+
\end{lua}
1513

1614
This is a normal paragraph of text.
1715

content/examples/japanese.sil

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
しかし、それが全体像でしょうか?2011年から日本の寄付文化が変わっているという証拠が見えてきました。2011年といえば、東大震災でした。2001年で震災に関する寄付金が6000億円を超えましたが、それと別に災害と関係がない個人寄付が5182で、合計で1.1兆円でした。2013年度では、個人寄付が7000億円まで上がって、歴史的に法人寄付と同等でありました。日本で寄付文化が根付いているところです。
99

1010
% TODO https://github.com/sile-typesetter/sile/issues/1226
11-
東大震災の他一つの大きな変化は、2011年6月に施行された新寄付税制ということです。「世界寄付指数」が発行する\latin-in-tate{Charity Aid Foundation}の調査によると、国の寄付文化にもっとも影響ある要素は平均収入ではなく、寄付金の税制の取り扱いです。寄付金控除がある国の個人寄付者が控除のない国に比べると\script{--\tate-chu-yoko{12}}\%アップです。
11+
東大震災の他一つの大きな変化は、2011年6月に施行された新寄付税制ということです。「世界寄付指数」が発行する\latin-in-tate{Charity Aid Foundation}の調査によると、国の寄付文化にもっとも影響ある要素は平均収入ではなく、寄付金の税制の取り扱いです。寄付金控除がある国の個人寄付者が控除のない国に比べると\lua{--\tate-chu-yoko{12}}\%アップです。
1212

1313
この新しい環境では、「あなたがたの富のあるところに、あなたがたの心もあるのだ。」というイエス様の言葉(ルカ12:34)がますます大事であると思います。日本の個人寄付の三分の一が宗教関連に与えられていますが、それがどう使われていますか?ほとんどの教会は自分の活動や経営費をまかなうぐらいの献金しかもらえないし、それなのに自分以外な活動を支えている教会は非常に少ないです。たまに外界宣教師を支えている教会があるけど、現地に関わってお金を使って神の国を建てようという教会の文化は日本でありません。教会で、社会と同じように寄付文化が根付く事が必要だと思います。一般社会に比べて「喜んで与える」教会の寄付文化が遅れてしまったら、本当に恥ずかしいと思います。
1414

content/examples/parshape.sil

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
\font[size=14.5pt,weight=600]
44
\hyphenator:add-exceptions[lang=en]{iso-pe-ri-me-tric}% No idea where that weird word should really break.
55
\nofolios
6-
\begin{script}
6+
\begin{lua}
77

88
-- The math here finds intersection points for a line crossing a circle, making a bunch of assumptions about
99
-- the line always being horizontal. Only touching doesn't count, only a full intersection is a win for this.
@@ -47,7 +47,7 @@ SILE.registerCommand("incircle", function (options, content)
4747
SILE.linebreak.parShape = oldParShape
4848
end, "Shape the start of paragraphs in a circle with parameterized center and radius")
4949

50-
\end{script}
50+
\end{lua}
5151
% Galileo, 1638:
5252
\begin[radius=30%fw]{incircle}
5353
The area of a circle is a mean proportional between any two regular and similar

content/examples/snakes.sil

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
\begin[class=book,papersize=a5]{document}
22
\nofolios
33
\use[module=packages.url]
4-
\begin{script}
4+
\begin{lua}
55
local snakeGlue = SILE.nodefactory.glue()
66
local snake = "snake.png"
77
local snakeimg = SILE.resolveFile(snake)
@@ -21,7 +21,7 @@ SILE.settings:set("typesetter.parfillskip", SILE.nodefactory.glue())
2121
SILE.settings:set("document.parindent", SILE.nodefactory.glue())
2222
SILE.settings:set("document.spaceskip", SILE.nodes.length("1spc"))
2323
SILE.settings:set("document.rskip", snakeGlue)
24-
\end{script}
24+
\end{lua}
2525
\font[size=20pt]
2626

2727
To Sherlock Holmes she is always \em{the woman}.%

0 commit comments

Comments
 (0)