Several years ago, I got help on the google group to create a row of dots with a macro:
I am trying to implement it again, without CSS (because I have the css and it’s a pain to use). I’ve taken the details from the previous post / solution, but it’s not working in v5.3.6. Can anyone help?
\define bigDot( likeThis )
<$list filter="[[$likeThis$]split[,]]
+[search-replace:i[r],[red]]
+[search-replace:i[o],[orange]]
+[search-replace:i[y],[yellow]]
+[search-replace:i[g],[green]]
+[search-replace:i[b],[blue]]
+[search-replace:i[p],[purple]]
+[search-replace:i[k],[black]]
+[search-replace:i[w],[white]]
+[search-replace:i[brn],[sienna]]
+[search-replace:i[gry],[gray]]
+[search-replace:i[c],[cyan]]
+[search-replace:i[m],[magenta]]
+[search-replace:i[pnk],[pink]]
+[search-replace:i[sky],[skyblue]]
+[search-replace:i[lgn],[palegreen]]
+[search-replace:i[ygn],[yellowgreen]]
+[search-replace:i[bgn],[teal]]
+[search-replace:i[tan],[tan]]
+[search-replace:i[rbr],[brown]]
+[search-replace:i[gld],[gold]]
+[search-replace:i[svr],[silver]]
+[search-replace:i[olv],[olive]]
">
<$vars thisStyle={{{ [[height:20px;width:20px;background-color:]] [] [[;border-radius:50%;display:inline-block;border:3px solid black;]] +[join[]] }}}>
<span style={{{ [] }}}></span>
</$vars>
</$list>
\end
The call:
<<bigDot “r,y,g,svr,k,b,p,ygn,w,rbr,tan”>>
The result:
A big old blankness:
So what am I doing wrong?