It’s a new year, so I was spending a bit of time revising my defaults before the semester gets rolling. I hadn’t realized until recently that a lot of outdated crud (wrong instrument ranges, old fonts, etc.) had been carried around in my main default file, so I am trying to streamline and do as much with the Library Manager, by exporting libraries, and/or using doricolib files as possible. Ideally, it would be great if File/New could basically start with all my defaults but I’m not sure how possible it is to get close to that.
One hang up is with Page Templates. There’s no way to save a Page Template as default is there? Importing Page Templates isn’t really desirable as it duplicates a whole bunch of Paragraph Styles, so I’d like to avoid that if possible. I tried exporting a Page Template, then adding the code from pagePairDefinitionSets to my userlibrary.xml, and tried adding the code to DefaultLibraryAdditions, but neither of those seemed to work.
Is there anyway to modify the default Page Templates, and then always have them start from the modified defaults?
No, not in any proper sense.
How about in an improper sense? I’m not opposed to some code hackery, I just haven’t been able to figure out where/how to do it.
Dorico apparently thinks my Page Template is crap LOL
I think I’ve at least figured out how to edit these in a way so the Paragraph Styles aren’t duplicated upon import. Still fiddling with them though.
For what it’s worth, I have recently done some work on importing page template sets that should eliminate or at least greatly reduce the likelihood of ending up with duplicate paragraph styles. That improvement will be included in the next major version of the software.
Would knowing the entityIDs of the default page templates allow the user to set the default templates with a doricolib file? I obviously have no idea if the default templates work that way, or if they are simply hardwired in somehow, but if that would possibly work and is something you’re comfortable disclosing, I’d love to try it!
Figured it out for the Full Score set at least:
You could take the page templates you have exported from one project and put that .doricolib file into the DefaultLibraryAdditions folder, then use the appropriate pageset.user… ID in the layoutOptions_scores.xml and layoutOptions_parts.xml files that contain your saved layout options.
The line in question looks like this:
You would need to replace only the
Got it, thanks! And I guess the corresponding Part line would be:
For anyone who wants to attempt this, it’s actually really easy. Since we are only modifying doricolib files and not system files, it seems pretty “safe” too. It depends slightly if you want to add your sets as additional options, or simply have your sets be the new defaults. Instructions for having your sets as defaults are below as that’s the easiest, although you can modify these to add additional sets too.
- Take a file containing Page Templates that you are satisfied with, then export both the Full Score and Part Template Sets as doricolib files.
- Open your Full Score doricolib file, scroll down to pagePairDefinitionSets, and change the entryID from “pageset.user.xxxxxxxxxxxxx” to “pageset.fullscore”
- Do the same for the Part doricolib file, but change the entryID to “pageset.part”
- In Windows, copy the doricolib files to Users\yournamehere\AppData\Roaming\Steinberg\Dorico 4\DefaultLibraryAdditions
That’s basically it! The catch is that there may now be duplicate Paragraph Styles. You can correct for these manually in the doricolib file by editing the paragraphStyleID and have it match the correct entityID as found in your userlibrary.xml, but honestly I found it easier to just stick to the main Paragraph Styles that ship with Dorico and then modify size, style, as needed in the template. A list of the shipping Paragraph Styles can be found here. All those modifications easily save in the doricolib file and then there’s no additional editing needed, and no duplicate styles.