Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2011, 10:16 PM   #16
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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
yes, that would work.
kovidgoyal is offline   Reply With Quote
Old 08-05-2011, 03:07 AM   #17
DezmondFinney
Member
DezmondFinney began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2011
Location: Atlanta, Ga
Device: kindle
I've been reading through some of the code, especially the python generated HTML, and some of it I don't get. Take the code for the list of category browsers:

Code:
<li>
    <a title="{2} {0}" href="{3}/browse/category/{1}">
        &nbsp;
    </a>'
    <img src="{3}{src}" alt="{0}" />'
    <span class="label">{0}</span>'
</li>
This is structured strangely and it makes it difficult to style concisely, something very important considering I want one stylesheet for both desktop and mobile.

Was there a reason that the code is structured this way? does it need to remain this way or should it be changed?

I would prefer:

Code:
<li class="cat-item">
    <a title="{2} {0}" href="{3}/browse/category/{1}" id="{1}" class="cat-item-link">
        {0}
    </a>
<li>

Last edited by DezmondFinney; 08-05-2011 at 03:12 AM.
DezmondFinney is offline   Reply With Quote
Advert
Old 08-05-2011, 03:15 AM   #18
DezmondFinney
Member
DezmondFinney began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Aug 2011
Location: Atlanta, Ga
Device: kindle
@ldolse
Hey, that is a pretty good idea. I don't know if it would work well for poorly formed books since there would not be a bunch of fine control like the desktop app but for what I'm thinking about it'll work. Books from the Bean library that I downloaded in mobi but I want on my phone or tablet in epub.
DezmondFinney is offline   Reply With Quote
Old 08-05-2011, 03:22 AM   #19
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,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'm afraid I dont recall why it was structured like that, probably to deal with some incompatibility with a browser, most likely IE. If you can come up with a better structure that works cross browser, feel free to change it.
kovidgoyal is offline   Reply With Quote
Reply

Tags
content-server, html, user interface


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
soPDF GUI Front-End Nathan Campos PDF 37 11-04-2011 07:45 PM
GuteBook - the Project Gutenberg eBook Maker/Front-end nrapallo Workshop 67 03-27-2011 04:46 PM
Front Page..... tnronin Sony Reader 0 02-25-2010 12:11 PM
hacking in? omro Astak EZReader 5 12-09-2009 05:59 PM


All times are GMT -4. The time now is 02:50 PM.


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