]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add macros @q and @qq for quoting as `...' and ``...'', respectively.
authorWerner Lemberg <wl@gnu.org>
Sun, 7 Jan 2007 21:27:34 +0000 (22:27 +0100)
committerWerner Lemberg <wl@gnu.org>
Sun, 7 Jan 2007 21:27:34 +0000 (22:27 +0100)
The idea is to get &lsquo; and friends for HTML (and XML) output --
ASCII quote characters look ugly in HTML browsers.

Documentation/user/macros.itexi

index 68b52bb51368db7ea2bab262a7113c35c66a1276..0a85e749dce08303ba67f09e8b9f8b61e94eed9d 100644 (file)
 @ref{\NAME\,,,music-glossary}
 @end macro
 
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+@html
+&lsquo;\TEXT\&rsquo;
+@end html
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+@html
+&ldquo;\TEXT\&rdquo;
+@end html
+@end macro
+
 @end ifhtml
 
 
 @ref{\NAME\,,,music-glossary}
 @end macro
 
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+@xml
+&lsquo;\TEXT\&rsquo;
+@end xml
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+@xml
+&ldquo;\TEXT\&rdquo;
+@end xml
+@end macro
+
 @end ifdocbook
 
 
 @inforef{\NAME\}
 @end macro
 
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+`\TEXT\'
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+``\TEXT\''
+@end macro
+
 @end ifinfo
 
 
@@ -142,8 +180,19 @@ internals document, @internalsref{\NAME\}
 user manual, @internalsref{\NAME\}
 @end macro
 
+@c to get decent quotes in `foo'
+@macro q{TEXT}
+`\TEXT\'
+@end macro
+
+@c to get decent quotes in ``foo''
+@macro qq{TEXT}
+``\TEXT\''
+@end macro
+
 @end iftex
 
+
 @ifnottex
 @c **** not TEX ****
 
@@ -201,4 +250,4 @@ user manual, @internalsref{\NAME\}
 @kindex \WORD\
 @end macro
 
-
+@c EOF