plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit a73118f16c4f362b206bae03679b84a793615402
parent 0b2aa768ecb2db340be6d0eb95aad3e6d13b0396
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 27 Apr 2012 19:12:01 +0200

accept hyphen at hemistiche

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

diff --git a/hemistiches.py b/hemistiches.py @@ -12,7 +12,7 @@ def check_spaces(align, pos): if pos >= len(align): # not enough syllabes for hemistiche return "bad" - if align[pos] == ' ': + if align[pos] == ' ' or '-' in align[pos]: # word boundary here, so this is ok return "ok" # skip consonants