Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: insert-unicode-char
- X-seq: zsh-workers 21677
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxx>
- Subject: Re: PATCH: insert-unicode-char
- Date: Fri, 19 Aug 2005 10:17:39 -0700
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <20050819163131.409874e7.pws@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <200508181543.j7IFhDjV003092@xxxxxxxxxxxxxx> <20050818220853.GC5006@xxxxxxxxxxxxxxxx> <29060.1124443370@xxxxxxx> <20050819163131.409874e7.pws@xxxxxxx>
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..
--- 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
--- 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. ***)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author