home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Narzedzia / Calibre / calibre-0.8.18.msi / file_604 < prev    next >
Encoding:
Text File  |  2010-11-16  |  584 b   |  24 lines

  1. /*
  2.  * Hyphenation
  3.  * Copyright 2008 Kovid Goyal
  4.  * License: GNU GPL v3
  5.  */
  6.  
  7. function do_hyphenation(lang) {
  8.     Hyphenator.config(
  9.         {
  10.         'minwordlength'    : 6,
  11.         //'hyphenchar'     : '|',
  12.         'displaytogglebox' : false,
  13.         'remoteloading'    : false,
  14.         'doframes'         : true,
  15.         'defaultlanguage'  : 'en',
  16.         'storagetype'      : 'session',
  17.         'onerrorhandler'   : function (e) {
  18.                                 window.py_bridge.debug(e);
  19.                             }
  20.         });
  21.     Hyphenator.hyphenate(document.body, lang);
  22. }
  23.  
  24.