Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support loading documents from GitHub and Aozorabunko URLs #499

Merged
merged 1 commit into from
Jan 29, 2019

Conversation

MurakamiShinyu
Copy link
Member

- Convert GitHub URL to GitHub raw URL
e.g., https://github.com/IDPF/epub3-samples/tree/master/30/accessible_epub_3/
=> https://raw.githubusercontent.com/IDPF/epub3-samples/master/30/accessible_epub_3/

- Convert Aozorabunko (X)HTML URL to GitHub raw URL
e.g., https://www.aozora.gr.jp/cards/000121/files/628_14895.html
=> https://raw.githubusercontent.com/aozorabunko/aozorabunko/master/cards/000121/files/628_14895.html

- Override MIME type on GitHub raw URLs to enable loading HTML/XML documents from GitHub raw data.
- Set charset=Shift_JIS for Aozorabunko's (X)HTML files
@MurakamiShinyu MurakamiShinyu merged commit 5e12deb into master Jan 29, 2019
@MurakamiShinyu MurakamiShinyu deleted the support-github-and-aozorabunko-urls branch January 29, 2019 15:13
@MurakamiShinyu
Copy link
Member Author

This merged pull request had problem and I fixed it in 6181b0f.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant