Changelog#
This page collects the changes made to CLS Renderer over time
v1.3#
added#
a new type,
svg, allowing you to render SVG files, either the whole thing or an item specified by ida new scale unit for
image,dpi. This unit was added forsvgelements, but was added toimageto maintain parity between the two typesa new
font-weightproperty has been added totextelements. This property takes a number and changes how heavy a font is. This is only needed for some more complete fonts that provide multiple weights like Thin, Light, Normal, Bold, Super Bold. Any value other than[]will override theboldproperty.a new
[not| ]function that flips a toggle.a new
[either| ]function that takes two values and returns the first one unless it’s a false toggle or an empty string, in which case it returns the second value.
changed#
the default unit for the
scaleproperty ofimageis nowx
fixed#
percent sizes of elements contained directly by the layout were being based on the full size of the card with bleed. This has been fixed and is now based on the size of the card as reported to the
sizeproperty of thelayoutelement
removed#
the
image-boxtype. The provided functionality can be replicated with a container, and quite frankly having two images types is confusing.
v1.2#
added#
A new
shrink-fontproperty has been added totextelements. This property takes a list of lengths and font sizes, and when thetextproperty is longer than a given length, the font size is switched to the given size. See the docs for more info.
fixed#
apparently angle brackets weren’t being interp’ed right! So I added proper escapes for them
there was an inconsistency with using
ptsizes with fonts. they should now scale properly based on your dpi at 72 points to an inchthe docs said that bleed could take a size in
pxbut this was raising an error. This no longer raises an error
v1.1#
added#
added back
[substr| ], just because it makes more sense for some things.
changed#
Changed the licensing to the Mozilla Public License 2.0
Syntax for macros has been changed. The separator between arguments is now the comma, the vertical bar is still used is separate the function name form the arguments, for example
[eq| [role], werewolf]from the werewolf example.Syntax for lists has changed. Values are now separated by commas, as in
(red, red, blue)lists can now be used with
[switch| ]. When a list is used as a case value, the macro will check if the test is in the list. Check the docs for more.
v1.0#
The program has been renamed to CLS Renderer, and briks have been renamed macros.
added#
scaleproperty onimageandimage-boxnow takes factors with unitxin addition to percentages.scale: 2xis the same asscale: 200%[switch| ]macro. The first argument is a test, the rest of the arguments are put into case|result pairs. if test equals a case the result is returned.A new list value type that looks like
(a:b:c:d)or:for an empty listNew macros, and alterations to existing macros to make use of this new type
[in| ]will check if its second argument is a list, and if so will check if the test value is in that list[slice| ]will operate on list items, and will return a list, when passed a list instead of a string[for-each| ]evaluates a body for each item in a list[length| ]returns the length of a list or string[args]is available to user function macros to return all arguments passed to the macro as a list
“Clear Image Cache” button to the interface.
changed#
the
brikssection has been renamedmacrosas the name brik has been replaced by macrothe
outputproperty on export sections has been renamed todestinationmixed fractions can have their whole number separated from fraction component with a space, a period, or a slash. These three are all valid:
1 1/21.1/21/1/2
fixed#
parsing mixed fractions in the math macros now works as intended
using the
[file| ]macro with a file that doesn’t exist/won’t open should give a proper error now.using
^when the parent is layout and bleed is non zero now works as intendedthere was a rounding error when calculating the full size of a card with bleed greater than 0, it’s been fixed
removed#
The
[substr| ]macro has been removed. Use slice instead
v 0.6#
added#
composite properties, which take multiple values and pass them off to specific properties. Composite properties are also preferred when available
exportsection with subsections that describe how to export to various targetsscaleproperty toimageandimage-boxelement types to control image size proportionatelyusers can now make function briks. If a user brik uses the briks
[1],[2], and so on they’ll be filled in by the arguments passed to the brik
changed#
properties and other names previously in camelCase, like
fontSizenow use hyphen as infont-sizeandasset-indexfractional numbers now use a space instead of a decimal point
removed#
nameproperty onlayoutsectiondedicated
pdfsection, now merged with newexportsection
fixed#
rotating
image-boxelements is less surprising
note#
added in 0.5 but not mentioned, a
[rnd| ]brik
v 0.5#
added:
imageBoxelement type, which aligns images within its boxadded:
csvproperty to layout that controls what dialect of csv to parse data aschanged: unknown properties are no longer errors
v 0.4#
added: more units! checkout Values(page removed)) for how they work
added:
[slice| STRING | START | STOP]takes substring ofSTRINGlike[substr| ]but uses start and stop positions instead of a start position and a lengthadded: support for parenthesis to the math brik, infact the whole thing has been rewritten
added: pdf export
changed: the
[substring| ]brik has been renamed to[substr| ]changed: the math brik has been changed to
[=| ]and has different semantics
v 0.3#
added: A graphical interface
added: elements can now contain other elements
added:
defaultssectionadded:
[s| ]and[u| ]for strike thru and underline respectivelychanged:
namessection now calledbrikschanged: new css style syntax
changed: image resizing ruels have been tweaked
changed: completed the playing card example and corresponding help page
changed: tweaks to the csv dialect
fixed: layouts without a
layoutsection now emit a helpful errorfixed: somehow the
[file| ]brik wasn’t registered properly, it’s fixed now
v 0.2#
added: templates for layouts
added: a new playing card example
added:
drawproperty on elements that controls if an element gets drawnadded: math brik,
[#| ], that processes arithmeticadded:
[file| ]brik that loads in the contents of a filechanged: syntax is now in a more modern colon-indent style
changed: images are now cached when loaded for the first time
fixed: single column data sets now work right