| 1 |
$Id: crd2sb.txt,v 1.3 1997/11/21 21:38:35 abel Exp $ |
| 2 |
(C)Copyright 1997 Abel Chow <[email protected]> |
| 3 |
|
| 4 |
What does ``crd2sb'' do? |
| 5 |
|
| 6 |
usage: crd2sb filename.crd |
| 7 |
|
| 8 |
``crd2sb'' takes Chordpro songs and generates |
| 9 |
|
| 10 |
What's the format of a `crd' file? |
| 11 |
|
| 12 |
---------------------------------------------------------------------- |
| 13 |
|
| 14 |
Typically, a song file looks like: |
| 15 |
|
| 16 |
{t:Song Title} |
| 17 |
{st:Author} |
| 18 |
{st:(C)Copyright information} |
| 19 |
# key: G |
| 20 |
# sref: ScriptRef 3:16 |
| 21 |
# CCLI |
| 22 |
# intro: G D C D |
| 23 |
[|][G]This [Bm]is a [|][C]song. |
| 24 |
[|][Dsus]La, la, [|][D]la, la, la. |
| 25 |
[|][G]This [Bm]is a [|][C]song. |
| 26 |
[|][Dsus]This is a[|D]nother line.[|][Dsus] [/] [D] [Dmaj7][|][D] |
| 27 |
|
| 28 |
{soc} |
| 29 |
[|][G]This is the [|][D]cho[Dsus]-[|][D]-[A]rus. |
| 30 |
[|][Am]This is the [|][G]cho[D]rus. |
| 31 |
[|][G]This is the [|][D]cho[Dsus]-[D]-[|][A]rus. |
| 32 |
[Am]This [|][C]is the [|][Gsus]cho[|][G]rus. |
| 33 |
{eoc} |
| 34 |
|
| 35 |
[|][G]This [Bm]is the [|][C]second verse. |
| 36 |
[|][Dsus]La, la, [|][D]la, la, la ... |
| 37 |
|
| 38 |
---------------------------------------------------------------------- |
| 39 |
|
| 40 |
Generally, if you have multiple chord changes within a word, you'll |
| 41 |
want to use the [chord]- structure. This will put a dash in the |
| 42 |
chordbook output (but not the wordbook or overhead versions). |
| 43 |
|
| 44 |
---------------------------------------------------------------------- |
| 45 |
|
| 46 |
Comment Directives |
| 47 |
|
| 48 |
Comments are any line that begins with `#'. Certain directives are |
| 49 |
embedded in the comments so that Chordpro doesn't see them (but they |
| 50 |
can be parsed by ``crd2sb''). |
| 51 |
|
| 52 |
The currently supported comment directives are: |
| 53 |
|
| 54 |
key, to specify the key of the song, e.g. |
| 55 |
# key: G |
| 56 |
|
| 57 |
section, for when you want a section defined instead of a verse, e.g. |
| 58 |
# section: |
| 59 |
|
| 60 |
note, \SBMargNote{} |
| 61 |
# note: 1997 Missions Conference Theme Song |
| 62 |
|
| 63 |
tex, a catchall for putting TeX in the file |
| 64 |
# tex: \CBPageBrk |
| 65 |
|
| 66 |
intro, for \SBIntro |
| 67 |
# intro: |G D C| |
| 68 |
|
| 69 |
---------------------------------------------------------------------- |
| 70 |
|
| 71 |
Supported Chordpro Directives "{directive:args}" |
| 72 |
|
| 73 |
{title:Title}, {t:Title} -> title of song |
| 74 |
{subtitle:Subtitle}, {st:Subtitle} -> used for author, copyright |
| 75 |
{comment:This is a comment.}, {c:This is a comment} -> ignored |
| 76 |
{new_song}, {ns} -> ends current song, starts a new song |
| 77 |
{start_of_chorus}, {soc} -> Beginning delimiter for chorus. |
| 78 |
{end_of_chorus}, {eoc} -> Ending delimiter for chorus |
| 79 |
|
| 80 |
---------------------------------------------------------------------- |
| 81 |
|
| 82 |
Chordpro/SongBook.sty Mappings |
| 83 |
|
| 84 |
[Asus]word -> \Ch{Asus}{word} |
| 85 |
[Asus]- -> \Ch{Asus}{\SBem} |
| 86 |
[Asus][A] -> \Ch{Asus}{}\Ch{A}{} |
| 87 |
(abc) -> {\em abc} |
| 88 |
... -> \ldots |
| 89 |
|
| 90 |
---------------------------------------------------------------------- |
| 91 |
|
| 92 |
To Do |
| 93 |
|
| 94 |
- Create example file exercising all the features. |
| 95 |
- Explain [|]. |
| 96 |
- Rewrite docs. |