Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-25-2021, 01:15 PM   #1576
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
Greetings,

thank you, everyone who's (been) involved, for this excellent plugin. :-)

I have a (quick?) question concerning the two available options for metadata: "Update metadata" does what it says and updates various relevant values, but it also replaces all dc:subject entries with my own custom tags. Now, "Remove non-dc-metadata" is, as I understand it, meant to remove a bunch of extra metadata and strip the whole thing down to a clean and somewhat bare-bones opf instead. Shouldn't it then also remove custom tags?
motherat is offline   Reply With Quote
Old 09-25-2021, 07:04 PM   #1577
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: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In calibre the 'tags' column maps to dc:subjects, the 'comments' maps to dc:description etc.
BetterRed is online now   Reply With Quote
Old 09-26-2021, 06:45 AM   #1578
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
Quote:
Originally Posted by BetterRed View Post
In calibre the 'tags' column maps to dc:subjects, the 'comments' maps to dc:description etc.
Yes. That's not what I'm asking, exactly, though I suppose there's no real way to circumvent what I've described above without putting one's own tags into a custom column.

One more question:

After having removed non-dc metadata with the plugin, opfs look as expected inside Calibre. However, when I open the opf of a modified and freshly exported epub with an external text editor, I'm still seeing a whole bunch of Calibre-specific metadata. For example, there's meta name="calibre:title_sort", meta name="calibre:user_categories", meta name="calibre:user_metadata:xyz", etc.

Is this working as intended? Or am I doing something wrong, maybe? ("Update metadata" is unchecked.)

Edit: To answer my own question, I think I found the culprit. In Calibre's "Saving books to disk" options, there's a checkbox for updating metadata on export. Once I unchecked this, opfs started looking quite a bit cleaner.

Last edited by motherat; 09-26-2021 at 11:59 AM.
motherat is offline   Reply With Quote
Old 09-26-2021, 06:47 PM   #1579
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: 20,565
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW: I have a #admin_tags/Admin Tags tag-like custom column.

I'm an OCD minimalist, so after running Modify ePub I strip the the subjects, description and most identifiers from the ePub opf either 'by hand' or with Sigil's Metadata Edit tool.

BR
BetterRed is online now   Reply With Quote
Old 09-27-2021, 05:18 PM   #1580
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2020
Device: Onyx Boox Poke2
Quote:
Originally Posted by BetterRed View Post
FWIW: I have a #admin_tags/Admin Tags tag-like custom column.

I'm an OCD minimalist, so after running Modify ePub I strip the the subjects, description and most identifiers from the ePub opf either 'by hand' or with Sigil's Metadata Edit tool.

BR
Thank you for the advice; using a custom column for tags does indeed seem to be the cleanest option here. Like you, I'd prefer to also leave out the description and some other metadata, but I'm not fussed enough to do it by hand -- yet.

Small observation: Apparently, the custom column cannot simply be named "Tags", as that heading's already used by the default column. But using Cyrillic letters as a replacement works and doesn't seem to bother Calibre. I've named my column "Тags", with a Cyrillic Т, and so far, nothing's exploded.
motherat is offline   Reply With Quote
Old 10-02-2021, 02:31 PM   #1581
silatiw
Member
silatiw began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2021
Location: Poland
Device: PocketBook Touch 622
KiwiDude, I started using your plug. Works very well.
I wanted to translate Modify ePub into my native language. There is a fr.po file (empty BTW) in the / translations / directory and I used it because default.po is missing. However, Modify ePub doesn't use my .mo file. I did it on Poedit.
When I translated the other plugins everything was fine.
silatiw is offline   Reply With Quote
Old 10-02-2021, 10:30 PM   #1582
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by silatiw View Post
KiwiDude, I started using your plug. Works very well.
I wanted to translate Modify ePub into my native language. There is a fr.po file (empty BTW) in the / translations / directory and I used it because default.po is missing. However, Modify ePub doesn't use my .mo file. I did it on Poedit.
When I translated the other plugins everything was fine.
Looking at the plugin code, the translation work has only been partly done. Not all displayed strings are translatable. And, the plugin does not actually load the translations. Which is why what you have done is not working.
davidfor is offline   Reply With Quote
Old 10-03-2021, 08:45 AM   #1583
silatiw
Member
silatiw began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Oct 2021
Location: Poland
Device: PocketBook Touch 622
Thank you for the information. I thought that if there is a folder / translations / and there is a French .po and .mo file in it, I would be able to translate the plugin into my language without any problems.
silatiw is offline   Reply With Quote
Old 11-03-2021, 05:45 PM   #1584
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 33
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
@kiwidude Got a question about using the Modify ePub plugin.

