tried to ameliorate syllabe counter

This commit is contained in:
2026-04-28 14:55:12 +02:00
parent 6423936957
commit e8a3a3ef43
2 changed files with 54 additions and 4 deletions
+3 -4
View File
@@ -1,4 +1,3 @@
/* old version
{ pkgs, python3Packages, ... }:
pkgs.writers.writePython3Bin "custom-syllabes" {
@@ -23,7 +22,7 @@ for w in text.split():
total += len(parts)
print(f"{total} ({'/'.join(chunks)})")
''*/
''
/* used IPA but had a deprecated dependency
{ pkgs, python3Packages, ... }:
@@ -58,7 +57,7 @@ for word in text.split():
print(f"{total} ({' | '.join(chunks)})")
''*/
{ pkgs, ... }:
/*{ pkgs, ... }:
let
lexique = pkgs.fetchurl {
@@ -171,4 +170,4 @@ def main():
if __name__ == "__main__":
main()
''
''*/