Переносы слов с Hyphenator.js

Переносы слов с Hyphenator.js

    1. Download an actual version of Hyphenator.js and copy it to your server (make sure to copy the folder called patterns, too).
    2. Prepare your HTML-documents by
      • Encoding them in UTF-8 (not absolutely necessary, but highly recommended)
      • Setting the appropriate lang-attributes (e.g. <html lang="en">).
      • Adding class="hyphenate" to the elements whose text should be hyphenated (children do inherit this setting). Hyphenation can be stopped by adding class="donthyphenate".
      • Validating (not absolutely necessary, but again highly recommended): http://validator.w3.org/

    3. Include the script by adding the following code to your HTML-document:
<script src="http://yourdomain.com/path/Hyphenator.js" type="text/javascript">
</script>
    1. Invoke the script:
        <script type="text/javascript">
                Hyphenator.config({
                        displaytogglebox : true,
                        minwordlength : 4
                });
                Hyphenator.run();
        </script>

Done. There are many interesting and useful settings you can change before you invoke the script. See Documentation for more details.

источник: http://code.google.com/p/hyphenator/wiki/en_HowToUseHyphenator

в итоге скрипт не стал использовать, т.к. при копировании текста в буфер - он идет весь с переносами в слогах. при этом стандартная функция отключения таких переносов при копировании не давала никакого эффекта.