07-01-2021, 03:48 AM | #121 | |
null operator (he/him)
Posts: 20,675
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
IIRC POSIX uses Change date for metadata changes, and Modified date for content changes. I learnt early on to ignore calibre's Modified/last_modified column. BR |
|
07-01-2021, 04:10 AM | #122 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
|
Advert | |
|
07-01-2021, 09:49 AM | #123 |
Grand Sorcerer
Posts: 11,783
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
07-01-2021, 05:39 PM | #124 |
null operator (he/him)
Posts: 20,675
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I'm sort of surprised one can even nominate Return and Numpad/Enter as shortcut keys, but I see one can - that's pretty cool. Now I'm trying to think of how I could use it.
Cheers BR |
07-01-2021, 05:46 PM | #125 | |
Grand Sorcerer
Posts: 11,783
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I did a test and using Return as a keyboard shortcut overrides the tweak. |
|
Advert | |
|
07-03-2021, 01:29 PM | #126 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Question. I have this composite column, with sort/search by text:
Code:
program: input = $#kobobookmark; a = re(input, '.*\/file(\d+).*', '\1'); fan = $#fanficcat; status = $#fanficstatus; ccount = $$#chaptercount; if fan && status !='Anthology' && $#currentlyreading && substr(input, 0, 10) == 'OEBPS/file' then strcat(format_number(subtract(a, 1), '{0:,d}'), '/',ccount) elif status ='Oneshot' then ccount elif ccount >#1 then ccount fi I don't mind it here, but why does raw field result in "none" instead of blank? Actually I just realized I could probably remove the second elif statement and combine it with the third with a != compare op... Last edited by ownedbycats; 07-03-2021 at 01:39 PM. |
07-03-2021, 01:44 PM | #127 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Hmm, the compare op didn't seem to work. I tried this:
Code:
elif ccount >#1 && status != 'Oneshot' then ccount |
07-03-2021, 01:44 PM | #128 | |
Grand Sorcerer
Posts: 11,783
Karma: 7029971
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: BTW: raw_field() is useful where the field is formatted in its column definition with characters so that the displayed value is no longer a number. The raw_field() function returns the underlying number, not the formatted one. Last edited by chaley; 07-03-2021 at 01:49 PM. |
|
07-03-2021, 01:50 PM | #129 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
My percent read column has some formatting to show a percent sign. I found if I don't use raw field when putting it into a composite I get unexpected results.
|
07-03-2021, 02:10 PM | #130 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Ok I figured it out. It wasn't the compare op, but there's no other statements telling it what it should display if it's a oneshot. I'll just leave in the second elif statement, it's easier.
Last edited by ownedbycats; 07-03-2021 at 02:12 PM. |
07-07-2021, 01:27 AM | #131 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Code:
if variable !='foo' && variable !='bar' then 'output' Last edited by ownedbycats; 07-07-2021 at 01:32 AM. |
07-07-2021, 01:40 AM | #132 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Also:
Code:
program: input = $#kobobookmark; a = re(input, '.*\/file(\d+).*', '\1'); status = $#fanficstatus; ccount = $$#chaptercount; if $#fanficcat then if !status inlist 'Anthology,Oneshot' && substr(input, 0, 10) == 'OEBPS/file' && $#currentlyreading then strcat(format_number(subtract(a, 1), '{0:,d}'), '/',ccount) else ccount fi elif ccount >#1 then ccount fi If the latter, since #currentlyreading is another composite (psuedobool, it returns 'true' if it passes certain checks), would putting it last be better practice for performance? Also, are there any other improvements that can be made to this? I notice there's a slight delay whenever the column updates. I've thought of taking out the #currentlyreading check and instead just having it run its checks directly, but I'm not sure if that would help or if there's a better way. description of template: Spoiler:
Last edited by ownedbycats; 07-07-2021 at 04:41 AM. |
07-07-2021, 01:42 AM | #133 |
Wizard
Posts: 1,119
Karma: 1954138
Join Date: Aug 2015
Device: Kindle
|
|
07-07-2021, 01:50 AM | #134 |
Custom User Title
Posts: 8,839
Karma: 62032373
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Will that work for an enumerated column?
|
07-07-2021, 03:13 AM | #135 |
Wizard
Posts: 1,119
Karma: 1954138
Join Date: Aug 2015
Device: Kindle
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Library Management: various questions not worth their own thread | ownedbycats | Library Management | 153 | 05-14-2024 01:30 AM |
[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 |