10-07-2011, 04:17 PM | #46 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
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.
|
10-07-2011, 07:53 PM | #47 |
Fanatic
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 |
Advert | |
|
10-07-2011, 08:25 PM | #48 | |
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
You might want to check out the Generate Cover Plugin. |
|
10-07-2011, 08:33 PM | #49 | |
Fanatic
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
|
Quote:
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. |
|
10-08-2011, 08:33 AM | #50 |
Fanatic
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? |
Advert | |
|
10-08-2011, 08:41 AM | #51 |
Fanatic
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??
|
10-08-2011, 10:24 AM | #52 | ||
US Navy, Retired
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
|
Quote:
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:
Not a technical answer, but I'm sure someone with specific knowledge will give you a more thorough answer shortly. |
||
10-08-2011, 03:53 PM | #53 |
Fanatic
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 |
10-08-2011, 03:56 PM | #54 |
Fanatic
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.
|
10-08-2011, 04:44 PM | #55 | |
Well trained by Cats
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:
Since the cover is now there, Calibre will not update it. You might try converting again, with Ignore first image ticked. |
|
10-08-2011, 05:49 PM | #56 | |
Fanatic
Posts: 550
Karma: 1020204
Join Date: Sep 2008
Location: Bosnia and Herzegovina
Device: Lenovo Yoga Tab 2 (Android)
|
Quote:
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. |
|
10-08-2011, 06:21 PM | #57 | ||||
US Navy, Retired
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:
It has literally been years since I had calibre generate a cover during conversion to epub so I forgot about this feature. Quote:
Is there a reason you didn't use Send to device or Connect to folder to send books to your reader? Quote:
Quote:
Last edited by DoctorOhh; 10-08-2011 at 06:29 PM. |
||||
10-08-2011, 06:36 PM | #58 |
Well trained by Cats
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
|
|
10-09-2011, 05:44 AM | #59 |
Wizard
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 |
10-09-2011, 05:50 AM | #60 | |
Wizard
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
Quote:
Helen |
|
|
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 |