Not having a bunch of images to work with, here's a start.

This is where TW really needs a regular expression extraction filter. But 
in lieu of that, what I've done here is to use recursion to pop off the 
letters one by one. I only have letters A thru F, but you can add the rest 
in. You can also change "word4letter" to use ".png" or whatever your actual 
tiddler image extension is. Since it uses recursion, you would not want to 
load it up with entire paragraphs.

I would think that ".gif" or ".png" files would be most useful, because you 
could show actual signing motions.

\define word4letter(letter) <$transclude tiddler=$letter$.jpg mode="inline"
/> 
\define popoff(word)
<$list filter="A B C D E F" variable="letter">
<$list filter="[[$word$]] +[removeprefix<letter>]" variable="remnant">
<$macrocall $name="word4letter" letter=<<letter>>/><$macrocall 
$name="popoff" word=<<remnant>>/>
</$list>
</$list>
\end
\define .sign(word) <$macrocall $name="popoff" word="$word$"/>

<<.sign "BED">>

-- Mark

On Thursday, November 8, 2018 at 3:45:46 PM UTC-8, JWHoneycutt wrote:
>
> I am creating a sign language wiki and recommendations are welcome
>
> Starting with the alphabet, I created images for letters, such as `A`
>
> The image is stored as `A.jpg` in an adjacent subdirectory
>
> The letter `A` is invoked by transcluding a tiddler titled `A` which 
> contains the text `[img[./Sign_language/A.jpg]]`
>
> {{A}} - this I have done so far...
>
> Then I want to use these letters as a font, allowing them to replace ASCII 
> characters, possibly using the syntax `<<.sign "THIS">>`
>
> The macro would take each letter in turn and render the picture of the 
> letter - a font "Sign"
>
> Any ideas how to accomplish this?
>
> JWHoneycutt
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/342afa31-2fce-4dd7-9a09-2c024d22f014%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to