Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-10-2008, 11:14 PM   #31
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
OK, Just tried it on my ipod Touch in Stanza. Getting there slowly but surely as I can now browse the feed. Some issues are that I can't see either of the images, the summary field doesn't wrap on the screen due to the <pre> tag and stanza can't access the books epub file. I looked at the xml being served and here's an example:

Code:
 <entry>
    <title>The Time Machine</title>
    <id>urn:calibre:8</id>
    <author><name>H G Wells</name></author>
    <updated>2008-10-12T23:40:34+00:00</updated>
    <link type="application/epub+zip" href="http://localhost:8080/get/epub/8"/>
    <link rel="x-stanza-cover-image" type="image/jpeg" href="http://localhost:8080/get/cover/8"/>
    <link rel="x-stanza-cover-image-thumbnail" type="image/jpeg" href="http://localhost:8080/get/thumb/8"/>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><pre>SUMMARY:
H. G. Wells’s sobering, thought-provoking novel is one of the greatest works of science fiction ever created—and as powerful today as when it was written. After inventing a machine that moves through time, the Traveler leaves Victorian London and goes far, far into the future.</pre></div>
    </content>
I wonder whether stanza can't handle this type of indirect image and epub link vs. links to the actual .jpeg and .epub files? I had some comments on the content formatting here:

https://www.mobileread.com/forums/sho...3&postcount=18

The stanza feed generated by calibredb list --output-format=stanza etc. works if I replace all the "http%3A"'s with "http:", add the missing thumbnail link and change the content formatting as mentioned above.

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Old 11-10-2008, 11:31 PM   #32
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Never mind I'm an idiot. Forgot to use the --hostname option to override localhost.

Now the only issue is the formatting of the content section and the stanza output of calibredb list.

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Advert
Old 11-10-2008, 11:48 PM   #33
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
Are you sure, I just tested the comment you posted below and it works fine for me. Try hitting refresh in your browser to make sure that it reloads the files.
Doh... yes your right. Must have just been cached.

BOb
pilotbob is offline   Reply With Quote
Old 11-11-2008, 06:28 AM   #34
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
OK, i can run the server via the calibre-server.exe and access the localhost XML-feed.

Crazy, you wrote you have overridden the localhost variable, but which server did you use? Your personal? I mean I could start with
Code:
calibre-server.exe --hostname http://www.google.com
But that wouldn't make much sense. You see I didn't quite understand how that server works.
Am I right that with 0.4.104 it still isn't possible to transfer the epub-file to my iPhone (without a personal server)? No need to hesitate, but I don't want to miss it when it works.

Regards,
jakewalk
jakewalk is offline   Reply With Quote
Old 11-11-2008, 09:10 AM   #35
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by jakewalk View Post
Am I right that with 0.4.104 it still isn't possible to transfer the epub-file to my iPhone (without a personal server)?
No, that would be wrong.

Calibre now has a built in web server. That's what lets you access it from localhost. The same process works when accessing from places other than localhost. You just have to tell calibre what the real hostname is of the web server and it works great except for the content formatting.

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Advert
Old 11-11-2008, 09:48 AM   #36
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
Hi Crazy,

sorry to ask again, but I just don't get it: I have a webserver running through Calibre at the port 8080. But how can I access the Calibre server with my iPhone? What is the "real hostname"? Do I have to use the computer's IP? Could you please give me an example how you use the server?

Regards,
jakewalk
jakewalk is offline   Reply With Quote
Old 11-11-2008, 09:58 AM   #37
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
It is just the hostname of the machine you are running calibre on. If you don't have one or know how to find it ("hostname" command works on most windows boxes and linux distros) you should be able to use that machine's IP address. For example if your machine running calibre is called jakewalk you would run this from the command line:

calibre-server.exe --hostname jakewalk

Then on your iPod Touch or Iphone you go into Stanza's advanced settings page and set the feed url to be:

http://jakewalk:8080/stanza

Hope that helps.

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Old 11-11-2008, 01:20 PM   #38
jakewalk
iPhone Rookie
jakewalk began at the beginning.
 
jakewalk's Avatar
 
