Replies: 1 comment 7 replies
-
|
First, there are a couple of options you missed.
c.f. The smartquotes.sile package: not directly relevant for this use case, but has some nice quoting features if you wanted to transform your input using it's commands. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In some markdown implementations and LaTeX,
---yields an em dash in output, which is very convenient for editing in a text editor. In SILE, there are some different ways to get that output, e.g. use\unichar{u+2026}, define an equivalent command, or copy and paste an em dash. Where should I start looking if I want to modify input in this way? I see the examples section on the SILE site has something about input filters, but I'm not sure if that's the right direction.Another situation is apostrophes in contractions like don't. I'd like it to be a U+2019 when it occurs in a word (but not in a verbatim environment). I implemented a hack by overriding the
SILE.processfunction from sile.lua and doing regex replacement on the input, but clearly this is not a good solution to the problem. For serious documents, I currently replace them manually.What would be an idiomatic or more robust way to do such replacements without resorting to wrapping things in environments and so on? Thanks for any pointers you can give!
Beta Was this translation helpful? Give feedback.
All reactions