Anillo III - Original — 23 of 199

Johan Paz

Release 3

Section 9 - Siempre se activa con nombres lo del hiperenlace

Rule for printing the name of a thing (called item):

let output be indexed text;

now output is the printed name of item;

let kw be indexed text;

now kw is the keyword of item;

if kw is "":

now kw is word number 1 in output;

repeat with wordcounter running from 1 to the number of words in output:

say "[if wordcounter > 1] [end if]";

if word number wordcounter in output matches the regular expression "\b(?i)[kw]":

say "[j][word number wordcounter in output][x]";

else:

say "[word number wordcounter in output]".