From a287449d9e4624538b409d386a42d809a8efd066 Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Mon, 7 Nov 2022 16:53:09 +0100 Subject: [PATCH 1/4] remove superfluous templates the escape characters are already dealt with in https://github.com/Edirom/MerMEId/blob/ee8b0bfd49d64ec521a77373fd6552be2bf008c2/filter/xsl/filter_put.xsl#L333 --- filter/xsl/filter_put.xsl | 45 --------------------------------------- 1 file changed, 45 deletions(-) diff --git a/filter/xsl/filter_put.xsl b/filter/xsl/filter_put.xsl index 187d4d95..28e2bf70 100644 --- a/filter/xsl/filter_put.xsl +++ b/filter/xsl/filter_put.xsl @@ -138,51 +138,6 @@ - - - - - - - - - - - & - - - - - - - - - - - - - - - - - - - - - -   - - - - - - - - - - - - From 082b88a5921dcd3e81e866811077c4b538e464a7 Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Mon, 7 Nov 2022 16:55:08 +0100 Subject: [PATCH 2/4] remove empty `@label` and `@level` and fix spelling of `@auth.uri` --- filter/xsl/filter_put.xsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter/xsl/filter_put.xsl b/filter/xsl/filter_put.xsl index 28e2bf70..6f42d6e0 100644 --- a/filter/xsl/filter_put.xsl +++ b/filter/xsl/filter_put.xsl @@ -117,8 +117,8 @@ - From c5a2a5ee524a13c4b2bd202c4018907f1b4c7e10 Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Mon, 7 Nov 2022 17:03:53 +0100 Subject: [PATCH 3/4] get rid of xsl modes instead check text nodes for occurence of (escaped) tags to prevent endless recursion --- filter/xsl/filter_put.xsl | 43 +++++++++++++++------------------------ 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/filter/xsl/filter_put.xsl b/filter/xsl/filter_put.xsl index 6f42d6e0..c5120533 100644 --- a/filter/xsl/filter_put.xsl +++ b/filter/xsl/filter_put.xsl @@ -35,13 +35,10 @@ - - - - + - + @@ -60,7 +57,7 @@ - + @@ -80,7 +77,7 @@ - + @@ -106,7 +103,7 @@ - + @@ -119,7 +116,7 @@ + @solo|@startdate|@sym|@target|@targettype|@type|@unit|@xml:lang"> @@ -159,9 +156,9 @@ - - - + @@ -171,7 +168,6 @@ - @@ -200,7 +196,6 @@ - @@ -233,8 +228,6 @@ - - @@ -265,18 +258,14 @@ - - - - - - - - - - + + @@ -522,7 +511,7 @@ - + From 3bc7654102b85822488e65986f685d451f57ba5a Mon Sep 17 00:00:00 2001 From: Peter Stadler Date: Tue, 22 Nov 2022 14:58:45 +0100 Subject: [PATCH 4/4] do NOT use angle brackets in text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it will be a mess … --- data/incipit_demo.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/incipit_demo.xml b/data/incipit_demo.xml index a9f20059..ae14e2be 100644 --- a/data/incipit_demo.xml +++ b/data/incipit_demo.xml @@ -380,7 +380,7 @@ -

As MerMEId does not include a music notation editor, incipits encoded in MEI cannot be entered or edited directly in MerMEId. You can add MEI incipits, however, by uploading MEI files containing the encodings. When uploading an MEI file, MerMEId makes a copy of the first <score> element it encounters (whether in the file's header or in the <music> section) and inserts it as an incipit. If you need to make changes to the incipit, edit your MEI file and upload it again using MerMEId's 'Replace' button.

+

As MerMEId does not include a music notation editor, incipits encoded in MEI cannot be entered or edited directly in MerMEId. You can add MEI incipits, however, by uploading MEI files containing the encodings. When uploading an MEI file, MerMEId makes a copy of the first 'score' element it encounters (whether in the file's header or in the 'music' section) and inserts it as an incipit. If you need to make changes to the incipit, edit your MEI file and upload it again using MerMEId's 'Replace' button.