Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-14-2018, 09:07 AM   #46
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,835
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Simply use something like the following for extra css:

Code:
p { margin-left: -10px !important }
and you should be fine. Or set a negative margin in the page layout section of the conversion dialog and use

Code:
body { margin-left: -10px !important }
kovidgoyal is online now   Reply With Quote
Old 11-14-2018, 10:28 AM   #47
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 189
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Perhaps I misunderstand what "Extra CSS" is supposed to do in the Conversion dialog options. I added, as suggested:
Quote:
body {margin-right: -50px !important; margin-left: -50px !important;}
then I converted to azw3. No effect. Those rules went to the eternal bit bucket...
Brett Merkey is offline   Reply With Quote
Old 11-14-2018, 10:32 AM   #48
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
It didn't work for me neither.
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 10:46 AM   #49
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
Wait! I think there's a catch here: It worked in a book, but not in another! Using the same process! What could be the difference ?
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 10:51 AM   #50
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 189
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
It worked in a book, but not in another! Using the same process! What could be the difference ?
Well, one thing to look at was pointed out earlier: does the book that was successfully converted with negative margins use a table of contents file? If so, the !important declaration (often referred to as the desperate coder's sledgehammer) may have over-rided global css rules. (?)
Brett Merkey is offline   Reply With Quote
Old 11-14-2018, 11:08 AM   #51
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
In the test file sent by JimmyR it worked:

p {
margin-left: -3%; !important
margin-right: -3%; !important
}

But in most of the books I tested it did not; What could be the catch?
Attached Files
File Type: azw3 Lorem Ipsum (Test) - Jim Roberts.azw3 (22.9 KB, 171 views)

Last edited by bnpssilva; 11-14-2018 at 11:14 AM.
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 11:23 AM   #52
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
I think I got it!!! You have to mark off "look and feel->Margins" and "structure detection->Remove fake margins" !!

Thank you very much, kovidgoyal !!!
Attached Thumbnails
Click image for larger version

Name:	Capturar2.PNG
Views:	364
Size:	37.2 KB
ID:	167688   Click image for larger version

Name:	Capturar.PNG
Views:	407
Size:	37.7 KB
ID:	167689  
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 11:24 AM   #53
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 189
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
You have to mark off "look and feel->Margins" and "structure detection->Remove fake margins"
I hope that is so. What in hell is a fake margin? The settings you illustrated do not really make sense to me. But if the hack works...

Last edited by Brett Merkey; 11-14-2018 at 11:33 AM.
Brett Merkey is offline   Reply With Quote
Old 11-14-2018, 11:28 AM   #54
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
With the new settings above its working in all my tests so far. Thanks again to kovidgoyal !!!
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 11:44 AM   #55
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 189
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
I think I got it!!! You have to mark off "look and feel->Margins" and "structure detection->Remove fake margins" !!
There must be something more here. The code you have in the "Extra CSS" is illegal and should have been ignored. (look at the placement of semi-colons) I tried it and it failed--just as my legal code before did. Well, if it works for you, that is good, right?
Brett Merkey is offline   Reply With Quote
Old 11-14-2018, 11:51 AM   #56
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
I don't understand. Its working for me just like that. For example, in the book I thought it was not working before, the body turn out like that, after conversion:


.calibre5 {
border-bottom: currentColor none 0;
border-top: currentColor none 0;
display: block;
padding-bottom: 0;
padding-top: 0;
text-indent: 1.5em;
margin: 0 -3%
}
bnpssilva is offline   Reply With Quote
Old 11-14-2018, 01:03 PM   #57
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 229
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
bnpssilva
Would you like to try batch file described in my post #27?
EbokJunkie is offline   Reply With Quote
Old 11-14-2018, 01:28 PM   #58
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
Hello, EbokJunkie. I'll try as soon as possible , and then let you know. The Calibre process described in post #52 worked for me anyway. Thank you.
bnpssilva is offline   Reply With Quote
Old 11-16-2018, 01:52 AM   #59
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 229
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
Quote:
Originally Posted by bnpssilva View Post
Hello, EbokJunkie. I'll try as soon as possible , and then let you know. The Calibre process described in post #52 worked for me anyway. Thank you.
Tried your idea from post #52 on three epubs. Unfortunately, it worked for one book but has no effect on two another. I guess you will also run into books where extra-css option is powerless.

Last edited by EbokJunkie; 11-16-2018 at 01:55 AM.
EbokJunkie is offline   Reply With Quote
Old 11-19-2018, 06:08 AM   #60
bnpssilva
Connoisseur
bnpssilva began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2014
Location: Brazil
Device: KV, kOA2, KPW1, KPW2, KPW4,KT1, KT3, KT4,kOBOS, Nooks, PRS-T2
Indeed. In some epubs it didn't work. In these cases, I wiped out the CSS info, then repeated the process. Its a messy alternative, but worked.
bnpssilva is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best settings for 1:1 ePub to AZW3 conversion? gers1978 Conversion 8 06-03-2013 10:50 PM
azw3 to epub conversion stuck on 1% krysk Conversion 2 04-21-2013 11:53 AM
AZW3 to EPUB Conversion Probs grizedale Conversion 4 04-16-2013 06:47 PM
Conversion from epub to azw3 Joy736 Conversion 12 01-01-2013 11:00 AM
Using negative margins Agama Conversion 0 03-03-2012 07:29 AM


All times are GMT -4. The time now is 02:35 AM.


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