|12-27-2009, 03:50 PM||#1|
Join Date: Mar 2009
Location: Montreal, QC
Device: Sony PRS-505
Creating a Library file w/Author, Title, Summary and tag info
My biggest complaint with my Sony reader is that there's no quick and easy way to view all my books and their meta info. What I was looking for was a fast glance kind of file that would be the equivalent of skimming over the backs of novels in a bookstore so my idea was to create a file with ALL my books, their summaries and their tags that would look like this:
Author - Title of Book
Summary of Book
This way, I can scroll through a whole listing of my library and see what I want to read next.
Here's what I did and hopefully it helps some of you:
1) Make sure you have all the appropriate summary info/metadata in your library
2) Run the "list" option from the command line interface and export to xml
3) Create an xslt stylesheet in any text editor (save this file as mystylesheet.xslt)
- Here's mine as an example:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<h2 class = "chapter"><xsl:value-of select="authors"/> - <i><xsl:value-of select="title"/></i></h2>
4) Add the following line to the top of the xml file you created in step 2 (again, this can be done in any text editor):
<?xml-stylesheet type="text/xsl" href="file:///mydirectory/mystylesheet.xslt"?>
5) Open the xml file in any web browser and save it as an HTML file
6) Add the file to calibre and convert it to EPUB or whatever format your e-reader uses
NOTE: Don't forget to autogenerate the table of contents for ease of use!
7) Transfer the file to your e-reader and enjoy!
|01-18-2010, 09:48 AM||#2|
Join Date: Oct 2007
Device: PocketBook Pro 902, EB-1150, PRS505, PRS700, Jetbook, Hanlin V3, Kobo
Re: Creating a Library file w/Author, Title, Summary and tag info
Sorry if this is obvious, but I'm not sure what you mean by step 2. Are you talking about the Windows CMD command line, or the Calibre command line? This is something I'd really like to do, once I get my "add books" problems sorted out.
|01-18-2010, 11:28 AM||#3|
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Yes it is a Windows, Linux command issued from a terminal window.
calibredb --list <set your options here> > filename.txt,xml,csv
|calibre, library, xml|
|Thread Tools||Search this Thread|
|Thread||Thread Starter||Forum||Replies||Last Post|
|How To: Getting summary metadata and images, not tags, author, title||Starson17||Calibre||21||01-10-2011 10:51 AM|
|RTF Title author info?||valkyriesound||Sony Reader||7||05-31-2010 11:28 AM|
|How to keep author and title info when dragging-and-dropping RTF files||alexmobile||Sony Reader||2||10-19-2009 05:57 PM|
|Editing title/author info on lit files||bones_708||Reading and Management||8||01-31-2008 01:09 PM|
|author info on plain txt file||jakeluck||Sony Reader||6||11-23-2006 07:59 PM|