![]() |
#241 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
If you are talking about your Kobo device, there is no problem having multiple formats of the same book. I do this all the time. The device uses the full path and file name including the extension to differentiate the books. Just use the "Send specific format to" option on the "Send to device" button.
|
![]() |
![]() |
![]() |
#242 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,014
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
thanks ![]() Last edited by ownedbycats; 12-21-2021 at 11:18 AM. |
|
![]() |
![]() |
![]() |
#243 | |
Member
![]() Posts: 12
Karma: 10
Join Date: Dec 2020
Device: Kobo Libra H2O
|
Quote:
The ideia would be to have "One Device, Two Separate Libraries". One library with "her" kepubs, and one with "his" epubs. It would not work since there's the small problem of Calibre escaping the "." used for hidden folders. ![]() |
|
![]() |
![]() |
![]() |
#244 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#245 |
Member
![]() Posts: 12
Karma: 10
Join Date: Dec 2020
Device: Kobo Libra H2O
|
Yes, we have a Libra and a Clara we sometimes exchange.
[QUOTE=davidfor;4182824] There is no reason to use a directory with a leading dot in it. You can tell nickel to ignore any directory but adding it to the "ExcludeSyncFolders" in the config file. But, if you have any doubts about how to do this, I would recommend checking the exact format in the Kobo forum. I do not use it at all, so I would need to check the details before doing it. I would suggest posting what you have and describing what you want to do. Someone will show what you need to do.[/QUOTE] Forgot about that. So that's one problem solved. I tried exporting the books via the exporting specific format to a single folder, but then I have to always delete the opf and jpg companion files. I remembered plugboards would let me change things according to format, but that would mess up the metadata. |
![]() |
![]() |
![]() |
#246 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
But, it won't help what you want to do as it the metadata used for the save template is the original version, not the post plugboard version. |
||
![]() |
![]() |
![]() |
#247 |
Member
![]() Posts: 12
Karma: 10
Join Date: Dec 2020
Device: Kobo Libra H2O
|
Thanks for the help anyways. For now manual "Saving to disk" seems to be the easiest way to achieve what I'm trying to do.
|
![]() |
![]() |
![]() |
#248 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,014
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Mainly out of curiosity: Suppose you have a column with a single unmodified function, e.g. virtual_libraries(). Would there be any performance impacts involved in calling the #virtual_library column rather than the function directly?
(I'm also thinking -- if for some reason I were to change the column in the future, calling #virtual_libraries would avoid needing to change the function on all the templates calling it.) Also, I can't quite remember: In search, it's possible to do inclusive ands/ors with parentheses, e.g.: #columnA:foobar AND (#columnB:foo OR #columnC:bar) Would the best way to do this would to with a "IF foobar THEN foo||bar" type thing, or can the checks be done in the first IF? Thanks and merry Christmas (or whatever holiday you celebrate). ![]() Last edited by ownedbycats; 12-24-2021 at 06:46 AM. |
![]() |
![]() |
![]() |
#249 | |||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Code:
if 'foobar' in $#columnA && ('foo' in $#columnB || 'bar' in $#columnC) then Quote:
|
|||
![]() |
![]() |
![]() |
#250 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,014
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
program: m = is_marked(); first_non_empty ( contains(m, "invalid_author_sort|invalid_title_sort", 'auto_author_sort.png', ''), contains(m, "epub_calibre_bookmarks", 'snippets.png', ''), if 'fff' in m && check_yes_no($#onkobo, 0, 0, 1) then 'sync.png' fi, contains(m, "fff", 'download-metadata.png', ''), contains(m, "search_results", 'search.png', ''), if m then 'marked.png' fi ) Any idea? Last edited by ownedbycats; 12-26-2021 at 01:36 PM. |
![]() |
![]() |
![]() |
#251 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
if 'fff' in m && check_yes_no('#onkobo', 0, 0, 1) then 'sync.png' fi, EDIT: You can also use str_in_list() to do exact matching if you don't need regular expressions. For example, this Code:
contains(m, "invalid_author_sort|invalid_title_sort", 'auto_author_sort.png', ''), Code:
str_in_list(m, ',', 'invalid_author_sort', 'auto_author_sort.png', 'invalid_title_sort', 'auto_author_sort.png', ''), Code:
if '^(invalid_author_sort|invalid_title_sort)$' inlist m then 'auto_author_sort.png' fi, Last edited by chaley; 12-26-2021 at 02:02 PM. |
|
![]() |
![]() |
![]() |
#252 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,014
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
I was trying to change my 'genres' column like so:
Code:
program: # Current virtual library vl = current_virtual_library_name(); ## Main three 'categories' of books. fanfic is taglike, manual enumerated tags = $tags; fanfic = $#fanficcat; manual = $#manualtype; ## Stripping sub-tags of fanfic and manual to use their specific columns instead stripped_tags = list_re_group(tags, ',', '.', '^(Fanfiction|Documentation & Manuals)($|\..*$)', '{$}', ''); ## Splitting tag hierarchy split_tags = re(stripped_tags, '\.', ','); ## Removing a few unwanted tags cleaned_tags = list_difference( split_tags, '@cleanup, Cultures & Regions, School, Social Issues', ','); ## Trying to concenate the three book categories for shared VLs. Otherwise just use the cleaned tags. if '(Read|Unread|On Device|Cleanup)' in vl then list_union(cleaned_tags, fanfic, manual, ',') else cleaned_tags fi 2. How do I add 'All Books' to the three VLs I have listed? 3. Is it expected for the list_union's combined entries to display in the opposite order? (e.g., "Mass Effect Trilogy, Fanfiction" even though the first is from fanfic, which is second in list). 4. Sometimes if I switch between multiple VLs/views too quickly, the column 'sticks' and displays the wrong entries until I press F2 and re-save the template. Any tips to unstick it? If any help, this mostly happens when I switch between Fanfiction (where the view manager doesn't even have the column displayed) and Read/Unread. Worst case, I'll just used combined entries for all VLs - the minor nuisance of having fanfic categories shown twice in book details I can deal with. Last edited by ownedbycats; 12-27-2021 at 04:37 PM. |
![]() |
![]() |
![]() |
#253 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
EXCEPTION: Formatter: Incorrect number of arguments for function list_union near ')' on line 27 Code:
list_union(list_union(cleaned_tags, fanfic, ','), manual, ',') Quote:
Code:
if vl == '' || '(Read|Unread|On Device)' in vl then Code:
if '^(|Read|Unread|On Device)$' in vl then |
||
![]() |
![]() |
![]() |
#254 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,449
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Question 3: There is no guarantee of the order in calibre lists. You can sort the lists if you want that.
Question 4: I don't understand what you are asking. What column sticks and what template? |
![]() |
![]() |
![]() |
#255 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,014
Karma: 75555555
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
The #genres columns - main thing is if I switch between, say Fanfiction and Read/Unread too quickly, they start displaying the wrong entries for that VL (combined or only cleaned_tags) -- I'm guessing something to do with the caching, because re-saving the template would recalculate them all. F5 doesn't fix this, nor does re-searching.
If it matters, I'm using the action chain that automatically switches view manager views upon clicking on a VL tab. Last edited by ownedbycats; 12-27-2021 at 04:56 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 218 | 07-11-2025 07:34 PM |
[Metadata Source Plugin] Questions regarding parse select, docs and ref templates | Boilerplate4U | Development | 13 | 07-07-2020 02:35 AM |
Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 11:37 AM |
[OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 09:19 PM |
Thread management questions | meme | Feedback | 6 | 01-31-2011 05:07 PM |