Spent most of the day reading through SF tracker items in preparation for the Paris meeting. Also put the P5 source into an instance of eXist so I can query it with XQuery, and used that to prepare a summary of one issue (@usage="mwa|rwa"), which is up for discussion. Also did some travel planning (getting from the airport to the hotel, etc.).
Carol from Sociology asked if it was possible to export data from the Agenda list view to an excel spreadsheet. There is no built-in feature, but the data is in an html table, so you can simply copy and the table data and you get tab delimited fields and return delimited records on the clipboard, which you then simply paste into the spreadsheet.
I tested copying and pasting from the timetable view and while all the cells and data are successfully copied, there is a problem because in the html table there are rowspans (e.g. for time blocks that take 90 minutes span 3 30 minute rows) and those are not reproduced in the spreadsheet. The data for a 90 minute block appears in the first row and the two rows below are empty. So it would take a fair bit of manual styling of the spreadsheet to reproduce the look of the html table.
...from Megapode.
Hoping to leave on time, but a series of help requests from RAs kept me engaged.
These two blocks of XQuery will search for page-image links in the header <biblScope>
and in <pb>
tags and report any that don't match the expected pattern. That doesn't mean they're bad, just that they need checking.
header <biblScope>s:
xquery version "1.0"; declare default element namespace "http://www.tei-c.org/ns/1.0"; for $b in //biblScope[@type="startPageImage"] let $bits := tokenize($b/@facs, "/") where not(starts-with($bits[2], $bits[1])) or not(matches($b/@facs, '((co)|(rg7))_((g8c)|([0-9]{1,3}))_[0-9]{2,2}/((co)|(rg7))_((g8c)|([0-9]{1,3}))_[0-9]{2,2}_[0-9]{5,5}[rv].jpg')) return (xs:string($b/ancestor::TEI/@xml:id), $b)
<pb>
tags in the body:
xquery version "1.0"; declare default element namespace "http://www.tei-c.org/ns/1.0"; for $pb in //pb[@n] let $bits := tokenize($pb/@n, "/") where not(starts-with($bits[2], $bits[1])) or not(matches($pb/@n, '((co)|(rg7))_((g8c)|([0-9]{1,3}))_[0-9]{2,2}/((co)|(rg7))_((g8c)|([0-9]{1,3}))_[0-9]{2,2}_[0-9]{5,5}[rv].jpg')) return (xs:string($pb/ancestor::TEI/@xml:id), $pb)
Fixed a bug with page number positioning by re-working some of the margins on the various types of <fw>
. Changes documented in CSS file.
This bug proved to be a bug in Firefox so it's now closed.
<g>
elements were previously only handled when they occurred within <abbr>
tags, but they do occur elsewhere, so I've now added a new handler which shows their character description as a mouseover popup wherever they show up. The original handler for <xsl:template match="choice[child::abbr[descendant::g] and child::expan]">
has also been tweaked so that it more clearly distinguishes between the expansion of the abbreviation, and the explanation of the one or more gaiji characters which appear in it.