funderburkjim / ScharfSandhi

Software to apply sandhi to Sanskrit text
MIT License
6 stars 6 forks source link

java/2020 problem with ScharfSandhiArg #8

Open funderburkjim opened 4 years ago

funderburkjim commented 4 years ago

Got the following error

Jim@Jim-Dell MINGW64 ~/Documents/GitHub/ScharfSandhi/java/2020/classes (master)
$ java ScharfSandhiArg E 'rAmaH gacCati'
Error: Main method not found in class ScharfSandhiArg, please define the main method as:
   public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application

By contrast, the prior version works as expected:

Jim@Jim-Dell MINGW64 ~/Documents/GitHub/ScharfSandhi/java (master)
$ java ScharfSandhiArg E 'rAmaH gacCati'
rAmo gacCati

@scharfp -- Any idea about this?

funderburkjim commented 4 years ago

You mention that this is designed to be run as a function, such as callable from XSLT.

Suggestion:

scharfp commented 4 years ago

Dear Jim, Sorry. I’ve been meaning to write to you about the latest update. In any case, now I have fixed the issue as you suggested and made a separate function ScharfSandhiArgFunction and main program ScharfSandhiArg.

$ java ScharfSandhiArg E Y 'tasmAt hasati' tasmAdDasati

$ java ScharfSandhiArg E N 'tasmAt hasati' tasmAd Dasati

Will upload to git shortly. Yours, Peter


Peter M. Scharf, President The Sanskrit Library scharf@sanskritlibrary.org https://sanskritlibrary.org


On 26 May 2020, at 2:38 AM, funderburkjim notifications@github.com wrote:

You mention that this is designed to be run as a function, such as callable from XSLT.

Suggestion:

Keep the functionality of ScharfSandhiArg the same as before, namely as a stand-alone command-line program. Revise ScharfSandhiArg so that it has a second command-line parameter for despacing, so that the Java version of ScharfSandhiArg is functionally identical to the latest pythonv version (in pythonv4) Give the functional version a new name, such as ScharfSandhiArgFunction — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/funderburkjim/ScharfSandhi/issues/8#issuecomment-633716659, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI6QJFRMHSE44K2WJCX2AKDRTLM37ANCNFSM4NJYTCHA.