Chordpack DocumentationFor version 0.8.0Table of contentsIntroductionQuick introduction to chordpro format Installation requirements Command line usage Chordpro commands Chordpack specific commands Chordpack versus Chord Credits and Copyrights IntroductionChordpack is a utility for typesetting and manipulating chordpro chord files. These are files used by chord utility. The primary goal of Chordpack is typesetting song-books using TeX typesetting system and it's LaTeX macro package. However, Chordpack can do whatever else you might want to do with chordpro files.Chordpack can do the following tasks:
Quick introduction to chordpro formatChordpack understands extension of chordpro format.Chordpro is an ASCII format for marking chords. Chords are denoted in square brackets. For instance [G]Always [Em]look at the [Am7]bright [D7]side of [G]life [Em] [Am7] [D7]is a notation for G Em Am7 D7 G Em Am7 D7 Always look at the bright side of lifeRepetition marks are denoted by [: and :] (repetition marks are only part of extension of chordpro format). Besides this, chordpro format defines braced instructions (commands), most important of which is {title:I am a Title of the Song} . Other commands include {subtitle:...}, {start_of_choir}, {end_of_choir} etc. You should use at most one command per line. The important thing about chordpro format is that there are already lots of songs on the web (see Online Guitar Archive - OLGA for instance) in this format. Installation requirementsChordpack consists of one script written in Perl. If you want to use Chordpack, you need to have Perl installed. If you want to use chordpack for its main purpose i.e. typesetting in TeX, you need to install TeX as well. We are using teTeX distribution for Linux but there's a high chance that you will want to use some Windows distribution.Command line usage of chordpackThe first thing to note is that the best printing result is achieved if you use chordpack to produce LaTeX source. This however requires installation of TeX and LaTeX2e macro package which some of you may find inconvenient. In that case, you should generate HTML instead.The usage is chordpack <SWITCHES> <TASK> FILE ...where there are lots of SWITCHES (also called options) explained later; TASK is one of the following
Chordpack reads input from FILEs or from standard input and produces the result on standard output. The exception to this is option -f. The switches are
-f song-list-fileUse song-list-file and output the result to file created from song-list-file by removing its suffix and adding tex suffix. Song-list-file is a file containing the list of song files as well as lines that are directly passed to Chordpack. The lines directly passed to Chordpack differ from filenames in that they start with space. For example:Let file songbook.list contain {toc} {album:Two is Enough} song-one.pro second-song.proLet file song-one.pro contain only {title:Just a Small Song} [A]Hey [Gm]heyand file second-song.pro contain only {title:Not a Big One} [G#m]Day is [G97maj]long and [D#]Girls are [F]sweetThen the result of using chordpack -f songbook.list tex is the same as the result of chordpack tex songbookfile >songbook.tex given that file songbookfile contains {toc} {album:Two is Enough} {title:Just a Small Song} [A]Hey [Gm]hey {title:Not a Big One} [G#m]Day is [G97maj]long and [D#]Girls are [F]sweet -l languageSets language. Currently, this has effect on TeX typesetting and the only supported language is Czech. If you make support for more languages, send me one.-bThis makes Chordpack transpose all songs being set to such a key so that there are as few barre chords as possible. All tablatures (text inside {start_of_tab} and {end_of_tab}) are ignored in this case, because transposition of tablatures in virtually impossible.Well, in some remote future there may be some super AI program to do that, but until then... -c chord-styleSet the style of chord setting. There are four styles available: jazz, m, mi and low. The default is m. Also, the presence of h letter in chord-style string turns on Central-European (or at least German and Czech) style of denoting last tone of C major key (English denote it B while German H).-s font_sizesSets the sizes of fonts. These can be 0,1,2,3.Chordpro commandsHere are listed chordpro commands understood by Chordpack. Chord utility however understands more commands.
Chordpack specific commandsChordpack has abilities that surpass those of Chord and as such it defines new commands of its own. These have to do with organization of song-book and with setting typesetting parameters as well. You should not use these commands as a part of single song files, rather they should be used to finalize the look of the song-book being set. They are best used as a part of song-list-file (see option -f).
Chordpack versus ChordChordpack was written to surpass the Chord program which generates postscript from chordpro format. The main drawback was the setting of chords. Consider example typesetting of chord which looks likeand compare it to chordpack's This just touches on the quality of chord typesetting of chordpack. However, chordpack has its weak spots as well when compared to Chord:
Credits and CopyrightsThe Chordpack was written by Daniel Polansky, September 2000. All the hard coding and finetuning was done by me (Dan), but some of the ideas came from David Necas alias Yeti .Chordpack is distributed under GPL. Excuse my poor English. |