Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 04-25-2023, 12:11 AM   #1
uroybd
Member
uroybd doesn't litteruroybd doesn't litter
 
Posts: 10
Karma: 194
Join Date: Apr 2022
Location: Dhaka, Bangladesh
Device: Likebook P78, Boox Poke Pro
CBZ 2.0 - A Better Comic Book Format

CBZ (and derivatives) are being used as e-book format for comic books for quite a long time. While they work well in larger screen, It is very hard to use them in smaller handheld devices.

Many e-book reader apps solve this problem differently. Some use feature like panel zoom and bubble zoom. They work, but not perfectly.

This proposed second iteration of Comic Book Archive is an attempt to solve some, if possible most, of these problems.

Structure

In structure this format is similar to CBZ except for an additional content.xml file in the archive root. This allows these files to be backward compatible.
Content.xml

The content.xml file will content several sections. A rudimentary example here:

Code:
<?xml version="1.0" encoding="utf-8"?>
<package version="2.0">
  <metadata xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opf="http://www.idpf.org/2007/opf">
    <dc:title>Title of the comic book</dc:title>
    ... Other metadata
  </metadata>
  <content>
    <panels>
      <panel id="panel-1" href="1.png" frame="5 5 30 30" />
      <panel href="1.png" frame="40 40 30 30" />
      ...more panels
      <panel href="5.png" frame="5 5 30 100" />
      ...
    </panels>
    <bubbles>
      <bubble href="1.png" frame="5 5 30 30" parent="#panel-1" />
      <bubble href="1.png" frame="40 40 30 30" />
      ...more bubbles
      <bubble href="5.png" frame="5 5 30 100">
        Optional content in the bubble for screen reader.
      </bubble>
    </bubbles>
  </content>
</package>
Let's dissect the content.xml

Metadata

The metadata section contains all the metadata of the comic book. I'm using IPDF's metadata convention here.

Content

Panels

This section define all the panels in order. href points to the file from which we'll get the panel. frame contains for values: x, y, width, height.

Bubbles

Bubbles get defined here almost exactly like panels. Optionally, they can also have the content in them to allow the screen readers to read the comics, and with a parent key, a parent panel can be defined.

Usage

Using the structure defined above, e-book reader applications can develop following features:

Panel Navigation

Apps can get panels from images by using the data from content.xml and allow users to navigate panel by panel. This allows the users to read comics more easily in hand-held devices.

Bubble Zoom

Using the bubbles definitions apps can enable bubble zoom more efficiently without any image recognition burden.

Additionally, It can be used to provide better accessibility for people with disabilities affecting their reading capabilities.

P.S. This is still mostly a draft. I'll keep it updated in my digital garden.
uroybd is offline   Reply With Quote
Reply

Tags
comic books, ebook formats


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems converting any Cbr Cbz or comic or manga in general Tehferret Conversion 5 12-30-2021 07:15 AM
How to convert a lot of .cbz files to azw3 with comic book processing lleal Conversion 1 11-15-2015 10:39 PM
Best Reader/Tablet for color comic books (cbr and cbz) astrangerhere Which one should I buy? 11 02-29-2012 11:17 PM
Comic book format benefits ryntau Other formats 2 01-08-2012 07:57 PM
Comic conversion problem (CBZ to PDF) on Kindle DX Graphite kindle-dxg-owner Calibre 10 12-15-2010 08:58 AM


All times are GMT -4. The time now is 07:51 AM.


MobileRead.com is a privately owned, operated and funded community.