Skip to content

Commit

Permalink
Swap deprecated usages for current ones
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Jun 10, 2024
1 parent 6ef2932 commit be05fc5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 2 additions & 2 deletions content/examples/book.sil
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
\begin[class=book,papersize=b6]{document}
\begin{script}
\begin{lua}

SILE.registerCommand("book:chapterfont", function (options, content)
SILE.call("medskip")
Expand Down Expand Up @@ -50,7 +50,7 @@ SILE.registerCommand("titlepage", function (options, content)
SILE.call("eject")
end)

\end{script}
\end{lua}
\language[main=en]
\titlepage
\tableofcontents
Expand Down
8 changes: 3 additions & 5 deletions content/examples/inputfilter.sil
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
\neverindent
\use[module=packages.color]

\begin{script}

local inputfilter = SILE.require("packages/inputfilter").exports
\begin{lua}

SILE.registerCommand("uppercase", function(options, content)
SILE.process(inputfilter.transformContent(content, string.upper))
SILE.process(SILE.documentState.documentClass.packages.inputfilter:transformContent(content, string.upper))
end, "Typeset the enclosed text as uppercase")

\end{script}
\end{lua}

This is a normal paragraph of text.

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

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

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

Expand Down
4 changes: 2 additions & 2 deletions content/examples/parshape.sil
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
\font[size=14.5pt,weight=600]
\hyphenator:add-exceptions[lang=en]{iso-pe-ri-me-tric}% No idea where that weird word should really break.
\nofolios
\begin{script}
\begin{lua}

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

\end{script}
\end{lua}
% Galileo, 1638:
\begin[radius=30%fw]{incircle}
The area of a circle is a mean proportional between any two regular and similar
Expand Down
4 changes: 2 additions & 2 deletions content/examples/snakes.sil
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\begin[class=book,papersize=a5]{document}
\nofolios
\use[module=packages.url]
\begin{script}
\begin{lua}
local snakeGlue = SILE.nodefactory.glue()
local snake = "snake.png"
local snakeimg = SILE.resolveFile(snake)
Expand All @@ -21,7 +21,7 @@ SILE.settings:set("typesetter.parfillskip", SILE.nodefactory.glue())
SILE.settings:set("document.parindent", SILE.nodefactory.glue())
SILE.settings:set("document.spaceskip", SILE.nodes.length("1spc"))
SILE.settings:set("document.rskip", snakeGlue)
\end{script}
\end{lua}
\font[size=20pt]

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

0 comments on commit be05fc5

Please sign in to comment.