Dokumentet er ikke tilgjengelig på Norsk.
Template-files are found in subdirectory TEMPLATE and are used for exports.
The file can be any type of ASCII file that does
not include ASCII(0) (e.g. txt, htm, html, php, rtf, ...).
Maximum number of characters in the template-file must be less than 64 KB (Max. 65532 Bytes).
Template-files with '.tpl' extension are
included in the export-list (e.g. Save button and Copy button).
Substitutes
The text (case-sensitive, ending with semicolon [;]):
|
- RxCy; are substituted with the value
in Row(x) and Column(y). R1C1; means row 1 and column 1
and R9C9; means row 9 and column 9.
- SRxCy; are substituted with the Solution
in Row(x) and Column(y). SR1C1; means row 1 and column 1
and SR9C9; means row 9 and column 9.
- CAPTION(); are substituted with the puzzles caption.
- DATE(); or LONGDATE();
are substituted with current date.
- TIME(); or LONGTIME();
are substituted with current time.
|
| Remarks |
|
Following template-files belongs to default installation and will be overwritten
when you reinstall the program (e.g. an update):
|
· HtmlDoc.tpl
· PlainText.tpl
· RtfText.tpl
· WithSolution.tpl
· WordDoKu.tpl
· WorDoKu.tpl
|
· HtmlDoc.exp
· PlainText.exp
· RtfText.exp
· WithSolution.exp
· WordDoKu.exp
· WorDoKu.exp
|
|
If you want to change this files, save your changes in a new file (Save as ...).
|
Example: PlainText.tpl (Template File)
CAPTION();
|---+---+---|
|R1C1;R1C2;R1C3;|R1C4;R1C5;R1C6;|R1C7;R1C8;R1C9;|
|R2C1;R2C2;R2C3;|R2C4;R2C5;R2C6;|R2C7;R2C8;R2C9;|
|R3C1;R3C2;R3C3;|R3C4;R3C5;R3C6;|R3C7;R3C8;R3C9;|
|---+---+---|
|R4C1;R4C2;R4C3;|R4C4;R4C5;R4C6;|R4C7;R4C8;R4C9;|
|R5C1;R5C2;R5C3;|R5C4;R5C5;R5C6;|R5C7;R5C8;R5C9;|
|R6C1;R6C2;R6C3;|R6C4;R6C5;R6C6;|R6C7;R6C8;R6C9;|
|---+---+---|
|R7C1;R7C2;R7C3;|R7C4;R7C5;R7C6;|R7C7;R7C8;R7C9;|
|R8C1;R8C2;R8C3;|R8C4;R8C5;R8C6;|R8C7;R8C8;R8C9;|
|R9C1;R9C2;R9C3;|R9C4;R9C5;R9C6;|R9C7;R9C8;R9C9;|
|---+---+---|
LONGDATE();
Example: PlainText.exp (Export Definition File)
;SuDoKu-Cracker Export-Substitutes
; This file belongs to template-file(s) with same name ('PlainText')
;
;Substitutes the numbers 0 to 9 to any text (max. 1024 Bytes)
; and / or any combination as shown in the following table
;
; Space (at end of line) x=<SPACE> or x=<32>
; e.g. 0=<SPACE>
; 1= 1<32>
; Tabulator x=<TAB> or x=<9>
; e.g. 1=<TAB>1<TAB>
; Carriage Return Linefeed x=<CRLF> or x=<13><10>
; Carriage Return x=<CR> or x=<13>
; Linefeed x=<LF> or x=<10>
; Right angle bracket x=<< or x=<60>
; e.g. 2=<<2>
; or any other ASCII-code in angle bracket <decimal value>
; except <0> ASCII(0)
;
[Options]
; Visible 'Name' in export-list (Save button)
Name=Plain text ...
; Default 'Extension' in SaveAs-dialog
Extension=Plain Text (*.txt)|*.txt|All Files|*.*
DefaulExtension=.txt
; Open puzzle file after export (e.g. with Notepad)
; OpenWith=notepad.exe
OpenWith=default
[Substitutes]
0=.
1=1
2=2
3=3
4=4
5=5
6=6
7=7
8=8
9=9