Use Unicode characters. Other minor optical fixes.
[lilypond.git] / tex / quotes.patch
blobb7bba2e124d66d8956575895f8a535a59bd907f5
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 @@
5 \catcode`\-=\active
6 \catcode`\_=\active
7 + \catcode`\'=\active
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 @@
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
26 % @display/@smalldisplay: same as @lisp except keep current font.
28 \makedispenv {display}{%
29 @@ -5191,6 +5193,12 @@
30 \newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
32 \def\starttabbox{\setbox0=\hbox\bgroup}
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
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