]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add `backslash' value since @q{\} doesn't work with texinfo 4.8.
authorWerner Lemberg <wl@gnu.org>
Mon, 9 Apr 2007 19:56:13 +0000 (21:56 +0200)
committerWerner Lemberg <wl@gnu.org>
Mon, 9 Apr 2007 19:56:13 +0000 (21:56 +0200)
Provide TeX versions for @q and @qq (derived from german.sty).
Fix quotation typo.

Documentation/de/user/macros.itexi

index fc8754b43e16c1091c8c8792133e8d6a7f6df3bf..2bce6691ae07d1eae1c2301c0bfb5ca54d05416d 100644 (file)
 @end macro
 
 
+@c we need this since @q{\} doesn't work with makeinfo 4.8 --
+@c say @q{@value{backslash}} instead
+@set backslash \
+
+
 @ifhtml
 @c ***** HTML *****
 
@@ -87,7 +92,7 @@
 @c to get decent German quotes in `foo'
 @macro q{TEXT}
 @html
-&sbquo;\TEXT\&rsquo;
+&sbquo;\TEXT\&lsquo;
 @end html
 @end macro
 
@@ -194,15 +199,63 @@ internals document, @internalsref{\NAME\}
 user manual, @internalsref{\NAME\}
 @end macro
 
-@c they are actually for LaTeX, do they work?
+@tex
+% from german.sty
+\def\allowhyphens{%
+  \penalty\@M
+  \hskip\z@skip}
+
+\gdef\set@low@box#1{%
+  \setbox\tw@\hbox{,}%
+  \setbox\z@\hbox{#1}%
+  \setbox\z@\hbox{%
+    \dimen@\ht\z@
+    \advance\dimen@ -\ht\tw@
+    \lower\dimen@\box\z@}%
+  \ht\z@\ht\tw@
+  \dp\z@\dp\tw@}
+
+\gdef\save@sf@q#1{%
+  {\ifhmode
+     \edef\@SF{\spacefactor\the\spacefactor}%
+   \else
+     \let\@SF\empty
+   \fi
+   \leavevmode #1
+   \@SF}}
+
+\gdef\glq{%
+  \save@sf@q{%
+    \set@low@box{'\/}%
+    \box\z@
+    \kern-.04em
+    \allowhyphens}}
+\gdef\grq{%
+  \save@sf@q{%
+    \kern-.0125em
+    `%
+    \kern.07em}}
+\gdef\glqq{%
+  \save@sf@q{%
+    \set@low@box{''\/}%
+    \box\z@
+    \kern-.04em
+    \allowhyphens}}
+\gdef\grqq{%
+  \save@sf@q{%
+    \kern-.07em
+    ``%
+    \kern.07em}}
+@end tex
+
 @c to get decent quotes in `foo'
 @macro q{TEXT}
- \glq\TEXT\\grq
+@glq\TEXT\@grq
 @end macro
 
 @c to get decent quotes in ``foo''
 @macro qq{TEXT}
- \glqq\TEXT\\glqq
+@glqq\TEXT\@grqq
 @end macro
 
 @end iftex