05-11-2013, 06:14 PM | #1381 | |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
Yeah, that's actually how I test these things when I help out--I add them to the code for test1.com. But I can see how that's inconvenient for others. |
|
05-11-2013, 06:30 PM | #1382 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Thanks. |
|
05-12-2013, 02:43 AM | #1383 |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Now that I've looked at the title page, I've decided to either change how the title page looks or use the Generate cover plugin. However there are problems with both.
I'm not sure how to edit what comes on the title page. Is there a way to reorder how things appear on the page? Also, I have my categories, characters, and ships sorted into big sub categories based on where the fandom is from (Books, TV, Movie). However, I don't care that big category on the title page. Is there a way to do a replace metadata for items on the title page? I'm thinking of something like the search and replace used when you edit bulk metadata. The only problem I have with the Generate Cover plugin is the description or summary section. When I try to add that to my cover, it picks up all of what I believe are html code. In calibre the summary for one story reads: What if Bilbo had been born mute? But when I generate a cover, I get: <blockquote><p>What if Blibo had been born mute?</p> Is there a way to strip out that html code on the description/summary column? Should I ask this question in the generate cover plugin forum? |
05-12-2013, 11:45 AM | #1384 | ||
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
You're well familiar with the search and replace feature--replace_metadata. If you want to have different metadata in calibre and on the title page, you'll have to use (add_to_)extra_valid_entries and include_in_* parameters to create new metadata entries to treat different. You may find it helpful to remember that you can apply the same replacement rule to more than one metadata entry: genre,category=>Humor=>Comedy Quote:
|
||
05-12-2013, 02:06 PM | #1385 | ||||
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Quote:
Code:
extra_valid_entries:tcategory include_in_tcategory:category tcategory=>Book/Comics.=> I also had trouble figuring out how to get it to show up in the title page. I added into the the title page entry/label section: tcategory:Fandom Then I tried to use that under title_page_entries, but the output only gave tcategory before the characters. I haven't used the extra valid entry or the include in parameters very much, so I am very confused as to where to place them and how to get a new valid entry to show on the title page. Quote:
Quote:
|
||||
05-12-2013, 02:13 PM | #1386 | |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
add_to_extra_valid_entries:,tcategory ...(Note 'add_to_' and the comma) Otherwise you have to copy the existing extra_valid_entries from defaults.ini. This will just add to it. tcategory_label:Fandom |
|
05-12-2013, 02:46 PM | #1387 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Code:
add_to_extra_valid_entries:,tcategory include_in_tcategory:category replace_metadata: tcategory=>Book/Comics\.=> tcategory_label:Fandom Also I miswrote in my last post. I had put in 'tcategory_label' before, it was just the add_to that I was missing. I am sorry about asking so many questions all at once. I'm planning on a trip in a couple months and I'm trying to get the stories I take with me corrected so I don't have problems figuring out what to read then. |
|
05-12-2013, 02:49 PM | #1388 | |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
|
|
05-12-2013, 03:04 PM | #1389 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
The code looks like this: Code:
category_label:Category add_to_extra_valid_entries:,tcategory include_in_tcategory:category replace_metadata: tcategory=>Book/Comics\.=> tcategory_label:Fandom titlepage_entries: seriesHTML,tcategory,characters,ships,genre,warnings,status,numChapters,numWords,rating,datePublished,dateUpdated,description,site |
|
05-12-2013, 04:24 PM | #1390 |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
That seems to work fine for me.
Attached is a new version that allows for configurable testing with test1.com story URLs. I put this in my personal.ini: Code:
[test1.com] add_to_extra_valid_entries:,tcategory include_in_tcategory:category replace_metadata: category=>(The Tick|Batman)=>Book/Comics.\1 tcategory=>Book/Comics\.=> titlepage_entries: seriesHTML,tcategory,characters,ships,genre,warnings,status,numChapters,numWords,rating,datePublished,dateUpdated,description,site [teststory:1002] category_list:The Tick, Harry Potter, Batman Category appears to be 'correct' in both calibre tags and titlepage. Here's a basic overview of setting up test stories. It only applies to test1.com sid numbers 1000 and higher. Spoiler:
UPDATE Remove obsolete beta versions Last edited by JimmXinu; 05-26-2013 at 09:02 PM. Reason: Remove obsolete beta versions |
05-12-2013, 04:44 PM | #1391 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
However, am I right in assuming that it would take the original metadata to edit? Because I edit how the different categories look before adding the last sub heading (Books/Comics.) (IE: I convert the many ways AO3 has for labeling Lord of the Rings to LOTR.) As for the test parameters, after looking at the test parameters, I think that's something I could easily do. However, there doesn't seem to be an attached version to your post. Or did I miss it? |
|
05-12-2013, 04:55 PM | #1392 | |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Quote:
My bad, I forgot to attach it. It's attached to that post now. |
|
05-12-2013, 05:33 PM | #1393 | |
Groupie
Posts: 164
Karma: 3100
Join Date: Sep 2011
Device: Kobo Auro H2O, PRS-T1
|
Quote:
Thanks. |
|
05-14-2013, 04:23 AM | #1394 |
Junior Member
Posts: 5
Karma: 10
Join Date: May 2013
Device: Nexus 7
|
Hi! I've been trying to configure my personal.ini, and I'm stuck on how to make it preserve mixed formatting (left, center, and right alignment) rather than force a single type of alignment for sites like FFnet or AO3.
default for the [epub] (spaces not showing here, but it's there)... output_css: body { background-color: #%(background_color)s; text-align: justify; margin: 2%%; adobe-hyphenate: none; } I know if I change it to "text-align: left" or "right" it does affect the text. In an earlier post, I saw someone say they omitted it from their personal.ini to preserve formatting, but when I remove that line, every thing still seems justified in calibre. I'm at a loss as to whether it's something I left in calibre or if I'm still not editing the personal.ini correctly. Edit: OK, I think that person must have meant something else. I suspect formatting is stripped and you only have the option of one type of alignment. Last edited by lyssette; 05-14-2013 at 04:48 AM. |
05-14-2013, 11:29 AM | #1395 |
Plugin Developer
Posts: 6,283
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
@lyssette - You're correct that a lot of style/formatting is stripped away when using FFDL. I'm generally more concerned with consistent output than preserving formatting.
However, if you give me an example story URL (and where to look in it) for the different formatting you want preserved, I'll look into it. |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Resize Cover | kiwidude | Plugins | 95 | 03-16-2024 11:55 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 402 | 03-16-2024 11:44 PM |
[GUI Plugin] Find Duplicates | kiwidude | Plugins | 1096 | 03-16-2024 11:28 PM |
[GUI Plugin] Count Pages | kiwidude | Plugins | 1744 | 03-02-2024 05:39 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |