Week Beginning 10th June 2024
My time this week was devoted mostly to dictionaries, with about half my time devoted to the Anglo-Norman Dictionary and the other half working for the Dictionaries of the Scots Language. For the AND I continued with the creation of a workflow to add new texts to the Textbase (https://anglo-norman.net/textbase-browse/). Last week the editor Geert had created a complete XML version of a new text to be added using the Oxygen XML editor and a limited set of tags based on the existing Textbase texts. As I discovered last week, while these texts use some TEI elements they are not actually valid TEI as they don’t link to a DTD and include undeclared non-TEI elements, but we’re going to have to stick with this structure for the new text to ensure compatibility with the older ones.
I spent some time this week working on the scripts that would then import this text, based on the scripts I’d initially created to batch import the older Textbase texts. It was a bit of a lengthy process as it’s not just a case of importing the text but also generating the search terms including KWIC for the concordance and proximity searches, but I managed to get everything working with the new text, testing things on a version of the site running on my laptop rather than the live site, as adding a text directly to the live site would immediately make it live.
One issue with the text is that it is tagged as one continuous page, with folio breaks used throughout rather than page breaks. This means that all of the footnotes are added to the very end of the text. I suggested to Geert that the text could be split using the <pb> tag for folios instead, which would help break the text up and make the footnotes easier to use. It turned out that Geert had been using the folio break tag for both paragraph numbers and folio breaks, which wasn’t quite right. Swapping to using pagebreak tags purely for actual folio breaks would work much better as there are only 20 or so folios while there are many more paragraphs.
I decided to work on the XML myself to restructure it before sending it back to Geert for final tweaking. I replaced the proper folio breaks (as opposed to paragraph IDs) with page breaks and have given them an ID beginning with ‘fol-‘, e.g. ‘fol-1ra’. Geert wanted a different format including spaces, but we can’t include them as the values end up being used as JavaScript IDs and spaces are invalid in IDs. I think the resulting page markers look ok, though. I then changed the way the paragraph markers were recorded. These are now just an ‘n’ attribute of the <p> element, e.g. ‘<p n=”1.1″>’ which I reckon makes a lot more sense than having them as part of the actual text. I updated the XSLT so that when a paragraph has an ‘n’ attribute this gets displayed in bold square brackets before the paragraph text. The only concern here is that the XSLT is applied to all texts in the textbase so if any existing texts have paragraph IDs these are now also going to end up displayed like this.
I also ensured the import scripts extracted all of the text for the Textbase concordance and proximity search. This involved many stages, including splitting the text into pages, then splitting the pages into individual words, logging counts of the number of words on each page and generating the ‘Keyword in Context’ for every word in the text. It took a bit of trial and error to get the scripts working properly with the new text, but I got there in the end.
With the scripts in place I was then able to run the new text through the import process on the server, resulting in the text being available through the ‘Browse’ facility and fully incorporated into the search facilities. You can view the new text here: https://anglo-norman.net/textbase-browse/sjer. Soon after completing work on the import of this text the editor Delphine sent me a further text that she had been working on. This was very handy as I was able to test the import scripts on a new text whilst everything was still fresh in my mind. Thankfully the scripts worked perfectly and this new text was also successfully incorporated and can be found here: https://anglo-norman.net/textbase-browse/otinel. I then suggested to Geert that we should maybe update the ‘Browse’ feature to break up the list by genre as currently the texts are all just listed alphabetically by title, which is possibly not all that helpful. I’m going to investigate this next week.
I spent most of the remainder of the week working for the DSL. I’d previously discussed with the team how the existing website design was getting a bit long in the tooth, as it will be 10 years this September since we launched the site. Users of the site increasingly access it on mobile devices and while the interface was designed to work on much devices it doesn’t make best use of the space available on such screens. I therefore wanted to experiment with a new interface for the website, which is what I did this week. I’m not able to share any screenshots of my experiments at this stage as I haven’t even heard back from the DSL people yet, but I’ll give an overview of what I’d been working on so far.
The interface I created uses the Bootstrap front-end toolkit, which is an ideal starting point for creating mobile-friendly sites. I carried over some design aspects from the live site, and have also borrowed some elements from my work on the Anglo-Norman Dictionary. I created a working mockup of the interface for the homepage and dictionary entry pages and shared this with the DSL team.
The biggest structural change to my test interface is something that has been discussed before: Splitting up SND and DOST. The mockup site only has four top-level menu items: ‘Modern Scots’, ‘Older Scots’, ‘Advanced Search’ and ‘About’. I’ve gone with ‘Modern Scots’ and ‘Older Scots’ as these are more understandable than ‘SND’ and ‘DOST’ and there is no space for the full titles or dates. As it currently stands all four tabs fit on one line on a mobile device (tested on my Android phone and an iPhone 15).
The default landing page for the site is ‘Modern Scots’. It features a large ‘Search Modern Scots’ input and some brief text about the SND, which I’ve taken from the current homepage and the ‘about SND’ page. This is followed by three info boxes as found on the right-hand side of the current homepage. On mobile devices these are stacked. Note that I haven’t added the ‘Add Yogh’ button to any quick search form yet. There is also a separate ‘Older Scots’ homepage, which is very similar but with information about DOST.
I then created a mockup of an SND entry page for ‘Dreich’. The entry page is now two-column. A ‘Search Modern Scots’ input appears at the top of the main column. The entry itself has a summary section at the top (influenced partially by the new OED site). This includes the headword and POS (as already found in the ‘sticky’ header that appears when you scroll down the entry page on the live site), information about the dictionary, the ‘about’ text and options to show/hide things etc. Dates of attestation and the sparkline are also included here. I’ve gone with a rounded-end for the sparkline to make it look a bit more swish. The main entry itself is exactly as it appears on the live site. Note that a ‘Top’ button appears in the bottom right as you scroll and pressing on this scrolls the page back to the top. For now I haven’t included a ‘sticky’ header as we have in the live site but I can add this in. The right-hand column is also not ‘sticky’ as I’m not convinced it’s really necessary and wouldn’t work on mobile devices anyway as the column will appear beneath the entry.
The right-hand column is adapted from the Anglo-Norman site. It defaults to the ‘Browse’ but has further tabs for ‘Results’ and ‘Log’. Neither of these currently work, but the former would feature the search results as currently found in the live site’s left-hand column and the latter would contain a list of all entries you’ve looked at during the current session, which is quite a handy feature I added to the AND site. The ‘Share’ box is also present in the right-hand column. On mobile screens the right-hand column appears below the entry column.
I also made a similar mockup for DOST, using the DOST entry for ‘Scunner’. It’s currently identical in structure to the SND entry, but gives you another example of the entry page, with a more interesting sparkline. We could differentiate SND and DOST by using a different colour scheme for the DOST entry page (e.g. a different shade of blue for the entry header) but for now everything is the same.
I haven’t added in the search results page yet, but it will be fairly similar to the live site. I’ve also not added in a mockup of the Advanced Search form yet, but this will be the only place to search both dictionaries. It will be pretty similar to the live site. The ‘Results’ tab on the entry page will work in a similar way to the left-hand column on the entry page on the live site. Where an advanced search involving both dictionaries is performed the results will be split like the live site. We could make the ‘About’ tab a drop-down menu but there are so many ‘About’ pages that I think it might work better if it just led to a page that listed the various sections (‘Our Publications’, ‘About Scots’ etc) and gave links to everything. Similar to the OED’s ‘Information’ page.
I did consider having both a top section of each page under the selected tab, and the selected tab itself in blue like the entry header, with this then containing the search and the entry header and then the rest of the page below this being white. This would sort of give a similar approach to the OED’s entry page. However, I went with a white tab and all white page to make it clearer that all of the content ‘belongs’ to the tab. In terms of the site font I’ve used an updated version of the one used on the live site, but we can change this, or use multiple fonts for different sections. I added a subtle gradient to the background of the header and footer (it gets lighter to the right), but this can be changed.
I’ll just have to see what the DSL people make of my experiments and we’ll see if any aspects of them find their way into the live site.