I've got a (Russian) text that I need to hyphenate programmatically to be displayed in browser (i.e. use a script of some kind to put ­
where appropriate).
I know about hyphenator.js, but, since all my content is already generated off-line, I'd like to do the hyphenation off-line as well. That is, I'd like my text not to be hyphenated in browser, but generated into a static HTML file already with soft hyphens.
A (Linux) command-line tool or a C library would be OK. Even some Python code will do.
Any clues? Maybe I can use TeX to do the job for me somehow?