05-17-2022, 04:56 PM | #16 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
A basic, slightly boring (visual stylistically) is really simple HTML/CSS.
CSS is just a way to centralize (in the book), styling rules, rather than use a style= every place. Change the CSS entry for a class= usage and all uses follow. SVG allows tighter image manipulation. It is not required (if you don't mind aspect distorted images on some devices) Sigil has a SVG plugin available, to do the heavy lifting IMHO the harder part of EPUB creation is avoiding device (specific) limitations. eg. my early device did not center a nn% HR. Want it centered... force that with the left margin ((100-HRwidth)/2)% I made a 'sampler' of code ideas for a more fancy rendering of chapter titles. That was a great way to learn and use the Box Model' |
05-18-2022, 03:51 AM | #17 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
Ok, many thanks!
|
05-18-2022, 03:58 AM | #18 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
There are many different devices! So. what EPUB do you use? Is there a standard EPUB?
|
05-18-2022, 04:09 AM | #19 |
Fanatic
Posts: 500
Karma: 3498633
Join Date: May 2011
Location: Surrey, UK
Device: Kobo Aura One, Sony PRS 600/650
|
This is a site that I have found useful at times. I think it is mainly aimed at web designers, but a lot also applies to epub design too.
https://www.w3schools.com/ |
05-18-2022, 05:19 AM | #20 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
Which browser is the best to read EPUB files? (my browser says that it doesn't support them!)
|
05-18-2022, 10:48 AM | #21 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
There are VIEWER's for EPUB2 and EPUB3, that are device (OS) specific (the reason you TEST and compromise your code to fit your market. Sigil and Calibre both have viewers. Both SUFFER from being over tolerant of errors (looks fine, but won't work on many devices). Calibre viewer also has a command-line version. Sigil has a Preview as part of the editor. The pros have a table top full of many REAL devices (emulators may permit stuff that does not work on devices) for their final tests. |
|
05-18-2022, 07:21 PM | #22 |
null operator (he/him)
Posts: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
05-18-2022, 10:56 PM | #23 | |
Wizard
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
It's an actual EPUB-reader program... but nothing beats testing on an actual, physical ereader. (A Kobo, Nook, [Kindle], etc.) Why Test Using Actual Devices? The devices are a lot more strict + a lot less lenient compared to browsers. While you're messing with different:
you may run across bugs/issues that ADE/browsers don't show. (For example, some older ereaders would throw away all CSS if you had the tiniest error inside. Browsers may trick you into thinking everything is perfect, ignoring just that broken line.) Use Android/iOS? If you only have a cellphone/tablet, then you can use a standards-compliant EPUB reader:
KISS (Keep It Simple Stupid). Really. Just keep your HTML+CSS very simple, building yourself up step-by-step... and you can guarantee it'll work across devices + not break. For your typical book, all you'll really need is basic HTML:
then, for CSS, you'll need is a handful of simple CSS classes:
Example HTML: Spoiler:
Example CSS: Spoiler:
If you want more basic CSS/Styles info, please see my posts in:
And like others said, MR's EPUB Library is a good place to look. Open up ebooks and see how they work. * * * Side Note: If you want an example EPUB, see this 2021 book published by FEE (Foundation for Economic Education): That HTML+CSS is pretty much what I've used across all 600+ ebooks I've worked on. (I only do extremely minor tweaks here and there if needed.) * * * A lot of the other stuff is just thinking about all the different ways users may be reading your ebooks. For example:
Last edited by Tex2002ans; 05-18-2022 at 11:51 PM. |
|
05-19-2022, 10:28 AM | #24 |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
my pet peeve: Lousy Alt= values
If you are going to use them, make them useful. (terse is OK) eg. alt='picture' . OF WHAT! alt='chapter' . to terse... gimme a number to go with that graphical chapter title alt='' . A waste of bytes. (was this just to keep some check program happy?) |
06-01-2022, 09:59 AM | #25 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
Ok, many thanks!
(sorry, I didn't have internet for 2 weeks!) |
06-01-2022, 10:06 AM | #26 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
I live in The Netherlands, so the book shall be in Dutch.
But om my computer my keyboard has to be set in English US? |
06-01-2022, 10:21 AM | #27 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
Is the best way to write my e-book on the computer and check it on smartfones/tablets (e.g. I've a Samsung smartfone/Android)?
|
06-01-2022, 10:29 AM | #28 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
|
06-01-2022, 10:36 AM | #29 |
Connoisseur
Posts: 51
Karma: 10
Join Date: Apr 2022
Device: none
|
What do they mean with UPLOADER (library/EPUB books)?
|
06-01-2022, 04:15 PM | #30 | |
Well trained by Cats
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Nothing beats the ACTUAL device. Emulators only go so far (and sometime permit stuff the device barfs upon). Real book wranglers have a tablefull of devices. Ask @hitch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting HTML pages with index.html to mobi results in random page order | jonschneider | Conversion | 3 | 02-27-2022 05:05 PM |
HTML input plugin stripping text within toc tags in child html file | nimblebooks | Conversion | 3 | 02-21-2012 03:24 PM |
Problem with html -> Mobi conversion - html tags visible. | khromov | Calibre | 9 | 08-06-2011 11:25 AM |
Calibre Recipe HTML content differs from raw html of index.html. | krunk | Calibre | 4 | 09-20-2010 09:48 PM |
Access to local HTML files and content, HTML ebooks, annotation on HTML ebooks | leo315 | enTourage Archive | 2 | 05-10-2010 02:40 PM |