Twine: 'display' macro

Issue #9 closed
H Labrande repo owner created an issue

The Twine macro 'display' can be used to display passages, like <<display "chaos">> With the current algorithm, everything between quotes inside a << >> is treated as a translatable string, and that includes passage names.

We don't really want to include passage names in our dictionary... or do we ? (see related issue #10) Right now we don't look in the HTML tags so we don't look at the 'tiddler="chaos"' that are in the file. So the passage names should be left untouched by the translator, but right now there's no way to know if a thing is a passage name or not, which is a problem.

Regardless of the answer to the previous question, the 'display' macro is special, as it can be shortened to <<chaos>> It's legal as long as it's not a keyword. This is basically undetectable without implementing a parser, isn't it ?

Comments (3)

  1. H Labrande reporter

    Cf bug 4 : strings that are likely to be passage names are highlighted in the .po file with a warning ; hence it's safe (i.e. if something messes up it's not my fault) to have in the dictionary the strings appearing in "display" macros, since they won't get translated and thus nothing will get messed up.

    (Wanting to translate passage names sounds like a bigger headache than it's worth.)

  2. Log in to comment