On Tue, 2022-02-15 at 14:48 +0000, Joe Wilkinson wrote: > Hi Richard, > No joy I'm afraid > Window still says I have a book with 0 pages. > And I have added the Path to denemo\bin (added to batch file as > below). > denemo\bin contain gs.exe. > Best wishes > Joe > > > @ECHO OFF > PATH=%Path;C:\Users\joean\Desktop\Den13Feb\denemo\bin
I've some recollection that the correct syntax is %PATH% for the name of the PATH environment variable in Windows, but I think there is some deeper problem to do with setting other environment variables for ghostscript to run. I'll investigate further... Richard > cd /D %~dp0 > START /B .\bin\denemo.exe %1 > START /B .\bin\regfont -a .\share\fonts\truetype\denemo\feta.ttf > START /B .\bin\regfont -a .\share\fonts\truetype\denemo\Denemo.ttf > START /B .\bin\regfont -a > .\share\fonts\truetype\denemo\emmentaler.ttf > > > On 14/02/2022 08:20, Richard Shann wrote: > > On Sun, 2022-02-13 at 22:17 +0000, Joe Wilkinson wrote: > > > Hi Richard, > > > I just downloaded denemo and tried with a simple file of 1 > > > movement > > > & 4 staffs. > > > It was a bit clunky, as you say, but probably liveable with. > > > BUT > > > Firstly every time you ass a page I get the window below which > > > has > > > an unhelpful message. > > :) that was the helpful message I put in as an enhancement. Without > > it > > when you add a new layout you would get no further feedback. What > > do I > > do now you ask yourself, did it add the layout, you ask yourself. > > So I > > added this message that tells you, rather indirectly (*) how far > > you > > have got with adding your layouts. The crucial question is, does > > this > > popup say you have n pages after you've added a layout (where n is > > the > > sum of the number of pages in all the layouts added so far)? If not > > then the ghostscript program is not being found. If you can > > experiment > > by setting your PATH environment variable to include the location > > ..\denemo\bin where denemo.exe and lilypond-windows.exe are found > > and > > try again that will be informative. The ghostscript program will be > > called gs.exe I suspect. > > > > > And secondly (worse) when I asked it to create the pdf it gave > > > me a > > > default name which I changed and then asked me for a location. I > > > tried the desktop and pressed Close but no file appeared on the > > > desktop. I tried this 3 times in 3 locations and it vanished each > > > time. > > well, it is ghostscript that will generate the PDF so if it is not > > adding pages in the first step this would be expected. > > > > Thanks for the testing... > > > > Richard > > (*) more helpful would be if the script kept a list of layouts you > > had > > added and read them back out to you at this point, so you could see > > where you had got to. > > > > > Joe > > > > > > > > > > > > On 12/02/2022 16:31, Richard Shann wrote: > > > On Sat, 2022-02-12 at 14:24 +0000, Richard Shann wrote: > > > > > > > On Sat, 2022-02-12 at 11:39 +0000, Richard Shann wrote: > > > > > > > > > On Fri, 2022-02-11 at 19:02 +0000, > > > > > joeandang...@btinternet.com wrote: > > > > > > > > > > > I'll download tomorrow and try > > > > > It's in today's build at: > > > > > > > > > > Command: Export Book of Layouts > > > > > Allows the creation of a single PDF containing a variety of > > > > > layouts > > > > > (e.g. Full Score and individual parts). The layouts can have > > > > > different > > > > > font sizes etc, unlike the Append option in the Print View. > > > > > Location: Main Menu ▶ File ▶ Export As > > > > > Internal Name: ExportBook > > > > > > > > > > I have in mind a few tweaks to make the construction of the > > > > > book > > > > > more > > > > > transparent, but I think it is good to go. > > > > > With this command I think you could construct a book > > > > > comprising > > > > > scores > > > > > from different Denemo files... (not tested). > > > > I've tested this now and it works, indeed you can create a > > > > title > > > > page > > > > for your book by creating a Denemo score that just has LilyPond > > > > markup > > > > (*) and no actual music and make that the first "layout" in > > > > your > > > > book, > > > > then load the score and typeset various layouts adding them to > > > > your > > > > book. > > > > > > > > Richard > > > > > > > > (*) I'm not sure what the best way to do this might be - what I > > > > did > > > > was > > > > to use the "Text after Movement" on a blank score and then > > > > delete > > > > the > > > > only staff in the movement so that all that was left was the > > > > text. > > > I've included a template for a book title page - it can be opened > > > and > > > the text altered and then included as the first page in a Denemo > > > Book. > > > You would then load the actual score and put the various layouts > > > into > > > the book before finally generating the PDF. > > > I've attached the template here for those who don't want to wait > > > until > > > tomorrow. There is a prize of 10 Gold Denemo Stars to the person > > > who > > > crafts the best looking title page template to replace my quick > > > and > > > whimiscal effort. The LilyPond documentation > > > > > > https://lilypond.org/doc/v2.22/Documentation/notation/text-markup-commands > > > will explain how to draw boxes around text etc etc... > > > > > > Richard > > > > > > > > > > > > > > > > > > Richard > > > > > > > > > > > > > > > > > > > > > Joe > > > > > > > > > > > > On 11 Feb 2022 16:54, Richard Shann < > > > > > > rich...@rshann.plus.com> > > > > > > wrote: > > > > > > > > > > > > > On Fri, 2022-02-11 at 09:49 +0000, Joe Wilkinson wrote: > > > > > > > > > > > > > > > Hi Richard, > > > > > > > > I've just tried it out on a 128 measure piece. > > > > > > > > It works fine though, as you say, it would be nice if > > > > > > > > * it could print out different parts with different > > > > > > > > score > > > > > > > > sizes > > > > > > > > (could be difficult) > > > > > > > > * if the score size chosen wasn't always the last one > > > > > > > > * if the individual parts could start on a new page, > > > > > > > > and > > > > > > > > * if the version didn't get printed out for each > > > > > > > > part, in > > > > > > > > a > > > > > > > > stack! > > > > > > > All of these (except perhaps the last) are not possible > > > > > > > at > > > > > > > present > > > > > > > with > > > > > > > LilyPond (*) so I have created a way to do this from > > > > > > > Denemo. > > > > > > > Attached is a Scheme script which allows you to create a > > > > > > > "Book" > > > > > > > comprizing various layouts which the command will combine > > > > > > > together > > > > > > > as a > > > > > > > final PDF. You have to invoke the command once for each > > > > > > > layout > > > > > > > you > > > > > > > want > > > > > > > to include in the book. > > > > > > > It is quite clunky but I think it is working - if you can > > > > > > > test > > > > > > > it > > > > > > > out > > > > > > > on Windows that would be helpful. > > > > > > > > > > > > > > Richard > > > > > > > (*) I asked on the LilyPond mailing list > > > > > > > > > > > > > > https://lists.gnu.org/archive/html/lilypond-user/2022-02/msg00247.html > > > > > > > > > > > > > > and it is a deep-rooted problem :( > > > > > > > > > > > > > > > > > > > > > > > > >