简体   繁体   中英

Is there a mobi version of Java Language Specification?

I'm not sure if this is the absolute best place to ask, but I think there's highest probability of an answer here (because of the topic).

Has anyone came across a mobi (Amazon Kindle) version of Java Language Specification? I know I can read PDFs on Kindle but it's less of an experience compared to mobi.

http://docs.oracle.com/javase/specs/

The steps i used to get the JLS into my kindle with the pretty good result:

1) Download JLS in the HTML format with the help of some site downloader.

I used HTTrack (settings: initial url is http://docs.oracle.com/javase/specs/jls/se7/html/index.html , default "preferences and mirror options" except for "build"/"local structure type", which i set to "html in web/, images/others in web/").

The result should be something like a directory with 25 html files, 1 css and 1 image file, and the links inside the html files should be properly relativized.

2) Edit the css file to remove some formatting that will not look good on Kindle (absolute layouts, excessive left and right margins). I simply commented out "div.chapter div.toc", "div.chapter", "ol li" and "ul li" sections and left everything else as is.

3) Use Calibre to convert this set of files into mobi.

The resulting mobi flows nicely and so far all internal links work as expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM