Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-25-2021, 02:15 PM   #1576
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 26
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, 08:04 PM   #1577
BetterRed
null operator
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: 17,614
Karma: 20473671
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 offline   Reply With Quote
Old 09-26-2021, 07:45 AM   #1578
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 26
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 12:59 PM.
motherat is offline   Reply With Quote
Old 09-26-2021, 07:47 PM   #1579
BetterRed
null operator
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: 17,614
Karma: 20473671
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 offline   Reply With Quote
Old 09-27-2021, 06:18 PM   #1580
motherat
Enthusiast
motherat began at the beginning.
 
Posts: 26
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, 03:31 PM   #1581
silatiw
Junior Member
silatiw began at the beginning.
 
Posts: 5
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, 11: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: 22,948
Karma: 41943047
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 online now   Reply With Quote
Old 10-03-2021, 09:45 AM   #1583
silatiw
Junior Member
silatiw began at the beginning.
 
Posts: 5
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, 06: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: 23
Karma: 2587194
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, 07:15 PM   #1585
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 9,994
Karma: 3559369
Join Date: Jan 2010
Location: UK
Device: Reader
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, 08: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: 23
Karma: 2587194
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, 09: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: 22,948
Karma: 41943047
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 online now   Reply With Quote
Old 11-04-2021, 04: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: 23
Karma: 2587194
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.
Attached Files
File Type: zip Modify ePub Help.zip (7.4 KB, 18 views)
DyckBook is offline   Reply With Quote
Old 11-04-2021, 04:30 PM   #1589
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 9,994
Karma: 3559369
Join Date: Jan 2010
Location: UK
Device: Reader
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.
Attached Files
File Type: zip Modify ePub_1_6_4.zip (78.3 KB, 33 views)
chaley is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Open With kiwidude Plugins 386 11-24-2021 01:38 AM
[GUI Plugin] Quality Check kiwidude Plugins 1093 09-27-2021 12:19 PM
[GUI Plugin] Manage Series kiwidude Plugins 156 09-30-2020 12:17 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 06:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 08:33 PM.


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