Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2012, 06:57 PM   #376
PaulPosition
Enthusiast
PaulPosition began at the beginning.
 
PaulPosition's Avatar
 
Posts: 31
Karma: 16
Join Date: Feb 2012
Location: Montréal
Device: Sony PRS-T1
Weird..

Could we get text position declaration for another part of the excerpt.. Say, "LONDON, August, 1889" which is in another paragraph... ? Obviously it sets one point and an offset of #characters, but I really can't figure out how it navigates the dom tree.
PaulPosition is offline   Reply With Quote
Old 03-06-2012, 07:33 PM   #377
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
The :101 is the number of characters in your highlight.
JSWolf is offline   Reply With Quote
Old 03-06-2012, 09:56 PM   #378
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by Yoths View Post
Does anyone know how to decrypt the SONY's/ADE's text position declarations (e.g. point(/1/4/2/6/1/1:101))?

Theoretically, the numbers after slashes are "children in the DOM tree starting from the document node and counting both element and text nodes". But in practice they count in a very strange way... Or they use not the original document but the internal parsed tree...
I've been wondering about this myself as well, but more for how the "current_position" table works in the books.db. I assume you've seen this google code page? There's an interesting reference here that points out that whitespace between elements are also counted as separate nodes. That said, I've still be unable to correlate the element/node counts, so I think you're right in that it must be using some interal representation of the xml once it's loaded by the Sony reader software.

Quote:
Originally Posted by JSWolf View Post
The :101 is the number of characters in your highlight.
I think it's a bit more subtle than that - I suspect the :101 means that the end of the highlight is 101 characters into the current text node. Here that example just happens to be the length of the highlight because the highlight starts at the start of the text node.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 03-06-2012, 10:07 PM   #379
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,835
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
As was said before, we need more samples of different sizes in the middle of the passage to be able to even begin to figure things out.
JSWolf is offline   Reply With Quote
Old 03-07-2012, 04:06 AM   #380
Yoths
Enthusiast
Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.Yoths is as sexy as a twisted cruller doughtnut.
 
Posts: 30
Karma: 15142
Join Date: Sep 2010
Device: SONY PRS-T1
Thanks for your responses!

Here is a set of some samples on different positions:

Code:
[at the beigin of the first line]
SELECTION: The chief beauty of this book lies not, so much in its literary style, or in the extent and usefulnes
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:101)"

[in the middle of the first line #1]
SELECTION: All that has been done is to colour them; and, for this, no extra charge has been made
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:223)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:309)"

[in the middle of the first line #2]
SELECTION: Other works may excel this in depth of thought and knowledge of human nature: other books may riv...
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:452)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:579)"

[at the end of the first line]
SELECTION: weight to the lesson that the story teaches.
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:801)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:845)"

[in the middle of the second line]
SELECTION: DON, August, 18
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/8/1:3)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/8/1:18)"

