Created
December 16, 2011 21:56
-
-
Save nichtich/1488183 to your computer and use it in GitHub Desktop.
Get data from Sony PRS-T1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Get highlighted parts | |
-- in /media/READER/Sony_Reader/database/books.db: | |
SELECT file_name, page, name FROM markups; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
sonyprsnote2svg.xsl - extract SVG notes from Sony PRS reader data | |
apply this to /media/READER/Sony_Reader/media/notepads/*.note files | |
--> | |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" | |
xmlns:note="http://www.sony.com/notepad" | |
xmlns:svg="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
xmlns:xml="http://www.w3.org/XML/1998/namespace"> | |
<xsl:template match="/note:notepad"> | |
<!-- TODO: multiple pages --> | |
<xsl:apply-templates select="//note:page[1]"/> | |
</xsl:template> | |
<xsl:template match="note:page"> | |
<xsl:copy-of select="svg:svg"/> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment