![]() |
#31 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
|
Not sure why you didn't PM me the name of the book. Ah well!
To correct the side gaps: Open the book in Sigil. Click the folder Styles in the left panel to open it. Right click 'page-template.xpgt' Select 'Remove' Why oh why do you want to justfy the text? It's bad for the eyes. Anyway to get what you want: Double click the css sheet: 'jaguarprincethe.css' CTRL F for Find Enter .para You'll see a blank line: .para { display: block; text-align: justify; margin-top: 0%; margin-bottom: 0%; } Type: text-align: justify; as shown above. Save the book. Done. Enjoy! |
![]() |
![]() |
![]() |
#32 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
there have been studies of readability & comprehension which show that justify is superior to left http://www.surl.org/usabilitynews/72/columns.asp http://www.cuttingedgepr.com/article...ypesetting.asp Typesetting specified Comprehension level % Good % Fair % Poor Layout with totally justified setting 67 19 14 Layout with ragged right setting 38 22 40 Layout with ragged left setting 10 18 72 & 99.9% of all printed books use fully justified text. Betcha can't find one that doesn't. Last edited by cybmole; 04-28-2011 at 04:32 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
First thing to do is get a copy of notepad++.
http://notepad-plus-plus.org/ Next is to uncompress all the files in the ePub except META-INF and mimetype. If you need to change the extension from .ePub to .zip, that's OK. You can rename it later when you want to test it. In the uncompressed OEBPS directory delete the file page-template.xpgt. You don't need it and you don't want it. Load all the .html files into notepad++. They will load in separate tabs. In one of the HTML files select the line that is... <link href="page-template.xpgt" rel="stylesheet" type="application/vnd.adobe-page-template+xml"/> Then hit control-h and you will see the search/replace dialog. The line you selected should be in the find what line of the dialog. Now make sure the Replace with line is empty. Check Wrap Around and Normal. Then click Replace All in All Opened Documents. That will do the search/replace among all the HTML files in all the tabs in one go. Then do the same thing for the line that shows... <meta name="Adept.resource" value="urn:uuid:b335f548-71c6-4cc5-b736-2065f32554f3"/> Then go to the file menu and select Save All. Next, load the OPF file (jaguarprincethe.opf) Delete the line that shows... <item href="page-template.xpgt" id="pt" media-type="application/vnd.adobe.page-template+xml"/> That gets rid of the page-template file from the OPF file. With Notepad++, you may be able to right click on the selected files in Windows Explorer and select edit with Notepad++. That will load all the selected files in one go. After you've edited the OPF file save it and then go to the file menu and select Close All. That's the first step to sorting out the files before beginning to edit the CSS. |
![]() |
![]() |
![]() |
#34 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
the above is very through but you can get by just using find /replace within sigil - worked for me anyway.
use find / replace in all files to zap the 2 long lines shown in previous post, ( find them in code view , cope / paste into find box so now typing needed! then look at the list of files in LH pane scroll down to styles & expand it. sigil will show 2 stylesheets under style & you can delete the .xpgt from that LH pane |
![]() |
![]() |
![]() |
#35 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
zap the 2 long lines you detailed above + zap the .xpgt sheet. then I think I ran epub to epub conversion in calibre which added default @page settings to each xhtml. the results looked good on my Sony reader so that's all I did. without that step the text goes edge to edge on Sony ; calibre sets, I think, 5pts left & right margins which look better. I'm guessing ( NB Only guessing) that removing an entry from sigil's list of stylesheets is equivalent to unpacking epub & editing the OPF file |
|
![]() |
![]() |
![]() |
#37 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The @page addition is one reason I do not recommend ePub to ePub.
Anyway, more on fixing this ePub later. |
![]() |
![]() |
![]() |
#38 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
|
@cybmole The document linked
Code:
http://www.surl.org/usabilitynews/72/columns.asp Ebooks are quite different, I WAS an undergraduate (and post-graduate) but that was nearly fifty years ago and now I use a medium sized text for reading. Ebooks, mine anyway, don't allow for proportional spacing or hyphenation so you end up with silly spacing. I suggest you reread the article at the link again and be less selective about what you quote. |
![]() |
![]() |
![]() |
#39 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 12096
Join Date: Sep 2010
Location: Tasmania
Device: Sony PRS 650
|
@kazbates
I notice the cover image didn't show in my PRS650 You may want to get the cover image to show: Open the book in Sigil Switch to Code View of the first text file 'jaguarprincethe_cov.html' Replace: Code:
<body> ... </body> Code:
<body> <div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 600 800" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="800" width="600" xlink:href="../Images/cover.jpg"></image> </svg> </div> </body> Book checked and working as desired on a Sony PRS650. Please check your mail box as I've sent you a PM. |
![]() |
![]() |
![]() |
#40 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Also, the code above is a problem. ADE needs to have the actual pixels of the image and not an arbitrary size. I've mentioned that as a bug and it's been fixed in Calibre. While ADE may be at fault, using the pixels of the image works in ADE and every other system where that code may work. The correct code that will work on the Sony Reader and in the desktop ADE is... Code:
<body> <div> <svg xmlns="http://www.w3.org/2000/svg" height="100%" preserveAspectRatio="xMidYMid meet" version="1.1" viewBox="0 0 825 1200" width="100%" xmlns:xlink="http://www.w3.org/1999/xlink"> <image height="1200" width="825" xlink:href="../Images/cover.jpg"></image> </svg> </div> </body> Last edited by JSWolf; 04-28-2011 at 01:58 PM. |
|
![]() |
![]() |
![]() |
#41 |
Witless protection Agent
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 290
Karma: 1002898
Join Date: Nov 2009
Location: Los Angeles
Device: Kindle
|
From a watcher - I love this thread. I'm getting 'geek goosebumps' and wish I was home with my personal MacBook to try these things.
|
![]() |
![]() |
![]() |
#42 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Ok, I know I've been away from this thread for too long. Tomorrow I will dig into the actual CSS of the eBook in question and start fixing it up and posting the relevant bits here.
|
![]() |
![]() |
![]() |
#43 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,627
Karma: 406616
Join Date: Dec 2008
Location: Northern Virginia
Device: SurfacePro, SurfaceBook 2
|
FINALLY!! School is out, no more visitors or obligitory family trips and my online college course is finished!! Now I have to time to tackle learning how to edit these epubs!!
First things first. . .You all have given me great advice. Thank you! The problem is, I am in elementary school teacher brain mode and not programmer brain mode. Consequently, I am struggling to understand some of the things you've asked me to do, the most important of which is uncompressing the epub file. I have a free epub and have tried to rename the file to .zip, but Windows is not cooperating. My brain tells me that I need to open the file in Sigil so that I can see all the html files, but is there an easier way to incompress without going through Sigil? |
![]() |
![]() |
![]() |
#44 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,627
Karma: 406616
Join Date: Dec 2008
Location: Northern Virginia
Device: SurfacePro, SurfaceBook 2
|
Okay! I am making a little headway. I am working on a different book and thanks to all of your suggestions, I have been able to get some things justified and have eliminated the huge borders. Unfortunately, I've encountered a new problem. Once I open the freed epub with Sigil, the special characters revert to the following:
Charlotte could turn to for comfort and company… Aurora’s concerns weren’t entirely unfounded. Hence the invention of Charlotte’s tailor-made handy-dandy fictional fiancé. It is very similar to not setting the correct language in Book Designer. Any suggestions? |
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
It is a problem with the character set being specified in the xhtml file or files. It may also be that it is being specified twice in the file in different spots. You need to look at the offending file in code view in Sigil and then post the header (head) section and we can take a look.
Dale |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF to EPUB No output file | pearlheartgtr | Conversion | 1 | 04-12-2011 01:03 AM |
EPUB output | kovidgoyal | Calibre | 920 | 02-05-2011 11:59 AM |
EPUB output justification | toki08 | Calibre | 10 | 01-08-2011 04:14 PM |
Formatting errors in Mobi output | agriainc | Calibre | 3 | 08-22-2010 10:16 AM |
epub output metadata | troymc | Calibre | 5 | 05-22-2010 12:23 AM |