Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2017, 01:26 PM   #1
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 68
Karma: 10
Join Date: May 2015
Device: Kindle Fire 7 (7G), Kindle PW (2G), Kindle Scribe
Edit raw tag mapper rules?

Is there any way to edit raw tag mapper rules, e.g. a tweak that would expose saved rulesets as plaintext so that I could edit them and then reload them?

Related: part of the motivation behind this is that the UI appears to truncate the rule summary in the main Edit Tag Mapper Rules window regardless of how wide the window is, so the only way to see the details of a long rule appears to be to open the rule. Is that something that can be configured? Similarly, at least w/ 3.4 on recent versions of OSX, the Edit Tag Mapper Rules window has a *lot* of unnecessary whitespace padding around each of the rule summaries finding the right rule (I have a lot of them) requires a lot of scrolling, and which also makes the workaround for the "long rules get truncated in UI" issue of just splitting rules up less palatable. (See attached)
Attached Thumbnails
Click image for larger version

Name:	screenshot israelite 2017-07-30 at 12.24.25.png
Views:	152
Size:	37.4 KB
ID:	158161  
sweth is offline   Reply With Quote
Old 07-30-2017, 03:02 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by sweth View Post
Is there any way to edit raw tag mapper rules, e.g. a tweak that would expose saved rulesets as plaintext so that I could edit them and then reload them?

Related: part of the motivation behind this is that the UI appears to truncate the rule summary in the main Edit Tag Mapper Rules window regardless of how wide the window is, so the only way to see the details of a long rule appears to be to open the rule. Is that something that can be configured? Similarly, at least w/ 3.4 on recent versions of OSX, the Edit Tag Mapper Rules window has a *lot* of unnecessary whitespace padding around each of the rule summaries finding the right rule (I have a lot of them) requires a lot of scrolling, and which also makes the workaround for the "long rules get truncated in UI" issue of just splitting rules up less palatable. (See attached)
It is GUI.JSON in your configuration folder.
(mine)
Code:
 "tag_map_on_add_rules": [
    {
      "replace": "", 
      "match_type": "one_of", 
      "action": "remove", 
      "query": "General,Fiction,Literature"
    }
  ],
As always: Calibre must be not running, MAKE A file BACKUP, use extreme care
theducks is offline   Reply With Quote
Advert
Old 07-30-2017, 03:52 PM   #3
sweth
Connoisseur
sweth began at the beginning.
 
Posts: 68
Karma: 10
Join Date: May 2015
Device: Kindle Fire 7 (7G), Kindle PW (2G), Kindle Scribe
Hmm... it isn't in gui.json for me, but that led me to do some digging and I did find the above config in metadata_sources/global.json . Not sure why it would be in a different location, but I'll play with that file and hopefully it functions the same. Thanks!
sweth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
About Tag Mapper mariaclaudia Calibre 5 07-05-2016 09:46 AM
Tag Mapper 'Contains' Issue blake98 Calibre 7 07-04-2016 09:25 PM
Tag Mapper: Regular Expressions, need help BookFest Calibre 2 04-17-2016 09:47 AM
Help: Tag Mapper and RegExpressions jecilop Library Management 17 04-14-2016 10:41 PM
Bug in Tag Mapper elricks Calibre 1 01-09-2016 04:04 AM


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


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