Giter VIP home page Giter VIP logo

sodaispod / chohue-epub-verticalizer Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 0.0 72.49 MB

這是一款電子書直排軟體,可以在直排轉換之後匯出epub、mobi。還可以針對不同的需求去除插圖或是移除css style之類的資料,還能快速地在正體簡體之間切換。

Home Page: http://kiicho.cc/Chohue

C# 87.92% HTML 12.08%
converter ebook epub kepub mobi veritcalization

chohue-epub-verticalizer's People

Contributors

sodaispod avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

chohue-epub-verticalizer's Issues

轉直排後目錄失效

轉完直排後 ,發現目錄的指定位置會錯誤
未轉之前是正常的,根據觀察,應該是把所有html檔搬出來後,沒放回同個地方,造成 ncx檔 找不到位置

轉檔之後出現書籍不相容閱讀器的問題

轉檔之後部分閱讀器無法閱讀,且沒有直排效果。

User report:

  1. Calibre 6 可正常顯示直排
  2. Readmoo 的書櫃/文件/上傳:轉檔失敗(但原始檔可正常上傳及閱讀)
  3. Google play 圖書/媒體庫/上傳檔案:處理失敗(但原始檔可正常上傳及閱讀)
  4. KOBO app:匯入檔案後可顯示封面,但開啟檔案時會跳出無法閱讀
  5. 靜讀天下app:文字橫排,引號和括號是直排

Root cause:

  1. 讀取 HTML 時會先使用 HttpUtility.HtmlDecode(source) 把 html 進行 decode,書本內有 & = & ,
    該符號被轉成 「&」導致 reader 誤以為有 ESCAPE character 卻沒有結尾符號「;」
    HttpUtility.HtmlDecode 一開始應該是針對某些檔案全部都用 BOM 儲存所以才需要特殊轉換。
  2. HtmlAgilityPack attribute 會有大小寫變更問題。
  3. HttpAgilityPack 在 toc.html 讀不到某些 tag ,導致後續處理出問題。

Solution:

  • 1. HttpUtility.HtmlDecode 未來改為預設關閉並手動開啟
  • 2. 改為維持原大小寫輸出
  • 3. 目前 <script /> tag 無法讀取,未來需要更換 parser
  • 4. 暫時性解決方案,出問題的頁面先不處理

修改後測試可閱讀

  • Calibre
  • Kobo
  • Play

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.