Welcome, Guest
Python Scripts for ComicRack
  • Page:
  • 1
  • 2

TOPIC: Need some help for sorting with the smart lists

Need some help for sorting with the smart lists 9 months 3 weeks ago #46869

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
I may be wrong, but I think the second rule in the first two screen are not needed (as the regex already take in consideration that option). Also no need to group groups of only one rule :P

The second two are ok, if you put space after "The", "Das", etc... if not it will filter things as "There" or "Dasid"

I also recommend the regex I posted for the two last screens more even than the first ones... (the updated regex, nor my first ones)

For any letter but D and T (for example A): (?i)^(der |die |das |the |)a
For D:(?i)(^(der |die |das |the )d)|(^d(?!er )(?!ie )(?!as ))
For T: (?i)(^(der |die |das |the )t)|(^t(?!he ))

(the good thing about the regex is that you don't need many rules or groups of rules, you just use it as a simple rule)

You can read the rules as this:

(?i) = Case sensitive disable (Upper and Lower are the same)
(^(der |die |das |the )d) = It start with "der " or "die " or "the " and then a "d" next to it
| OR
(^d(?!er )(?!ie )(?!as )) = it start with d BUT then there is no "er " or " ie " or "as " next to it

In case of A

...
^(der |die |das |the |)a = It start with "der " or "die " or "the " OR NOTHING and then a "a" next to it

Btw, using secondary list for grouping is a very good idea. I use it all the time. But try not to do it many times within each one, as it will take some time to process the lists...


Example:

Good Idea:

List1 <---depends ---List2
List1 <---depends ---List3
List1 <---depends ---List4
List1 <---depends ---List5

Bad Idea:

List1 <--- depends---- List2 <---depends--- List3 <----depends---- List4 etc...
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46870

  • LarsSK
  • LarsSK's Avatar
  • Offline
  • Fresh Boarder
  • Exzessiver Cappuccino-Trinker und eComics-Leser
  • Posts: 10
  • Karma: 0
Hey Xellos,

you `re right, the second rule is not needet, I tried it out by "Number" and "Alphabet", and it worked without!
I thought, maybe just in case ;)
Und ich mag die drei Zustände in der Informationstechnik:
High, Low und Kaputt ;)
The administrator has disabled public write access.

Need some help for sorting with the smart lists 9 months 3 weeks ago #46871

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
that's because I put a "|" before the ")", so it means "or nothing", and then "it start with something next to nothing" is the same as "it start with something" :P

If you delete that last "|", your second rule would be necessary
Last Edit: 9 months 3 weeks ago by Xelloss.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.330 seconds

Who's Online

We have 210 guests and 3 members online