Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2011, 04:17 PM   #46
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by citac View Post
Unfortunately it doesn't [S&R the head tag in html files]
I never was really sure why you wanted calibre to correct the head tag for you. If you read the html file, you don't see the head tag. If you convert to some other format, it gets stripped and you still don't see it.
Starson17 is offline   Reply With Quote
Old 10-07-2011, 07:53 PM   #47
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
Because it shows up in the cover, and when I open my file in CoolReader, there's the incorrect author and it drives me bonkers.

When I convert the file to epub, the first line of the cover generated by calibre is the title, the second line is the author. That second line contains what's written in the head tag, so calibre must read it in order to create the cover. What it doesn't do is search and replace it with the correct author.

So I have to correct the head tag; at this point it doesn't matter whether it's via calibre or another program. I cannot leave it as is just because when I read the html file I don't see it. It causes something to happen, and that something then results in incorrect information. Am I making myself clear?

(Plus it just plan bothers me and my OCD tendencies when something is not correct. I am working around it at the moment by making calibre read metadata from file names instead of html tags, which is why I'm trying to find a naming scheme which would work both for fics that belong to a series and those that don't.)

Last edited by citac; 10-07-2011 at 08:12 PM. Reason: additional explanation
citac is offline   Reply With Quote
Advert
Old 10-07-2011, 08:25 PM   #48
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by citac View Post
When I convert the file to epub, the first line of the cover generated by calibre is the title, the second line is the author. That second line contains what's written in the head tag, so calibre must read it in order to create the cover.
The title and author are generated from the Title and Author fields of calibre's library view.

You might want to check out the Generate Cover Plugin.
DoctorOhh is offline   Reply With Quote
Old 10-07-2011, 08:33 PM   #49
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
Quote:
Originally Posted by dwanthny View Post
The title and author are generated from the Title and Author fields of calibre's library view.

You might want to check out the Generate Cover Plugin.
I will, thank you.

Look, while I still had calibre read metadata from file, the cover would be generated with the incorrect author even though I had entered the correct author in the proper field in Edit metadata. It is really late here now, and tomorrow I will switch it back to reading metadata from files, repeat the conversion and check the results.
citac is offline   Reply With Quote
Old 10-08-2011, 08:33 AM   #50
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
Here are the screenshots I made after I switched to collect metadata from file instead of title.


The first one is the screenshot of the head tags of the original file before import.



The second one is after import before conversion



The third one is bulk convert search and replace settings



The fourth one is after conversion to epub



The fifth is the cover of the epub



The sixth is the head tag of the html I extracted from the zip



The seventh is epub viewed in Sigil,



which shows that the head tag was rearranged and the correct name of the author inserted, so why does the cover still show the incorrect author? Where is that information stored and how can I get rid of it/correct it? Do you understand what I want to do?
citac is offline   Reply With Quote
Advert
Old 10-08-2011, 08:41 AM   #51
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
And can someone please explain to me why is each and every paragraph styled? What is it with all these calibre classes? Isn't it enough to just set one style for <p> in the css and have it apply to all the paragraphs in a text? I am far from an expert on css, but isn't that a bit redundant??
citac is offline   Reply With Quote
Old 10-08-2011, 10:24 AM   #52
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by citac View Post
which shows that the head tag was rearranged and the correct name of the author inserted, so why does the cover still show the incorrect author? Where is that information stored and how can I get rid of it/correct it? Do you understand what I want to do?
This is all as expected. The metadata on any book inside the library is not updated unless a conversion happens, so when you converted your html to epub the new epub used the metadata you had updated in the library view. The only other time metadata is updated (at least for mobi and epub) is upon export from the library, using Save to disk, Send to device, Connect to folder or the Content server.

The new epub also uses whatever cover you have set at the time of conversion. On my system the kind of cover you had is not auto-generated when you add the html to the library, you actually have to click on the generate cover button in the edit metadata window. When converting the html to epub make you you correct the cover first. Cover management is up to the user, calibre just applies the cover you give it.

Quote:
Originally Posted by citac View Post
And can someone please explain to me why is each and every paragraph styled? What is it with all these calibre classes? Isn't it enough to just set one style for <p> in the css and have it apply to all the paragraphs in a text? I am far from an expert on css, but isn't that a bit redundant??
If the original document had one style for <p> tags then calibre will assign the same class to every paragraph. If the original document had varying styles for different paragraphs then that too is reflected in the outputted calibre classes.

Not a technical answer, but I'm sure someone with specific knowledge will give you a more thorough answer shortly.
DoctorOhh is offline   Reply With Quote
Old 10-08-2011, 03:53 PM   #53
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
But I didn't click on the Generate cover button, even though I have the plugin installed. I converted the files to epub, and when I opened the epub, it showed me that cover. Look:



I did not apply cover after importing the original file to the library.

Also, I just checked the original file: there's absolutely no paragraph styles. Just <p>Some text</p> and that's it.

I just sent that one particular book to disk, and when I open the epub in the internal vievwer, it still showed me the same cover.

A question: if I chose Send only EPUB to disk, why is there an opf file with it? What is its purpose? Can I delete it if I don't want it on my reader?

Last edited by citac; 10-08-2011 at 04:03 PM. Reason: additional information
citac is offline   Reply With Quote
Old 10-08-2011, 03:56 PM   #54
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
Another question: should I just forget about having calibre read metadata from file and keep it reading it from the title? Because if I'm having these problems now, what's gonna happen when I start importing my old txt files from 2004? They have no metadata inside the file, no html tags for calibre to use.
citac is offline   Reply With Quote
Old 10-08-2011, 04:44 PM   #55
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: 29,817
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:
Originally Posted by citac View Post
But I didn't click on the Generate cover button, even though I have the plugin installed. I converted the files to epub, and when I opened the epub, it showed me that cover. Look:



