zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: documentation update
Date: Fri, 17 Mar 2006 23:37:56 +0000	[thread overview]
Message-ID: <200603172337.k2HNbvBt005526@pwslaptop.csr.com> (raw)
In-Reply-To: Your message of "Fri, 17 Mar 2006 12:15:36 PST." <20060317201536.GL24877@dot.blorf.net>

Wayne Davison wrote:
> On Fri, Mar 17, 2006 at 07:52:55PM +0000, Peter Stephenson wrote:
> > Also, if you diff the manual page output, you'll see that (real) 's are
> > being quoted as \&': again, I presume this is a feature.
> 
> Unfortnately, that's a misfeature.  That makes an apostrophe output as a
> curly quote, and that ruins things like example code where an apostrophe
> is what you really must type.  This sounds like something where a change
> from the various packagers (e.g. Debian) didn't bubble up to affect the
> new yodl version (since this misfeature was never actually fixed in the
> distributed yodl code itself, but was only patched in lower down).

OK, it could probably be added to your existing fix from August:

	    $(YODL) -I$(sdir) -w zman.yo version.yo $< | \
	      sed -e '1s/\\-/-/g' -e '/^\.'\''/d' \
	      -e 's/\(\\fB\)*'\''/\1\\\&'\''/' > $$target \

although it might be nicer if the quotes were only made literal in
examples; I wonder if we can tag them in such a way that sed or possibly
awk can recognize the hunks?

Also, version.yo is auto-generated, so that needs a change in the
Makefile:

Index: Doc/Makefile.in
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Makefile.in,v
retrieving revision 1.30
diff -u -r1.30 Makefile.in
--- Doc/Makefile.in	21 Oct 2005 09:51:55 -0000	1.30
+++ Doc/Makefile.in	17 Mar 2006 23:34:19 -0000
@@ -205,10 +205,10 @@
 
 version.yo: $(sdir_top)/Config/version.mk
 	( \
-	  echo 'STARTDEF()'; \
+	  echo 'IFDEF(INCWSLEVEL)(INCWSLEVEL())(STARTDEF())'; \
 	  echo 'def(version)(0)('$(VERSION)')'; \
 	  echo 'def(date)(0)('$(VERSION_DATE)')'; \
-	  echo 'ENDDEF()#' | tr '#' '\\'; \
+	  echo 'IFDEF(DECWSLEVEL)(DECWSLEVEL())(ENDDEF())#' | tr '#' '\\'; \
 	) > $(sdir)/version.yo
 
 Zsh/modlist.yo: $(MODDOCSRC)

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page still at http://www.pwstephenson.fsnet.co.uk/


  reply	other threads:[~2006-03-17 23:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17  6:20 A. Wik
2006-03-17 10:19 ` Peter Stephenson
2006-03-17 16:11   ` Bart Schaefer
2006-03-17 16:34     ` Peter Stephenson
2006-03-17 19:52       ` Peter Stephenson
2006-03-17 20:15         ` Wayne Davison
2006-03-17 23:37           ` Peter Stephenson [this message]
2006-03-21  3:38         ` Wayne Davison

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=200603172337.k2HNbvBt005526@pwslaptop.csr.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.dk \
    /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).