Skip to content

Commit

Permalink
docs(manual): Copy-edit typos in chapter 10
Browse files Browse the repository at this point in the history
  • Loading branch information
Omikhleia authored and Didier Willis committed Apr 17, 2023
1 parent bfb2fa6 commit 9ac8a06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions documentation/c10-classdesign.sil
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ So a command be it, without any option this time, but playing with vertical skip
local lskip = SILE.settings:get("document.lskip") or SILE.nodefactory.glue()
local rskip = SILE.settings:get("document.rskip") or SILE.nodefactory.glue()
SILE.settings:set("document.lskip",
SILE.nodefactory.glue(lskip.width + indent))
SILE.nodefactory.glue(lskip.width.length + indent))
SILE.settings:set("document.rskip",
SILE.nodefactory.glue(rskip.width + indent))
SILE.nodefactory.glue(rskip.width.length + indent))
SILE.process(content)
SILE.typesetter:leaveHmode() -- gather paragraphs now.
end)
Expand Down Expand Up @@ -175,7 +175,7 @@ This may be used to implement a “clever” verbatim environment.
It is also used, for instance, by the \strong{markdown.sile} 3rd-party collection to embed Markdown or Djot content directly in a (SIL or XML) document.}

You can define your own raw handlers at the Lua level.
Overloading the \code{registerRawHandlers} package method; and within it, use the \code{self:registerRawHandler} function.
Overload the \code{registerRawHandlers} package method; and within it, use the \code{self:registerRawHandler} function.
It takes two parameters: a handler type name, and a function to implement the handler.
The signature of the handler function is the same as for a SILE command.

Expand All @@ -194,7 +194,7 @@ end
\subsection{Loading other packages}

Above, when introducing the \code{_init} method, we left a few placeholder comments.
Let’s you want to ensure the \autodoc:package{color} package is also loaded, so that the custom \autodoc:command[check=false]{\link} command you implemented can safely invoke it in a \code{SILE.call}.
Let’s say you want to ensure the \autodoc:package{color} package is also loaded, so that the custom \autodoc:command[check=false]{\link} command you implemented can safely invoke it in a \code{SILE.call}.

\begin[type=autodoc:codeblock]{raw}
function package:_init ()
Expand All @@ -210,7 +210,7 @@ The \code{self:loadPackage} methods takes as argument a package name, and option

Some packages may provide additional functions that need to be automatically called at various points in the output routine of the document class.
But let’s return to that topic later, when describing how to set up you own custom class.
For now, we can conclude our primer on packages, as you should already have all the tools design great packages.
For now, we can conclude our primer on packages, as you should already have all the tools to design great packages.

\section{Designing a document class}

Expand Down

0 comments on commit 9ac8a06

Please sign in to comment.