Skip to content
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

The page break location gets wrong if we try to use linked <seg type+"parallel"> elements in multiple pages #129

Open
tubesoft opened this issue Sep 21, 2023 · 2 comments
Assignees

Comments

@tubesoft
Copy link
Collaborator

The page break part (i.e., the folio number and icon to the preview) appears in the wrong location. For example, The page break has to go to the line before the line begins with "up nothing." (See the image below)

image
@tubesoft
Copy link
Collaborator Author

If we stick to using only CSS for the configuration of the appearance, technically, it seems to be impossible to highlight the two parts separated by the page break through hovering on the reference icon. Thus, my fix so far is just making another reference icon after the page break to highlight the part after the page break. (See the image below) If the two parts need to be highlighted together, I would need to think about it further.

image

@tubesoft
Copy link
Collaborator Author

tubesoft commented Sep 22, 2023

I forgot to add that even if we do so, we need to add a new attribute to show the segment is on another page.
<seg type="parallel" rend="p-middle" function="page-2" next="#02-next-g1-04-to-ALCH00110-55v" xml:id="next-03-g1-04-to-ALCH00110-55v">

In this case, tentatively, I added function="page-2". This additional attribute is needed from the second page and after.

Although this makes it more complicated to write the code, I could not find a workaround other than that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants