lout-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quote characters in @RawVerbatim output


From: Valery Ushakov
Subject: Re: Quote characters in @RawVerbatim output
Date: Tue, 4 Mar 2014 01:54:21 +0400
User-agent: Mutt/1.4.2.3i

On Mon, Mar 03, 2014 at 14:49:07 -0600, address@hidden 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 address@hidden @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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]