More on collation files
Posted by mholmes on 08 Jun 2007 in Activity log
Got two new collation files from Cara, for LDev003 and LDev004, and began tweaking the Apparatus application code to handle the new setup:
- Added clauses to detect if the new line number encoding is being used instead of the old. The app can now handle both
<l n="1">and<l 1>. - Added some parsing to find the square brackets used instead of angle brackets for TEI tags. This is slightly complicated, because a closing square bracket is also used to delimit the end of the lemma, so the code only converts paired square brackets, leaving the orphan delimiter intact.
- Noticed that [sd][/sd], which is not a TEI tag, appears in the data. Karin tells me it's a substitute for
<, meaning scribal deletion, which causes problems in Collate. Added code to convert that back to>l>>. - Commented out code previously added to replace substitutions for square brackets ($ and _), since these are no longer being used, and the underscore causes problems because it's used in witness filenames.
- Added linebreaks and indents to format the output more readably.
Having got the app working, I saved two output files and sent them to Cara so she can check them out and add the type="substantive"<rdg> tags) where appropriate (the default will be orthographic, since it's more numerous). Once that's done, I can start writing rendering code.