|
RenditionMappingAdHocGroup
#page for ad hoc group to work on rendition mapping (aka replica map) data structure. Members
General PurposeWithin an EPUB there may be multiple renditions of the same content. For instance a pre-rendered layout of the document as one rendition, and the XHTML content as a different rendition. For a user to navigate between those renditions it is useful to be able to creating a mapping between locations in the two renditions. GrammarSee renditionMap-P-A.xml and renditionMap-P-P.xml for the old proposal. This following is a quick sketch of the new proposal that is updated to:
<map source-full-path="path to OPF file"
destination-full-path= "path to OPF file">
<targetMaps>
<targetMap>
<!-- Note: all points follow the spatial offset convention in the CFI spec and are expressed
as a percentage of the graphic width (for x coordinates) and height (for y coordinates).
The syntax for the regison selection elements (rect, circle, etc...) follow the SVG syntax
for those elements, but we will want it in a different namespace, to allow for the points
to be CFI style spatial offsets.
Note2: A targetMap contains one or more sourceTarget, and one and only one destinationTarget elements -->
<sourceTarget sourceID="manifest id in source-full-path">
<polygon points="75.2,80.0 90.1,40.2 22.0,35.0">
<!-- or -->
<rect x="5.0" y="10.0" width="10" height="15.0"/>
<!-- or -->
<circle cx="100" cy="50" r="40" />
<!-- or -->
<ellipse cx="210" cy="45" rx="170" ry="15"/>
</sourceTarget>
<destinationTarget destID="destinationID1">
<!-- follow the rules for CFI ranges http://idpf.org/epub/linking/cfi/epub-cfi.html#sec-ranges
Note that the initial subPath part is redundant /6/4[destinationID1]! since the destID covers this -->
<cfirange subPath="/6/4[destinationID1]!/4[body01]/10[para05]" start="/2/1:1" end="/3:4" />
</destinationTarget>
</targetMap>
</targetMaps>
</map>Proposed addition - child element of map to handle guided view <threads>
<thread>
<view index="integer index within thread">
<polygon points="75.2,80.0 90.1,40.2 22.0,35.0">
<!-- or -->
<rect x="5.0" y="10.0" width="10" height="15.0"/>
<!-- or -->
<circle cx="100" cy="50" r="40" />
<!-- or -->
<ellipse cx="210" cy="45" rx="170" ry="15"/>
<!-- reading system may choose the closest enclosing bounding box for the zoom -->
</view>
</thread>
<!-- additional thread elements as needed -->The region selection (polygon, rect, circle, ellipse) are undefined in behavior for XHTML content, just as the cfirange behavior is undefined for bitmap content. Open questions:
Other ConsiderationsA request from the Fixed Format workshop was to consider the work being done for Advanced Adaptive Layout, to see if we can leverage the work being done for specifying regions within the document. The latest versions of the AAL work is being done as CSS Regions, and the closest thing for specifying the regions is the CSS3 Exclusions and Shapes: http://dev.w3.org/csswg/css3-exclusions/ which adopts a microformat version of SVG circle, elipse, rectangle, and polyline, and (as well as indirect inclusion in css of those SVG). The current proposal for rendition map is a XML based format, which makes the direct inclusion of the CSS syntax uninteresting. However it may be useful to keep the same element set and parameters, and adopt (with a different namespace) the SVG XML representation that they came from. Documents
|
Hi, I'd like to contribute to this group. My name is Luc Audrain from Hachette Livre (laudrain@hachette-livre.fr). Best regards, Luc
Hi,
I've uploaded an example magazine using multiple renditions according to Jim's proposed grammar. One rendition maps images to articles. The other maps images to itself to support hotspots and guided view.
Some interesting things to note are: 0) each rendition map xml file is in the renditionMaps folder, referenced by the container.xml file 1) the default rootfile is the first listed in container.xml, this may later depend on metadata explicitly indicating the default 2) there is a separate navigation document per rendition (toc.xhtml), currently the epub3 spec says there may only be one navigation document. This seems to contradict the ability to have multiple root files which would each require their own navigation document. 3) different renditions can share common files in a shared folder
Brady
I've updated the example fixed format Cosmo magazine to have each fallback be an html file referencing the images in the spine item. I've also changed the ordering in the META-INF/container.xml so that the fixed format rendition is used by default in current epub 3 readers such as adobe digital editions beta.
Hi, Can we set human readable title into each rendition map file? It will be very helpful for users to select each rendition.
The title of a particular rendition should be in the Package Document for that rendition, rather than in the rendition map. Or did you want a title for the Map itself: something like 'Portrait to Landscape' or 'Fixed to Reflowable'?
I'd like to contribute to this group. My name is Masao MURATA from Fujifilm (masao_murata@fujifilm.co.jp). Best regards.
Hi, I'd like to contribute to this group. My name is Shunichiro NONAKA from Fujifilm (shunichirou_nonaka@fujifilm.co.jp). Best regards,
Hi! I created a epub3, I would put my ebook within your group. how can I do? My email patdesigner@libero.it . Thanks