Found some excellent Bash tutorials here:
http://wiki.bash-hackers.org/scripting/tutoriallist
The list points to two of the best - which I've found to be very good:
http://steve-parker.org/sh/first.shtml
http://mywiki.wooledge.org/BashGuide
Found some excellent Bash tutorials here:
http://wiki.bash-hackers.org/scripting/tutoriallist
The list points to two of the best - which I've found to be very good:
http://steve-parker.org/sh/first.shtml
http://mywiki.wooledge.org/BashGuide
ER passed on some error messages from Tomcat-stable:
2011-01-25T13:40:03-08:00 pear.hcmc.uvic.ca/pear.hcmc.uvic.ca/pear.hcmc.uvic.ca daemon.err tomcat: hcmc-stable [ajp-8009-4]: Use of deprecated, since 2008-04-02, function fn:item-at(). It will be removed really soon. Please use $x[1] instead.
It's not clear which project they're from, but item-at is used in xrequest.xq in Graves (line 365). I'll have to test replacing it.
Started adding some doxygen documentation to the code for the XML editor. This is a way of getting back into the project after a few weeks break.
Some texts (such as Varin) have quotes in them which are not signalled with quote marks; it's only clear they're quotes because of the surrounding text. These are being tagged with <quote type="noMarks">, which I've added to the schema alongside @type="italics", and added a handler to the XSLT.
I've completed my bare-bones version of the web-based record search tool. All of the logic for the search - both displaying the available options and parsing out a form submission - is contained within two classes, Search and Search_Form. The classes build the search query in an organized manner based on passed parameters. This format makes the search easy to change or extend, which I can foresee happening based on the needs of the data and the researcher SD. All of the code is documented using comments and standard docblock syntax.
The database-side of things is handled with Zend_Db, the Zend Framework's RDBMS adapter. Since the search form can result in some very complex queries, Zend_Db makes the process of building the select statement relatively easy. Plus, it's a more robust database adapter in terms of security and integrity than I could build in any decent amount of time.
The search form doesn't yet have any styling and is bare, but now that the functionality is done everything else will fall into place eventually. SD is coming in for a meeting Thursday Jan 27th so I hope to hammer out some more details then.
Had the province-wide earthquake drill today. The process of getting under desks etc. proves straightforward -- plenty of room under our desks -- but we also took the opportunity to look inside our earthquake kits, and make sure there was one close to every desk. There's a little battery radio (with batteries) in the master kit (under my desk), and one other radio which is in one of the kits in the RA room. The food and water is still in-date, but most of it will run out within the next year (some in November, some next February). I'll put that on my calendar to remind me to order replacements.
On ECH's behalf, I'm helping to convert a Carrier dictionary to a format that the FirstVoices folks can use. I received the dictionary today in Access format, and was able to take the following steps:
@table:number-columns-repeated (a colspan setting). This gives a cleaner matrix to work with.The next stage will be to write the final transformation to produce whatever the FirstVoices folks need. Since I don't yet know what that is, I can't start on it, but I can start writing the Java collation class that will do the sorting. That's my next task.
The two latest texts have long and detailed tables of contents which need to be encoded. This is the recommended approach, which I've based on the Brown Women Writers Project guidelines, but which use examples from our own texts.
<div type="contents">.<head> element.<list type="toc">.<head> tag inside the <list> tag.<item> element inside the <list> element.<label> (containing a label such as "Chap. XXXII" in the Ville-Thierry, if there is one).<rs> ("referring string"), which contains the chapter title, heading or description.<ref type="pageNum">, containing the page number. This will have two other attributes:
target="p_1" (which points, in this example, to page 1 of the text). It is important that you later ensure that an element with the xml:id "p_1" exists in the document; normally this would be the <fw type="pageNum">1</fw> -- in other words, the <fw> tag which contains the page number "1".rend="float:right". This designates that the page number appears on the right of the page, which is normally the case.Here are some example encodings. This is from Le Bon Mariage:
<div type="contents"> <head> <figure><figDesc>Motif décoratif</figDesc></figure> <hi>TABLE</hi><lb/> <hi>DES CHAPITRES</hi><lb/> <hi>CONTENVS EN CE LIVRE</hi><lb/> </head> <list type="toc"> <head> <figure><figDesc>Ligne droite ray/e</figDesc></figure> <hi>LIVRE PREMIER.</hi><lb/> <hi>TRAITE PREMIER.</hi><lb/> <hi>De l'excellence & des fins du Mariage</hi><lb/> </head> <item> <rs>Des trois diverſes eſtats qui ſe retrouuent en l'Egliſe, page </rs> <ref type="pagenum" target="#p_1" rend="float: right;">1</ref> </item> <item> <rs>Combien le mariage eſt honorable. </rs> <ref type="pagenum" target="#p_6" rend="float: right;">6</ref> </item> <item> <rs>Qu'au mariage & en toutes autres actions ſe ſaut propoſer vne bonne fin.</rs> <ref type="pagenum" target="#p_10" rend="float: right;">10</ref> </item> </list> </div>
This example comes from the Ville-Thierry:
<div type="contents"> <head> <figure> <figDesc>Motif décoratif</figDesc> </figure> <hi>TABLE</hi><lb/> <hi>DES CHAPITRES.</hi><lb/> <figure><figDesc>Ligne droite foncée</figDesc></figure> <hi>CHAPITRE PREMIER.</hi><lb/></head> <list type="toc"> <item> <rs>De la grandeur & de l'excellence du Mariage. pag.</rs> <ref target="#p_1">1</ref> </item> <item> <label>Chap. II.</label> <rs>Qu'il n'y a rien de plus mal- heureux que l'état de ceux qui entrent mal dans le Mariage , & qui ne s'y con- duisent pas par les regles de la charité & de la pieté chrétienne.</rs> <ref target="#p_19">19</ref> </item> <item> <label>Chap. III.</label> <rs>Quelles sont les fins que les Chrétiens doivent se proposer , lorsqu'ils s'engagent dans le Mariage.</rs> <ref target="#p_26">26</ref></item> </list> </div>
Deadline looming for grant application...