MVP: Linking epithets with speeches in Nostromo

13/04/12

Permalink 11:26:19 am, by mholmes, 130 words, 115 views   English (CA)
Categories: Academic; Mins. worked: 90

MVP: Linking epithets with speeches in Nostromo

I've added new functionality to the stylesheet that builds the serOgraphies.xml file. As part of the information it gathers on each character, it also pulls out the beginning of each speech (<said>), and tells you what the nearest <rs> to that speech is. In other words, it calculates which epithet is most closely associated with each speech. This involved writing a couple of useful functions (hcmc:getTextOffsetBetweenTags and hcmc:getNearestRsTag) which will also be useful with the Map of London.

It's currently set to a distance limit of 250 characters (meaning letters/digits/glyphs, not literary characters), so that if there is no <rs> within 250 characters of the <said>, no epithet is returned. That distance can be changed easily in the stylesheet.

Pingbacks:

No Pingbacks for this post yet...

Depts

This blog is for work done for academic departments which does not fall under other categories.

Reports

Categories

May 2013
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

XML Feeds