GitXplorerGitXplorer
a

kindle-clippings-parser

public
9 stars
2 forks
0 issues

Commits

List of commits on branch master.
Unverified
22973b2b532982c5cdb05e5ecfeeceb7750d4e6d

Merge pull request #1 from rydjones/master

committed 13 years ago
Unverified
5bf4ca625e58eb4b437a192f9f9b00ec552840fc

Fixed collect_title() to handle subtitle in (), Rearranged conditions in collect_location() to handle clippings with Page AND Location data

rrydjones committed 13 years ago
Unverified
2cf767fd79c72241af5ddf4d169d8dcc324b02e0

init

committed 13 years ago

README

The README file for this repository.
  • what is it? It is a small program that reads a text file formatted like Kindle's My Clippings.txt on stdin and produces a complete HTML file with (sorted) highlights from that file on stdout. It also optionally takes a string to fuzzy-match with titles as first argument.

Like this: parsertest.py 'first as tragedy then as farce' < /media/Kindle/documents/My\ Clippings.txt > myzizekquotes.html

  • requirements
  • python-levenshtein
  • files
  • parsertest.py: an actual CLI itility, based on my own homegrown parser (so don't trust it!)
  • kindleclippingsparser.py: a class/module for parsing Kindle's My Clippings.
  • known errors
  • all input is assumed to be Unicode, because, well, it should be.
  • not very fine-grained search, yet.
  • copying kindle-clippings-parser is free software.

You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program, (in the COPYING-GPL-3 file in this directory). If not, see http://www.gnu.org/licenses/