title: Off-line text hyphenation for HTML
body: <p>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 <code>&amp;shy;</code> where appropriate).</p>
  
  <p>I know about <a href="http://hyphenator.googlecode.com/" rel="nofollow">hyphenator.js</a>, but, since all my content is already generated off-line, I'd like to do the hyphenation off-line as well. <em>That is, I'd like my text not to be hyphenated in browser, but generated into a static HTML file already with soft hyphens.</em></p>
  
  <p>A (Linux) command-line tool or a C library would be OK. Even some Python code will do.</p>
  
  <p>Any clues? Maybe I can use TeX to do the job for me somehow?</p>