gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
164 stars 43 forks source link

Vary filename for scores in scribus render frames #1591

Closed rpspringuel closed 8 months ago

rpspringuel commented 8 months ago

Addresses #1588

@domoknight please test to see if this works. None of the developers regularly use Scribus so it's difficult for us to test this sort of thing.

domoknight commented 8 months ago

I get the following message multiple times, and no gabc file is generated:

(c:/texlive/2022/texmf-dist/tex/latex/libertine/LKey.tex)) ! Undefined control sequence.

filec@ntents@checkdir C:Users Admin AppData Local Temp scribus _temp_render_hg l.11 ...\Temp\scribus_temp_render_g36428-score.gabc}

I see the following files:

  1. scribus_temp_render_g36428.log
  2. scribus_temp_render_g36428

The first is the error log and the second, despite having no file extension, contains the following text:

image

rpspringuel commented 8 months ago

So, the $scribus_file$s are full path filenames, which on a windows system includes "\" which messes with TeX's ability to process the filename (as something like \Users gets interpreted as a macro and TeX tries to expand it). Based on what I can find, I don't think Scribus provides a shorter filename without the path, so let's try a different route: \jobname. I've pushed a change that tries to name the score file using \jobname instead of $scribus_file$. Please try this and let me know if it works.

domoknight commented 8 months ago

Thank you so much! That appears to have fixed it!

Here are the files I see generated in the Temp dir: image

And here is the resulting page in Scribus: image

rpspringuel commented 8 months ago

Excellent. Merging.

Sent with GitHawk