-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Ukedown" markdown for ukebook #1
Comments
You're going to have fun distinguishing between chords and 'second voice' given that they're more or less the same in the current songbook format, but otherwise this looks great. |
Thanks for the feedback, I'm hoping that most second voices don't start with uppercase A (only lowercase a), i.e. if it doesn't match this |
To keep others informed (although I'm not sure who is following this), significant progress has been made on this and it also now creates chord diagrams automatically using svg. Attached is a print out from chrome in both the London - Example.pdf and BUJ - Example.pdf formats. |
This looks fantastic, great work! Only a couple of minor issues there for me on a few edge cases:
Also, how are the diagrams created/where are they pulled from? Being able to add custom chords (different voicings, funky jazz chords etc.) is definitely a must-have for me, since the alternative I have used has been to piece them together in MS paint... |
@smudgefarrier - Are you hosting this on github also? you have no repositories here :) |
@birdcolour @smudgefarrier - to catch that edge case, why not just use (more or less) standard markdown in that situation? |
@birdcolour I wondered what the difference between aug and +, was now I know there isn't one, thanks. The pipe causes no problems that you're worried about as I don't use regex for paragraphs and sections (these require something akin to real parsing). Chords, no plans to make it so users can add their own, but easy enough for dev using svg and will make it possible to use alternate fingerings. E.g.
@lanky only on my personal pc at the moment, not ready to share yet. Hopefully in less than a week. |
Hi,
I'm suggesting we introduce a simple markdown-esque method for submitting ukulele songs - "Ukedown". Submitting songs in word (or odt) is heavyweight and feature rich, whereas what we really want is the right features to keep transcribed songs readable and simple for all, and to format it easily for different outputs (whether traditional pdf or small screen phones) without requiring submitters to tailor their submissions for all output formats and devices. I expect this to make it simpler for everyone to submit songs, and make tracking of diffs, comments, and alternations easier.
I'm going to start on doing this, might as well get things moving. I'm sharing this to give others visibility, and to see if anything thinks this is a bad idea, has suggestions or better alternatives, etc.
My first milestone is to have a simple javascript convertor for a textarea with css to match the current song book format. It should be mostly copy paste existing songs to port them over. Basic ukedown is something like this (regexp made up just for example):
"\([A-Z][a-z0-9#]*\)"
is a chord like (C) or (F#sus4), will allow things like (C-G-C) or (Am - Single strum) or (C///). Will automatically add the chord diagrams."\[[A-Za-z0-9_]+\]"
is a label like [intro], will allow things like [intro - repeat 4 times]"x[0-9]+
repeats like x2 formatted in bold italics"^|"
to draw a box around a stanza (like a chorus to repeat later)."|"
to indicates barlines."([A-Za-z0-9_ ]+)
a second voiceAs an example (using a the boxed section because it won't be copy paste able and is a bit different).
I expect this to produce html like:
With the stylesheet being like this:
Thanks in advance for any feedback,
Mark
The text was updated successfully, but these errors were encountered: