Giter VIP home page Giter VIP logo

firefox-html-to-epub's People

Contributors

sparika avatar

Stargazers

 avatar  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

Forkers

benroc aek1 yoshyn

firefox-html-to-epub's Issues

[Task] Translation

Objectives

*Fully translated application
*Minimum support: french and english

Test

The extension has not yet been tested on another platform than ubunu.

We should test it under Windows, Mac and Android.

problem with directoryEntries

In browserOverlay.js

var wbp = Components.classes['@mozilla.org/embedding/browser/nsWebBrowserPersist;1'].createInstance(Components.interfaces.nsIWebBrowserPersist);
wbp.saveDocument(window.content.document, webPageLocal, webFilesLocal, null, wbp.ENCODE_FLAGS_RAW,null);

/**
* Collect files informations
*/
var array = [];
if (webFiles.exists()){
var entries = webFiles.directoryEntries;

How should it works ?

"entries" should be an iterator containing all files and directories saved in "webFiles".

Bug

Files and directories are correctly saved but only directories are put into "entries" as if "files" were saved afterwards.

Workaround ?

Same problem has been encountered while zipping files. It has been solved by changing the "aQueue" parameter of the "addEntryFile" function from "true" to "false".

Add new epub file to the download manager

When we use "save as" in firefox, the saved page is added to the download manager. This indicate that the task has been completed. This is how it should work in our extension.

Save as .epub

When the user choose a file name for his epub, ou code append ".epub" to it. This should only be done if the user has given a file name without ".epub" extension.

content.opf

Here is a list of issue with content.opf

  • id of files without extension is null
  • missing
  • xmlns declaration should be done once for the default namespace

Uncompatibility with FBReader and two others

Epubs generated by our plugin seems to be uncompatible with Fbreader, Adobe Digital (but not tested) and Reader for PC (but not tested).

When FBReader open one of our epub, there is a progress bar wich complete its loading and then nothing. Firefox's EPUBReader can read the same file without problem.

http://www.fbreader.org/

Random URI

Each Epub should be identified by a unique URI

dc:titleHello World: My First EPUB/dc:title dc:creatorMy Name/dc:creator urn:uuid:12345/dc:identifier http://www.ibm.com/developerworks/xml/tutorials/x-epubtut/section3.html

We should also use this URI to identify the temporary directory we are working in.
For now it's "Tmp_D/FHTE" it should be "Tmp_D/FHTE_URI12345" or something like that.

uncompressed mimetype

mimetype should be added first to the epub file (zip file) and shouldn't be compressed.

Missing AUTHORS

You should create a file called AUTHORS, listing all the authors of this add-on. This file should be at the toplevel of the git.

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.