View Single Post
Old 04-08-2012, 06:34 PM   #1
curroergosum
Junior Member
curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.curroergosum is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 2
Karma: 34684
Join Date: Apr 2012
Device: Kindle 3 (Keyboard)
Yet Another Kindle Clippings - Evernote Exporter

Hello,

The short:

Code:
javascript:(function(){var jsCode=document.createElement('script');jsCode.setAttribute('src','http://klipletklipper.appspot.com/scripts/kliplet3-export.js');jsCode.onload=initparseClippings;document.head.appendChild(jsCode); function initparseClippings(){startClip(); } }());
Kliplet, Javascript bookmarklet to export your My Clippings.txt file to evernote ENML format, ready to import.

Instructions: 1. Copy the above code and save it in your browser as a new bookmark (or visit klipletklipper.appspot.com for a link that you can drag to your bookmarks bar)

2. Plug in your Kindle; Browse to the 'Documents' directory on your kindle and find the 'My Clippings.txt' file; Drag the file to an open Chrome/Firefox window.

3. Click on the bookmarklet link. A page should load with a link 'Click to download'. Click this link to download the Evernote export file.

4. Open Evernote desktop, click File->Import->Evernote Export Files...; Choose the file you just downloaded and click Open.

Only tested using Kindle 3/Keyboard (old generation) and latest versions of Firefox/Chrome/Evernote Desktop under Windows. Use at your own risk. You might want to make a backup of your My Clippings file first although I can't think of any way that this would actually do the original any harm.

Explanation

I've benefited from this forum a great deal over the last year that I've owned my Kindle, but never registered or posted. So I thought I'd share a Kindle-based project I put together recently while learning Javascript, let me know if there is a better place for it.

The default 'clippings' experience in the Kindle is extremely lame; searching and browsing on the device is slow and often crashes in my experience, and there's no streamlined off-device way AFAIK to do simple things like browse, delete, tag, export, etc. Of course there is kindle.amazon.com, but that only works for content purchased from Amazon, and I read a great deal of non-Amazon content (for example, annotated Polish classics from the great Wolne Lektury website).

I guess a lot of other people feel the same way, which is why there are so many great free scripts and programs for exporting and doing other interesting things with Kindle clips (here are the ones I know about: Kindle Clippings Organizer , this project, this Python script -- any others feel free to point out in this thread or let me know to add here). There is also one website that is quite suspiciously heavily promoted on all sorts of forums like this and that requires registration to do anything. I have no idea if it is good or a scam, so I won't put a link here.

The most straightforward solution to resolving the Kindle's inadequacies in organizing notes is to export them to some other program that is good at organizing/sharing/etc. It seems the most widely used multiplatform note program out there is Evernote, so I decided to start with a simple script to export the entire Kindle My Clippings file to a format that can be imported into Evernote. I thought a Javascript bookmarklet would be a nice, accessible approach to this (your average user might not have Python or Java installed, but most everybody has access to a Javascript-compatible browser). I wanted to squeeze all the code into the bookmarklet so it worked offline, but couldn't quite get that to work, so right now it simply loads a script from a Google Apps Site I created (if you want offline access you can download the linked filed and change the bookmark accordingly).

The mechanics of the script are real simple, just parse the My Clippings file using a few regular expressions, generate an output file in the Evernote XML format, and serve up the file in the form of a URI link. I based the format for the Evernote XML on an export generated by the latest version of the Desktop software running under Windows; there are some language/platform specific tags, so I'm interested in whether it will import correctly on other platforms.

As mentioned above, I'm using this as a practice project while I learn various web technologies, so I will be expanding/improving on it as I learn. My thought is that while most power users probably just want to plug their Kindle clippings into all the other services they use, some casual users might just want a friendly, convenient way to browse their notes, organize them, format them nicely and print them out / export them to PDF/Doc. I've got a rough draft of something like that and will post it here / the google apps site soon. EDIT: rough draft of DeLuxe version now on the website, http://klipletklipper.appspot.com/.

Please test out the bookmarklet, report any problems, and offer any suggestions to improve it or of features you would like to see in any future development.

Cheers!

Last edited by curroergosum; 04-08-2012 at 08:38 PM. Reason: pre alph deluxe now up
curroergosum is offline   Reply With Quote