[over two lines]
SELECTION: the story teaches.
LONDON,
POSITION: start="OEBPS/boat003_preface.xhtml#point(/1/4/2/6/1/1:827)" end="OEBPS/boat003_preface.xhtml#point(/1/4/2/8/1:7)"
The number after colon seems to be the character offset, but even that is counted strange (cf. [in the middle of the first line #2] or [at the end of the first line] - this may be because of the — sign, but even after replacing them by a "-" the offsets don't match)
Yoths is offline   Reply With Quote
Old 03-07-2012, 05:18 AM   #381
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 425
Karma: 2516674
Join Date: Apr 2011
Location: Geelong, Australia
Device: Kobo Libra 2, Kobo Aura 2, Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by Yoths View Post
The number after colon seems to be the character offset, but even that is counted strange (cf. [in the middle of the first line #2] or [at the end of the first line] - this may be because of the — sign, but even after replacing them by a "-" the offsets don't match)
From http://code.google.com/p/epub-revision/wiki/ImplementationProposalSimpleAnnotations it says:
Quote:
N after semicolon (optional) is byte offset in utf8-encoded text node
I think if you count the mdash as two characters that works out?


I've also figured out that for my "current_position" table, the current location in the book is that of the last character on the page, not the first character. For example, the current location at the first page of a chapter in one book is OEBPS/Text/asimov-youthebook-3.html#point(/1/4/12/1:248). The /1/4 seems to be constant everywhere I've seen (1 for html, 4 for ????), and indeed the last character on the page is the 248th character in the 12th element (remembering to count each <p> as an element [B]and[\B] the whitespace between each paragraph as an element.

Also, the end of a chapter (or more rightly I suspect a html file) is simply OEBPS/Text/asimov-youthebook-3.html#point(:1) so it would seem a simple :1 represents that. How that is actually worked out (no reference to the DOM tree structure!) I have no idea.

For your first example, point(/1/4/2/6/1/1), we have the same /1/4 prefix. I'm guessing the /2 is caused by the <div> and the whitespace before that (which my book didn't have), then the 6 is the 6th element (<h3>, <hr>, <p> and whitespace before each), the next 1 is the the <em> (with no whitespace before the <em> so it's 1 and not 2) and the final 1 is the text node after the <em>. I haven't double checked all that, but it mostly makes sense at my first attempt .

In your example for near the start of the second line we have point(/1/4/2/8/1:3), so the 8 means it's two nodes after the first line (remembering that the white space between paragraphs counts as a node), there's only a single /1 after that as there is a single <p> without the <em> that the first paragraph has, and obviously "DON" starts 3 characters after the start of the text node.

Hopefully we're on the way to understanding this a bit better now!

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 03-26-2012, 04:26 AM   #382
silentguy
Connoisseur
silentguy doesn't littersilentguy doesn't littersilentguy doesn't litter
 
Posts: 88
Karma: 200
Join Date: Nov 2010
Location: Dortmund, Germany
Device: Kindle Paperwhite (10. Generation)
Hm, my new PRS-T1 seems the do something weird with collections in main memory and sd card. It seems that uses the same collection ids in both leading to some weird merging of unrelated collections. I read something about ppl having the same problem with book ids but they seem to be fine...
any way to fix this?
silentguy is offline   Reply With Quote
Old 03-26-2012, 04:45 AM   #383
silentguy
Connoisseur
silentguy doesn't littersilentguy doesn't littersilentguy doesn't litter
 
Posts: 88
Karma: 200
Join Date: Nov 2010
Location: Dortmund, Germany
Device: Kindle Paperwhite (10. Generation)
Forget I asked. I fixed it...

EDIT: Because a friend of mine JUST complained about ppl only posting THAT they fixed it but not HOW they did it, here what I did. :-)

I emptied the sd card, manually added a book to it AND THEN STARTED THE READER SOFTWARE... manually creating a collection on the reader might have worked as well. Looking at the internal db, it seems just adding the book leads to a creation of a new db but it does NOT populate the collection start id. that only happened after starting the software.

Last edited by silentguy; 03-26-2012 at 06:32 AM.
silentguy is offline   Reply With Quote
Old 03-26-2012, 10:14 AM   #384
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,754
Karma: 54401244
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
@silent
Thanks for not being silent on the solution
theducks is offline   Reply With Quote
Old 05-17-2019, 12:09 PM   #385
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,002
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
I think my PRS-T1 is recognised as a "pre PRS-T1" in Calibre on Linux?. If the older Sony driver is disabled in Plugins it doesn't connect. The PRS-T1 notes plug in doesn't appear. I see READER and SETTINGS icon appear on the Linux Mint desktop (18.3 and Mate). Calibre seems to copy books to it fine, but calls it "Sony Reader". Disabling the PRS-T1 plugin has no effect, so I'm thinking it's recognised as an earlier ereader?

Settings read when connected:
USB Vendor ID (in hex): 0x54c
USB Product ID (in hex): 0x5c2
USB Revision ID (in hex): 0x226

The Firmware Version 1.0.03.11140

I've downloaded the "latest" firmware, PRS-T1_Updater_1.0.07.05070_a.exe, but how do I apply that via Linux?

Do I have to install the reader software on Win7, or can I use the old PRS-350 "Reader software" on XP?

Is the 1.0.03.11140 too old for Calibre?
Quoth is offline   Reply With Quote
Old 05-17-2019, 03:53 PM   #386
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,002
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Updated from 1.0.03.11140 to 1.0.07.05070 using a Win7 PC, stupid that it's a Windows self-extrator exe that then runs a windows program.

I'm still thinking Calibre isn't regarding it as a T1? At any rate identifies as Sony Reader and no sign of the Notes plug in.

I also think the battery may be nearly dead? Shouldn't show a stripe pattern after unplugging charger at 100%?
Quoth is offline   Reply With Quote
Old 05-17-2019, 07:38 PM   #387
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by FrustratedReader View Post
I think my PRS-T1 is recognised as a "pre PRS-T1" in Calibre on Linux?. If the older Sony driver is disabled in Plugins it doesn't connect. The PRS-T1 notes plug in doesn't appear. I see READER and SETTINGS icon appear on the Linux Mint desktop (18.3 and Mate). Calibre seems to copy books to it fine, but calls it "Sony Reader". Disabling the PRS-T1 plugin has no effect, so I'm thinking it's recognised as an earlier ereader?

Settings read when connected:
USB Vendor ID (in hex): 0x54c
USB Product ID (in hex): 0x5c2
USB Revision ID (in hex): 0x226

The Firmware Version 1.0.03.11140

I've downloaded the "latest" firmware, PRS-T1_Updater_1.0.07.05070_a.exe, but how do I apply that via Linux?

Do I have to install the reader software on Win7, or can I use the old PRS-350 "Reader software" on XP?

Is the 1.0.03.11140 too old for Calibre?
The ids you have are what the driver for the PRS-T1 is looking for. The names you are seeing are common to both the PRS-T1 and the older Sony devices. If you open the driver configuration when the device is connected, the titlebar should show you which it is.

The other thing to do is to disable both Sony drivers and run the "Debug device detection" which is on the miscellaneous page of the preference. That should show what is happening.

As to the notes plugin, it hasn't been updated since 2012. It almost definitely won't work with current a calibre. And it probably stopped working with calibre v2. If you run calibre in debug mode, you will probably see errors when calibre attempts to load it.
davidfor is offline   Reply With Quote
Old 05-18-2019, 06:04 AM   #388
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,002
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
OK, Thanks. I wonder why then the PRS-T1 Notes plug-in is on the list of plugins via preferences, plugins, add?
I've established that the battery is OK.

Title bar says Sony Reader
Click image for larger version

Name:	Screenshot at 2019-05-18 11-00-01.png
Views:	250
Size:	77.2 KB
ID:	171494

So why doesn't it use the PRS-T1 driver?

The Highlight/annotation sometimes makes the Reader seem dead, but if you wait it recovers. I'll start a thread on the Sony Reader sub forum.
Quoth is offline   Reply With Quote
Old 05-18-2019, 07:10 AM   #389
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by FrustratedReader View Post
OK, Thanks. I wonder why then the PRS-T1 Notes plug-in is on the list of plugins via preferences, plugins, add?
Because it doesn't state a maximum supported version and it is still valid for anyone running older versions of calibre.
Quote:
I've established that the battery is OK.

Title bar says Sony Reader
Attachment 171494

So why doesn't it use the PRS-T1 driver?
Well, apparently I was wrong about the title of the config dialog when it is connected. It is using the generic SONY title. But, those are the options for the for the PRS-T1 driver. So, that must be what is being used.
davidfor is offline   Reply With Quote
Old 05-18-2019, 07:22 AM   #390
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,002
Karma: 85555555
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
OK, thanks. So no annotations import for me as I don't normally run Windows. The Sony PC Reader SW on Win7 seems like it was written by the the team that did the awful Minidisk NetMD application / DRM.
Quoth is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prs 505 Sony and calibre 0.8 duduche33 Devices 3 05-12-2011 10:50 AM
Calibre for Sony prs 350 Rick1971 Calibre 4 12-26-2010 12:27 PM
Calibre and Sony PRS-600 Archergal5219 Calibre 2 07-25-2010 12:32 AM
Sony PRS-505/Sony Connect/Calibre thesweetone Sony Reader 26 09-30-2009 03:00 PM
Calibre and Sony PRS-600 lukasfikr Calibre 10 08-26-2009 09:11 PM


All times are GMT -4. The time now is 12:58 AM.


MobileRead.com is a privately owned, operated and funded community.