[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: output-attributes in 2.20.0
From: |
Jean Abou Samra |
Subject: |
Re: output-attributes in 2.20.0 |
Date: |
Thu, 6 Aug 2020 11:31:24 +0200 (CEST) |
> (*) The documentation says "SVG output can optionally contain
metadata for graphical objects (grobs) like note heads, rests, etc.
This metadata can be standard SVG attributes like id and class, or
non-standard custom attributes. Specify the attributes and their values
by overriding a grob’s output- attributes property with a Scheme
association list (alist). The values can be numbers, strings, or
symbols. For example: " I suggest "SVG output can optionally contain
metadata for graphical objects (grobs) like note heads, rests, etc.
This metadata can be standard SVG attributes like id and class, or
non-standard custom attributes. Specify the attributes and their values
by overriding a grob’s output- attributes property with a Scheme
association list (alist) or a procedure returning an alist. The values
can be numbers, strings, or symbols. For example:"
This is not specific to output-attributes. Any grob property can be set
to a callback, that is, a (lambda (grob) ...). This is documented here:
[1]http://lilypond.org/doc/v2.20/Documentation/extending/callback-funct
ions
Best,
Jean Abou Samra
References
1. http://lilypond.org/doc/v2.20/Documentation/extending/callback-functions