Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-15-2011, 08:40 AM   #1
Doogman
Connoisseur
Doogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-books
 
Doogman's Avatar
 
Posts: 52
Karma: 945
Join Date: Jun 2010
Device: Nook ST
Want larger hyperlinks

I own a Sony 350 and use Calibre to d/l news. It's a awesome feature of this program and something I've found to be of great use on the Sony.

There is one little tweak I would like to perform. At the top of each article, regardless of the periodical, there are four hyperlinks: "Next, Section Menu, Main Menu, Previous". I would like to make these links a size bigger so it's a bit easier to select them with the touchscreen on the 350. Since all periodicals share this feature, I'm hoping for one tweak in some Python code.

While it's true the buttons at the bottom of the screen take the place of some of these links (Next and Previous), sometimes they aren't there:

https://www.mobileread.com/forums/sho...d.php?t=112561

and I found that I'm constantly using the "section menu" link anyway because it returns to the exact page of the section list from where the article was selected, not the beginning of the list like the other buttons. Sometimes the periodical might have 10 pages of article headers, so this is a big deal.

Where do I start customizing?
Doogman is offline   Reply With Quote
Old 01-15-2011, 10:03 AM   #2
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
Quote:
Originally Posted by Doogman View Post
I own a Sony 350 and use Calibre to d/l news. It's a awesome feature of this program and something I've found to be of great use on the Sony.

There is one little tweak I would like to perform. At the top of each article, regardless of the periodical, there are four hyperlinks: "Next, Section Menu, Main Menu, Previous". I would like to make these links a size bigger so it's a bit easier to select them with the touchscreen on the 350. Since all periodicals share this feature, I'm hoping for one tweak in some Python code.

While it's true the buttons at the bottom of the screen take the place of some of these links (Next and Previous), sometimes they aren't there:

https://www.mobileread.com/forums/sho...d.php?t=112561

and I found that I'm constantly using the "section menu" link anyway because it returns to the exact page of the section list from where the article was selected, not the beginning of the list like the other buttons. Sometimes the periodical might have 10 pages of article headers, so this is a big deal.

Where do I start customizing?
Take a look at customize.profiles:iPadOutput(OutputProfile). Note that the 'touchscreen' property is True, and the touchscreen_news_css is customized for the device in web.feeds.news:BasicNewsRecipe.__init__()

Try creating a special profile for your device with touchscreen=True and appropriate CSS, modeling the iPad profile.

G
GRiker is offline   Reply With Quote
Advert
Old 01-17-2011, 07:29 PM   #3
Doogman
Connoisseur
Doogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-books
 
Doogman's Avatar
 
Posts: 52
Karma: 945
Join Date: Jun 2010
Device: Nook ST
Thanks! Now I have a starting point.
Doogman is offline   Reply With Quote
Old 01-29-2011, 10:48 AM   #4
Doogman
Connoisseur
Doogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-booksDoogman has learned how to read e-books
 
Doogman's Avatar
 
Posts: 52
Karma: 945
Join Date: Jun 2010
Device: Nook ST
Made some progress...

Got a little time to hack on this, even with my Python noob status. I got vim and grep, what else do I need?

I made a new profile for the 350 and got to work. First I started screwing around in NavBarTemplate and simply adjusted the "calibre_rescale" value to make the navbar bigger. It works, but it's not device specific and it looks ugly. Besides, Calibre does have a special touchscreen nav section, TouchscreenIndexTemplate, although it looks like Ipad is the only device that is using it now. I added "touchscreen = True" to the new 350 output profile.

I like the touchscreen news layout better than the default view. Unfortunately, some of the article links don't work right on the Sony compared to the calibre viewer. Also, the default behavior of the "Sections" link is Section Top, which is what I'm trying to get away from.

I'm going to open another thread specifically about this. I think getting touchscreen news nav working right would be a major improvement for the new Sony's.
Doogman is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to make larger fonts soup Sigil 1 08-15-2010 03:00 PM
Larger e-readers zetareticuli Which one should I buy? 11 04-28-2010 05:54 AM
Prices of the larger devices kjk News 33 01-08-2010 04:31 PM
Did someone replace to larger battery? fujiwat0601 iRex 1 06-25-2009 12:37 PM
Another New Kindle Model with larger screen ? Ervserver News 11 04-11-2009 09:25 PM


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


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