Duplicate (triplicate, etc.) paragraph styles

Hi everyone! I just imported some master pages into a new project. After that, while tweaking some paragraph styles I noticed a weird thing: all the custom paragraph styles that came with the imported master pages were duplicated, triplicated… there were even 12 copies of the same paragraph style! Some of them I could delete, but others I couldn’t (the option was greyed out). I assumed it was because they were in use. This shouldn’t behave this way. I have to manually find every single instance where each copied paragraph style is used and change it to a single one and then manually delete every duplicate.
Am I doing something wrong or is this a bug?

This has already been reported and I don’t think it is the expected behavior…

Thanks Marc for the information!

Yes, this is on my list of things to take a look at in due course.

2 Likes

Hello Daniel

The problem still persists in version 4.3…
Do you have a workaround for this? It’s really hampering our work…
Does anyone have ideas?
Robrecht

What operations are you doing that are resulting in you ending up with multiple copies of the paragraph styles?

I am importing a new Template Set into an existing composition.
Before: I have the following template sets:

  • Default Full Score
  • Default Part
  • Synchestra Aria full L (our template for Conductor scores in Landscape)
  • Synchestra Aria full P (same in Portrait mode)
  • Synchestra full P (similar as Aria full, but for different flows)

Then we import “Synchestra Aria part P”, which is a template for instrument parts in Portrait mode. Obviously, the paragraph styles in both Conductor and Instrument templates have the same names. Most paragraph styles have exactly the same definitions. The differences between Conductor and Instrument scores are essentially in the size of the notes and inter-system spacing. (Conductor is much more condensed).
After the import, many paragraph styles are duplicated, but not all. And some duplicates can be removed, while others cannot be removed at all.

To be noted: before the import, there were already a couple of duplicate paragraph style (2 or 3). Now there something like 10 duplicates / triplicates, here is an extract:

Is this info somewhere in an XML file that we could manually correct (as work-around)?

The issue will be that your page template sets each reference these custom paragraph styles, and when you export those page template sets to their own library file, Dorico gives each user-created style its own unique, internal ID. When you then import that page template set into an existing project, Dorico isn’t clever enough to know that the paragraph styles referenced by those page templates shouldn’t be imported, because it uses their IDs (which are unique) to determine whether they should be brought in.

I would suggest trying to come up with a single project template that has the right paragraph styles and page template sets in, then export the library from that file via the Library Manager, then import that library into your target project.

1 Like

Hello Daniel,
Thanks for the advice.
I’ll look at it carefully. But it may imply many hours of work (probably 2 or 3 days, I’m afraid) to get everything streamlined into a single project template file that wil; contain all the different page template sets:

  • Each template set contains 5 different page pair definitions (default page, first page, outside cover, insider cover, catalogue page) with asymmetric layouts (10 different pages/template), plus a pair definition for electronic display (but hat one is symmetrical, so it counts for 1 page).
  • We are talking about template sets for concertos, operas, individual concertante pieces and individual arias and choir works (4 sets)
  • Each template set has a landscape and portrait mode variant.
  • Each template exists in both "normal "page size (A4 / Letter) and “large” size (A3 / Legal). (We managed to define the layouts in such way that the same layout works if you switch the page size between DIN and American formats).

That’s in total 16 template sets, most of them with 11 page definitions.
Conclusion: in theory 176 possible page definitions, in practice it will come down to something like 120. Even if we manage to get each page right in 15 to 20 minutes in the new project template file, that’s a full week of intensive work…
And I am afraid that the individual music project files will become heavier, because we may have to import templates from which we need only a few page template sets for the specific music work.

Wouldn’t it be faster / more efficient if we just edit the .doricolib files with a XML-editor, so we enforce that alle user-created styles have the same corresponding in all .doricolib files?
If you see a shortcut approach for this task, I would appreciate it: I’m coming on new terrain here…

You can certainly hand-edit the XML files if you like, but be careful not to introduce any syntax errors.

Hello Daniel,
Good news for those who have the same problem. Provisional work-around (tested in version 4.3):

  • When you see that your paragraph styles are duplicated / triplicated …, save your project as a new version.
    -Quit Dorico completely.
  • Restart Dorico, and open the project file you just saved.
  • Go to Library / Paragraph Styles …
  • Select a paragraph style of a duplicate or triplicate set. Check which one of the two or three is the correct one.
  • Normally, you will be able to delete the other one(s).
  • Should it not be possible to delete a paragraph style (waste bin is grayed), then the other style will be available for deletion. Delete it, and then correct possibly the remaining one.

The corresponding remaining styles, after this exercice are:
image
It’s not perfect, but it’s a work-around.
I will continue experiments, should something significant new come out of it, I’ll post it here.

2 Likes

I’m afraid none of the duplicates lights up the trash bin.
And sometimes this leads to a radically wrong-looking style on the page template.
(Dorico 5.1.10).

Hello Derrek, can you perhaps post a Dorico project wherein we can see the issue? Robrecht

christHJasDied240211.dorico (878.6 KB)

With e.g. CopyistCodeFooter, I can delete the duplicate paragraph styles just fine. If you can’t delete them, perhaps they are also saved in your user library? If so, they’ll show up with the star icon in the action bar in Paragraph Styles filled. Try removing them from your user library by clicking the star so that it becomes unfilled, and then you should be able to delete them in the project as well.

1 Like

I don’t seem to be able to locate CopyistCodeFooter in a web search? Who publishes it?

Sorry, Adrian, I was referring to one of the duplicated paragraph styles in the project you attached, which is called CopyistCodeFooter.

1 Like

My oversight. I will look that over after lunch. Thank you.

@dspreadbury
I am still not having any luck with this.

Dorico Diagnostics.zip (901.6 KB)