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-25-2016, 06:17 PM   #1
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 492
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
Catalog generation with Word Count in Description

I am trying to create catalogs that will include word count appended to the description. I see that there are options for custom columns to be added to the description from the catalog generation dialog boxes, but my column for "word count" as generated by the "count pages" plugin is not an accepted option (? maybe it's because it's not a text column ?).

Is there any easy way to get this info added to my catalog descriptions? I tried a search but could not find a solution that would apply to my case. If someone has already answered this or figured it out, can you please direct me to the resource needed or give any advice. Many thanks for your help.
slantybard is offline   Reply With Quote
Old 07-25-2016, 07:09 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,057
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Lightbulb

Quote:
Originally Posted by slantybard View Post
I am trying to create catalogs that will include word count appended to the description. I see that there are options for custom columns to be added to the description from the catalog generation dialog boxes, but my column for "word count" as generated by the "count pages" plugin is not an accepted option (? maybe it's because it's not a text column ?).

Is there any easy way to get this info added to my catalog descriptions? I tried a search but could not find a solution that would apply to my case. If someone has already answered this or figured it out, can you please direct me to the resource needed or give any advice. Many thanks for your help.
Bulk Mode Search and replace
Search #pages (or whatever) : (\d+)
Replace Comments APPEND MODE <any words you want> \1
theducks is offline   Reply With Quote
Old 07-25-2016, 07:50 PM   #3
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 492
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
Quote:
Originally Posted by theducks View Post
Bulk Mode Search and replace
Search #pages (or whatever) : (\d+)
Replace Comments APPEND MODE <any words you want> \1
Thanks, that is a great way to do it! I never thought of just directly adding all word counts to the comments via S&R. I have a follow up question though - is there any way to have the # formatted with commas in the replacement regex (ie, my word count column shows the number as xx,xxx where as the S&R preview shows the number as xxxxx without commas)?

Thanks for your help.
slantybard is offline   Reply With Quote
Old 07-25-2016, 09:28 PM   #4
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,057
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 slantybard View Post
Thanks, that is a great way to do it! I never thought of just directly adding all word counts to the comments via S&R. I have a follow up question though - is there any way to have the # formatted with commas in the replacement regex (ie, my word count column shows the number as xx,xxx where as the S&R preview shows the number as xxxxx without commas)?

Thanks for your help.
I don't know if functions can be used here
theducks is offline   Reply With Quote
Old 07-26-2016, 01:49 PM   #5
slantybard
my parent's oops...
slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.slantybard ought to be getting tired of karma fortunes by now.
 
Posts: 492
Karma: 1477572
Join Date: Feb 2009
Device: Vx->Handera->Clie-> Axim->505->650->KPW/Aura ->L2->iOS/CBW
I have figured out a work around to the comma separated thousands. I am running 2 S&R to do so:

1. search "#wordcount" for
Code:
(\d+)
and then replace with
Code:
<br><br> \1 Words
in "comments" using "append to field" with the "split result" unchecked

2. search "comments" for
Code:
(\d)(?=(\d\d\d)+(?!\d))
and replace with
Code:
\1,
in "comments" using "replace field"

Not elegant, but works.
Attached Thumbnails
Click image for larger version

Name:	screenshot1.png
Views:	156
Size:	155.8 KB
ID:	150492   Click image for larger version

Name:	screenshot2.png
Views:	146
Size:	151.5 KB
ID:	150493  
slantybard is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre catalog: extra description note Sirtel Library Management 5 09-18-2015 02:26 PM
Simple description of exporting bibliography to Excel and Word Kumabjorn Library Management 9 12-21-2013 12:17 AM
Catalog generation fail Gamgee Library Management 3 09-09-2012 06:06 PM
Catalog Generation Error EricBr Library Management 6 07-03-2012 07:02 PM


All times are GMT -4. The time now is 08:38 AM.


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