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

Add layout guides #13

Open
joeha480 opened this issue Apr 12, 2016 · 1 comment
Open

Add layout guides #13

joeha480 opened this issue Apr 12, 2016 · 1 comment

Comments

@joeha480
Copy link
Collaborator

Add optional layout guides to the specification. Specifying page regions makes it possible to improve preview accuracy (reverse translation), for example for table cells or if numbers continue over a page change.

For example:

<page>
<layout-guide>
<region rows="1"/>
<region rows="3-10"/>
<region rows="3-10" cols="-15" id="region1"/>
<region rows="3-10" cols="16-" id="region1"/>
</layout-guide>
<row>...

Regions are in document order, meaning that the text flows from rows 3-10, cols 1-15 into rows 3-10, cols 16-30. This also means that e.g. table cells can flow from one page to another, by sharing the same region id. In the above example, the first region is a header line with page-numbers etc. It could further be specified using sub-regions for each field (or not specifying the entire line in the first place), e.g.:

<region rows="1" cols="-15">
<region rows="1" cols="16-">
@joeha480
Copy link
Collaborator Author

What do you think, @BWestling?

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

No branches or pull requests

1 participant