From 9ac8a069b67f2837d7dbbd32bd70a58d4b8732f3 Mon Sep 17 00:00:00 2001 From: Omikhleia Date: Mon, 17 Apr 2023 21:11:33 +0200 Subject: [PATCH] docs(manual): Copy-edit typos in chapter 10 --- documentation/c10-classdesign.sil | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/c10-classdesign.sil b/documentation/c10-classdesign.sil index fcf2d6c34..779d18717 100644 --- a/documentation/c10-classdesign.sil +++ b/documentation/c10-classdesign.sil @@ -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) @@ -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. @@ -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 () @@ -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}