--- lilypond-book 2005/04/02 22:50:31 1.1.1.4 +++ lilypond-book 2005/04/02 22:51:11 1.1.1.5 @@ -113,7 +113,7 @@ latex_filter_cmd = 'latex "\\nonstopmode \input /dev/stdin"' filter_cmd = 0 process_cmd = '' -default_ly_options = {} +default_ly_options = { 'alt': "[image of music]" } # # Is this pythonic? Personally, I find this rather #define-nesque. --hwn @@ -148,6 +148,7 @@ VERBATIM = 'verbatim' FONTLOAD = 'fontload' FILENAME = 'filename' +ALT = 'alt' # NOTIME has no opposite so it isn't part of this dictionary. @@ -386,7 +387,8 @@ TEXIDOC, VERBATIM, FONTLOAD, - FILENAME + FILENAME, + ALT ] ly_options = { @@ -439,7 +441,7 @@ OUTPUT: r''' [image of music]''', + border="0" src="%(image)s" alt="%(alt)s">''', PRINTFILENAME: '

%(filename)s

', @@ -503,13 +505,13 @@ OUTPUTIMAGE: r'''@noindent @ifinfo address@hidden(base)s,,,[image of music],%(ext)s} address@hidden(base)s,,,%(alt)s,%(ext)s} @end ifinfo @html

[image of music] + border="0" src="%(image)s" alt="%(alt)s">

@end html @@ -952,6 +954,7 @@ str += output[HTML][BEFORE] % vars () for image in self.get_images (): (base, ext) = os.path.splitext (image) + alt = self.option_dict[ALT] str += output[HTML][OUTPUT] % vars () str += output[HTML][AFTER] % vars () return str @@ -964,6 +967,7 @@ # URG, makeinfo implicitly prepends dot to extension. # Specifying no extension is most robust. ext = '' + alt = self.option_dict[ALT] str += output[TEXINFO][OUTPUTIMAGE] % vars () base = self.basename ()