Droit v1.1.1 release
Added
input()
andoutput()
methods added todroit.Database()
. They point to pythonsinput()
andprint()
functions but can be changed. Plugins use those functions when needed. Therefore you can make sure every output goes to the device you want it to go to (e.g. when using text-to-speech).- new character-escape system - you can now escape the characters
!
,:
and>
using e.g.\!
. To display\
use\\
. - english sample database added
- analyzer module
New blocks
- get input-block added
- rank input-block added
Analyzer
The analyzer helps you to find errors within your Droit Datbase Script and to fix them. New functions:
upgradeScript
: this function upgrades a legacy Droit Database Script to the current version. This function will be extended with every change in the Droit Database Script.parseScriptInfoString
: this function was previously located within theloader
moduleisValidLine
from analyzer is better than the legacyisValidLine
function. It is possible to get information about why a line isn't valid
Changed
- output plugins have now the abillity to modify
inp
variables - line number added to DDS warnings
- english sample database fixed
- docs updated
DroitRuleOutput
bug fixed- input plugins now support multiple parameters
parseScript
functions can now choose between legacy and the newisValidLine
. Warnings when parsing invalid Droit Database Script are enabled by default.
Droit Database Script
The new character-escape system and the support of multiple paramters for input plugins define the new Droit Database Script Version 1.2. It is from now on strongly recommended to add a DDS Version tag (@dds 1.2
) to your Database to make sure Droit will automatically migrate your script when future changes are done to the Droit Database Script.