View Single Post
Old 12-23-2013, 08:40 PM   #367
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Without using "F S" for Fantasy Series, I made this:

Code:
program:
#save stuff before " - "
start=list_item(field('tags'),-2, ' - ');
#save stuff after it
end=list_item(field('tags'),-1, ' - ');
#divides 'end' into two, at '/'
part3=list_item(end,-2,'/');
part4=list_item(end,-1,'/');
#return a value
strcat(
#add first initial
	shorten(start,1,'',0),
#add first separator if first initial not empty
	test(start,' - ',''),
#add second initial
	shorten(part3,1,'',0),
#add second separator if third not empty
	test(part3,'/',''),
#add third initial
	shorten(part4,1,'',0),
)
In one line:
Code:
program:start=list_item(field('tags'),-2, ' - ');end=list_item(field('tags'),-1, ' - ');part3=list_item(end,-2,'/');part4=list_item(end,-1,'/');strcat(shorten(start,1,'',0),test(start,' - ',''),shorten(part3,1,'',0),test(part3,'/',''),shorten(part4,1,'',0),)
I can add another divider to separate a two-part tag, but I'd like to avoid putting in three sets if possible; will two-word components appear other than at the end? Based on the six examples you gave me, no, but I just want to confirm that there aren't any more options hidden away, even stuff you might do someday.
eschwartz is offline   Reply With Quote