Commit Graph

19 Commits

Author SHA1 Message Date
Jim Hague f267b21c21 Remove vestiges of support for stdin input to abcfield.py.
I'm not using it, and it complicates things a bit.
2017-10-12 13:29:50 +01:00
Jim Hague 5622d5d239 Convert abcfield.py from OptionParser to ArgumentParser.
abctemplate.py uses ArgumentParser, so this reduced dependencies.
2017-10-12 11:59:28 +01:00
Jim Hague cd56cd0bc5 Fix full title text in markdown - getFullTitle() needs a list of lines. 2017-10-11 18:05:32 +01:00
Jim Hague 127c0380db Provide full titles for next and previous tunes in web pages. 2017-10-11 17:45:27 +01:00
Jim Hague 9e27b13c6b Add fulltitle to template fields.
fulltitle is title + [(" subtitle ")"] if subtitle is present.

To do: extend full title to next and prev. this means exposing it
in abcfield.py.
2017-10-11 17:09:31 +01:00
Jim Hague 0f2b90c40d Provide quoting for single and double quotes.
Stop them mucking up HTML quoting by substituting with entities.
2017-10-11 17:03:29 +01:00
Jim Hague dab61c6bbd Add previous and next tune links to website. 2017-10-10 15:01:22 +01:00
Jim Hague 02b29f13f3 Add subtitle if present in tune links. 2017-10-09 17:30:31 +01:00
Jim Hague a38378712a Nerys next: L'Inconnu de Limoise.
No chords. Also fix up title field display to not put a space between
items if 'The' item isn't all alphanumeric. So , L' works.
2017-09-24 23:12:03 +01:00
Jim Hague 945454da9d Give ABC file directory when expanding markdown.
<foo.abc> specifies a file in the same directory as the file being
processed.
2016-11-02 14:59:31 +00:00
Jim Hague c1c7d23c0b Implement custom markdown <foo.abc> to reference tune.
Also ensure filename matches are not greedy, and so work if there are
two filenames on a line.
2016-11-02 14:06:25 +00:00
Jim Hague d9d4e3c157 Convert Markdown in N and H fields. Fix up .abc links. 2016-11-02 08:36:21 +00:00
Jim Hague 262ee6c3e4 Replace sed substitution with Python templating for HTML and LaTeX output. 2016-11-02 00:21:18 +00:00
Jim Hague fbd277f6c9 More abcfield.py updates and mark it Python 3.
- Move title fixups into Python.
- Move key display name expansion into Python.
- Add Dottes-specific header continuation line format. None of the usual
  tools appears to support the official +: continuation.
2016-10-31 23:48:45 +00:00
Jim Hague 639f6f42df Set exit status on abcfield.py to indicate if anything found. 2016-10-29 23:18:45 +01:00
Jim Hague fcc48a7a58 Revise abcfield.py to recognise continuation fields.
Also default to HTML entity output, and replace --contains with
--starts, which does the same thing but checks only the start of
the line and removes the matched item.
2016-10-29 19:32:53 +01:00
Jim Hague 6427153e8e Add --contains flag to abcfield.py.
Currently we rely on any N: field with a Change: subnotice being the first
N: field. Add --contains field to abcfield.py to remove this restriction.

Also use it to extract new subfield Credit: and add that if present
to the tune information in print and on web.
2013-08-04 22:09:25 +01:00
Jim Hague e6090d8ef4 Add --index parameter to allow selection of nth occurence of field. 2013-07-16 16:25:30 +01:00
Jim Hague 4c8f2a3ade Make output larger where possible.
This is done by

a) reducing the page margins
b) compressing the heading and removing all but Notes: fields.

The latter produced vertically smaller tune PDFs that will scale wider.

In the process, modify abctitle.py to extract the first of any header field, and
move formatting for a single tune into a .fmt file.
2012-04-21 19:47:30 +01:00