gnosygnu / xowa

xowa offline wiki application
Other
379 stars 40 forks source link

Addon - score changes not working #824

Open desb42 opened 3 years ago

desb42 commented 3 years ago

I have chosen to install lilypond and timidity to produce musical notation for \ tags

I did this some time ago (see #260 )

The version I installed was 2.18.2 I have since discovered that there is a newer version 2.20.0

Rather than replacing the current version I created a new directory (in xowa/bin/windows64) and called it LilyPond_2.20.0

I then when to the xowa Options page 'Addon - score' and changed the definition of the LilyPond entry both the location of the executable and the arguments

I deleted the en.wikipedia.org/lilypond directory and restarted xowa

On selecting en.wikipedia.org/wiki/Viennese_trichord, which has two \ elements The first image was generated and the second had a lilypond error

Because of this error the .ly file remains

Looking inside that .ly file I noticed that it shows the LilyPond version Which was 2.18.2 - but I had changed it!

Investigation seems to show that in 400_xowa\src\gplx\xowa\apps\boots\Xoa_boot_mgr.java

there is the line

try {  app.Gfs_mgr().Run_url(cmd_file); }

if I replace that with

try {
    System.out.println(app.Prog_mgr().App_lilypond().Exe_url().Raw());
    System.out.println(app.Prog_mgr().App_lilypond());
    app.Gfs_mgr().Run_url(cmd_file);
    System.out.println(app.Prog_mgr().App_lilypond());
    System.out.println(app.Prog_mgr().App_lilypond().Exe_url().Raw());
}

I get

k:\xowa_dev\bin\windows_64\lilypond_2.20.0\usr\bin\lilypond.exe
gplx.core.envs.Process_adp@23941fb4
gplx.core.envs.Process_adp@23941fb4
k:\xowa_dev\bin\windows_64\lilypond\usr\bin\lilypond.exe

Note lilypond has reset to default - but I cannot work out why