Code Monkey home page Code Monkey logo

comic_book_reader's Introduction

http://comic-book-reader.com

Comic Book Reader

  • Can read CBR, CBZ, CBT, and PDF files
  • Runs in the browser as a JavaScript and HTML web page
  • Works well on a touch device or desktop
  • Saves opened comics in the browser
  • Works when offline thanks to Service Workers.
  • Regularly tested in Firefox, Chrome, and Internet Explorer

Run for development

python3 -m http.server 8000

Install git hooks to automatically generate js/version_date.js file on commit

./bin/install_hooks.sh

Bugs:

  • CSS animations stack on the page number overlay

comic_book_reader's People

Contributors

btzr-io avatar workhorsy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

comic_book_reader's Issues

Metadata

Extract and read metadata from the archives.

Metadata for Graphic Novels and Comic Books:

https://digitalcommons.unl.edu/cgi/viewcontent.cgi?article=3168&context=libphilprac

ACBF

http://acbf.wikia.com/wiki/Advanced_Comic_Book_Format_Wiki

Advanced Comic Book Format (ACBF) specification is a distribution and interchange format for digital comic books. ACBF specification defines a means of representing structured and semanticaly enhanced content used in comic books. In contrast to widely used Comic Book Archive (CBR, CBZ โ€ฆ), content is represented in separate graphic and text layer(s) as well as comic book metadata is present.

Component-Oriented UI

Simplify UI with modular and reusable components:

Todo

  • Fix translations preact-i18nline
  • Fix settings #110
  • Handle Errors
  • History #104
  • Improve UI / UX
  • Fix fontawesome bug / icons
  • Test / lighthouse test
  • Responsive / mobile support
  • Remove duplicated css / modules
  • Fix empty library
  • Port / Fix Reader

Split website from reader

We should separate the website code from the reader.
Maybe isolate the reader in it's own component?

Wait for thumbnail creation before uncompressing next page

When it uncompress a page, it then creates a thumbnail. It does not wait for the thumbnail to be created before it starts uncompressing the next page. This often leads to all the thumbnails getting queued in memory. Then they are finally created after all the pages are uncompressed. This can lead to huge memory spikes, and makes it look like everything is loaded, when it is not.

Add a tutorial button

Add a tutorial buttons that shows how to:

  1. open a comic
  2. load comics from the library
  3. change pages
  4. change pages from library
  5. change settings

Different input events fire for different browsers

real input -> event

firefox (window.ontouchstart -> false)
mouse -> mouse
touch -> mouse
pen -> mouse

chrome (window.ontouchstart -> true)
mouse -> mouse
touch -> touch
pen -> mouse

IE (window.ontouchstart -> true)
mouse -> mouse & pen
touch -> mouse & pen
pen -> mouse & pen

The indexedDB does not let us list all databases.

The indexedDB standard does not yet have a way to list all databases. Webkit does have indexedDB.webkitGetDatabaseNames though. So we work around this by storing their names in localStorage.

This sucks, especially because tables in the indexedDB can be removed by the LRU cache at any time (without notice). Then the localStorage will list tables that no longer exist.

Sometimes pages are loaded in the wrong order.

This seems to happen only in Chrome, on machines with fast disks such as SSDs. Also note that it only happens when initially loading a comic. When reloading it from localStorage, it is in the correct order.

This probably can be fixed by including the index when sending the uncompressed page from the web workers into the image carousel.

Add a history button

Show what comics was read sorted by date. Include thumb nail, date, and progress bar on bottom of cover.

Comic thumb nail
[=======   ]
9:34 AM - comic_02.cbz


Comic thumb nail
[==========]
6/28/2015 - comic_01.cbz

Hot-keys

Implement Hot-keys / Shortcuts

Move image resizing into WebWorkers

This will have many advantages:

  1. Save on memory, as we can destroy the WebWorker when done. This will free all the memory without having to wait for GC on the main thread.
  2. Will stop the UI from being jerkey, because it will not have to block it while resizing the images.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.