Dear Brother,

Thank you very much for your work on this, this is a real help!

> I'll play around with it some more tomorrow to see if I can figure out
> the problem myself, but if some one with a better knowledge of lua (that
> would be pretty much anyone at this point) can spot an error for me
> it'll save me some time.

If I understand the code correctly (which I'm not 100% sure I do), I'd
replace

  if lualatexfound == 0 then
    local tmp = toolstable[1]
    toolstable[1] = [[name=LuaLaTeX
program=lualatex
arguments=$synctexoption, $fullname
showPdf=true]]
    toolstable[current+1] = tmp
  end
  if gregoriofound == 0 then
    local tmp = toolstable[2]
    toolstable[2] = [[name=convert-gabc
program=convert-gabc.bat
arguments=$fullname
showPdf=false]]
    toolstable[current+2] = tmp
  end
  if gregoriofound == 0 then
    local tmp = toolstable[3]
    toolstable[3] = [[name=greg-book
program=greg-book.bat
arguments=$fullname
showPdf=false]]
    toolstable[current+3] = tmp
  end

by

  if lualatexfound == 0 then
    local tmp = toolstable[1]
    toolstable[1] = [[name=LuaLaTeX
program=lualatex
arguments=$synctexoption, $fullname
showPdf=true]]
    toolstable[current+1] = tmp
    current = current + 1
  end
  if gregoriofound == 0 then
    local tmp = toolstable[2]
    toolstable[2] = [[name=convert-gabc
program=convert-gabc.bat
arguments=$fullname
showPdf=false]]
    toolstable[current+1] = tmp
    current = current + 1
  end
  if gregoriofound == 0 then
    local tmp = toolstable[3]
    toolstable[3] = [[name=greg-book
program=greg-book.bat
arguments=$fullname
showPdf=false]]
    toolstable[current+1] = tmp
    current = current + 1
  end

because I don't know how ipairs deals with holes in the indexes... but
it might not solve the problem... Another clue maybe: are line endings ok?

If you're still stuck, I'll take a look tomorrow.

Thank you,
-- 
Elie


_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel

Répondre à