Tinderbox Training: Doctoral Dissertation Variable Hide in Text with RegEx

In discussing this interlude in a call with @satikusala we bought up a few observations from the material covered. I should note that the recording was an on-the-spot ‘fill’ for a missing guest speaker so wasn’t a rehearsed speech.

One thing was to do with the regex used, but I’ll start a new thread for that on ‘Regex lookahead’ to avoid thread drift. Another is to answer @bardiccollege 's question:

Yes, as you can see from the text at c. time 1:52. The second paragraph on screen has multiple ‘code’ entries (i.e. name-codes in square brackets for differing tests in the research), indeed some repeat in the paragraph. So, in short ‘Yes’. In thinking of adopting this, do stop to consider if you truly need the code inline in the $Text. I note this because if your need is actually to know a note refers to others, consider storing those codes (or note names) in an attribute. It is then easier to query for stored values or follow links. note that inline codes whilst useful can be intrusive for other readers of your text (IIRC you’re writing a book/article from this work, as was the case where the reader asked for the codes to be removed.

Hiding the codes and the HTML solution actually brought up some interesting other issues, but that’s @satikusala’s tale to tell.

2 Likes