lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SVG export - how might you add classes for all graphical objects?


From: Carl Sorensen
Subject: Re: SVG export - how might you add classes for all graphical objects?
Date: Tue, 29 Jun 2021 20:57:27 +0000
User-agent: Microsoft-MacOutlook/10.10.1b.201012


On 6/29/21, 2:55 PM, "lilypond-user on behalf of Aaron Hill" 
<lilypond-user-bounces+carl.d.sorensen=gmail.com@gnu.org on behalf of 
lilypond@hillvisions.com> wrote:

    On 2021-06-29 1:45 pm, David Kastrup wrote:
    > Aaron Hill <lilypond@hillvisions.com> writes:
    >> Hrm... would it be better to explicitly alist-copy the result from
    >> ly:assoc-get?  Actually, I guess you could do:
    >> 
    >> ;;;;
    >> (alist-cons 'class ... (alist-delete 'class attribs))
    >> ;;;;
    > 
    > Either that or not even bother about deleting the other entry.
    
    If you don't remove the old entry, then the SVG looks like this:
    
    <g class="foo NoteHead" class="foo">
    
    I am fairly certain that it is not valid to have the same attribute name 
    twice in an element in SGML.

You could do alist-copy, then assoc-set! on the copy. 

Carl

    
    
    -- Aaron Hill
    
    


reply via email to

[Prev in Thread] Current Thread [Next in Thread]