Re: Quote characters in @RawVerbatim output
Valery Ushakov <[email protected]> Tue, 4 Mar 2014 01:54:21 +0400
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 03, 2014 at 14:49:07 -0600, [email protected] wrote: > I'd like to change the output that Lout generates when using the > @RawVerbatim feature. My expectation is that the output is identical to > the input, but this is not in fact the case for some characters. Please > consider the following example: > > @SysInclude{doc} > @Document > // > @Text @Begin > @LP {Courier Base 14p}@Font @OneRow @RawVerbatim @Begin > ' is a different character in output > @End @RawVerbatim > @End @Text > > I expect ' to remain ' in output, but it's transformed into what I think is > a right single quote mark. I'm writing documentation of shell commands and > the resulting Lout output is unsuitable for copying and pasting into a > terminal. @Verbatim only affects input. Output is still affected by font's mapping and Courier is defined to use LtLatin1.LCM that uses quoteright glyph for '. To get ascii single quote in the output you need to define a new font with @FontDef (see Expert's Guide). Copy LtLatin1.LCM to, say, LtASCII.LCM and edit it to use quotesingle for character 39 (') instead of quoteright. Use that LCM file as the @Mapping of your font definition, say, CourierASCII, and use CourierASCII intead of Courier for your examples. -uwe