~alcinnz/rhapsode

9c5bb28ba168a954442c29855b330843eeee5360 — Adrian Cochrane 4 years ago d94a3ec
Ensure marker counters are incremented.
1 files changed, 4 insertions(+), 1 deletions(-)

M src/SpeechStyle.hs
M src/SpeechStyle.hs => src/SpeechStyle.hs +4 -1
@@ 128,7 128,10 @@ instance PropertyParser SpeechStyle where
    shorthand _ "cue" (a:b) | isCue [a], isCue b = [("cue-before", [a]), ("cue-after", b)]
    shorthand _ "cue" toks | isCue toks = [("cue-before", toks), ("cue-after", toks)]

    shorthand _ "-rhaps-marker" [Ident m] = [("mark", [String m, Function "counter", Ident m, RightParen])]
    shorthand _ "-rhaps-marker" [Ident m] = [
            ("mark", [String m, Function "counter", Ident m, RightParen]),
            ("counter-increment", [Ident m])
        ]

    shorthand self key value | isJust $ longhand self self key value = [(key, value)]
        | otherwise = []