From a8f015b5b6a6f43bf8f612fc21ba49e10c444fb3 Mon Sep 17 00:00:00 2001 From: geoffroy-noel-ddh Date: Fri, 26 Jul 2024 17:27:09 +0100 Subject: [PATCH] feat(at): support for multiple consecutive append-following-sibling paragraphs. Also improved the class names of the entities so their are better grouped and targetted in the CSS. --- .gitignore | 1 + controllers/controller.js | 1 + responses/at-tei-to-tei.xsl | 46 +++++++++++++++------ responses/tei-to-html.xsl | 79 +++++++++++++++++++++---------------- 4 files changed, 81 insertions(+), 46 deletions(-) diff --git a/.gitignore b/.gitignore index d7602a2..4ae1f9f 100644 --- a/.gitignore +++ b/.gitignore @@ -150,3 +150,4 @@ dist *.sef.json +tmp diff --git a/controllers/controller.js b/controllers/controller.js index a91b084..ccc1bb0 100644 --- a/controllers/controller.js +++ b/controllers/controller.js @@ -333,6 +333,7 @@ async function getContentFromDocumentId(documentId) { let ret = cache.lastRead.content; if (!ret || cache.lastRead.documentId != documentId) { ret = await corpus.readItemContent(documentId) + // ret = fs.readFileSync('/home/jeff/src/prj/tmp/alice-thornton/texts/00_book_of_remembrances/book_of_remembrances.xml', {encoding:'utf8', flag:'r'}) if (settings.preTransformPath) { await downloadResources() diff --git a/responses/at-tei-to-tei.xsl b/responses/at-tei-to-tei.xsl index 175c1f5..3b7e3cb 100644 --- a/responses/at-tei-to-tei.xsl +++ b/responses/at-tei-to-tei.xsl @@ -35,20 +35,38 @@ + +
- - + +
+ + + + + + + + - + + + - + - + @@ -89,7 +107,8 @@ - + +

@@ -105,7 +124,8 @@ - + +

@@ -130,12 +150,15 @@ - + + + @@ -181,8 +205,8 @@ - [EVENT: - :EVENT] + + diff --git a/responses/tei-to-html.xsl b/responses/tei-to-html.xsl index 8bb64ca..7d53295 100644 --- a/responses/tei-to-html.xsl +++ b/responses/tei-to-html.xsl @@ -133,20 +133,23 @@ --> - - - - [] - - - - @@ -185,26 +189,25 @@ - - - + - - + + + + - + + - + @@ -219,6 +222,24 @@ + + + + + + + + + + + +

Photograph of the manuscript page @@ -275,16 +296,4 @@ - - - - - - - - - - - -