|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
![]()
Hi, I'm a new calibre user and I'm really fascinated about its power tricks...
![]() Nevertheless I cannot make a search, a restriction, a custom column or whatever other kind of "filter" to select my translated vs. original language books. I've added two custom columns two my database (they're tags-like columns): + Language (#language). Language of the e-book (only "Spanish" or "English", I cannot read anything else ![]() + Original Language (#original_language). The original Language of the book (much more languages used ![]() Then my Translated e-books would be those where #language is not equal to #original_language. How can I achieve this? Thank you in advance. |
![]() |
![]() |
![]() |
#2 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() Quote:
Code:
(#original_language:English AND #language:Spanish) OR (#language:English AND #original_language:Spanish) Quote:
|
|||
![]() |
![]() |
Advert | |
|
![]() |
#3 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Quote:
And I want to check if both fields are equal (or different), no matter which values they have (like If(F65=F66;whatever true; whatever false) in Excel, where it doesn't matter if F65 is "English", "French" or "Sindarin" by the way ![]() |
||
![]() |
![]() |
![]() |
#4 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Quote:
(Edit: You can do SQL searches in metadata.db to get the answer you want, but you won't see the results in the GUI window.) Last edited by Starson17; 03-15-2011 at 04:46 PM. |
|||
![]() |
![]() |
![]() |
#5 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Perfect,
As nowadays I only have "No language" (Ghosting Test.pdf), English and Spanish books, I've used the next search: Original books: Code:
(#language:False AND #original_language:False) OR (#language:"English" AND #original_language:"English") OR (#language:"Spanish" AND #original_language:"Spanish") Code:
NOT((#language:False AND #original_language:False) OR (#language:"English" AND #original_language:"English") OR (#language:"Spanish" AND #original_language:"Spanish")) ![]() When I learn German, Russian and Chinese, I will think about modifying my "not-so-perfect" search ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
If this is really important, you can create a composite column that compares the other columns and produces 'yes' or 'no' as appropriate. The 'strcmp' function makes this reasonably straightforward.
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes, and he can do SQL based searches using the command line functions, similar to the way duplicate searches can be done. I also wondered why not just leave #language blank when #original_language has an entry to indicate that the book it didn't need translation and search for the negation of that combination to indicate it did need translation.
|
![]() |
![]() |
![]() |
#8 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
![]() ![]() ![]() ![]() ![]() I've got it!!!!.
And it works. (I can delete my previous not-so-perfect searches) Thanks to both with your help. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Now, just like my other ask about title an author-like custom columns, may I ask for other little improvements in Calibre?
|
|
![]() |
![]() |
![]() |
#9 | |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
And you can also now see #original in the tag browser. Go to preferences -> columns, select the column, push the blue I button to edit it, and select 'show in tag browser'.
|
![]() |
![]() |
![]() |
#11 |
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Guys, you've got a serious problem... You actually achieve what your users ask for. In this way you are never going to finish the development... (In Spanish there's an idiom: "Against the vice of asking, the virtue of not giving")
![]() ![]() ![]() But as you don't follow it, here you have another suggestion. Perfect, now I can show "Original Language?" in browser. "Original Language?" is just a "cooked" No/Yes type column. But I cannot show "Read?". As you can imagine, "Read?" is just an ordinary "No/Yes"-type added column. So, would it be possible to add the new "Show tags in browser" option to every other custom column type? (Also, if possible, please don't forget about my desired author and title like custom columns) |
![]() |
![]() |
![]() |
#12 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#13 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,335
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#14 | ||
Dead account. Bye
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
|
Quote:
Nevertheless a minor possible tweak in . As you say, probably it's not worth the coding effort at all. Quote:
![]() ![]() Nevertheless, I feel it would be a really useful feature at least for Translator(s)-like fields (or "Editor(s), or "Cover Artist(s)", or "The friend(s) who bought me the book", or whatever). Unless you can give a really, REALLY good hint, I feel the template coding can be really painful because you have to:
I do agree that the title-like behaviour doesn't worth the effort just to achieve an automatic conversion/sorting from "A good book" to "good book, A". Nevertheless, you are the coders of a freeware/donationware software, so obviously, you freely decide when, how or where you spend your coding efforts. ![]() ![]() |
||
![]() |
![]() |
![]() |
#15 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Borders - Select books for $5 each | jbcohen | Deals and Resources (No Self-Promotion or Affiliate Links) | 8 | 12-25-2010 05:53 PM |
25% off on select books @ Kobo Books | eric11210 | Deals and Resources (No Self-Promotion or Affiliate Links) | 16 | 10-31-2010 11:33 AM |
Opus ask me to select the language everytime I turn it on | tokio2 | Bookeen | 2 | 09-17-2010 11:11 AM |
Kobo Books: $2 Off Select Titles | Acreo Aeneas | Deals and Resources (No Self-Promotion or Affiliate Links) | 6 | 09-02-2010 09:35 AM |
Sync only select books | Carenza | Calibre | 2 | 08-10-2010 05:16 PM |