View Single Post
Old 01-26-2025, 12:08 PM   #791
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 908
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by Comfy.n View Post
@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)

Implemented, thanks

Last edited by dunhill; 01-26-2025 at 12:58 PM.
dunhill is offline   Reply With Quote