Skip to content

Droit v1.1.1 release

Compare
Choose a tag to compare
@jarinox jarinox released this 12 Jun 11:12
· 5 commits to master since this release

Added

  • input() and output() methods added to droit.Database(). They point to pythons input() and print() 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 the loader module
  • isValidLine from analyzer is better than the legacy isValidLine 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 new isValidLine. 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.