I'd like to use hyphen-la to automate hyphenation, but I can't figure out how to use it from the Linux commandline. I tried
$ ./syllabify.py -t chant -m liturgical
I get
File "/home/ahinkley/Downloads/Git/hyphen-la/scripts/./syllabify.py", line 157, in <module>
hyphenator = pyphen.Pyphen(filename=dir_path+'/../patterns/hyph_la_'+args.mode+'.dic',left=lefthyphenmin,right=righthyphenmin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pyphen/__init__.py", line 223, in __init__
hdcache[filename] = HyphDict(filename)
^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pyphen/__init__.py", line 118, in __init__
encoding = path.open('rb').readline().decode()
^^^^^^^^^
AttributeError: 'str' object has no attribute 'open'
Suppose I want to send a string as input and have it output to the terminal (or a file), what command should I be using?
Also, do I need to run make before I use the scripts?
Thank you,
Andrew.