DDMAL / Neon

A web-based MEI neume editor.
https://ddmal.music.mcgill.ca/Neon
MIT License
24 stars 8 forks source link

Old Salzinnes files have accidentals that don't appear in Neon #1234

Open JoyfulGen opened 1 month ago

JoyfulGen commented 1 month ago

Salzinnes files that were corrected 3 years ago have accidentals that are encoded like this:

<accid xml:id="accid-0000001162587191" facs="#zone-0000001832122871" accid="f"/>

And those accidentals don't appear on Neon. I can add a new accidental in the same spot and that accidental does appear, but in the MEI files there are two accid elements in a row, like so:

<accid xml:id="accid-0000002078940876" facs="#zone-0000001781106505" accid="f"/>
<accid xml:id="a1mor0hh" facs="#zwtz2bp" accid="f"/>

My manual correction for this would to remove the old accid element in the MEI file manually and then add a new one in Neon. Is there another way to do this?

Here are a couple of files with the invisible accidentals: CDN-Hsmu_M2149.L4_004r.mei.zip CDN-Hsmu_M2149.L4_014r.mei.zip

yinanazhou commented 1 month ago

The accid is not showing because the zone@uly is too large. This is an example:

<zone xml:id="zone-0000001781106505" ulx="1709" uly="28181" lrx="1774" lry="1564"/>
<zone xml:id="zone-0000001239018847" ulx="3443" uly="28181" lrx="3508" lry="1564"/>
<zone xml:id="zone-0000000717178383" ulx="2254" uly="23383" lrx="2323" lry="6365"/>

I tried to remove the last digit of zone@uly value. and it works: image

JoyfulGen commented 1 month ago

@yinanazhou ok cool! Incidentally, is that the 004r file I uploaded? The obliques are looking rough...

JoyfulGen commented 1 month ago

Update: I tried removing the last digit and the flats appear exactly where they are in your screenshot, but that doesn't correspond to where they are on the page:

uly of flats wrong

The x coordinates seem to be correct, but the y coordinates are way off. There aren't many files with this problem, so I think I'll just remove the flat from the MEI manually and add them quickly in Neon!