Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2016, 10:34 PM   #31
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
Thanks. I haven't yet worried about cleaning up and compressing the images, as that's an easy step that I can leave till last. Unfortunately, the images were originally in a colour PDF scan from archive.org (OpenLibrary section) so all I've done to them so far is run them through pixlr to get rid of the yellow background.

I'm not sure about the copyright on books from archive.org, but as it's only for personal use, I'm not too worried. There are a few public domain books I intend to work on, but I decided to learn on this book, as it has good examples of different layout problems I'll run into later on.

As for tables, sidebars, and boxes, doesn't epub3 have the ability to render them from a few lines of code, rather than adding them in as pictures?


and my main hate: Why does Calibre ALWAYS make the css so messy?

Last edited by bentleymaniac; 04-15-2016 at 10:47 PM.
bentleymaniac is offline   Reply With Quote
Old 04-15-2016, 10:41 PM   #32
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
yeah, I know this post is but why does EVERY forum have to create their own different commands for markup/formatting (i.e. bold, italic, code, etc)?
They should just stick to html or inline css. It would make <i>so</i> (sorry, [ITALIC]so[/ITALIC] - whoops, still wrong so) much more sense.
bentleymaniac is offline   Reply With Quote
Old 04-15-2016, 11:12 PM   #33
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by bentleymaniac View Post
Thanks. I haven't yet worried about cleaning up and compressing the images, as that's an easy step that I can leave till last. Unfortunately, the images were originally in a colour PDF scan from archive.org (OpenLibrary section) so all I've done to them so far is run them through pixlr to get rid of the yellow background.
Hmm ok, well then in the future perhaps you want to link to Archive.org instead of attaching. I know the MobileRead mods are always sticklers for copyrighted books (it is in the MobileRead Rules if you haven't read them yet):

https://www.mobileread.com/forums/faq...ing_guidelines

Then the Archive.org link might give more detailed info on that specific copy of the book.

Quote:
Originally Posted by bentleymaniac View Post
As for tables, sidebars, and boxes, doesn't epub3 have the ability to render them from a few lines of code, rather than adding them in as pictures?
Well, I am in the camp of always digitizing Tables to HTML instead of plopping them in books as Images (it can be read using Text-to-Speech, it is more accessible, can be resized according to user preferences, [...]). I have written extensively on the topic in multiple occasions.

Here was the latest topic I remember specifically on HTML Tables (also, I went into some JPG/PNG examples as well.... I absolutely hate JPG in all of my use-cases. ):

https://www.mobileread.com/forums/sho...d.php?t=223062

I also wrote extensively about digitizing books back here (Post #8 might be most relevant, although I think the entire thread is a good read):

https://www.mobileread.com/forums/sho...d.php?t=234146

and here (this discussed SVG Tables alongside all the other Table discussion):

https://www.mobileread.com/forums/sho...d.php?t=240980

Side Bars... I don't deal with those too often, although way back in 2013 I handled them along them with a "grey box" along these lines:

https://www.mobileread.com/forums/sho...25&postcount=9

Having little floating boxes might work ok on a larger device (tablet or a sheet of paper), but on a smaller device like a cellphone, there is just not enough room for floats.

Quote:
Originally Posted by bentleymaniac View Post
and my main hate: Why does Calibre ALWAYS make the css so messy?
It tries to do its best with what it gets. Garbage In, Garbage Out.

I typically strip everything down and use tools to start from the bare bones formatting (Text + Italics + Bold), and work my way up from there (adding in blockquotes, fixing footnote, [...]). Toxaris's "ePUB Tools" are a fantastic tool for doing that:

https://www.mobileread.com/forums/sho...d.php?t=213372

Quote:
Originally Posted by bentleymaniac View Post
yeah, I know this post is but why does EVERY forum have to create their own different commands for markup/formatting (i.e. bold, italic, code, etc)?
They should just stick to html or inline css. It would make <i>so</i> (sorry, [ITALIC]so[/ITALIC] - whoops, still wrong so) much more sense.
Seems like pretty standard BBCode to me. What forum software are you used to?

If you push the buttons a few times, I believe it is pretty easy to figure out different forum markup.

Last edited by Tex2002ans; 04-15-2016 at 11:16 PM.
Tex2002ans is offline   Reply With Quote
Old 04-15-2016, 11:42 PM   #34
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
Quote:
Seems like pretty standard BBCode to me. What forum software are you used to?

If you push the buttons a few times, I believe it is pretty easy to figure out different forum markup.
Sorry, I'm referring to the differences between the Steam forums, here, Quora, and Yahoo, mainly. There isn't a great deal of difference, but just enough to be annoying sometimes.
bentleymaniac is offline   Reply With Quote
Old 04-16-2016, 12:04 AM   #35
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
BTW, is there an easy way to convert to svg? I tried Inkscape, but the output files are actually bigger than the png's. AND look cheesy.
or do you recommend using pngs and adding inline svg?
bentleymaniac is offline   Reply With Quote
Old 04-16-2016, 01:42 AM   #36
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
SVG is XML. So it is hard "convert" a bitmap to a SVG.
fbrzvnrnd is offline   Reply With Quote
Old 04-16-2016, 01:55 AM   #37
bentleymaniac
Enthusiast
bentleymaniac began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Oct 2015
Device: kobo
It's just when I try to use inline svg, ADE displays the pictures in a peculiar, almost hatched/sketched, way.

But I might try that if I can't get the css to work.

Does inline svg allow you to "pinch and zoom" on the images? The css method seems to prevent it.
bentleymaniac is offline   Reply With Quote
Old 04-16-2016, 05:49 AM   #38
Notjohn
mostly an observer
Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.Notjohn ought to be getting tired of karma fortunes by now.
 
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
Quote:
Originally Posted by Tex2002ans View Post
Toxaris's "ePUB Tools" are a fantastic tool for doing that:

https://www.mobileread.com/forums/sho...d.php?t=213372
Indeed they are. I bought a cheap copy of Word 2007, to see if it was any better than Word 2000 in outputting html (it is). So the other day I downloaded the Epub Tools and managed to get them on the "ribbon" (as it seems to be called). They look very promising.
Notjohn is offline   Reply With Quote
Old 04-16-2016, 06:01 AM   #39
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by bentleymaniac View Post
BTW, is there an easy way to convert to svg?
GrannyGrump wrote a Text to SVG tutorial here:

https://www.mobileread.com/forums/sho...d.php?t=238029

Quote:
Originally Posted by fbrzvnrnd View Post
SVG is XML. So it is hard "convert" a bitmap to a SVG.
fbrzvnrnd is correct. It is very similar like going from lossy (JPG) -> lossless (PNG/GIF) images.

Once you have crossed that threshold to a bitmap image... it is really hard/impossible to go back to a vector.

Quote:
Originally Posted by bentleymaniac View Post
I tried Inkscape, but the output files are actually bigger than the png's. AND look cheesy.
Personally? I would only use SVGs if you have access to the original source files. Like if you had a computer-generated chart directly from the program that created it (or if you had access to the vector source... like an actual digital PDF (not a scan)).

On Looking Cheesy: Years ago I got sick of running across these tiny ant-sized horrible JPGs of formulas in the books. I wrote a "Formulas to PNG" Tutorial:

https://www.mobileread.com/forums/sho...d.php?t=223254

Here is the Before/After example posted:

Before: https://www.mobileread.com/forums/att...8&d=1380001474
After: https://www.mobileread.com/forums/att...7&d=1380001474

The Before was zoomed in on a PDF scan, and the After was me recreating the formulas digitally.

If you took Before image, and followed GrannyGrump's method (converting a bitmap to SVG paths)... the Before formula would still look like crap (and nowhere near as crisp as my After formula). Garbage In, Garbage Out...

Bitmaps to Paths: I was looking through the older topics (because this topic has definitely been brought up many times before), and I came across this one. Psymon was trying to generate sheet music:

https://www.mobileread.com/forums/sho...11#post2926711

You can see the difference between a "Traced" SVG created from a bitmap image:

https://www.mobileread.com/forums/att...1&d=1411067938

and a purely digital vector solution:

https://www.mobileread.com/forums/att...2&d=1411067938

On File Size: Depends on the image. SVGs are sometimes much larger than their equivalent (small resolution) bitmaps.

The advantage of a vector image though is that it stays the same exact file size and perfectly crisp no matter what the output size is.

For example, if you see this image:

https://commons.wikimedia.org/wiki/F...map_VS_SVG.svg

SVG: 3 KB
320x204 PNG: 22 KB
640x409 PNG: 49 KB
800x511 PNG: 59 KB
1024x654 PNG: 85 KB
1280x818 PNG: 100 KB

No matter which resolution you output the SVG, it will always be 3 KB. What if you wanted to generate that image for a 4K monitor?

4096x2567 PNG: 446 KB

while the SVG would always be 3 KB.

If you took the 650x409 PNG and resized it to 4K, it would look horribly fuzzy/pixelated.

Quote:
Originally Posted by bentleymaniac View Post
or do you recommend using pngs and adding inline svg?
In your case, just stick with the cleaned up PNG.

Quote:
Originally Posted by bentleymaniac View Post
It's just when I try to use inline svg, ADE displays the pictures in a peculiar, almost hatched/sketched, way.
Who knows what you are doing... you would have to give source files, show code examples, and explain how you created the SVGs.

ADE displays SVGs fine.

Quote:
Originally Posted by bentleymaniac View Post
Does inline svg allow you to "pinch and zoom" on the images? The css method seems to prevent it.
That is another reason why I don't typically do SVGs in EPUBs. If you read the SVG Table topic, you would have seen the discussion + problems we ran across.

A lot of the devices don't play nicely with SVGs (like changing font color, and to my knowledge none of them allow you to "pinch and zoom" the SVG). They do look nice and crisp at any size though.

Last edited by Tex2002ans; 04-16-2016 at 06:28 AM.
Tex2002ans is offline   Reply With Quote
Old 04-16-2016, 07:29 AM   #40
fbrzvnrnd
Fanatic
fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.fbrzvnrnd ought to be getting tired of karma fortunes by now.
 
Posts: 554
Karma: 400004
Join Date: Feb 2009
Device: ONYX M96
I suggest to use SVG when you need it. SVG is XML: you can draw rect, circle, path... everything using tags, like <rect>, <circle>, <path>. You can also create hypertext inside SVG. As TEX202ans said, the support has problems, so you have to test your SVG to know if it works fine. Btw, SVG have got a lot of things in its chest, like animations, viewBox, viewport and more... but most of this things do not work in ebook or are "deprecated" by IDPF.
fbrzvnrnd is offline   Reply With Quote
Old 04-16-2016, 08:13 AM   #41
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,542
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by bentleymaniac View Post
BTW, is there an easy way to convert to svg? I tried Inkscape, but the output files are actually bigger than the png's. AND look cheesy.
or do you recommend using pngs and adding inline svg?
Could you post here the image you want to convert?

Regarding the size of svg images, don't forget that svg images are "text" images, so when that images are compressed (when the epub is built, the svg will be compressed), generally are very tiny in size.
RbnJrg is offline   Reply With Quote
Old 04-16-2016, 11:20 AM   #42
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
I use SVG as much as possible for equations/formulas. While exporting to ePUB from Word with my tools you can choose between PNG (default) or SVG (preferred) for equations. It is also possible to export equations as MathML from Word for if you want to use equations in ePUB3.
Toxaris is offline   Reply With Quote
Reply

Tags
epub 3, help needed, sigil


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Images now showing in ePub after editing in Sigil or Calibre postkast2929 ePub 44 04-21-2016 11:45 AM
Can I use the code Sigil uses for Covers for other images? rosshalde Sigil 4 12-23-2014 11:00 AM
Copying Sigil Images Folder EditorOne Sigil 5 06-08-2013 08:50 PM
Images with Sigil Gerlyn ePub 2 02-08-2012 01:05 PM
Alreader not showing images after editing ePUB with Sigil cerramadre Sigil 27 09-02-2011 10:24 PM


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


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