From 16095cf78afec27d9896e0e215acc54259c06b60 Mon Sep 17 00:00:00 2001 From: David Evans Date: Sun, 12 Nov 2017 12:23:06 +0000 Subject: [PATCH] Add label templates [#22], also Bowie is the *goblin* king... oops! --- README.md | 33 +++++--- screenshots/LabelTemplates.png | Bin 0 -> 12252 bytes screenshots/SimpleUsage.png | Bin 50420 -> 50377 bytes scripts/main.js | 30 ++++--- scripts/sequence/CodeMirrorMode.js | 4 + scripts/sequence/Generator.js | 35 ++++++++- scripts/sequence/Generator_spec.js | 54 +++++++++++++ scripts/sequence/LabelPatternParser.js | 75 ++++++++++++++++++ scripts/sequence/LabelPatternParser_spec.js | 83 ++++++++++++++++++++ scripts/sequence/Parser.js | 19 +++++ scripts/sequence/Parser_spec.js | 26 ++++++ scripts/specs.js | 1 + 12 files changed, 339 insertions(+), 21 deletions(-) create mode 100644 screenshots/LabelTemplates.png create mode 100644 scripts/sequence/LabelPatternParser.js create mode 100644 scripts/sequence/LabelPatternParser_spec.js diff --git a/README.md b/README.md index 2f41469..e7b6b57 100644 --- a/README.md +++ b/README.md @@ -17,16 +17,16 @@ other projects. ``` title Labyrinth -Bowie -> Gremlin: You remind me of the babe -Gremlin -> Bowie: What babe? -Bowie -> Gremlin: The babe with the power -Gremlin -> Bowie: What power? -note right of Bowie, Gremlin: Most people get muddled here! -Bowie -> Gremlin: 'The power of voodoo' -Gremlin -> Bowie: "Who-do?" -Bowie -> Gremlin: You do! -Gremlin -> Bowie: Do what? -Bowie -> Gremlin: Remind me of the babe! +Bowie -> Goblin: You remind me of the babe +Goblin -> Bowie: What babe? +Bowie -> Goblin: The babe with the power +Goblin -> Bowie: What power? +note right of Bowie, Goblin: Most people get muddled here! +Bowie -> Goblin: 'The power of voodoo' +Goblin -> Bowie: "Who-do?" +Bowie -> Goblin: You do! +Goblin -> Bowie: Do what? +Bowie -> Goblin: Remind me of the babe! Bowie -> Audience: Sings @@ -113,6 +113,19 @@ else end ``` +### Label Templates + +Label Templates preview + +``` +autolabel "[]