<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gregorio Pellegrino on Medium]]></title>
        <description><![CDATA[Stories by Gregorio Pellegrino on Medium]]></description>
        <link>https://medium.com/@g_pellegrino?source=rss-33c3b3c1d31c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uvi3aLeqOnRatr1E.jpeg</url>
            <title>Stories by Gregorio Pellegrino on Medium</title>
            <link>https://medium.com/@g_pellegrino?source=rss-33c3b3c1d31c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 08:23:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@g_pellegrino/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fighting against iBooks]]></title>
            <link>https://medium.com/@g_pellegrino/fighting-against-ibooks-129d4d8cb9e3?source=rss-33c3b3c1d31c------2</link>
            <guid isPermaLink="false">https://medium.com/p/129d4d8cb9e3</guid>
            <dc:creator><![CDATA[Gregorio Pellegrino]]></dc:creator>
            <pubDate>Sun, 12 Jan 2014 15:45:18 GMT</pubDate>
            <atom:updated>2014-01-12T15:45:18.391Z</atom:updated>
            <content:encoded><![CDATA[<h4>Working with Media Queries in ePub3 fixed layout on iBooks</h4><p>I’m working on the project of developing a magazine in ePub3 inspired by Wired digital (I wrote <a href="https://medium.com/ebook-production/4bf75ada5a3">here</a>), I’m making tests on Media Queries in ePub3 on desktop, tablet and smartphone (ok the devices are: Mac, iPad and iPhone) with iBooks, here I report my results.</p><h4>Recognize devices using Media Queries</h4><p>This works. I set up a Media Queries using <em>min/max-width</em> for the different devices. For the moment it only changes the body <em>background-color</em>, but potentially I can put every CSS rule inside the Media Queries and so create different layouts for different type of devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KZlqJHBflTMqqZfStmazpw.jpeg" /><figcaption>The result</figcaption></figure><p>You can find the test file here: <a href="http://drop.pr/J0XUOZ">http://drop.pr/J0XUOZ</a> (validated using ePubCheck).</p><h4>Changing CSS depending on orientation</h4><p>This doesn’t work. I tried a lot changing <em>background-color</em> on changing device orientation (landscape or portrait), but seems that iBooks doesn’t check Media Queries on changing device orientation.</p><p>I also tried to achieve this effect using <em>min/max-width</em> but also this doesn’t work because working with fixed layout ePubs the width is fixed (as chosen in <em>viewport</em> meta tag).</p><p>Do you have any idea on how to make it work?</p><h4>Modify viewport</h4><p>While I was surfing the web for tips on how to realize my project I found this CSS rule: <strong>@-epubx-viewport</strong> (<a href="http://www.idpf.org/epub/pgt/#s3.6">http://www.idpf.org/epub/pgt/#s3.6</a>), the Holy Graal of my <em>Recherche</em>. I tryed playing with it a lot with no results. Sigh.</p><p>I also tryed <strong>@viewport</strong> (<a href="http://dev.w3.org/csswg/css-device-adapt/#the-atviewport-rule">http://dev.w3.org/csswg/css-device-adapt/#the-atviewport-rule</a>) with no results. Sigh. Sigh.</p><p>I’ll keep you updated on the development of the ePub3 magazine!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=129d4d8cb9e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magazine in ePub3]]></title>
            <link>https://medium.com/@g_pellegrino/magazine-in-epub3-4bf75ada5a3?source=rss-33c3b3c1d31c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bf75ada5a3</guid>
            <dc:creator><![CDATA[Gregorio Pellegrino]]></dc:creator>
            <pubDate>Sun, 05 Jan 2014 21:22:08 GMT</pubDate>
            <atom:updated>2014-01-06T11:14:20.410Z</atom:updated>
            <content:encoded><![CDATA[<h4>I’m trying to emulate Wired  using ePub3: HTML5 and CSS</h4><p>Have you ever flipped through <a href="http://www.wired.com/magazine/tablets">Wired USA on your iPad</a>? Well I think it is one of the best digital magazines that are being published.</p><p>The digital version has the same layout of the printed, re-adapted for screens. You can browse the articles swiping left and right and read the article swiping up and down. The layout is coded for both portrait and landscape position. The contents are rich with videos, audios, animations and interactivity. Some pages are always updated with last tweets (from Wired’s account), last posts on Facebook and videos on YouTube. More information on a <a href="http://bcove.me/zmm42fec">video</a> from 2010 presenting the “digital Wired”.</p><h4>Why I’m telling you all these things?</h4><p>I’m working on my next project: a platform for creating an ePub3 magazine. I’ve already “sold” the concept to the customer (showing Wired as example of digital magazine), so I have to start developing it. I have only some small problems: ePub3 is not like I expected!</p><p>The designer has already created the design and the template in HTML5 and CSS3, so I have to put all the files together to make a prototype. I tried, but the result is not as I want!</p><h4>ePub3 vs Wired</h4><p>I know, I know, I know: Wired is made using InDesign and Adobe Digital Publishing Suite (or some other Adobe app). I know: Wired is not simply HTML + CSS, but <strong>all the things in Wired should be coded using HTML5 and CSS3</strong>!</p><p>So where is the problem? The problem is that ePub3 has deficiencies on managing complex fixed layout designs. Here the features that I need:<br>. swipe left and right for changing article <strong>OK</strong><br>. swipe up and down for reading the articles <strong>OK</strong><br>. manage the layout in portrait and landscape <strong>NO</strong><br>. use responsive CSS <strong>TO BE TESTED</strong><br>. rich contents (audios, videos, etc.) <strong>YES</strong><br>. pages updated from online resources <strong>TO BE TESTED</strong></p><p>Do you know some examples of ePub3 magazines?<br>Have you got some ideas on how to solve the above problems?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bf75ada5a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>