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

Show Page Breaks on Source Sheets #74

Open
blockspeiser opened this issue Jan 20, 2014 · 7 comments
Open

Show Page Breaks on Source Sheets #74

blockspeiser opened this issue Jan 20, 2014 · 7 comments

Comments

@blockspeiser
Copy link
Contributor

It can currently be difficult to design source sheets for print because you don't know where pages will break.

I think it may be very difficult to get this information exactly, but perhaps it is possible to make some estimations. An option for "Show page breaks" could simply show a set of lines across the page which may make it easier to chunk up sources across pages neatly.

Not sure if this would be able to handle alternations to page margins.

@shelfgot
Copy link

shelfgot commented Jul 6, 2014

With jquery you can pull the screen dimensions easily, and then it is just a matter of scaling it with some math and then displaying the lines. On my 1600 by 900, each page is about 133% of the screen.

@blockspeiser
Copy link
Contributor Author

I believe unfortunately it's a bit more involved than this. Try printing the same sheet from Chrome and from Firefox -- I've seen a number of inconsistencies that lead to text being laid out on different lines, which is important if you want to display line breaks exactly across browsers.

It may be that there is just some extra CSS that needs to be set to make the two consistent, but I haven't looked into enough yet to know.

@rivkahcarl
Copy link

Would love to leave a comment on this, reemphasizing the importance of this feature for those creating source sheets.

@blockspeiser
Copy link
Contributor Author

Thanks for the vote. We're starting to think through Print issues around source sheets a bit more now, but it still remains the case that this is difficult to do perfectly across browsers. Hopefully we'll know more about the options soon in any case!

@pzp1997
Copy link
Contributor

pzp1997 commented Aug 5, 2016

I'll try to look into this issue after Shabbat. It should definitely be possible, as I've seen other sites correctly implement this feature. @blockspeiser mentioned that printing the same sheet from different browsers often results in different page breaks. I wonder if this problem can be mitigated with good CSS resets/normalizations for print media queries. If not, perhaps we can force page breaks with the page-break-before/page-break-after CSS attribute-- it has pretty good browser support. I also stumbled upon a plugin for ckeditor that claims to accomplish this, but I'm not sure how well maintained it is. Hopefully, more to come soon.

@yishairasowsky
Copy link

@blockspeiser @shman
why don't you use


or, you have seen this for instance: https://www.w3schools.com/CSSref/pr_print_pagebb.asp

1 similar comment
@yishairasowsky
Copy link

@blockspeiser @shman
why don't you use


or, you have seen this for instance: https://www.w3schools.com/CSSref/pr_print_pagebb.asp

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

5 participants