Extracting Hymns from Hymnological Texts

You are here

I have several books which consist "primarily" of hymnological information: biographies, analyses, etc., but which include some complete hymn texts and also some quoted fragments of hymns: e.g., "Sweet Singers of Wales" and "Christian Singers of Germany" already at CCEL. Now, these books are intended partly as original publication of new translations, and as such provide "authority records" for those hymns. So I'd like to see the complete hymns automatically extracted and added to the Hymnary.

But ... I've marked up the hymn fragments in tags to keep the XML validator happy ( and tags not allowed in other contexts).

Is there a recommended way for a hymn-extractor to distinguish between tags around versified fragments, or tags around complete extractable hymns?

Some possible ideas (I haven't checked to see which of these are compatible with the ThML DTD:
-- no "n=" attribute for fragments
-- no "title" attribute
-- class="fragment" attribute

As usual, there are a couple of books in the pipeline that will be affected.


Comments

Stephen,

I responded to this by email long ago, but I didn't realize you'd also posted the question. Let me add an answer here for reference: don't use an "n" attribute on the hymn element if you don't want it to be imported as a hymn into hymnary.org.

---------------
Harry Plantinga
CCEL Director

It looks like you are using an ad-blocker. Ad revenue helps keep us running. Please consider white-listing Hymnary.org or subscribing to eliminate ads entirely and help support Hymnary.org.