|
|
#241 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 23,225
Karma: 41975128
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 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo Aura HD
|
Quote:
thanks
Last edited by ownedbycats; 12-21-2021 at 12:18 PM. |
|
|
|
|
|
|
#243 | |
|
Junior Member
![]() Posts: 8
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: 23,225
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Quote:
|
||
|
|
|
|
|
#245 |
|
Junior Member
![]() Posts: 8
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: 23,225
Karma: 41975128
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 |
|
Junior Member
![]() Posts: 8
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 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo 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 07:46 AM. |
|
|
|
|
|
#249 | |||
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
Quote:
Quote:
Code:
if 'foobar' in $#columnA && ('foo' in $#columnB || 'bar' in $#columnC) then
Quote:
|
|||
|
|
|
|
|
#250 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo 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 02:36 PM. |
|
|
|
|
|
#251 | |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
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 03:02 PM. |
|
|
|
|
|
|
#252 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo 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 05:37 PM. |
|
|
|
|
|
#253 | ||
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
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 |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
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 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,306
Karma: 13781972
Join Date: Oct 2018
Device: Kobo 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 05:56 PM. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A few questions... (template language, mainly) | Clem2605 | Library Management | 2 | 12-30-2020 04:25 AM |
| Questions on Kobo [Interfered with another thread topic] | spdavies | Kobo Reader | 8 | 10-12-2014 12:37 PM |
| [OLD Thread] Some questions before buying the fire. | darthreader13 | Kindle Fire | 7 | 05-10-2013 10:19 PM |
| [Old Thread] Save Template not working | TGinAZ | Calibre | 7 | 01-18-2012 02:03 AM |
| Thread management questions | meme | Feedback | 6 | 01-31-2011 06:07 PM |