Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-04-2013, 08:56 AM   #16
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,894
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
Quote:
Originally Posted by ibu View Post
OK, thanks for the hint. I thought, that Calibre needs the original path, because it does not copy the original file physically in it's database.
Calibre does copy the original file physically to it's database structure. Calibre creates the directories and file names based on the metadata. If the metadata changes so does the associated files or directories in calibre's library.

Last edited by DoctorOhh; 08-04-2013 at 09:06 AM.
DoctorOhh is offline   Reply With Quote
Old 08-04-2013, 09:17 AM   #17
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
Than it's even easier to perform my task.

Calibre is really an incredible powerful and smart tool.

Thanks to all of you who contribute to it

Can anybody tell me a good information source (webpage), where it is explained, which epub optimizations are useful in a way which is easy to understand for a newbie in epub editing?

What I'm specially looking for:

Heuristics, which eliminate all source code of the html files, which is only for layout and not for semantic.
My wish is to have epubs in plain semantic xhtml. Free of redundant and ugly tags, classes, ids, inline-styles.

In other words:
Books without any layout at all.
Just structure.

Another thing:
Do modern eReaders have problems with ePubs in a single HTML file?
ibu is offline   Reply With Quote
Advert
Old 08-04-2013, 09:39 AM   #18
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,659
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by ibu View Post
Can anybody tell me a good information source (webpage), where it is explained, which epub optimizations are useful in a way which is easy to understand for a newbie in epub editing?
Did you try the User Manual - press Function Key #1 next time you're in Calibre, or go here http://manual.calibre-ebook.com/

Quote:
Originally Posted by ibu View Post
What I'm specially looking for:

Heuristics, which eliminate all source code of the html files, which is only for layout and not for semantic.
My wish is to have epubs in plain semantic xhtml. Free of redundant and ugly tags, classes, ids, inline-styles.
There's a very good EPUB editor called Sigil https://www.mobileread.com/forums/forumdisplay.php?f=165

BR
BetterRed is offline   Reply With Quote
Old 08-04-2013, 10:23 AM   #19
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,936
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ibu View Post
@DoctorOhh

OK, thanks for the hint. I thought, that Calibre needs the original path, because it does not copy the original file physically in it's database.
Just the opposite.
Calibre copies the Book into its (database) structure. (the structure is the DB and the PRECISE Folder-File calibre stored the book into)

The original can go Bye-Bye after that.
theducks is offline   Reply With Quote
Old 08-04-2013, 12:19 PM   #20
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
[Optimizations]

Quote:
Originally Posted by BetterRed View Post
Did you try the User Manual - press Function Key #1 next time you're in Calibre, or go here http://manual.calibre-ebook.com/


There's a very good EPUB editor called Sigil https://www.mobileread.com/forums/forumdisplay.php?f=165

BR
The focus of manuals of tools is typically on functionality.

I'm looking for an article with basic thoughts with the focus on minimalistic code.
I think there are only few user who like the radical wish to have an epub without any "styles", just pure semantic.

When I understand
http://idpf.org/epub/30/spec/epub30-overview.html
correctly, there are 4 obligatory files of a minimalistic epub:
/META-INF/container.xml
/mimetype
/directory.opf
/content.xhtml

And 2 more files for the TOC and the cover:
/cover.jpg
/toc.ncx
ibu is offline   Reply With Quote
Advert
Old 08-04-2013, 12:35 PM   #21
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,737
Karma: 26785684
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Samsung Galaxy Tab S8 Ultra
One way could be to convert the ePub to text or rtf and then back to ePub. Not much left of formatting after that, I would imagine. But not headings either. Add some minimal formatting in Sigil after that, like chapter headings.
Adoby is offline   Reply With Quote
Old 08-04-2013, 01:00 PM   #22
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@Adoby
Converting to TXT deletes all semantics like Headers, emphasized text, ordered lists etc.

