Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-12-2010, 06:03 PM   #16
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Nevermind, I ploughed on regardless!

I now have a directory c:\Program Files\Bazaar\calibre which includes the src sub-directory.

I've set the environment variable CALIBRE_DEVELOP_FROM and tested it as per manual.

I've opened the file ...\src\calibre\__init__.py and tried the "Hello World" mini-test successfully. I've then removed it again.

So I'm cooking on gas - what next?
jackie_w is offline   Reply With Quote
Old 05-12-2010, 06:29 PM   #17
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
So I'm cooking on gas - what next?
I'd like the house special, cup of coffee and deep dish apple pie (cooked on gas).

Now you wait for Kovid to tell you the source code file you need to change.
Starson17 is offline   Reply With Quote
Advert
Old 05-12-2010, 06:55 PM   #18
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: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
look for the file

src\calibre\customize\profiles.py

Scroll down to around line 276 where you will see

Code:
class SonyReader300Output(SonyReaderOutput):

    author      = 'John Schember'
    name        = 'Sony Reader 300'
    short_name  = 'sony300'
    description = _('This profile is intended for the SONY PRS-300.')

    dpi                       = 200
Change that to

Code:
class SonyReader300Output(SonyReaderOutput):

    author      = 'John Schember'
    name        = 'Sony Reader 300'
    short_name  = 'sony300'
    description = _('This profile is intended for the SONY PRS-300.')

    dpi                       = 200
    screen_size = comic_screen_size = (350, 350)
where you adjust (350, 350) to the result of your experiments.
kovidgoyal is offline   Reply With Quote
Old 05-12-2010, 07:29 PM   #19
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Result!!! Thank you. That will do for now.

Finally, can you tell me what steps I will need to take when I want to install the next Calibre upgrade?
jackie_w is offline   Reply With Quote
Old 05-12-2010, 08:54 PM   #20
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
Finally, can you tell me what steps I will need to take when I want to install the next Calibre upgrade?
You have two options. The simplest to explain is: Do the same thing again. You'd get the source the same way, then edit it, making sure to put it in the same place your environment variable points.

The other is to do a commit of your edit changes, then a merge of the new code from Kovid's trunk:

Code:
bzr commit -m "Changes made to fix FBReader on the PB360"
bzr merge
It's possible there would be a conflict between his code changes and yours, but unlikely. If there was, you'd have to resolve it.
Starson17 is offline   Reply With Quote
Advert
Old 05-12-2010, 09:12 PM   #21
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Thank you Starson. A couple of (dumb) questions for you:-

1. Why is there no reference to Calibre in this code? How does Bazaar know?
Code:
bzr commit -m "Changes made to fix ADE on the PB360"
bzr merge
When I ran the commands
Code:
cd \program files\bazaar
bzr branch lp:calibre
The Calibre code ended up in c:\program files\bazaar\calibre
Is there a way to specify a different destination directory?
jackie_w is offline   Reply With Quote
Old 05-12-2010, 09:34 PM   #22
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by jackie_w View Post
Thank you Starson. A couple of (dumb) questions for you:-

1. Why is there no reference to Calibre in this code? How does Bazaar know?
You have to run them in the source folder. There is a .bzr hidden/system folder in there that refers to where the code came from originally.

Quote:
When I ran the commands
Code:
cd \program files\bazaar
bzr branch lp:calibre
The Calibre code ended up in c:\program files\bazaar\calibre
Is there a way to specify a different destination directory?
Yes.
Code:
bzr branch lp:calibre C:\some-path\calibre2\src
Bazaar should be on your path. If not, you can precede "bzr" with wherever you installed it.
Starson17 is offline   Reply With Quote
Old 05-12-2010, 09:38 PM   #23
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Thank you for your help.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pocketbook 360...access epub toc and zoom tables? extendedping PocketBook 3 07-28-2010 12:18 PM
Folders with Calibre and Pocketbook 360 Marcy Calibre 0 03-30-2010 03:53 PM
Calibre & Pocketbook 360 Hevelius PocketBook 9 03-30-2010 05:08 AM
Calibre 0.6.32 problems with Pocketbook 360 ganymede Calibre 4 01-04-2010 06:05 PM
Calibre doesn't recognize SD card in Pocketbook 360 Katelyn Calibre 5 12-01-2009 02:44 PM


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


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