Michael, Go ahead and commit. Yes, the docs do need updating and clarivication. John On Thu, Feb 11, 2010 at 12:36:19PM +0000, Michael Whapples wrote: > OK, looks like it was a user error on my part, possibly the docs could > do with being clearer. I called it only with a hyphenation dictionary, > when I changed the call to: > louis.hyphenate(["en-us-g2.ctb", "hyph_en_US.dic"], "internal", 0) > > It works fine, shall I commit (obviously I will correct the typo > mentioned before)? > > Should the docs say that you must give a translation table as well as > the hyphenation dictionary (or at least with a table with the character > definitions, etc which are required). > > Michael Whapples > On 02/11/2010 10:09 AM, Christian Egli wrote: > >Michael Whapples<mwhapples@xxxxxxx> writes: > > > > > >>I forgot to mention the error messages are things like (this one is > >>the last before I get told how many errors): > >>File hyph_en_US.dic line 5537: character '2' should be defined at this > >>point but is not > >> > >>The call I do on this python function is: > >>louis.hyphenate(['hyph_en_US.dic'], 'internal', 0) > >> > >Ah, OK. I think I see the problem. For some reason (probably because > >they use a different format) you cannot use the hyphenation table as a > >translation table that you pass to lou_hyphenate. Instead the > >translation table that you use must contain a "include hyph_en_US.dic" > >statement. This should maybe be explained a bit better in the > >documentation > >(http://liblouis.googlecode.com/svn/documentation/liblouis.html#Hyphenation-Tables). > > > >So what you should probably do is to extend the table you are using > >(e.g. en-us-g2.ctb) with a "include hyph_en_US.dic" statement. Then try > >your hyphenate function again. > > > >HTH > >Christian > > > > For a description of the software and to download it go to > http://www.jjb-software.com -- John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc. http://www.abilitiessoft.com Madison, Wisconsin USA Developing software for people with disabilities For a description of the software and to download it go to http://www.jjb-software.com