]> git.donarmstrong.com Git - lilypond.git/blob - tex/quotes.patch
Merge branch 'master' into nested-bookparts
[lilypond.git] / tex / quotes.patch
1 --- texinfo/doc/texinfo.tex     2006-06-02 03:19:04.000000000 +0200
2 +++ texinfo.tex 2006-06-02 03:19:10.000000000 +0200
3 @@ -1878,9 +1878,12 @@
4  {
5    \catcode`\-=\active
6    \catcode`\_=\active
7 +  \catcode`\'=\active
8    %
9    \global\def\code{\begingroup
10      \catcode`\-=\active  \catcode`\_=\active
11 +    \catcode`\'=\active
12 +    \let'\singlequotechar
13      \ifallowcodebreaks
14       \let-\codedash
15       \let_\codeunder
16 @@ -5059,11 +5062,10 @@
17  %
18  \maketwodispenvs {lisp}{example}{%
19    \nonfillstart
20 -  \tt
21 +  \tt\quoteexpand
22    \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special.
23    \gobble       % eat return
24  }
25 -
26  % @display/@smalldisplay: same as @lisp except keep current font.
27  %
28  \makedispenv {display}{%
29 @@ -5191,6 +5193,12 @@
30  \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
31  %
32  \def\starttabbox{\setbox0=\hbox\bgroup}
33 +%
34 +%
35 +% Don't replace quotes with curly quotes. This makes cut & pasting
36 +% from a PDF file problematic.
37 +% 
38 +\def\singlequotechar{\char'15\relax}
39  \begingroup
40    \catcode`\^^I=\active
41    \gdef\tabexpand{%
42 @@ -5203,6 +5211,11 @@
43        \wd0=\dimen0 \box0 \starttabbox
44      }%
45    }
46 +  \catcode`\'=\active
47 +  \gdef\quoteexpand{%
48 +    \catcode`\'=\active
49 +    \def'{\singlequotechar}
50 +  }%
51  \endgroup
52  \def\setupverbatim{%
53    \let\nonarrowing = t%
54 @@ -5212,6 +5225,7 @@
55    \def\par{\leavevmode\egroup\box0\endgraf}%
56    \catcode`\`=\active
57    \tabexpand
58 +  \quoteexpand
59    % Respect line breaks,
60    % print special symbols as themselves, and
61    % make each space count