468,490 Members | 2,584 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Share your developer knowledge by writing an article on Bytes.

Literature and poetry text markup with the Curl web-content language

8
I have posted a few examples of using Curl for poetry markup and I have several pages at poets.aule-browser.com

Most often I use a single Curl outer element, e.g., {poem }
{poem
|| poem text goes here
}
to wrap the entire text of a poem.
Each stanza is then wrapped by a {stanza } element as follows, e.g.,
{poem
{stanza
|| lines here
}
{stanza
|| second here
}
} || end of poem markup
Because Curl allows both user-defined tags such as {poem } and {stanza } and permits macros, on any given page these elements not only have the style that you choose, but the behaviour that you choose.
For example:
{poem
{stanza
|| lines here
}
{pg 2}
{stanza
|| second here
}
} || end of poem markup
What the {pg } element does depends on your own definition for either that document or for that web page. It might be merely an invisible target for a link anchor.
Note that there are no closing tags as required for XML elements.
What becomes more interesting are annotations and glosses, which can be visible on one web page and not on another - but for the very same markup !
I know of nothing for markup which is more elegant, effective and mature (now in version 7.0.)
Curl was developed at MIT is now licensed by Sumisho but with open-source projects at sourceforge.

For more of my notes on my hobby, poetry markup, see developers.curl.com

For other approaches to poetry markup for web pages, see LML or Literature Markup Language by Prof. Hoffman. There are several university sites devoted to e-texts for poetry, ancient texts (often in rhyme or metre) and other source texts in the humanities.

A string-processing language for the humanities was the first inadvertant open-source project: SNOBOL (which escaped the lawyers at Bell Labs and was followed by ICON from U. AZ, Tucson as a replacement for SNOBOL and SPITBOL.) ObjectIcon is now available at code.goggle and Converge is a pythonic variant available at the convergepl site.
Jun 6 '10 #1
0 3200

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Jan K. | last post: by
7 posts views Thread by Jacek Generowicz | last post: by
16 posts views Thread by Jeremy Clulow | last post: by
20 posts views Thread by John Bailo | last post: by
reply views Thread by Rob Webster | last post: by
2 posts views Thread by Michael Kremser | last post: by
10 posts views Thread by Sillu | last post: by
3 posts views Thread by gieforce | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.