zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Peter Stephenson <pws@ifh.de>,
	zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: Use of tt() formatting in yodl doc sources
Date: Fri, 5 Jun 1998 01:44:30 -0700	[thread overview]
Message-ID: <980605014430.ZM17329@candle.brasslantern.com> (raw)
In-Reply-To: <199806050732.JAA25285@hydra.ifh.de>

On Jun 5,  9:32am, Peter Stephenson wrote:
} Subject: Re: Use of tt() formatting in yodl doc sources
}
} "Bart Schaefer" wrote:
} > When translating yodl to info, the tt() text style comes out like this:
} > 
} > 	`teletype'
} 
} I have to work around this problem in the FAQ.  [...] What I did is
} defined a mytt() macro which expands to `this' for plain text, but
} does tt(this) for other modes.

In this case it's makeinfo that's adding the quotes; e.g.

          yodl         texinfo        info
	--------     -----------     ------
	tt(text) --> @code{text} --> `text'
	em(text) --> @emph{text} --> *text*

(Never mind that tt(x) ought to be @kbd{x}, the end result for info files
is the same.)

The problem, according to Zefram, is that you can't redefine the notion
of @code{} in the makeinfo pass.  He's right, but I was hoping for a fix
upstream of that.  Unfortunately, the only one that's workable seems to
be to generate two .texi files, one for producing printed documentation
and using @code{}, the other for the producing the info files and leaving
off the @code{}.

On the other hand, it does seem silly to -both- quote things -and- set
them in a special typeface.  Why do the .yo files do stuff like `tt(&)'
in the first place?  Removing the `' in the .yo source would clear up a
lot, though not all, of the confusion.  (The remaining sillyness is with
stuff like tt(`) and tt(') which become ``' and `'', but at the moment
they often become ```'' and ``''' which is totally weird.)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1998-06-05  8:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-04 17:22 Bart Schaefer
1998-06-04 17:50 ` Zefram
1998-06-05  7:32 ` Peter Stephenson
1998-06-05  8:44   ` Bart Schaefer [this message]
1998-06-05 10:11     ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=980605014430.ZM17329@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).