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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2012, 06:44 PM   #1
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
Calibre: Double and single quotes in xml-tags.

I send fb2 files to Sony Reader by Calibre. Calibre changes in fb2 file the line of the form <?xml version="1.0" encoding="utf-8"?> on line <?xml version='1.0' encoding='utf-8'?>. So double quotes are replaced with single, and my Sony PRS T1 can't just open the file. If I edit the line by HTML-editor right on device, book opens - welcome to read.
Question: what do I wrong with Calibre?
Varella is offline   Reply With Quote
Old 10-20-2012, 11:08 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,357
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Single quotes are perfectly legal in XML. http://www.w3.org/TR/xml/#NT-AttValue.

And the SONY doesn't support the fb2 format, so I'm assuming you rooted it and are using some fb2 reader software. I suggest either getting better software or converting your fb2 files to epub in calibre.
kovidgoyal is online now   Reply With Quote
Old 10-21-2012, 06:36 AM   #3
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
Thank you for answer!
But Sony PRS t1 yet officially supports FB2, I'v bought a new device with this feature.
Speaking about fb2 reader software: if I send the same fb2 file to Sony by Windows explorer, it works, Sony opens it without problem.
Varella is offline   Reply With Quote
Old 10-21-2012, 06:44 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,357
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As far as I know, the T1 does not support fb2, I dont know where you got a "new" model that supports fb2 but it is almost certainly not running the stock sony firmware.
kovidgoyal is online now   Reply With Quote
Old 10-21-2012, 07:35 AM   #5
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
Oh, you have puzzled me , becouse I can`t find information about FB2 on sony site. But I've found it on page #239 Instruction Manual: http://pdf.crse.com/manuals/4288614323.pdf

[mod: It turns out that link was an official Sony link from here. Link now restored.]

Last edited by pdurrant; 10-21-2012 at 01:12 PM.
Varella is offline   Reply With Quote
Old 10-21-2012, 07:46 AM   #6
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 667
Karma: 436517
Join Date: Jul 2010
Location: UK
Device: PRS-300 (R.I.P.), PW2, Nexus7
It is certainly correct that xml attributes can use either single or double quotes.

The Sony T1 manual, (page 239), says that FB2 files are supported.

Therefore: It looks as though Sony's FB2 support is not 100%.

Perhaps you could convert the book to ePub and try that instead.
Agama is offline   Reply With Quote
Old 10-21-2012, 09:28 AM   #7
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
I see, thank you. I was so glad that Sony supports FB2 now, no more conversion... Heh, will try ePub .
Varella is offline   Reply With Quote
Old 10-21-2012, 09:39 AM   #8
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,912
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
Quote:
Originally Posted by Varella View Post
Oh, you have puzzled me , becouse I can`t find information about FB2 on sony site. But I've found it on page #239 Instruction Manual: [Mod: link to copyright user manual not on Sony's site deleted]
Sony's own support pages don't say that the T1 supports FB2:

http://esupport.sony.com/docs/reader.../04/02/02.html

The manual you linked to wasn't at the Sony site. Perhaps it was an early draft, and fb2 support got dropped.

The official PDF for the T1 doesn't mention fb2 either:
http://www.docs.sony.com/release/PRST1.pdf

Last edited by pdurrant; 10-21-2012 at 09:45 AM.
pdurrant is offline   Reply With Quote
Old 10-21-2012, 11:42 AM   #9
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
Quote:
Originally Posted by pdurrant View Post
Sony's own support pages don't say that the T1 supports FB2:
Dear friend, the world doesn`t end in England. I live in Russia and there is Sony office and site here: http://www.sony.ru/support/ru/product/PRS-T1
May be it is difficult to read, but you can trace the link: http://www.sony.ru/support/ru/product/PRS-T1/manuals, load the English manual and find on the page #239:

"Supported File Types
The following files can be transferred to the Reader device.
However, depending on the file size and format, it may not
be possible to view/display/play some data.
Books
 EPUB files (.epub)
 EPUB (OPS version 2.0) supported.
 PDF files (.pdf )
 Support is based on the PDF 1.6 specification.
 Text files (.txt)
 FB2 files (.fb2)"
Varella is offline   Reply With Quote
Old 10-21-2012, 12:34 PM   #10
Agama
Guru
Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.Agama ought to be getting tired of karma fortunes by now.
 
Agama's Avatar
 
Posts: 667
Karma: 436517
Join Date: Jul 2010
Location: UK
Device: PRS-300 (R.I.P.), PW2, Nexus7
Interesting. I downloaded the manual from:

http://www.sony.co.uk/support/en/product/PRS-T1/manuals.

and clearly some FB2 documents are working.

However, if the T1 does not correctly support single-quoted attributes the OP is going to need to try something else.
Agama is offline   Reply With Quote
Old 10-21-2012, 01:15 PM   #11
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 32,912
Karma: 89897838
Join Date: Jul 2007
Location: Norfolk, England
Device: NOOK ST GlowLight
I do apologise for the error. It was not obvious that crse.com was an Adobe site. I have restored the link.

And I agree that the manual is a current manual linked from a current Adobe web site.

It's most mysterious. But as some parts of Adobe do say that FB2 is supported, and it's not working, I suggest reporting it as a bug.
pdurrant is offline   Reply With Quote
Old 10-21-2012, 01:36 PM   #12
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,357
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I changed the fb2 metadata update code to generate double quotes for the XML declaration. But I really doubt that will be the end of the issue, since if the reder chokes on single quotes it's going to choke on lots of other things as well. If I were you, I'd just convert to epub.
kovidgoyal is online now   Reply With Quote
Old 10-21-2012, 02:36 PM   #13
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
Quote:
Originally Posted by kovidgoyal View Post
I changed the fb2 metadata update code to generate double quotes for the XML declaration. But I really doubt that will be the end of the issue, since if the reder chokes on single quotes it's going to choke on lots of other things as well. If I were you, I'd just convert to epub.
Thank you! Should we download Calibre 9.3 again?
I gave the e-book to my mum, it was a present for her. I'll try new as soon as I get back the book and will write.
Varella is offline   Reply With Quote
Old 10-21-2012, 02:40 PM   #14
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 26,357
Karma: 5382313
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, you have to wait for 0.9.4
kovidgoyal is online now   Reply With Quote
Old 12-05-2012, 10:02 AM   #15
Varella
Junior Member
Varella began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Oct 2012
Device: Sony PRS T1
I want to tell you, that from version 0.9.4 it works very good! Thank you!
Varella 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
Change single quotes to double quotes Elfwreck Workshop 16 04-26-2013 11:06 AM
Kindle won't recognize mobi's single and double quotes stevenplanet Amazon Kindle 4 08-23-2012 08:11 AM
Orphaned end double quotes AlexBell Workshop 2 09-07-2011 08:33 AM
Smart Single Quotes (RTF) Gwen Morse Calibre 7 06-19-2011 06:59 PM
Single quotes to double quotes? lunixer General Discussions 35 10-10-2010 06:47 AM


All times are GMT -4. The time now is 10:55 PM.


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