Activities/Read SD Comics

From Sugar Labs
Jump to navigation Jump to search

Description & Goals

Read SD Comics is my second attempt at creating a comic book reading Activity for the XO laptop. View Slides was the first. Read SD Comics actually has fewer features than View Slides. You can't share documents, there are no annotations and no support for multiple bookmarks, and you cannot create and edit slide collections. It just reads image collections in Zip and .CBZ archives.

Why create an Activity that does the same thing as View Slides but with fewer features? The answer is simple: Read SD Comics does not read image archives in the Journal. Instead, the comic files are kept on an SD card or other external storage, and the Journal only stores a link to the comic file plus metadata like the page you left off on, title, description, etc.

If you own an XO laptop you should be able to see the advantage of this approach. Every XO laptop has a place to insert an SD card. The slot is designed to make the card difficult to remove. If you have a cheap SD card you can add up to 8 gigabytes of storage to your XO.

Unfortunately, the SD card isn't good for much because Sugar works with the Journal and the Journal is on internal storage only. Since internal storage has to hold the operating system, etc. you have only about 500 megabytes to hold your stuff. Since a long comic book can easily be over 60 megabytes you just can't store much of a collection in the Journal. You can, however, store lots of them on an SD card.

The interface to Read SD Comics is similar to the core Read activity, which should not be surprising as the toolbar code was adapted from Read's toolbar. You can use the up and down arrows or the game controller to move from page to page.

Slide Collections on the Internet

Some books at Project Gutenberg are already in a suitable format. Try downloading this file from Project Gutenberg. Look for the file format "Raw page images".

If you want to read some free comic books the Internet Archive has a bunch of them. Use this query to see a list of them. They are in the .cbr format, and will need to be converted to the .cbz (Zip) format to be used with View Slides. The program Comix under Linux can do this conversion for you if you have the unrar utility installed, or you can simply unrar the .cbr file to get the images, then package the images in a zip file:

unrar e LoneRangerDell100.cbr
zip LoneRangerDell100 *.jpg

If you use Windows you can use the free 7zip File Manager to extract the files from the .cbr and pack them up again in a zip file.

Current Features

  • Currently you can load a zip file containing images and page through them in sequence like a book. The images will be resized to best fit in the current screen resolution without scrolling. If you change the screen orientation the image will be resized to fit the new orientation.
  • You can hide the mouse pointer (or make it visible again) by pressing the "square" button to the lower right of the XO screen (or numeric keypad "Home" on any other computer). This removes a source of distraction when viewing images.
  • You can zoom the image to fit the width of the screen and scroll it vertically. This is handy for reading scanned in books with smaller print. Also new with version 7 you can hide and show the toolbar by pressing Alt-Enter on the keyboard, giving you the ability to view your slides using the full screen.