Week Beginning 11th May 2026

This was a pretty busy week that had me dividing my time between five main projects.  I spent most of Monday working on the Burns Suppers project, beginning development of the ‘facts and figures’ popup. I added a button in the ‘Home’ menu labelled ‘Facts & figures’, that features a pie chart icon.  Pressing on this opens the facts and figures popup part of which you can see in the screenshot below:

The popup features the narrative summary section, with the figures in this section being dynamically generated.  It took quite some time to write the code to generate them, but at least there will be no further work to do when we import more data.  For now all percentages are the percentage of the total number of suppers rather than a percentage of the number of suppers that supplied the data, so for example, the ‘annual supper’ figure is 39% rather than displaying 83% (based on there being 420 suppers that actually have frequency data). This is because I realised that without a lot of additional explanatory text users will likely think our figures are wrong.  If people only see the total number of suppers (886) and the number that are annual (347) then displaying 83% will be misleading.  We’d have to include lots of additional data such as “of the 420 suppers that included frequency data, 347 (83%) were annual events”.  Depending on feedback I may implement this later.

I’ve only implemented one graph in the pop-up so far, which is the graph of countries.  This is a long list, but I think it works ok.  I also included an option to switch from a graph ordered by number of suppers to an alphabetical version, and this is all operational.  I’ll continue to add further graphs next week.

I spent most of Tuesday working on the interactive map for the HiMuJe Malaber project.  I’ve created an initial version of the map now, which uses my map menu interface that I’ve used on several other resources, and below is a screenshot:

