MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Sigil v0.1.2 (https://www.mobileread.com/forums/showthread.php?t=53331)

Valloric 08-16-2009 12:00 PM

Quote:

Originally Posted by jotas (Post 556212)
- How can I add a cover image? To show as cover, not in text, for all software and hardware .epub readers.

Just import an image and put it at the top of your document. You'll probably want to add a chapter break after it.

Quote:

Originally Posted by jotas (Post 556212)
- And, how much must the size for this image? I noted that Sigil does not change or resize the images, so later in viewers they are too small, or too big.

Sigil will never resize your images. Epub as a format was meant to display on many different devices with many different screen sizes. Trying to settle on one cover image size is pointless and will always fail to display correctly on some devices.

What you should do is wrap your image in some SVG code so it automatically resizes. AFAIK there are other ways of doing this too. Check out the epub subforum on MobileRead, and the code snippets sticky.

Sigil will one day have a WYSIWYG action that automatically wraps your image in SVG.

Quote:

Originally Posted by jotas (Post 556212)
- I have a strange problem: when saving/loading files, I can load again the .epub exported files, but not the original .sgf one (???) Hangs forever loading with high cpu usage, both are about 4,83 MB size.

Create an issue and attach the files in question. I can't guess the bug away.

Quote:

Originally Posted by JSWolf (Post 556237)
Is there a way in 0.1.2 to make any of the paragraphs have no indent? Also, can the extra space between paragraphs be removed or not added in in the first place?

That is done with CSS. If you are asking for a WYSIWYG way of doing that, there currently isn't one.

Adobe's EPUB best practices document recommends that books use this CSS code by default:

Code:

body, div, p, h1, h2, h3, h4 { margin: 0; padding: 0; }
I plan on adding it for books created with the "New" command, but nobody really uses that. Everyone just imports. I will not automatically add these styles to imported documents because Sigil tries to preserve your document as much as possible.

So just add this style directly. It should take you 2 seconds to copy-paste it into Code View.

Quote:

Originally Posted by JSWolf (Post 556237)
I have not looked at the tickets so this may already be there. But is there going to also be a CSS editor eventually built in?

Some day, sure. Not soon though.

Dave Berk 08-16-2009 05:32 PM

Quote:

Originally Posted by jotas (Post 556212)
- I have a strange problem: when saving/loading files, I can load again the .epub exported files, but not the original .sgf one (???) Hangs forever loading with high cpu usage, both are about 4,83 MB size.

I have the same problem. Using XP sp3 on a core duo with 2gb memory, I opened an html book, made some changes, saved as sgf(?) and now Sigil hangs when I try to open the file.

Also, moving between code and book view after making changes to the document make Sigil hangs for a few seconds. But maybe that's expected since it has to sync the views... (working on a 240k html file)

Anyway, it's a great program! Thanks for investing your free time in developing it.

...Maybe it's time to finally move to epub.

Valloric 08-16-2009 07:07 PM

Quote:

Originally Posted by Dave Berk (Post 557123)
I have the same problem. Using XP sp3 on a core duo with 2gb memory, I opened an html book, made some changes, saved as sgf(?) and now Sigil hangs when I try to open the file.

Please provide a repeatable test case and add it to a new issue on the tracker. This would contain the original HTML file and the minimal set of changes that would need to be made so that saving this as an SGF results in a hang when loading the SGF.

Quote:

Originally Posted by Dave Berk (Post 557123)
Also, moving between code and book view after making changes to the document make Sigil hangs for a few seconds. But maybe that's expected since it has to sync the views... (working on a 240k html file)

It can hang a bit on large files, yes. This will hopefully be minimized when I implement live updating. This is a technical challenge, so it will take a while.

jotas 08-17-2009 07:30 AM

Hello,

Many thanks for your reply.

Quote:

Originally Posted by Valloric
- How can I add a cover image? To show as cover, not in text, for all software and hardware .epub readers.

Just import an image and put it at the top of your document. You'll probably want to add a chapter break after it.

Sigil will never resize your images. Epub as a format was meant to display on many different devices with many different screen sizes. Trying to settle on one cover image size is pointless and will always fail to display correctly on some devices.

What you should do is wrap your image in some SVG code so it automatically resizes. AFAIK there are other ways of doing this too. Check out the epub subforum on MobileRead, and the code snippets sticky.

Yes, I noted. If simply adding a image over top, some epub readers show the image as cover, some don't, some will show also in text, some don't ... but all of them try to show it in original size, so the result is wrong, too small, or too big. It's necessary some simple SVG/CSS code, usually even using a "100%" attribute works, so program/device tries to resize and fit to 100% -their size- for the image.

Quote:

Originally Posted by Valloric
Sigil will one day have a WYSIWYG action that automatically wraps your image in SVG.

I would strongly suggest to add this, using GUI icon, or a new metadata option, since it's a very basic and common action for all users, specially non technical ones (so more people will give Sigil a try), books later look great, and this, plus the option to build and show footnotes (tricky, from the .epub specs I read, seems there are still not a totally stablished standard, specially for software or hardware viewers, and at least two or three different codings and some tips to do), are the most asked and requested questions from new users here.


Also, I found a new problem: when loading .epub files containing multiple illustratios, Sigil confuses the images order and contents, and most time results in showing the file in edit window using a single image for -all- the illustrations. Sample:

http://www.epubbooks.com/book/24/gulliver%27s-travels


EDIT: and a Search option!


Thanks! Regards!

Valloric 08-17-2009 10:01 AM

Quote:

Originally Posted by jotas (Post 557552)

Also, I found a new problem: when loading .epub files containing multiple illustratios, Sigil confuses the images order and contents, and most time results in showing the file in edit window using a single image for -all- the illustrations. Sample:

http://www.epubbooks.com/book/24/gulliver%27s-travels

Please refrain from such broad generalizations. This happens for this epub only because of a very specific issue (images in that epub have names that are suffixes of Sigil generated names). Thanks for the bug report though, it will be fixed in the next release.

In the future, if you have a bug to report, do it on the tracker, or at least in a separate thread.

EowynCarter 08-17-2009 05:03 PM

Sigil 0.1.2 seams to have fixed some of the major anoyance i had with it.

Kudos Valloric :2thumbsup

Valloric 08-17-2009 07:27 PM

Quote:

Originally Posted by EowynCarter (Post 558256)
Sigil 0.1.2 seams to have fixed some of the major anoyance i had with it.

There's a bit more to go until the major annoyances I have with it are fixed. :)

EowynCarter 08-18-2009 04:15 AM

Yeah.Still, there some improvement.


All times are GMT -4. The time now is 06:40 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.