Text flowing into different `` elements, using CSS Regions.
**Ah nice you see the text flowing from one page to the other here, nice!**
Maybe in another article.

Within the html2print interface you can switch between different articles.
**Ah you can see the different articles in html2print? That is really useful.**
Yes in the script... "make json" probably, yes, you see all the pages inside the layout document, and it will generate all these pages.

Output of "make json" in the terminal.
The list of article names is made manually. We actually don't use the CMS API to retreive information about an issue. This was done in the old website, but not anymore. And you see that this list is just in alphabetical order, not in the order of the magazine.
**So later you reshuffle the articles in the right order?**
Yes.
And the version of html2print that we use for Médor is actually a page with a big iframe in which we load the different layouts. And at the bottom there is a small toolbar that allows to change zoom, change articles and a couple of other things.

The Médor flavoured version of html2print.
**And this is an html2print version made for Médor?**
Yes, adjusted to Médor. But for me there is no official version of html2print, so yes. It's one of the many versions that is around.
I can't remember who made this version. Probably there was already the preview option. This was probably a CSS class that we used to write by hand in our HTML, and then we thought oke, we can turn this into a button.
(...)
Something else, and you're going to like it...

The table of contents is the only place where CSS grid is used.
The table of content is the only place where we use CSS grid. I think CSS grid is really nice. But we had a nasty little issue. For some reason it cut the descendant of the text in italics on the left side of the text box. Is it clear? Let me draw you the situation...
Let's say we have a big piece of text, like a big J, I don't know how to draw a J, let's say it looks like this. And the J is in italic. And for some reason with CSS grid it would just cut the J on the left. It was quite disturbing, it was not overflowing.
We didn't manage to solve this thing, so we kept our own CSS grid in which the elements are actually absolute positioned, and we have different classes to position them in different steps in the grid, in our grid.
**The grid was too rigid.**
Yes.
And because we're stuck with an old version of WebKit and CSS, it is this kind of bug that is not really solvable.
**What is the difference between CSS Regions and CSS grid? Both of them can be used to flow content into a template, right?**
CSS Grid positions already fragmented content. When something overflows, it's hidden, it does not flow into another div. It does not fragment content, it only positions it.
**What are the limits of CSS Regions? When do you switch to another tool, like Scribus?**
Usually when we switch it is about color. What happens sometimes is that we have illustrations with spot colors, or not even spot colors, but with precise CMYK values.
Here we wanted to have pure cyan, but i think we had issues with this one.
There are some other examples when there were drawings that need to be printed in pure cyan.
And with the color conversion we cannot be precise enough.
Because the color in html2print is described in RGB.
Pure black is oke, it stays the same after the conversion.
But for the other colors, it's hard to be sure to know what is going to happen.
On this page it is silly, we did the layout in ospkit. And then we imported each page of the pdf in Scribus, select the element that needed to be printed in silver and replace the spot color. This is possible because these are vectors. And you cannot set a spot color in html2print.
There was also a spot color in the bitmaps. And scribus support the possibility to replace colors in bitmaps. When you describe the colorname in Photoshop and Scribus the same, the connection will be made by the printer. You can make an extra channel in Photoshop I think, and as long as the names are the same, it will work.
**It's interesting that the workflow enables you to work with different tools. Was it a concious choice to do it in this way?**
At first there was this disappointment with... or let's turn it positively...
there was this excitement with using HTML.
But i think the mix of software also came back because we could see that each software has certain weak points and strenghts, or features.
I think for me something that is very important in OSP is that we embrace the diversity of tools. We have never been so excited about replacing X with Y. Replacing illustrator with Inkscape for example. There was the excitement to use different tools for different kind of things. Graphviz is for example a good example.
And for layout, i still like the idea that you can use different tools.