View Single Post
Old 01-24-2025, 06:53 AM   #782
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,660
Karma: 7908443
Join Date: Sep 2020
Device: none
@chaley: ​I went from this on my "Info" column displayed along with Comments field...

📂 {title} by {author} 🔢 {#abc_numeric} 🏚️ Published in {pubdate} by {publisher} 📚 {#pc} 🗓️ TS: {date} 🗓️ LA: {#la} 🗓️ LV: {#last_viewed} ISBN: {identifiers:select(isbn)} 👍Votes: {#v} 👍Rating: {#rr} 🌍 {languages}

to this:

program:
out = '​📂 ' & $title & ' by ' & $author & ' 🔢 ' & $#abc_numeric & ' 🏚️' & if field('pubdate') then 'Published in ' & field('pubdate') else '' fi & if field('publisher') then ' by ' & field('publisher') else '' fi & ' 📚 ' & $#pc & ' 🗓️ TS: ' & $date & if field('#la') then ' 🗓️ LA: ' & field('#la') else '' fi & if field('#last_viewed') then ' 🗓️ LV: ' & field('#last_viewed') else '' fi & if select($identifiers, 'isbn') then ' 🆔 ISBN: ' & select($identifiers, 'isbn') else '' fi & if field('#v') then ' 👍Votes: ' & field('#v') else '' fi & if field('#rr') then ' 👍Rating: ' & field('#rr') & if field('languages') then ' 🌍 ' & field('languages') else '' fi else '' fi


WITHOUT AI... so my head is

The output in Book Details looks like this:

📂 Nineteen eighty-four by George Orwell 🔢 91 🏚️Published in August 2001 by Project Gutenberg of Australia 📚 3 🗓️ TS: 03-09-2024 05:49 🗓️ LA: 22-Jan-2025 15:20 🗓️ LV: 22-01-2025 15:20 🆔 ISBN: 9780241453513 👍Votes: 4800394 👍Rating: 4.19 🌍 eng

And I also have that other secondary Info column you helped me with the other day, like this:

program:
out = '  💾 ';
fmts = list_sort(formats_sizes(), 0, ',') ;
for fmt_data in fmts:
fmt = sublist(fmt_data, 0, 1, ':');
size = sublist(fmt_data, 1, 2, ':');
str = if size ># 0 then strcat(fmt, ': ', human_readable(size), ' | ') else '' fi;
out=strcat(out, str)
rof;
if substr(out, -2, 0) == '| ' then
out = substr(out, 0, -3)
fi;
out

& strcat(
if field('#li') then '​ ✍️ ' & field('#li') else '' fi,
if field('#fav') then ' ⭐: y ' & field('') else '' fi,
if field('#pp') then '​ 📈 ' & field('#pp') & ' pages' else '' fi,
if field('#words') then '​ | ' & field('#words') & ' words' else '' fi,
if field('#ac') then '​ 🟨 ' & field('#ac') else '' fi ,
if field('series') then '​ ▶️ ' & field('series') & ' - ' & field('series_index') else '' fi
)


this one outputs:

💾 EPUB: 295.7 KB | ORIGINAL_PDF: 1.6 MB | PDF: 767.9 KB​ ✍️ https://www.goodreads.com/author/sho....George_Orwell ⭐: y ​ 📈 484 pages​ | 103,810 words​ 🟨 16

I'm finding it fun to assemble these templates but I'd be happy to receive some feedback on overall syntax and alternatives to simplify the code or perhaps convert it to PTM

(the main purpose is to make room for my author Bio column but I also find those lines useful to spot at a glance what metadata is missing that I would like to have displayed)
Attached Thumbnails
Click image for larger version

Name:	MWSnap 2025-01-24, 08_51_49.jpg
Views:	179
Size:	71.7 KB
ID:	213249  

Last edited by Comfy.n; 01-24-2025 at 07:07 AM.
Comfy.n is offline   Reply With Quote