Skip to Content
 

Version 1.23.3 of nanDECK is available for download

No replies
nand
nand's picture
Offline
Joined: 07/27/2008

There is a new version of nanDECK, with these additions:

- New HTMLKEY directive

You can define keywords that are replaced by HTML strings (in HTMLTEXT directives). The syntax is:

HTMLKEY = "range", "key", "text", hmtlfont

Example:

HTMLFONT = std, Arial, 12, , #000000
HTMLFONT = std_ita, Arial, 12, I, #FF0000
HTMLKEY = 1, "(inv)", "Invisibility", std_ita
HTMLTEXT = 1, "This character has: (inv)", 0, 0, 6, 9, #FFFFFF, 0, ET, 100, std

- New LINKTRIM directive

LINK = ON/OFF

Usually the empty lines at the end of a linked spreadsheet aren't read with the LINK directive, this directive changes that behaviour: if you want to read the empty lines, add LINKTRIM=OFF before the LINK directive.

- New COOFRAME/COOFRAMES functions

This function evaluates a frame at the build step (usually the frames are evaluated at the validate step). The syntax for COOFRAME is:

[name] = COOFRAME(frame)

COOFRAMES is used instead to extract a single frame from a name that contains more than one, with this syntax:

[name] = COOFRAMES(number, frame)

- New CASESTRING function

This function modifies the capitalization of a string, this is the syntax:

[label] = CASESTRING(string, flag)

You can choose one of these flags:

U - the string changes to uppercase
L - the string changes to lowercase
F - every first character in a string is changed to uppercase, the others to lowercase

If the flag is not specified, the string is changed to uppercase.

- New RANGEMUL function

This function creates a new range from pairs of range/number of repetition of that range:

[range] = RANGEMUL(range1, num1, range2, num2, ... rangeN, numN)

For example:

[range] = RANGEADD(1,2,3,4)

Result:

[range] = "1,1,3,3,3,3"

- New TOKENIZESEQ function

This function extracts a sequence from another sequence, using a separator that slices each element of that sequence into several tokens, and a number that specify which tokens are extracted; all the tokens are concatenated in the result sequence. The syntax for this function is:

[name] = TOKENIZE("string", number, separator)

For example:

[result] = TOKENIZE("Alpha-Beta-Gamma|Delta-Epsilon-Zeta|Eta-Theta-Iota", 2, -)

The [result] label would be equal to “Beta|Epsilon|Theta”.

- Added parameter in HTMLTEXT for default font

You can specify the font (defined with HTMLFONT) as the last parameter:

HTMLTEXT = “range”, “text”, position x, position y, width, height, html color , angle, flags, alpha-channel, htmlfont

- Added parameter in DISPLAY for range

Instead of specifying starting and ending card in DISPLAY directive, you can use a range as 5th parameter (leave the other at zero):

DISPLAY = ”filename”, starting card, ending card, width, range

- Added flags in LINERECT for drawing the sides of the rectangle

This is the new syntax:

LINERECT = “range”, pos_x, pos_y, width, height, html color, thickness, pattern, end arrow, start arrow, flags

The last parameter can be one or more of these flags:

T - top side
R - right side
B - bottom side
L - left side
D - diagonal from top-left to bottom-right
G - diagonal from top-right to bottom-left

If you don’t specify a flag, the default line is top-left to bottom-right diagonal.

Example:

LINERECT = 1, 1, 1, 4, 7, #0000FF, 0.1, , 0, 0, TDB

- Added flag P in HEXGRID/FRAMEBOX/FRAMEHEX for zero-padded numbers

The P flag works like N flag, but instead of abc1, abc2, ... abc10 creates frames with a leading zero: abc01, abc02, ... abc10.

- Added flag in combinatorial engine for selecting only a subset of results

Instead of extracting all the combinations/permutations, you can add a T flag, followed by a number, and nanDECK extracts only that number of combinations/permutations, chosen casually.

For example, this line creates a sequence of 5040 elements:

P[test]8=a|b|c|d|e|f|g

Adding T100, it creates a sequence of 100 elements chosen casually between 5040:

PT100[test]8=a|b|c|d|e|f|g

Website:

http://www.nand.it/nandeck/

Download (Windows):

http://www.nand.it/nandeck/nandeck.zip

Download (Wine):

http://www.nand.it/nandeck/nandeck_wine.zip

Reference:

http://www.nand.it/nandeck/nandeck-manual.pdf

Syndicate content


forum | by Dr. Radut