Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I've put Eric Weisstein's Hyphenate.m package in $UserBaseDirectory/Utilities; installed the requisite texhyphj files in my local texmf tree; run its Makefile to create the Java classes corresponding to the distributed .java source files; and in Hyphenate.m set $HyphenPath to the path for texhyphj. Yet when I load the package, I get a Java ClassNotFoundException error for the Java class net.davidashen.text.Hyphenator.

What am I doing wrong or also need to do to get this add-on package to work?

(The package provides a functions that hyphenate a given string and list the syllables of a string.)

P.S. Yes, WordData[word, "Hyphenation"]will give a list of syllables for word, but I would expect using Java for this may be quicker, since no delay is involved in going out to the WRI server to import the needed word data paclets.

share|improve this question
    
Isn't it possible to install the data locally, so that WordData doesn't have to access the server? –  celtschk Apr 2 '12 at 19:19

1 Answer 1

The package comments contain the following information:

Requirements
Download and install http://www.davidashen.net/texhyphj.html in $HyphenPath = "/Volumes/Users/eww/tex/texhyphj";

The package relies on this external Java code, and will not run without it. It needs to be downloaded separately, and put in the same folder as the Hyphenate.m file. Then, you modify the following code line from the package:

$HyphenPath="/Volumes/Users/eww/tex/texhyphj";

to refer to the path of the files on your own system.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.