I was hoping someone can help with the implementation of TeXHyphenator-J using CFML.
I am using the JavaLoader.cfc to create a ColdFusion object of TeXHyphenator-J (as in the code below). When running the code I don't get any errors and a string is returned. However it isn't hyphenated?
<!--- Load Javaloader --->
<cfset paths = arrayNew(1)>
<cfset paths[1] = expandPath("assets/Hyphenator/texhyphj.jar")>
<cfset loader = createObject("component", "assets.javaloader.JavaLoader").init(paths)>
<!--- Create buffered stream to TeX file --->
<cfset FileInputStream = createobject("java", "java.io.FileInputStream").init(expandPath("assets/Hyphenator/hyphen.tex"))>
<cfset BufferedInputStream = createobject("java","java.io.BufferedInputStream").init(FileInputStream)>
<!--- Initiate Hyphenator --->
<cfset h = loader.create('net.davidashen.text.Hyphenator').init()>
<!--- load the TeX table into Hyphenator --->
<cfset h.loadTable(BufferedInputStream)>
<!--- Get hyphenated string, Hyphenator should return as-so-ci-ate --->
<cfset retStr = h.hyphenate('associate')>
<cfdump var="#retStr#">