zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: PATCH: insert-unicode-char
Date: Fri, 19 Aug 2005 10:17:39 -0700	[thread overview]
Message-ID: <20050819171739.GA8782@blorf.net> (raw)
In-Reply-To: <20050819163131.409874e7.pws@csr.com>

[-- Attachment #1: Type: text/plain, Size: 702 bytes --]

On Fri, Aug 19, 2005 at 04:31:31PM +0100, Peter Stephenson wrote:
> The RQUOTE() was because nroff is doing something funny with right
> quotes, but it seems this is beyond the reach of Yodl so it doesn't
> have any practical effect.

My version of yodl is patched to transform ' into \&' instead of \',
but it appears that yodl is not touching the ' in this context:

    sitem(tt('))(

I therefore patched the sed command in the Makefile.in to tweak the
resulting nroff source to add in the missing \& prefix.  Attached is a
patch.

I'll also attach a patch for anyone using a stock version of yodl (this
patch is derived from Debian, and some other distributions already
include it too).

..wayne..

[-- Attachment #2: apostrophe.patch --]
[-- Type: text/plain, Size: 588 bytes --]

--- Doc/Makefile.in	31 Jul 2005 18:04:35 -0000	1.27
+++ Doc/Makefile.in	19 Aug 2005 17:09:37 -0000
@@ -117,7 +117,8 @@ zsh.info: $(sdir)/zsh.texi
 	esac; \
 	case '$(YODL)' in :*) touch $$target ;; *) \
 	    echo $(YODL) -o $$target -I$(sdir) -w zman.yo version.yo $< ; \
-	    $(YODL) -I$(sdir) -w zman.yo version.yo $< | sed -e '1s/\\-/-/g' -e '/^\.'\''/d' > $$target \
+	    $(YODL) -I$(sdir) -w zman.yo version.yo $< | \
+	      sed -e '1s/\\-/-/g' -e '/^\.'\''/d' -e 's/\\fB'\''\\fP/\\fB\\\&'\''\\fP/' > $$target \
 	;; esac; \
 
 # These targets are no longer made by default, nor

[-- Attachment #3: yodl.patch --]
[-- Type: text/plain, Size: 299 bytes --]

--- yodl-1.31.18.orig/macros/chartables/man.tables.yo
+++ yodl-1.31.18/macros/chartables/man.tables.yo
@@ -3,7 +3,7 @@
 DEFINECHARTABLE(standard)(
     '\\'    = "\\e"
     '.'	    = "\\&."
-    '\''    = "\\'"
+    '\''    = "\\&'"
 )
 
 COMMENT(*** Accent characters, leading to empty chars. ***)

      reply	other threads:[~2005-08-19 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 15:43 Peter Stephenson
2005-08-18 18:48 ` Oliver Kiddle
2005-08-18 20:08   ` Peter Stephenson
2005-08-18 22:08 ` Nikolai Weibull
2005-08-19  9:22   ` Peter Stephenson
2005-08-19 15:31     ` Peter Stephenson
2005-08-19 17:17       ` Wayne Davison [this message]

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=20050819171739.GA8782@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=pws@csr.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).