From: Werner Lemberg Date: Mon, 9 Apr 2007 19:56:13 +0000 (+0200) Subject: Add `backslash' value since @q{\} doesn't work with texinfo 4.8. X-Git-Tag: release/2.11.23-1~34^2~2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7a0ad7f198d8c99cd2172c1506e78f8f93b82f27;p=lilypond.git Add `backslash' value since @q{\} doesn't work with texinfo 4.8. Provide TeX versions for @q and @qq (derived from german.sty). Fix quotation typo. --- diff --git a/Documentation/de/user/macros.itexi b/Documentation/de/user/macros.itexi index fc8754b43e..2bce6691ae 100644 --- a/Documentation/de/user/macros.itexi +++ b/Documentation/de/user/macros.itexi @@ -56,6 +56,11 @@ @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 -‚\TEXT\’ +‚\TEXT\‘ @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