Enhancement - allow character match in rules

Bug #1728464 reported by Robin on 2017-10-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Would like to have the option for character match in rules. Being able to associate a rule to a specific character would be helpful. For example, if a book title contains a "(" in it, this would indicate that there is series info in the title and may need editing. Being able to associate a rule for column coloring would save time from searching out the titles, and keep track if they should change. It requires less effort than a search and does not require the user to "remember" to search. This could also go for other areas requiring details on non-regular-expression data.

An additional "contains" or "does not contain" in the drop down for creating rules would be great. Not sure if this is possible, but really would like it.

I'm not sure what you are asking for. A character is justa string of
length one. WHat's preventing you from using the existing contains rule?

 status invalid

Changed in calibre:
status: New → Invalid

I probably haven't figured out the right way to set the rule, but I wanted
to be able to say if the title column contains a

"(" then to color it. The following attachment shows the results of this
request.

I know that if I do a proper search then it's possible, I even have a VL
set for this, but I wanted something more passive that doesn't require me
to set up the VL, or do a specific search.

This made me believe that I needed to enter something else. I did enter
"is" but it didn't work on a test column. I am sure there is no way of
doing this because it would already been there if it was.

On Sun, Oct 29, 2017 at 7:12 PM, Kovid Goyal <email address hidden>
wrote:

> I'm not sure what you are asking for. A character is justa string of
> length one. WHat's preventing you from using the existing contains rule?
>
> status invalid
>
> ** Changed in: calibre
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1728464
>
> Title:
> Enhancement - allow character match in rules
>
> Status in calibre:
> Invalid
>
> Bug description:
> Would like to have the option for character match in rules. Being
> able to associate a rule to a specific character would be helpful.
> For example, if a book title contains a "(" in it, this would indicate
> that there is series info in the title and may need editing. Being
> able to associate a rule for column coloring would save time from
> searching out the titles, and keep track if they should change. It
> requires less effort than a search and does not require the user to
> "remember" to search. This could also go for other areas requiring
> details on non-regular-expression data.
>
> An additional "contains" or "does not contain" in the drop down for
> creating rules would be great. Not sure if this is possible, but
> really would like it.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/calibre/+bug/1728464/+subscriptions
>

The correct regular expression syntax to match a bracket is [(]

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers