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

Base units participating in multiple layout units are not included in the RST structure #1

Closed
thiippal opened this issue Nov 2, 2015 · 2 comments
Assignees

Comments

@thiippal
Copy link
Owner

thiippal commented Nov 2, 2015

This issue arises when the base units are split between multiple layout units, for instance, in the case a sentence extends begins on one page and continues on another.

In the original XQuery script, this issue was resolved using the following code:

                  let $parent-link := for $b in $base-file//unit[@id = $leaf-xref]/../@id
                                    return tokenize($b, " ")

                  let $child-link := for $b in $base-file//unit[@id = $leaf-xref]/@id
                                    return tokenize($b, " ")

                  let $rst-segs := for $se in $rst-segments/*[@id = $segment-ids and (@xref = $child-link or @xref = $parent-link)]/@id
                                   return tokenize($se, " ")
@thiippal thiippal self-assigned this Nov 2, 2015
@thiippal
Copy link
Owner Author

thiippal commented Nov 3, 2015

Added a work-around, which unfortunately results in two edges drawn between the nodes.

@thiippal thiippal closed this as completed Nov 3, 2015
@thiippal
Copy link
Owner Author

thiippal commented Nov 4, 2015

This issue was solved by adding a dictonary to track the drawn relations.

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

1 participant