Posts: 9
Karma: 10
Join Date: Nov 2008
Device: Clié TH55, iPhone
Thanks Crazy, that clarified the configuration. Now I know that I probably have a problem with my network configuration. My PC and the iPhone were at the beginning connected with DHCP activated, but that didn't work with the stanza server. So I assigned static IP addresses. Now it basically works but not completely.
  • I can ping my PC's IP-address from the iphone, but have ~65% loss of packets.
  • When I open http://$MYPCIPADDRESS:8080 with Safari (iPhone) it opens the page after some loading time. When I try to access the feed with Stanza the request times out.
  • I cannot ping my iPhone from the PC (I reinstalled OpenSSH on my iPhone and now I can ping my iPhone, but that didn't change much with my problem. I still have the packetlosses.)

Though that's not specifically a Calibre problem maybe someone has an idea?

Regards,
jakewalk

Last edited by jakewalk; 11-11-2008 at 01:54 PM. Reason: Now I can ping my iPhone
jakewalk is offline   Reply With Quote
Old 11-11-2008, 02:29 PM   #39
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: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by CrazyIvan View Post
OK, Just tried it on my ipod Touch in Stanza. Getting there slowly but surely as I can now browse the feed. Some issues are that I can't see either of the images, the summary field doesn't wrap on the screen due to the <pre> tag and stanza can't access the books epub file. I looked at the xml being served and here's an example:

Code:
 <entry>
    <title>The Time Machine</title>
    <id>urn:calibre:8</id>
    <author><name>H G Wells</name></author>
    <updated>2008-10-12T23:40:34+00:00</updated>
    <link type="application/epub+zip" href="http://localhost:8080/get/epub/8"/>
    <link rel="x-stanza-cover-image" type="image/jpeg" href="http://localhost:8080/get/cover/8"/>
    <link rel="x-stanza-cover-image-thumbnail" type="image/jpeg" href="http://localhost:8080/get/thumb/8"/>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><pre>SUMMARY:
H. G. Wells’s sobering, thought-provoking novel is one of the greatest works of science fiction ever created—and as powerful today as when it was written. After inventing a machine that moves through time, the Traveler leaves Victorian London and goes far, far into the future.</pre></div>
    </content>
I wonder whether stanza can't handle this type of indirect image and epub link vs. links to the actual .jpeg and .epub files? I had some comments on the content formatting here:

https://www.mobileread.com/forums/sho...3&postcount=18

The stanza feed generated by calibredb list --output-format=stanza etc. works if I replace all the "http%3A"'s with "http:", add the missing thumbnail link and change the content formatting as mentioned above.

Cheers,
Crazy
The <pre> tags have been removed and http%3A has also been fixed.
kovidgoyal is offline   Reply With Quote
Old 11-11-2008, 03:16 PM   #40
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Hey Jakewalk,

It just dawned on me where I'd heard your name before. So your jakewalk of pdaconverter fame! Man I still use that program to make ztxt's for my clie! Just wanted to to thank you for that great prog!

Gotta hate those intermittent network issues. On some of the wireless AP's they have memory leaks and slowly start flaking out over time. A reboot normally fixes it. You could try that. I've found that the community built router images often are more dependable than the commercial ones. For instance I'm using the tomato firmware on my Linksys AP.

Kovid, thanks for chucking the pre tags. Any chance we could get a align="center" added to the content div?

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Old 11-11-2008, 03:29 PM   #41
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: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
do you need align="center" or will style="text-align:center" work?
kovidgoyal is offline   Reply With Quote
Old 11-11-2008, 03:55 PM   #42
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by kovidgoyal View Post
do you need align="center" or will style="text-align:center" work?
I'll try the style one out tonight and get back to you. I'll grab some screenshots as well just so you can see what your hard work has enabled.

Cheers,
Crazy
RoninTech is offline   Reply With Quote
Old 11-11-2008, 07:32 PM   #43
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Ok,

Here's the results:
  • Photo1 is with the existing <pre> formatting.
  • Photo 2 is just 1 with the <pre> removed.
  • Photo 3 is 2 with style="text-align:center", so that looks to work Kovid.
  • Photo 4 is 3 with some extra fields that aren't currently added.

Do you think the extra fields are do-able from within Calibre? Not sure how they could be configured?

So here's the XML for photo4's formatting:

Code:
 <content type="xhtml">
              <div xmlns="http://www.w3.org/1999/xhtml" style="text-align:center">TAGS: science fiction, classics<br />RATING: 5/5<br />SUMMARY:
H. G. Wellsâs sobering, thought-provoking novel is one of the greatest works of science fiction ever createdâand as powerful today as when it was written. After inventing a machine that moves through time, the Traveler leaves Victorian London and goes far, far into the future.</div>
      </content>
Cheers,
Crazy

P.S. The black marks in the images obscures the URL of my server
Attached Thumbnails
Click image for larger version

Name:	photo1.png
Views:	331
Size:	125.8 KB
ID:	17761   Click image for larger version

Name:	photo2.png
Views:	331
Size:	132.2 KB
ID:	17762   Click image for larger version

Name:	photo3.png
Views:	339
Size:	132.4 KB
ID:	17763   Click image for larger version

Name:	photo4.png
Views:	332
Size:	128.6 KB
ID:	17764   Click image for larger version

Name:	photo.jpg
Views:	336
Size:	100.1 KB
ID:	17765  

Last edited by RoninTech; 11-11-2008 at 07:41 PM.
RoninTech is offline   Reply With Quote
Old 11-11-2008, 08:44 PM   #44
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: 43,852
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Adding the extra fields at the beginning of the comments section is easy enough, can you check if the ★ character &amp;#9733; displays correctly in stanza?
kovidgoyal is offline   Reply With Quote
Old 11-11-2008, 10:44 PM   #45
RoninTech
Groupie
RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.RoninTech ought to be getting tired of karma fortunes by now.
 
RoninTech's Avatar
 
Posts: 168
Karma: 1000036
Join Date: Oct 2008
Location: Citizen of the World
Device: iPod Touch, Nook Colour, Kobo Touch, Kobo Glo, Nexus 7, Nexus 5, Pixel
Quote:
Originally Posted by kovidgoyal View Post
Adding the extra fields at the beginning of the comments section is easy enough, can you check if the ★ character &amp;#9733; displays correctly in stanza?
Yep, I pasted the following in the RATING field and you can see the resulting output in the screenshot:

Code:
★/&amp;#9733;<br />
Cheers,
Crazy
Attached Thumbnails
Click image for larger version

Name:	photo.jpg
Views:	338
Size:	25.6 KB
ID:	17772  
RoninTech is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Covers in Stanza on iPhone/iPod Touch pietvo Calibre 3 07-25-2011 05:28 AM
iPhone Get your Ebooks off your iPhone/Touch Stanza Library RoninTech Apple Devices 15 03-25-2010 09:17 AM
Creating an online Stanza catalog wdonne News 6 02-25-2010 03:33 PM
Still can't generate a Mobi catalog Sydney's Mom Library Management 11 02-02-2010 08:55 AM
Loading Stanza on jailbroken iPhone/iPod Touch? Robotech_Master Apple Devices 1 08-12-2009 04:57 PM


All times are GMT -4. The time now is 01:06 AM.


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