I have version 1.6.3 installed. There is an option under HTML & Styles to append extra CSS. However, there doesn't seem to be any way to provide the extra CSS. Checking this option and clicking OK returns a message box that "Modify ePub failed". "No files were updated".

Curiously, opening the help file from within the plugin shows help for all the options EXCEPT append extra CSS.

How do I provide the extra CSS to include and how do I indicate which CSS file should be modified?
DyckBook is offline   Reply With Quote
Old 11-03-2021, 06:15 PM   #1585
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DyckBook View Post
@kiwidude Got a question about using the Modify ePub plugin.

I have version 1.6.3 installed. There is an option under HTML & Styles to append extra CSS. However, there doesn't seem to be any way to provide the extra CSS. Checking this option and clicking OK returns a message box that "Modify ePub failed". "No files were updated".

Curiously, opening the help file from within the plugin shows help for all the options EXCEPT append extra CSS.

How do I provide the extra CSS to include and how do I indicate which CSS file should be modified?
Looking at the code, modify_epub adds the "Extra CSS" found in Preferences / Common options / Look & feel / Styling tab. It appears that the function adds this CSS to each html file in the ebook. For me, beyond this is speculation.

See posts
https://www.mobileread.com/forums/sh...ss#post2522592

https://www.mobileread.com/forums/sh...ss#post2743006

And a few other posts found by searching for "extra CSS" (without the quotes) in this thread.
chaley is offline   Reply With Quote
Old 11-03-2021, 07:19 PM   #1586
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 33
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
@Chaley Thanks for the quick reply.

As usual I find the answer--not after looking for hours everywhere I can think of--but immediately after posting a request for help. I found the answer (exactly as you suggested) by reading the changelog.txt for the plugin. Thanks for your help.

Don't know how to get in touch with the author, other than this thread, but perhaps the help file could be updated with this information.
DyckBook is offline   Reply With Quote
Old 11-03-2021, 08:53 PM   #1587
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Unfortunately, @kiwidude is not around here any more. The maintenance of the plugin is done by others as they have time and interest. The tooltip for the option does tell you what is happening, but, it would be good to have the help updated. If you want to fix it, we can arrange for the update to be released.
davidfor is offline   Reply With Quote
Old 11-04-2021, 03:21 PM   #1588
DyckBook
Morlock
DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.DyckBook ought to be getting tired of karma fortunes by now.
 
DyckBook's Avatar
 
Posts: 33
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
Modify ePub: Append extra CSS

Quote:
Originally Posted by davidfor View Post
If you want to fix it, we can arrange for the update to be released.
I've modified the help file. In addition to adding a help reference, I cleaned up some special characters that weren't displaying properly for me.

Last edited by BetterRed; 01-20-2022 at 02:13 AM. Reason: remove attachment (changes are now the first post attachment)
DyckBook is offline   Reply With Quote
Old 11-04-2021, 03:30 PM   #1589
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by DyckBook View Post
I've modified the help file. In addition to adding a help reference, I cleaned up some special characters that weren't displaying properly for me.
Modify Epub version 1.6.4 beta. The only change to include the new help file.

to @DyckBook.

EDIT: Changes released in version 1.7.0

Last edited by chaley; 01-20-2022 at 04:26 AM. Reason: Changes released w/V1.7.0
chaley is offline   Reply With Quote
Old 01-08-2022, 10:09 AM   #1590
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,738
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Beta supporting the upcoming calibre 6 w/Qt6

Beta supporting the upcoming calibre 6 w/Qt6. It should still be as compatible as before with previous calibre releases.

EDIT: Released

Last edited by chaley; 01-19-2022 at 01:29 PM. Reason: Version released.
chaley is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1184 04-17-2024 06:17 PM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 08:39 AM
[GUI Plugin] Manage Series kiwidude Plugins 166 02-13-2024 11:31 AM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 06:13 AM.


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