By default the map uses the ‘Watercolour’ base map, as we used for a static map on the main site (https://himuje-malabar.glasgow.ac.uk/about/summary/).  You can also switch to a satellite map using the ‘Change the base map’ buttons.  Currently markers as just displayed as red dots, and if you hover over them the ‘Preferred Name’ from the JSON file is displayed as a tooltip (although I’ve noticed that some places don’t seem to have a ‘Preferred Name’).  There are no popups or filters or anything like that yet.  Also note that any places in the JSON file that don’t currently have latitude and longitude values are not displayed as there is nowhere to ‘pin’ them.

You can zoom and pan the map as with Google maps, and the icon in the bottom right makes the map full screen.  The map also works on mobile devices (hiding the left-hand menu using the ‘<’ button above the menu helps when using a mobile device).  Other than the base map selection options, nothing works in the left-hand menu yet.  ‘Places’ will eventually include the place filters.  ‘Travel Routes’ will list travel routes involving people and organisations once this data is available.  There’s still a lot to do, and I’ll hopefully begin work on the place popups and the categorisation options next week.

I spent most of Wednesday working on the Place-names of Armagh project.  I’ve updated my ‘Irish form / translation’ script to remove ‘More details: Unverified’ and to also attempt to split the translation up based on apostrophes.  This has been a bit of a nightmare, firstly because apostrophes are not only used to denote the translation but appear within the text, and secondly because what looks like an apostrophe can actually be many different characters, including straight, curly opening and closing apostrophes and several HTML codes that are rendered as apostrophes but are stored as codes.  This has all made splitting the text up rather challenging.  However, I’ve got something that mostly works.

The script now deals with things like Ir. <em>Coill Uí Fhloinn ‘O’Flynn’s </em>wood’ and outputs “O’Flynn’s wood” as the translation.  Where there are multiple sections some unnecessary apostrophes appear, for example: “Ir. <em>Tír Garbh </em>’rough land or district’ or perhaps Ir. <em>Baile Uí Aodha </em>'<em>O’Hugh’s</em> homestead or townland’” results in: “rough land or district’ or perhaps Ir. Baile Uí Aodha ‘O’Hugh’s homestead or townland” This will probably need some manual fixing.  The script also now processes rows that don’t have ‘Ir.’ and italics, for example “Críonchoill ‘withered decayed wood’” now has Irish form “<em>Críonchoill </em>” and translation “withered decayed wood”.

I sent an Excel version of the script output to the project team as this will likely require some (but hopefully not too much) manual intervention to fully sort out.  For example, the text “Eng./Sc. ‘hill of the military camp’ or perhaps Ir. <em>Mullach na Críne </em>’hilltop of decay’ or Ir. <em>Mullach na Craoibhe </em>’hilltop of branch, tree’” will need some work as the translation omits the ‘Eng./Sc.’ Text as it’s before the first apostrophe.

The other thing I’ve managed to do today is to set up an initial version of the public map interface.  This currently takes quite a long time to load as it’s processing a lot of data.  As with the other sites, I’ll create a cached version of the data once we’re ready to launch, which will be much faster to load.  The reason it’s not in place now is that a new version of the cache will need to be generated any time you want subsequent changes made to the CMS to appear on the map, and we’re still very much working on the data.

For now, three base maps are available (satellite, satellite with labels and relief).  We can add more in later.  There are also no parish boundaries or townland / barony boundaries as I don’t have this data yet.  I also still need to work on the colours of the markers as there are no colours for a lot of the classifications so they’re defaulting to purple.  There’s also nothing in the elements glossary as we don’t have this data yet.  But the search, browse and categorisation options all work.  For example, here are the placenames beginning with ‘A’ categorised by altitude:

There are some issues with the data.  For some reason there are three place-names miles away from Armagh, around Ballybofey, and there are a couple of place-names appearing in the Irish Sea.  We also have an issue of the same coordinates being used for multiple places, thus resulting in markers appearing on top of markers.  There’s also an issue with the accuracy of markers too.  For example, the marker for ‘Lowry’s Lough’ is found about 500m south of the actual body of water.  But the good thing about having this map available (despite the speed issues for now) is that it will help when working on the data.

I spent all of Thursday and most of Friday morning learning how to use the Exist-DB XML database that I’m hoping to use for the DOST Auld Laws project and developing the query that will eventually power the quick search, and form the basis for the advanced search.  I installed Exist on my laptop and managed to set up a collection for the project’s XML files, which I then uploaded into the system.  I followed the documentation available on the Exist website and was able to create a full-text index for the collection, and I followed a useful tutorial here: https://dh.obdurodon.org/php-xquery.xhtml about how to query Exist using the REST interface.  Setting up and querying the texts in Exist was all new to me and there was a lot to try and take in, with many configuration options that were not all that easy to follow in the Exist documentation.  I ended up using ChatGPT quite a lot to help me figure out how everything should work and why some of my initial tests were not producing any results.  This proved to be extremely useful and really helped increase my understanding of Xquery.  I was able to get a search working that queries the full text and returns contextual snippets for each result, together with the IDs of the line, page and document, which is everything I’ll need for the quick search.  On Friday I asked Luca to help set up the necessary collection on the server and hopefully I’ll be able to get an initial version of the quick search working on the website next week.

This left me with a few hours on Friday afternoon to devote to the redevelopment of the Mapping Metaphor resource, for which I’m creating a unified view of the data, joining both the English and Old English datasets together. I used this time to implement the visualisation card view when viewing connections between specific categories.  The combined card view shows a bidirectional arrow if the OE and E directions differ.  It also defaults to the E strength.  The counts of lexemes in each category include both full and OE counts and the examples of metaphor feature both OE and E examples, with OE coming first.  If the metaphor exists in the OE data then the ‘start era’ now defaults to OE (but as of yet I’ve not added in a further highlight in the timeline to show when the first non-OE occurrence was documented).  Below is an example of the combined card view:

In addition to the above I also looked into an issue raised by Ann Fergusson for the Dictionaries of the Scots Language regarding accented characters, search results and entry slugs.  This took some time to investigate but I think my response proved useful.  I also had email discussions with Deven Parker about her Playbills project, which she now has time to look into again.  I’ll probably be working on this again next week.