Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-01-2010, 06:56 AM   #1
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
New Recipe features supporting Kindle masthead images

0.6.37 introduces the ability for recipes to specify a masthead image to be used when generating a periodical for the Kindle.

The masthead image is displayed in three locations on the Kindle:
  • From the Home page, toggling right while the periodical is highlighted
  • At the top of the Section List
  • At the top of the first article in the first section

You have two options for generating a masthead image:
  • Add a 'masthead_url' property to your recipe, pointing to an online image resource to use as the masthead:
    Code:
        masthead_url = 'http://graphics8.nytimes.com/images/misc/nytlogo379x64.gif'
    To identify a suitable masthead image, go to the site your recipe downloads from and look for a logo with proportions approximately 6:1, e.g., 600 wide x 100 tall. The exact dimensions are not critical, only the proportions. You may need to experiment to find one you like. Tested formats include GIF, JPG, BMP, and PNG.
  • Add a get_masthead_title() method, specifying a text string to be rendered as the masthead image:
    Code:
        def get_masthead_title(self):
            return 'My Custom Masthead Title'
    If 'masthead_url' is not defined in your recipe, or it fails to load, then the BasicNewsRecipe() will render the text returned by get_masthead_title() as the masthead. If you don't have this method in your recipe, the friendly name of the recipe will be used.

By default, existing recipes will use their name property as the text for the customized masthead.

G
GRiker is offline   Reply With Quote
Old 08-23-2010, 11:43 AM   #2
cisaak
Member
cisaak began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2010
Device: Kindle DX
Quote:
Originally Posted by GRiker View Post
0.6.37 introduces the ability for recipes to specify a masthead image to be used when generating a periodical for the Kindle.

The masthead image is displayed in three locations on the Kindle:
  • From the Home page, toggling right while the periodical is highlighted
  • At the top of the Section List
  • At the top of the first article in the first section

You have two options for generating a masthead image:
  • Add a 'masthead_url' property to your recipe, pointing to an online image resource to use as the masthead:
    Code:
        masthead_url = 'http://graphics8.nytimes.com/images/misc/nytlogo379x64.gif'
    To identify a suitable masthead image, go to the site your recipe downloads from and look for a logo with proportions approximately 6:1, e.g., 600 wide x 100 tall. The exact dimensions are not critical, only the proportions. You may need to experiment to find one you like. Tested formats include GIF, JPG, BMP, and PNG.
  • Add a get_masthead_title() method, specifying a text string to be rendered as the masthead image:
    Code:
        def get_masthead_title(self):
            return 'My Custom Masthead Title'
    If 'masthead_url' is not defined in your recipe, or it fails to load, then the BasicNewsRecipe() will render the text returned by get_masthead_title() as the masthead. If you don't have this method in your recipe, the friendly name of the recipe will be used.

By default, existing recipes will use their name property as the text for the customized masthead.

G
I've used get_masthead_title to add a text masthead but the masthead truncates when viewed on my Kindle. I think I should use css to reduce the masthead's font size but do not know how. Any suggestions?
cisaak is offline   Reply With Quote
Advert
Old 08-23-2010, 10:30 PM   #3
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by cisaak View Post
Quote:
Originally Posted by GRiker View Post
To identify a suitable masthead image, go to the site your recipe downloads from and look for a logo with proportions approximately 6:1, e.g., 600 wide x 100 tall. The exact dimensions are not critical, only the proportions. You may need to experiment to find one you like. Tested formats include GIF, JPG, BMP, and PNG.
I've used get_masthead_title to add a text masthead but the masthead truncates when viewed on my Kindle. I think I should use css to reduce the masthead's font size but do not know how. Any suggestions?
I know the text is a viable masthead and hopefully someone will help you with this problem. One solution would be to create a size appropriate image file with your text on it. Then point to the image.

Good Luck with a css based solution.
DoctorOhh is online now   Reply With Quote
Old 08-26-2010, 10:17 AM   #4
cisaak
Member
cisaak began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2010
Device: Kindle DX
Quote:
Originally Posted by dwanthny View Post
I know the text is a viable masthead and hopefully someone will help you with this problem. One solution would be to create a size appropriate image file with your text on it. Then point to the image.

Good Luck with a css based solution.
Thanks for the suggestion. I will develop a masthead image through trial and error. When successful, how do I point to the image? I do not maintain a website.
cisaak is offline   Reply With Quote
Old 08-26-2010, 10:44 AM   #5
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by cisaak View Post
Thanks for the suggestion. I will develop a masthead image through trial and error. When successful, how do I point to the image? I do not maintain a website.
There are many sites to host your image for free. Try this list.
DoctorOhh is online now   Reply With Quote
Advert
Old 08-27-2010, 09:04 AM   #6
cisaak
Member
cisaak began at the beginning.
 
Posts: 17
Karma: 10
Join Date: Aug 2010
Device: Kindle DX
Quote:
Originally Posted by dwanthny View Post
There are many sites to host your image for free. Try this list.
I copied and edited an image from the newspaper web site and it worked!! Thanks for your help.
cisaak is offline   Reply With Quote
Old 08-27-2010, 04:08 PM   #7
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by cisaak View Post
I copied and edited an image from the newspaper web site and it worked!! Thanks for your help.
Your welcome, I'm glad you manage to get it to your liking.
DoctorOhh is online now   Reply With Quote
Reply

Tags
recipe


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Content The Collection features are disabled to not registered Kindle!!! Goodspeed Amazon Kindle 17 09-27-2013 11:41 AM
[OLD] Blind and Vision-Impaired Readers to Benefit from New Kindle Features in 2010 Nate the great News 10 05-16-2013 10:55 AM
kindle 3 pdf features kuliand Amazon Kindle 8 12-16-2010 01:07 AM
sony 900 vs. kindle features parias1126 Which one should I buy? 4 02-06-2010 12:33 AM
Supporting Tags in Kindle emellaich Calibre 4 05-13-2009 11:43 AM


All times are GMT -4. The time now is 08:54 PM.


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