-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invalid page, invisible custos? - Neon allows user to input glyphs outside of facsimile, results in invalid folio #700
Comments
aha! The problem seems to be that one might click outside of the facsimile while still in "insert" mode. On the right side of the page this amounts to clicking in the area with the edit information and does nothing. In the white space below the page, the elements are inserted at the same x coordinate and a y-coordinate corresponding to C0 on whatever the lowest staff is. However, clicking in the white space either to the left or above the facsimile "inserts" the element into a zone with negative (i.e. invalid) coordinates. |
Whoa, I think this explains a few invalid folios I had that I couldn't figure out... I just experimented with it and I got the same results. You can tell a glyph is being added, because the other glyphs change colour (see below for pretty video). This is a cool discovery! The problem is that once the glyph is input into the white space around the facsimile, it's not visible in any way, so you can't select it and delete it. If you realize the problem fast enough, you can undo the actions and everything is fine. If you don't, the only way to remove the glyph is by going in the MEI, as @annamorphism did. Glyphs.input.into.void.mov |
Hi @JoyfulGen, I've pushed the changes for this issue to the Github page. Please let us know if it works as expected. |
@yinanazhou this is great! I love the error message, everything is very clear. I tried inserting all the single glyphs and everything works. However, Neon did allow me to insert a staff out of bounds, which made the folio invalid. Could you extend the fix to include staves? |
@jinh0 noticed that the OOB check has two issues with bounding box:
|
Hi @JoyfulGen, I have pushed the changes for staff insertion. Please let us know if it's working as expected. Thanks! |
The same problem exists with some staves #920 (comment) |
Fixed! I can't insert staves out of bounds anymore. |
I can resize them but not move them! I can even resize them so an edge goes off the page, but then not move it so it's all on the page. Wild! |
Hey everyone, I have fixed the bounding box issue (I'll push the changes soon), but regarding staves, it's because clefs are really weird! Clefs have a bounding box that starts from x=0 and y=29250??????
But can somebody confirm whether clefs are supposed to have such weird coordinates? |
UPDATE on the clefs: for some reason, Verovio seems to generate an extra clef in the first staff, which is not reflected in the MEI file, that has coordinates x=0 and some outrageous y-value. What's even weirder is that this y-value varies by folio. One folio has a y-value of 29342 while another has a y-value of 29250. Worth investigating. |
@jinh0 it looks like liquescents are also behaving weirdly. I can't move either upwards or downwards liquescents without getting an OOB notification. EDIT: It's fun to note that I can't move a liquescent, but I can change it into a punctum, move that, and then change it back. |
@JoyfulGen I can move some of the liquescents, some of the time...as long as I'm very gentle and stay on the staff and don't move left or right. But if I move them too many times or in the wrong way they get very upset and don't want to do anything anymore. |
Hi @JoyfulGen, I've pushed the fix for the bbox and staff resizing. |
Indeed! Neon won't let me resize a bbox or a staff outside the page anymore. This is fixed! |
From what I understand, all of these issues have been fixed. Neon won't let you input, drag, or resize anything out of the page's bounds. Closing issue now. |
In an issue possibly related to #651 and #697, a page turned up as invalid after some very trivial button click (sadly, I don't remember what). "Undo" created an apparently identical but valid page (see below)
As it turns out, the MEI files for these two states is not identical; the "invalid" version has a custos on G at the end of the tenth staff, where the "valid" one does not:
The zone for this otherwise invisible custos is outside the bounds of the page:
The text was updated successfully, but these errors were encountered: