|  07-13-2022, 03:55 PM | #7306 | 
| Wizard            Posts: 1,190 Karma: 32370 Join Date: Jan 2007 Location: Anchorage, AK Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2 | 
			
			Hello,  I've upgraded my Calibre to the new 6.0 version. After that when I downloaded a new fan fiction story, I noticed that my "output_css:" code no longer accepted "@font-face" information. When I have a @font-face line of code "fanficfare" disregards all my output_css settings. When I remove the @font-face block of code, the rest of the css is used to format the newly downloaded story. Here is the output_css: I used in my personal.ini settings: Code: @font-face {font-family: "Times New Roman";  font-weight: normal;  font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: bold; font-style: normal;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Bold.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: normal; font-style: italic;
src:url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Italic.ttf);}
@font-face {font-family: "Times New Roman"; font-weight: bold; font-style: italic;
src: url(res:///ebook/fonts/../../mnt/sdcard/fonts/Times-New-Roman-Bold-Italic.ttf);}
body {font-family: "Times New Roman", serif; font-size: 1em; background-color: #ffffff ;
text-align: justify; margin: 2%; -epub-hyphens: none; adobe-hyphenate: none;
-webkit-hyphens: none; -moz-hyphens: none; hyphens: none;}
p {font-family: "Times New Roman", serif; margin-top: 0pt; margin-bottom: 0pt; text-indent: 15pt;}
h1, h2, h3, h4, h5, h6 { text-align: center; padding-bottom: 10pt;}
.CI {
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}
.center {text-align: center;}
.cover {text-align: center;}
.full {width: 100%; }
.quarter {width: 25%; }
.smcap {font-variant: small-caps;}
.u {text-decoration: underline;}
.bold {font-weight: bold;}Last edited by Amalthia; 07-13-2022 at 05:23 PM. Reason: change quote tag to code tag | 
|   |   | 
|  07-13-2022, 05:13 PM | #7307 | 
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			When posting personal.ini settings, please use [code] tags instead of [quote] tags.  The spacing matters and isn't preserved with quote. Can you post an epub that displays the problem? And one that worked correctly in Cal5? (SFW please.) I don't use embedded fonts, so I'm not well setup to test this. UPDATE: You can't be using the settings as posted directly in personal.ini, because the % signs aren't doubled to escape them. Are you using output_css_filelist instead? Because that also makes a difference... UPDATE2: I'm able to put your settings above in personal.ini (once fixed) and have them show up in the epub. Again, I don't have font files handy, so I don't know if they actually work. Last edited by JimmXinu; 07-13-2022 at 05:20 PM. | 
|   |   | 
|  07-13-2022, 05:29 PM | #7308 | |
| Wizard            Posts: 1,190 Karma: 32370 Join Date: Jan 2007 Location: Anchorage, AK Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2 | Quote: 
 I think I've also found out what I was doing wrong. I didn't have a space before the @font-face line of code. This is what I had posted that failed: Code: @font-face Code: @font-face Best Regards, Amalthia | |
|   |   | 
|  07-13-2022, 05:31 PM | #7309 | 
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			"Spacing matters."    | 
|   |   | 
|  07-13-2022, 07:35 PM | #7310 | 
| Enthusiast  Posts: 44 Karma: 10 Join Date: Aug 2019 Device: kindle (various) | 
			
			I am having trouble getting images associated with a story. An example image that is not showing is https://excessive.space/images/dunge...ter%200002.jpg The source story is https://www.royalroad.com/fiction/51893/the-heart-grows | 
|   |   | 
|  07-14-2022, 02:39 AM | #7311 | 
| Zealot            Posts: 135 Karma: 295674 Join Date: Jul 2021 Device: iPhone | 
			
			After updating Calibre to 6.0, my add_to_output_css doesn't work. If I downgrade Calibre back to 5 it works again. I didn't change anything prior to upgrading Calibre. Code: add_to_output_css:
 body { font-family: "Segoe UI Variable Small", "Roboto", sans-serif; text-align: left; }
 .tag-summary-content p { margin: 0 0 0.75em 0; }
 .tag-summary-content a { text-decoration: none; color: white; }
 .tags {
  display: block;
  padding: 0;
  margin: 0.175em 0;
 }
 .tag-label {
  display: block;
  margin: 0;
 }
 dd { margin-left: 0.75em; }
 dl, dt { margin: 0; }
 hr { display: block; height: 1px;
  border: 0; border-top: 1px solid;
  margin: 1em auto; padding: 0; width: 75%%;
 }
 body.fff_titlepage {
  background-color: #980101;
  color: white;
 }
 .fff_titlepage .title h1,
 .fff_titlepage .title h2 {
  font-size: 2.5vmax;
 }
 .fff_titlepage .title h1,
 .fff_titlepage .title h2,
 .fff_titlepage .title a {
  margin: 0;
  color: white;
 }
 .fff_titlepage .title a, .fff_titlepage .series a { text-decoration: none; color: white; }
 .stats { font-size: 2.5vmax; margin-top: 0.5em; }Code: calibre, version 6.0.0
ERROR: Unhandled exception: <b>AttributeError</b>:'QTextCursor' object has no attribute 'Right'
calibre 6.0  embedded-python: True
Windows-10-10.0.22000 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.22000')
Python 3.10.1
Windows: ('10', '10.0.22000', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: FanFicFare (4, 14, 0) && Generate Cover (2, 1, 0) && Job Spy (1, 0, 192)
Traceback (most recent call last):
  File "calibre_plugins.fanficfare_plugin.dialogs", line 1453, in find
  File "calibre_plugins.fanficfare_plugin.dialogs", line 1469, in moveCursor
AttributeError: 'QTextCursor' object has no attribute 'Right' | 
|   |   | 
|  07-14-2022, 12:53 PM | #7312 | 
| Member  Posts: 10 Karma: 10 Join Date: Aug 2012 Device: Kobo touch | 
				
				Issues updating stories on Literotica
			 
			
			Since the last update (or maybe even the one before) there is no prompt for the adult stories if I try to update a series. So the usual Update Existing Fanfic Books starts checking, and ends up with zero updates, because there was no confirmation, as the log says: Story requires confirmation of adult status. The only way to update a story for now is to start it all over again and delete the old one. | 
|   |   | 
|  07-14-2022, 03:28 PM | #7313 | |
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | Quote: 
 | |
|   |   | 
|  07-14-2022, 03:47 PM | #7314 | |||
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			multi-reply Quote: 
 Quote: 
 Quote: 
 I assume you mean you are downloading a series as an anthology. I'll have to go look to see if this is broken or expected. The whole 'are you adult' thing is kind of moot when you're downloading from a site called Literotica. I expect most users to have is_adult:true unless they specifically want to avoid adult content. | |||
|   |   | 
|  07-14-2022, 03:54 PM | #7315 | 
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			New Test Version Posted 2022-07-14 - Remove site: webnovel.com See #843 FYI, I plan to release a point version shortly to address the cal6/qt6 edit search issues. | 
|   |   | 
|  07-14-2022, 11:50 PM | #7316 | |
| Zealot            Posts: 135 Karma: 295674 Join Date: Jul 2021 Device: iPhone | Quote: 
 This did make me realize I should figure out how to hide the Additional Tags line if there aren't any additional tags lol Edit: I forgot about titlepage_entries, it'll change the formatting a little but it's fine. My only problem now is the CSS not rendering properly on Calibre 6 for some reason. Code: add_to_output_css:
 body { font-family: "Segoe UI Variable Small", "Roboto", sans-serif; text-align: left; }
 .tag-summary-content p { margin: 0 0 0.75em 0; }
 .tag-summary-content a { text-decoration: none; color: white; }
 .tags {
  display: block;
  padding: 0;
  margin: 0.175em 0;
 }
 .tag-label {
  display: block;
  margin: 0;
 }
 dd { margin-left: 0.75em; }
 dl, dt { margin: 0; }
 hr { display: block; height: 1px;
  border: 0; border-top: 1px solid;
  margin: 1em auto; padding: 0; width: 75%%;
 }
 body.fff_titlepage {
  background-color: #980101;
  color: white;
 }
 .fff_titlepage .title h1,
 .fff_titlepage .title h2 {
  font-size: 2.5vmax;
 }
 .fff_titlepage .title h1,
 .fff_titlepage .title h2,
 .fff_titlepage .title a {
  margin: 0;
  color: white;
 }
 .fff_titlepage .title a, .fff_titlepage .series a { text-decoration: none; color: white; }
 .stats { font-size: 2.5vmax; margin-top: 0.5em; }
## Items to include in the title page
## Empty metadata entries will *not* appear, unless .SHOW_EMPTY is
## appended.  Eg: titlepage_entries: ..., characters.SHOW_EMPTY,
## ships,... will always display Characters, but only show
## Relationships if there are any.  You can include extra text or HTML
## that will be included as-is in the title page. Eg:
## titlepage_entries: ...,<br />,summary,<br />,...
## All current formats already include title and author.
titlepage_entries:seriesHTML
## metadata ${title}, etc.  Make sure to keep at least one space
## at the start of each line and to escape % to %%.
titlepage_start:<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>${title} by ${author}</title>
 <link href="stylesheet.css" type="text/css" charset="UTF-8" rel="stylesheet"/>
 <meta name="calibre-html-render-data" content='{"size": "A3", "margins": [0, 0, 0, 0]}'/>
 </head>
 <body class="fff_titlepage" style="font-size: 2.2vmax;">
 <div class="title">
 <h1><a href="${storyUrl}">${title}</a> by ${authorHTML}</h1>
 </div>
 <hr/>
 <div>
 <dl class="tags">
## ${id}, ${label}, ${value}
titlepage_entry:
 <dt class="series"><b>${label}:</b> ${value}</dt>
## ${id}, ${label}, ${value}
## Used with entries listed in wide_titlepage_entries, typically description, storyUrl, authorUrl
titlepage_wide_entry:
## When using tables, make these span both columns.
wide_titlepage_entries:
## ${id}, ${value}
## For example, if you've set description_label:
## (that is, nothing)
titlepage_no_title_entry:
## metadata
titlepage_end:
 <dt><b>Fandom:</b> ${category}</dt>
 <dt><b>Rating:</b> ${rating}</dt>
 <dt><b>Warnings:</b> ${warnings}</dt>
 <dt class="tag-label"><b>Relationships:</b></dt><dd class="relationships">${ships}</dd>
 <dt class="tag-label"><b>Characters:</b></dt><dd>${characters}</dd>
 <dt class="tag-label small"><b>Additional Tags:</b></dt><dd>${freeformtags}</dd>
 <dl class="stats">
 <dt><b>Words & Chapters:</b> ${numWords} • ${chapterslashtotal}</dt>
 <dt><b>Published:</b> ${datePublished}</dt>
 <dt><b>Updated:</b> ${dateUpdated}</dt>
 </dl>
 </dl>
 <hr/>
 <div class="tag-summary-content">${description}</div>
 </div>
 </body>
 </html>Last edited by culytera; 07-15-2022 at 02:07 AM. | |
|   |   | 
|  07-15-2022, 01:53 AM | #7317 | 
| Member  Posts: 10 Karma: 10 Join Date: Aug 2012 Device: Kobo touch | |
|   |   | 
|  07-15-2022, 10:01 AM | #7318 | ||
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			multi-reply Quote: 
 Honestly, FFF is only responsible for getting the CSS into the file. Whether it works or not is between you, your CSS and the reader program you use.  If you still think there's something different in FFF in cal5 vs cal6, please post the two epubs(from cal5 & cal6) and I'll dissect them. Quote: 
 The only thing that comes to mind is I vaguely recall some adapters throw the AdultCheckRequired required during chapter update instead of metadata collection. Without knowing the site, I don't know. | ||
|   |   | 
|  07-15-2022, 11:32 AM | #7319 | 
| Plugin Developer            Posts: 7,127 Karma: 5005503 Join Date: Dec 2011 Location: Midwest USA Device: Kobo Clara Colour running KOReader | 
			
			New Version Released Point release for calibre 6 fix. Version 4.14.3 - 2022-07-15 - Update translations. - Remove site: webnovel.com See #843 - Fix for qt6 vs qt5 in Calibre6 and personal.ini search. | 
|   |   | 
|  07-15-2022, 04:20 PM | #7320 | 
| my parent's oops...            Posts: 493 Karma: 1477572 Join Date: Feb 2009 Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW | 
			
			I'm not sure if this has been answered somewhere already, but I was wondering if there is a way to have FFF automatically start a new line/entry after pasting a fanfic url into the download window. This would save me from always having to enter a "return" keystroke after every pasted link when downloading multiple fanfics.
		 | 
|   |   | 
|  | 
| Tags | 
| fanfiction | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 527 | 08-15-2025 01:36 PM | 
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM | 
| [GUI Plugin] Marvin XD | Philantrop | Plugins | 126 | 01-29-2017 12:48 PM | 
| [GUI Plugin] KiNotes | -axel- | Plugins | 0 | 07-14-2013 06:39 PM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |