texinfo-commits
[Top][All Lists]
Advanced

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

texinfo update (Sat Jul 15 19:22:01 EDT 2006)


From: Karl Berry
Subject: texinfo update (Sat Jul 15 19:22:01 EDT 2006)
Date: Sat, 15 Jul 2006 19:22:03 -0400

Index: ChangeLog
===================================================================
RCS file: /sources/texinfo/texinfo/ChangeLog,v
retrieving revision 1.624
retrieving revision 1.625
diff -u -r1.624 -r1.625
--- ChangeLog   10 Jul 2006 23:07:12 -0000      1.624
+++ ChangeLog   15 Jul 2006 22:55:30 -0000      1.625
@@ -1,3 +1,15 @@
+2006-07-15  Karl Berry  <address@hidden>
+
+       * doc/texinfo.tex (\code): make ' active.
+       (@lisp,@example): call \quoteexpand.
+       (\quoteexpand): new definition to make ' active.
+       (\singlequotechar): the active definition of '; if
+       the variable codequoteundirected is @set, use char"d from tt
+       instead of the regular directed quote.
+       This is all to make pasting of ' in examples work in more pdf
+       viewers, at least evince.
+       From: Han-Wen Nienhuys, 2 Jun 2006 01:22:44 +0000.
+
 2006-07-10  <address@hidden>
 
        * makeinfo/html.c (insert_html_tag_with_attribute): Treat `samp'
Index: doc/texinfo.tex
===================================================================
RCS file: /sources/texinfo/texinfo/doc/texinfo.tex,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -r1.216 -r1.217
--- doc/texinfo.tex     19 Jun 2006 22:55:33 -0000      1.216
+++ doc/texinfo.tex     15 Jul 2006 22:53:09 -0000      1.217
@@ -3,7 +3,7 @@
 % Load plain if necessary, i.e., if running under initex.
 \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
 %
-\def\texinfoversion{2006-06-19.13}
+\def\texinfoversion{2006-07-15.15}
 %
 % Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
 % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
@@ -2051,11 +2051,11 @@
 % and arrange explicitly to hyphenate at a dash.
 %  -- rms.
 {
-  \catcode`\-=\active
-  \catcode`\_=\active
+  \catcode`\-=\active \catcode`\_=\active \catcode`\'=\active
   %
   \global\def\code{\begingroup
-    \catcode`\-=\active  \catcode`\_=\active
+    \catcode`\-=\active  \catcode`\_=\active \catcode`\'=\active
+    \let'\singlequotechar
     \ifallowcodebreaks
      \let-\codedash
      \let_\codeunder
@@ -5265,11 +5265,10 @@
 %
 \maketwodispenvs {lisp}{example}{%
   \nonfillstart
-  \tt
+  \tt\quoteexpand
   \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special.
   \gobble       % eat return
 }
-
 % @display/@smalldisplay: same as @lisp except keep current font.
 %
 \makedispenv {display}{%
@@ -5397,6 +5396,22 @@
 \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
 %
 \def\starttabbox{\setbox0=\hbox\bgroup}
+
+% Allow an option to not replace quotes with a regular directed right
+% quote/apostrophe (char 0x27), but instead use the undirected quote
+% from cmtt (char 0x0d).  The undirected quote is ugly, so don't make it
+% the default, but it works for pasting with more pdf viewers (at least
+% evince), the lilypond developers report.  xpdf does work with the
+% regular 0x27.  
+% 
+\def\singlequotechar{%
+  \expandafter\ifx\csname SETcodequoteundirected\endcsname\relax
+    '%
+  \else
+    \char'15
+  \fi
+}
+%
 \begingroup
   \catcode`\^^I=\active
   \gdef\tabexpand{%
@@ -5409,7 +5424,13 @@
       \wd0=\dimen0 \box0 \starttabbox
     }%
   }
+  \catcode`\'=\active
+  \gdef\quoteexpand{%
+    \catcode`\'=\active
+    \def'{\singlequotechar}
+  }%
 \endgroup
+%
 \def\setupverbatim{%
   \let\nonarrowing = t%
   \nonfillstart
@@ -5418,6 +5439,7 @@
   \def\par{\leavevmode\egroup\box0\endgraf}%
   \catcode`\`=\active
   \tabexpand
+  \quoteexpand
   % Respect line breaks,
   % print special symbols as themselves, and
   % make each space count
P ChangeLog
P doc/texinfo.tex


reply via email to

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