I am looking for a way to automatically insert soft hyphens (
­ or unicode character) to hyphenate words into HTML document from command line.
1) What is best way to do so from command line?
2) What are options where it comes to using different dictionaries/rules to word hyphenation? Are there rules for languages other than English?
I am aware that some software, including LibreOffice like decribed in Automatic hyphenation software, have option to apply hyphenation to document, but I am looking for way to do so in already existing HTML document without using word processing software.