A year in the paginated world
December is here. The time to look at where we’re at with paged.js, what we managed to do, and have a look at what the community has been building.
An overview of the Paged Media × PrePostPrint workshop
From Wednesday 28 to Friday 30 November, a group of people interested in automated composition with HTML and CSS met for a series of workshops about “Paged Media × PrePostPrint”.
PagedMedia & PrePostPrint Workshop
Regristrations for the workshops are now closed.
PagedMedia & PrePostPrint is a series of workshops happening in the last three days of November 2018. Included here is a small overview of what we’re going to talk about and the form to register.
Paged.js – sneak peeks
Six months ago, Fred Chasen and Julie Blanc started to work on a library to paginate content in the browser. Today, that tool has a name, and even if it’s not bulletproof yet, I wanted to show an example of what we can do with it. And the best part is that it’s only the beginning.
What is the Paged Media initiative?
At the beginning of the year, we announced the Paged Media initiative as a community driven open source solution to help anyone who wants to print content with web technologies. Before looking at what we’ve been up to for the last five months, in upcoming articles, let’s have a look at what’s possible the gaps we’re trying to fill.
Paged Media approaches : page floats
In CSS specifications, the float property is very interesting. The property indicates that an element is to be removed from the normal flow and instead be placed into a different place – currently, on the right or left side of its container. Text and other inline elements will then surround the floated element.
That sounds right, the polyfill is looking for a template tag - we should scope that to only find a tag with a reference to pagedjs. Would it be possible to create an issue with the info you provided here: https://gitlab.pagedmedia.org/tools/pagedjs/issues
Pretty interesting use case Karmil. Perhaps you want to jump in to our chat channel and discuss? https://mattermost.pagedmedia.org/
Finding your project comes as a blessing sent from heaven. Well done for the event. I really appreciate the work you and your team are doing. I am very new to programming and have been learning Meteor with Blazejs.org with mongoDB as database. I am more of a business/management person and trying to develop line of business application which ends up in the generation of well formatted management reports (which people currently do in MS Word). I managed to get pagedjs to work in Meteor but it is creating two blank pages at the start if I wrap my content into anything else other than a tag (for e.g., if I wrap it in a , two blank pages come at the front). I believe this may have something to do with the fact that blazejs uses the element to define its templates and in paged.js line 26882, it is using a querySelector to target template element to grab the content. Maybe a different element name should be selected. The reason why that this may be of interest to your team is that i believe there is a market not only for publishers to use your code, but also corporate businesses who are in need of producing executive reports with dynamic data generated from databases. mongoDB databases and easily learnt frameworks like Meteor will allow non-programmers to develop applications in their respective fields. I would be very happy if you could help me out on this. Thank you.
Bonjour, Je souhaite assister au workshop Jeudi 29 et vendredi 30 novembre, je suis interessé par les opportunités offertes par la techno web sur l'édition. Bien à vous, Elias
Good morning Julie – and thanks for this very useful overview of current options. I shall be reading it again (several times!) to try and understand them,since this is a new area to me.
Glad to hear that Mauro! So, we have some hooks that let you pass some js in a few different entry points. But it really depends on what you want to achieve. A proper documentations for the hooks and some examples are coming (including maths, side notes, etc.). Meantime, you can jump in the https://mattermost.pagedmedia.org to talk with us about your specific needs.
Thanks, I finally got around to giving paged.js a try. Looks promising! Is there a way to trigger a re-render? Say, I call `paged.preview(DOMContent...`, then change the DOMContent. If I simply call paged.preview again, I get: `Cannot read property 'querySelector' of undefined` in `chunker/page.js` in `var area = page.querySelector(".pagedjs_page_content");` Thanks!
Hi, I wonder if it is possible to reset the page counter after a certain element? I tried `counter-reset: page;` but it didn't seem to work. My use case is to use roman numerals for the frontmatter of the book (`content: counter(page, lower-roman);`), but change to decimal when the first chapter starts.
Hey Yihui! Thanks for the kind words. :D And for having spotted that one! I fixed the article on that front. Thanks again!
Is `titleRun` in the post a typo? Should it be `runningTitle` instead? I'm very excited about paged.js! Thanks for the awesome work!