I did not apply cover after importing the original file to the library.

Also, I just checked the original file: there's absolutely no paragraph styles. Just <p>Some text</p> and that's it.

I just sent that one particular book to disk, and when I open the epub in the internal vievwer, it still showed me the same cover.

A question: if I chose Send only EPUB to disk, why is there an opf file with it? What is its purpose? Can I delete it if I don't want it on my reader?
Generate cover makes one for the book browser (to be used instead in your PIC). Calibre will make a cover IN THE BOOK if one is not available. At least that is my observation.
Since the cover is now there, Calibre will not update it.
You might try converting again, with Ignore first image ticked.
theducks is offline   Reply With Quote
Old 10-08-2011, 05:49 PM   #56
citac
Fanatic
citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.citac ought to be getting tired of karma fortunes by now.
 
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
Quote:
Originally Posted by theducks View Post
Generate cover makes one for the book browser (to be used instead in your PIC). Calibre will make a cover IN THE BOOK if one is not available. At least that is my observation.
Since the cover is now there, Calibre will not update it.
You might try converting again, with Ignore first image ticked.
(Is there a "pulls hair" emoticon?) It did not work. The cover is still there, with programmer's name instead of author's.

This is really annoying. I don't understand why it won't correct the author. I just went and extracted the contents of the epub, and looked inside the html files where the meta information in the head tag is corrected. Yet even though that's true, calibre still creates a cover containing wrong data. I don't understand what I need to do to make it stop.
citac is offline   Reply With Quote
Old 10-08-2011, 06:21 PM   #57
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,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
I see your problem and I should have paid closer attention to your images in sequence previously. You are doing a search and replace to update the author name in the header, then you open the epub and look at the header to prove it is there. The problem is what you show in the ePub has nothing to do with metadata in a ePub. Metadata in a ePub is contained in the content.opf file.

The whole search and replace step your doing is a waste of time. You need to update the author's name in the library view. This field is used when creating the metadata and your cover in your ePub.

Quote:
Originally Posted by citac View Post
I just sent that one particular book to disk, and when I open the epub in the internal vievwer, it still showed me the same cover.
This cover is only generated during a conversion, see epub output during conversion. Save to disk etc... will update the metadata and only update the cover (IE. replace a cover in the book with a new one you add/show to calibre's library view) when a properly set cover already exists in the epub.

It has literally been years since I had calibre generate a cover during conversion to epub so I forgot about this feature.

Quote:
Originally Posted by citac View Post
A question: if I chose Send only EPUB to disk, why is there an opf file with it? What is its purpose? Can I delete it if I don't want it on my reader?
You can delete that file and avoid sending it by deselecting the option to Save metadata in opf file under Preferences - Saving books to disk. While in the area uncheck save cover separately.

Is there a reason you didn't use Send to device or Connect to folder to send books to your reader?

Quote:
Originally Posted by citac View Post
Another question: should I just forget about having calibre read metadata from file and keep it reading it from the title? Because if I'm having these problems now, what's gonna happen when I start importing my old txt files from 2004? They have no metadata inside the file, no html tags for calibre to use.
If you are adding text then you should not read metadata from file on adding books read from filename instead.

Quote:
Originally Posted by citac View Post
This is really annoying. I don't understand why it won't correct the author. I just went and extracted the contents of the epub, and looked inside the html files where the meta information in the head tag is corrected. Yet even though that's true, calibre still creates a cover containing wrong data. I don't understand what I need to do to make it stop.
Again I apologize for not catching this sooner but you are jumping through hoops that aren't accomplishing anything. The metadata is created in the epub via the fields in the calibre library and are stored in the content.opf file in the epub. In Sigil use F8 to open the metadata editor to view the metadata in the epub.

Last edited by DoctorOhh; 10-08-2011 at 06:29 PM.
DoctorOhh is offline   Reply With Quote
Old 10-08-2011, 06:36 PM   #58
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: 29,817
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:
Originally Posted by citac View Post
(Is there a "pulls hair" emoticon?)
There is
theducks is offline   Reply With Quote
Old 10-09-2011, 05:44 AM   #59
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
There is a checkbox for no default cover under preferences output options epub.

To remove cover from epub I use tweak epub as the remove first image hasn't worked for me for a long time unless you are putting in a new image. Used to work in version 6xx.

select book
hit t
explode epub
delete cover.jpg or cover1.jpg
delete titlepage.xhtml
preview epub
If satisfied with result rebuild epub

Takes under a minute

Helen
speakingtohe is offline   Reply With Quote
Old 10-09-2011, 05:50 AM   #60
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Quote:
A question: if I chose Send only EPUB to disk, why is there an opf file with it? What is its purpose? Can I delete it if I don't want it on my reader?
There is a checkbox in the saving books to disk preferences that decides whether to send the cover and opf files when saving to disk. Just uncheck it and you won't have to delete.

Helen
speakingtohe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing and converting .azw to .mobi Karin Spaink Amazon Kindle 5 08-21-2012 11:39 PM
Importing / Converting DOCX files fan of kovid Conversion 13 03-12-2011 07:47 PM
HTML importing problem PaladinBL Sigil 13 03-16-2010 05:03 PM
Importing HTML Files Shadowlane Calibre 1 12-19-2009 03:04 PM
Looking for Advice with an HTML Importing Problem deanstow Calibre 2 10-03-2009 05:14 PM


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


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