3 days of time off during Christmas week that needs to be made up, per collective agreement.
Leaving at 2 today.
When testing at home on a Windows 7 VM, noticed that the latest download is now QT 4.6, so I've installed that locally too. Note that you still have to manually switch the QT version in the preferences screen, otherwise your apps will presumably be compiled and running against the old version. Also found a problem with the install; in order to use QOpenGL, you need to install libglui-dev, but this won't install on my Jaunty machine because it depends on freeglut-dev, which is not available. I'm not worrying about this right now, because I'm likely to move to Lucid Lynx by May. The app compiled and ran just fine, and I found and fixed another little bug.
Meet with Martin regarding xml files. The file tree will be: project - MyNDIR - repository.
The repository file contains the xml files for each illustration and also files for:
- images - which contains individual images files plus an image archive file
- biblio - which contains biblio.xml
- names - which contains names.xml
- vocab - which contains vocab.xml
biblio.xml will consist of <listBibl><biblStruct xml:id="blah"></biblStruct></listBibl>
In doc xml:
-
<ref target="biblio/biblio.xml#blah"> -
<bibl corresp="biblio/biblio.xml#blah"> -
<persName ref="names/names.xml#blah">
We now have a new way to write reference links:
<ref target="../../back_matter/references/references.xml#aarschot">Aarschot</ref>
This makes your references actually valid in the directory/file tree. What it says is: "To find this item, go up the tree two levels (from texts_original to anthology to mariage) then down the tree to back_matter and then references, then find the file references.xml, and in that file, find the item with the xml:id "aarschot".
You will also be able to make a reference point to multiple locations, just by using a space to separate them, like this:
<ref target="../../back_matter/references/references.xml#montgibel ../../back_matter/references/references.xml#etna">Montgibel (Etna)</ref>
However, it's best not to do that quite yet, because I don't have the rendering code set up to deal with it.
This is what the database structure looks like now:
----mariage [mariage.rng, mariage_drama.rng] ----anthology ----images ----texts_original ----editorial ----articles ----intros ----back_matter ----references ----biblio ----translations ----texts_modern
ALL xml files are at the bottom level (two levels below the root). This means that when you link to RNG files, at the top of your document, you'll need to do it like this:
<?oxygen RNGSchema="../../mariage.rng" type="xml"?> <?oasis-schema href="../../mariage.rng" type="application/xml"?>
This means "go two directories up the tree to find the file". ../ means "go up one directory", and two of them means go up two. The value of this is that we only have ONE copy of the schemas. This is important because at some point I'll be rebuilding the schemas, and I only want to replace them in one location, instead of dozens. Don't make any copies of the schemas anywhere else. If you try to validate your document and it doesn't find the schema, that means either your document is in the wrong place, or you don't have the right path (as above) in the head of your file.
I'm changing the Lettuce working directories (where the RAs edit) so that they mirror the db structure, and in the process I've been working through existing documents and fixing things.
- The old
unfinishedfolder is now read-only. - The following files from
/satyres_bastards/have been merged into the main db. I made some basic fixes to these files (header data was wrong, having been copied from existing files and not changed --xml:idattributes,<idno>tags, titles, page numbers and so on were often wrong. Where the files were usable, they're now on the site. That includes these files: astrologue_cocu, elle_mesme, fantastique_repentir (replacing the old one, although I ported over one of CC's notes), hobreau_cocu, mary_cocu and premiere_nuit. - One exception was Labyrinthe D'Amour, which seems to be just a copy of Fantastique Repentir. That has been left in place.
- When you're creating a new document, create it in the following place on Lettuce:
/home1t/mariage/ccarlin/xml/working_files/exist_db_NEW_XML/mariage/anthology/texts_original
Files in this folder will NOT be pushed up to the website. - When you're happy with the file and ready to publish it, copy it to this location:
/home1t/mariage/ccarlin/xml/exist_db/mariage/anthology/texts_original
Any files in this location WILL be pushed up to the website automatically (every day or two). - Once you have published a file, edit it in the PUBLISHED location (you may well want to delete it from the working_files tree, so you don't get confused).
- References files are now here:
/home1t/mariage/ccarlin/xml/exist_db/mariage/back_matter/references
Edit and save them in that location. - ONLY XML files appear in the editing locations. Do not put any PDFs, doc files or other ancillary notes and references in those locations. Keep them somewhere in the
working_filesdirectory. You'll see that all your old PDFs, docs etc. have already been moved over to theworking_filestree.
Got a smidgen of actual coding done today.
I'm puzzling over the best way of querying the DB. This one (as opposed to the slide db) is more complex and cannot be contained by a single view. For example, if I do an all-encompassing query for everything, like this:
SELECT * FROM view_characters_characters,view_events_characters,view_groups_characters,view_events_places WHERE view_groups_characters.citation LIKE "%Melisseus%" OR view_events_characters.citation LIKE "%Melisseus%" OR view_characters_characters.citation LIKE "%Melisseus%" OR view_events_places.citation LIKE "%Melisseus%" OR view_groups_characters.character_name LIKE "%Melisseus%" OR view_events_characters.character_name LIKE "%Melisseus%" OR view_characters_characters.primaryChar LIKE "%Melisseus%" OR view_characters_characters.relatedChar LIKE "%Melisseus%" OR view_characters_characters.relationship LIKE "%Melisseus%" OR view_events_characters.event_description LIKE "%Melisseus%" OR view_events_places.event_description LIKE "%Melisseus%" OR view_events_places.place_name LIKE "%Melisseus%" OR view_groups_characters.group_name LIKE "%Melisseus%"
the query takes nearly 13 seconds to complete (indexing has not been done yet, however), and it's far from elegant.
We had some fine-tuning to do on some of the files, in all years, as well as some reordered images in '49 with which to contend. The fixes have been made, and the image-links appear to be fixed. So, as we head into the new year, it feels good to know that '46-'50 have been polished up.
As for January, we will dive into 1851, the images for which, along with most of 1852, have already been optimized, thanks to Loring.