For an analysis of dispensable elements, classes, ids, inline-styles you need a tool, which lists all of them and allows to dispense them with "a click". Without dispensing the content of these elements inside the tags.
ibu is offline   Reply With Quote
Old 08-04-2013, 01:22 PM   #23
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,936
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
While neither a Elegant nor a streamlined codewise solution:
Simply make the style empty (or comment it out).
Code:
.foo { }
.bar ( /* Display: Block; font-size: 36pt; */}
Results is a plain, default rendering
theducks is offline   Reply With Quote
Old 08-04-2013, 01:34 PM   #24
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@theducks

I know how to edit CSS

But indeed I'm interested in a "normalization of epub code" with as less effort as possible (therefor I asked for heuristics and scripts which help cleaning dirty code) and as much clarity in the code as possible as well.

Little question:
Does anyone of you has tried to use an epub of a typical ebook in form of a single html file inside the container (instead of splitted HTML files)?
Can Kobo Glo digest it?
ibu is offline   Reply With Quote
Old 08-04-2013, 01:36 PM   #25
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,366
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
@ibu: Why don;t you try and let people know?
PeterT is offline   Reply With Quote
Old 08-04-2013, 01:47 PM   #26
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@PeterT
Because I'm completly new to eReaders and ePubs.
Without experiences it's hard to estimate the result of experiments.

That's why I ask here

And: I didn't figure out how to merge multiple HTML files in sigil. I cannot mark more than one file in the book browser.
http://web.sigil.googlecode.com/git/...d_merging.html

Last edited by ibu; 08-04-2013 at 01:52 PM.
ibu is offline   Reply With Quote
Old 08-04-2013, 01:58 PM   #27
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,366
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Just highlight all (x)html files in the book browser view on the left hand side, right click them and select merge!

Of course, normally you would want to ensure all the files used the same style sheet before starting, but I sense you want to remove all styles in any case, so this should not be much of a concern.
PeterT is offline   Reply With Quote
Old 08-04-2013, 01:59 PM   #28
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,936
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
What version of Sigil? 7.x on windows does not have that problem.

Marking is the standard keyboard way for multiple file selection. (Drag selection does not function)
Select the first
Then hold the shiftkey and select the last

or
hold the control key and click each


then
Ctrl-M for Merge

Huge sections and device performance suffers, even if it does not choke.

Many older devices have a ~200K limit before they choke.
theducks is offline   Reply With Quote
Old 08-04-2013, 02:58 PM   #29
ibu
Addict
ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.ibu can eat soup with a fork.
 
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
@PeterL and theducks

Shame on me.
My version of Sigil was to old.
Sorry, please.

In the 0.7.3 I can highlight multiple files.
Works fine with the normal "chapter html files".


Now I have figure out, how to merge even files like cover.xhtml, title.xhtml etc. properly with the "chapter files".

Whow, Sigil is a really powerful editor. A lot to discover.
ibu is offline   Reply With Quote
Old 08-04-2013, 03:04 PM   #30
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,936
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by ibu View Post
@PeterL and theducks

Shame on me.
My version of Sigil was to old.
Sorry, please.

In the 0.7.3 I can highlight multiple files.
Works fine with the normal "chapter html files".


Now I have figure out, how to merge even files like cover.xhtml, title.xhtml etc. properly with the "chapter files".

Whow, Sigil is a really powerful editor. A lot to discover.
You should be able to merge any file in the Text section.

That said: Beware
Not all files use the same stylesheets (or any. Cover being one.)
Note: Sigil (HTML)TOC has its own stylesheet and depends on the semantics being set
Which would be the same issue with Cover. semantics (sets the guide) are at the file level. KISS keep them Simple and Separate
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading some fields from filename and others from file metadata Daniel_321 Calibre 1 11-25-2012 07:14 AM
Batch store meta-tag data in epub TPFKAS Conversion 9 12-07-2011 08:28 AM
ePub meta data brudigia ePub 4 07-26-2010 12:58 PM
Any command line to edit epub meta data? bthoven Calibre 1 03-25-2010 07:26 AM
Any command line to edit epub meta data? bthoven ePub 2 03-25-2010 04:15 AM


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


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