Skip to content

About LWT Export Templates for "Flexible Exports"

An export template consists of a string of characters. Some parts of this string are placeholders (beginning with "%", "$" or "\") that are replaced by the actual term data, see the following table. For each term (word or expression), that has been selected for export, the placeholders of the export template will be replaced by the term data and the string will be written to the export file.

A template must end with either "\n" (UNIX, Mac) or "\r\n" (Windows). If you omit this, the whole export will be one single line!

If the export template is empty, no terms of this language will be exported.

PlaceholdersPlaceholders replaced by ...
%...Raw Text
%wTerm (Word/Expression) - as raw text.
%tTranslation - as raw text.
%sSentence, curly braces removed - as raw text.
%cThe sentence, but the "{xxx}" parts are replaced by "[...]" (close review question) - as raw text.
%dThe sentence, but the "{xxx}" parts are replaced by "[xxx]" (close review solution) - as raw text.
%rRomanization - as raw text.
%aStatus (1..5, 98, 99) - as raw text.
%kTerm in lowercase (key) - as raw text.
%zTag List - as raw text.
%lLanguage - as raw text.
%nWord Number in LWT (key in table "words") - as raw text.
%%Just one percent sign "%".
$...HTML Text. HTML special characters are escaped:< = &lt; / > = &gt; / & = &amp; / " = &quot;
$wTerm (Word/Expression) - as HTML text.
$tTranslation - as HTML text.
$sSentence, curly braces removed - as HTML text.
$cThe sentence, but the "{xxx}" parts are replaced by "[...]" (close review question) - as HTML text.
$dThe sentence, but the "{xxx}" parts are replaced by "[xxx]" (close review solution) - as HTML text.
$xThe sentence in Anki2 close review notation: the "{xxx}" parts are replaced by "{{c1::xxx}}" - as HTML text.
$yThe sentence in Anki2 close review notation, with translation: the "{xxx}" parts are replaced by "{{c1::xxx::translation}}" - as HTML text.
$rRomanization - as HTML text.
$kTerm in lowercase (key) - as HTML text.
$zTag List - as HTML text.
$lLanguage - as HTML text.
$$Just one dollar sign "$".
\...Special Characters
\tTAB character (HEX 9).
\nNEWLINE character (HEX 10).
\rCARRIAGE RETURN character (HEX 13).
\\Just one backslash "".

Released into the Public Domain under the Unlicense.