plint

French poetry validator (local mirror of https://gitlab.com/a3nm/plint)
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit 5e5381366464dd286d7d988084738bc129dacf19
parent 06e4ce9a4a93584fb170ac906f0098f7c47ae5a5
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 22 Mar 2013 15:34:53 +0100

a syllabe range should be separated by '-'

Diffstat:
error.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/error.py b/error.py @@ -25,7 +25,7 @@ class ErrorCollection: keys.append('weights') if len(self.pattern.hemistiches) > 0: keys.append('hemis') - formatters = {'weights': lambda x, y: '/'.join([str(a) for a in x]), + formatters = {'weights': lambda x, y: '-'.join([str(a) for a in x]), 'error': lambda x, y: ErrorCollection.keys.get(x, '') * len(chunk['original'])} def render(chunk, key):