12-05-2019, 09:01 PM | #1 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
|
Is it possible to hyperlink to local file?
So let's say I have some html document changed to txt so that my kindle(PW) can open it.
I was wondering whether it's possible to make some hyperlink in that file so that instead of going to some web-page, it will go to the local file named as I've pointed to? |
12-05-2019, 10:46 PM | #2 |
Wizard
Posts: 1,081
Karma: 3581333
Join Date: Sep 2014
Location: Ukraine
Device: Kindle PW2, PW3, PW4, Voyage
|
Try it by yourself, the full path is, for example:
file:///mnt/us/documents/myfile.txt |
12-23-2019, 07:11 AM | #3 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
|
Re: Is it possible to hyperlink to local file?
|
12-23-2019, 10:33 AM | #4 |
Nil adsuetudine maius
Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
It works the way you want in koreader. In the Kindle UI you don't get a hyperlink i.e. clickable link since the html page was renamed to .txt and Kindle is now treating it as a text document.
A workaround for this might be to leave the document name unchanged i.e. put the somedocument.html file into the Kindle documents directory. Then open the experimental browser and enter the url in the address bar file:///mnt/us/documents/somedocument.html And it will then display in the browser with a clickable link to the referenced local file. Note that the Kindle library won't include .html documents. The referenced file can be .txt, but the page with the link(s) needs to be .html if you want a clickable link to display in the Kindle UI. A much better experience in koreader which will show the document in the library and parse hyperlinks for .txt or .html documents. But the workaround may serve your needs. Last edited by Junket; 12-23-2019 at 11:49 AM. Reason: belated spell check |
12-23-2019, 01:39 PM | #5 |
Grand Sorcerer
Posts: 5,453
Karma: 100408738
Join Date: Apr 2011
Device: pb360
|
The original HTML file can be converted to a kindle format ebook with either kindlegen or calibre.
It is my understanding that HTML files can be emailed to kindles via amazon, who will convert the file to kindle format before delivering it to the kindle. |
12-23-2019, 02:10 PM | #6 |
Nil adsuetudine maius
Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
Two good options for the OP then. Convert your html document as above. Or use koreader (requires jailbreak).
|
12-23-2019, 06:40 PM | #7 | |
Connoisseur
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
|
Quote:
In html files changed to txt, the normal links to http adresses works normaly(are clickable) Thanks for other suggestions tho, I will try them now. |
|
12-23-2019, 10:39 PM | #8 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
|
I've checked both calibre converted mobi, azw3 or by email - non worked.
The browser workaround it's also quite poor because althoug it works, the documents are still in the web browser so it's quite slow. Maybe it works on older paperwhites or something? |
12-24-2019, 12:40 AM | #9 |
Nil adsuetudine maius
Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
Successfully converted Word documents (.rtf) with Calibre --> .mobi with hyperlinks preserved. Dead easy, tested on PW4. Calibre 4.5.0, default conversion settings.
A cursory test with .html --> .mobi didn't work for me but which could have been for any number of reasons which I'm not committed to looking into. |
12-26-2019, 08:47 AM | #10 |
Connoisseur
Posts: 54
Karma: 10
Join Date: Dec 2015
Device: kpw2
|
|
12-26-2019, 11:52 PM | #11 |
Nil adsuetudine maius
Posts: 278
Karma: 500000
Join Date: Nov 2019
Location: US
Device: PW4
|
Afraid not. I used a random document at hand for the source which has personal information. Just converted a handful more to see if we could get a working mobi for you but internal hyperlinks fail to work on half of the converted documents (no issue with external hyperlinks). All of the conversions that worked have personal info in them. Mobi is being very picky about something non-obvious in the formatting, which you'd have to either troubleshoot or Google to identify the specific failure point(s). The original two ideas work properly. But you rejected those because you didn't want to jb (to use koreader) and you didn't like using the browser. |
Tags |
hack, html, hyperlink, kindle, paperwhite |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Creating local file links | ni_c | Editor | 13 | 08-30-2015 05:53 PM |
Recipe using a local file? | TheRevolutionist | Recipes | 1 | 01-10-2012 12:37 PM |
local html file with K3 browser | Reeeder | Kindle Developer's Corner | 0 | 08-28-2011 05:41 AM |
API to link local file to a ebook page | guru_r236 | Development | 1 | 05-22-2011 09:00 AM |
Trying out ADE file ebook from my local library ... | RWJ | Sony Reader | 5 | 07-28-2008 03:03 PM |