Skip to content

Instantly share code, notes, and snippets.

@nichtich
Created December 16, 2011 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nichtich/1488183 to your computer and use it in GitHub Desktop.
Save nichtich/1488183 to your computer and use it in GitHub Desktop.
Get data from Sony PRS-T1
-- Get highlighted parts
-- in /media/READER/Sony_Reader/database/books.db:
SELECT file_name, page, name FROM markups;
<?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