One of Dorico’s useful features is adding comments to the project, which can then be exported as a webpage. This is really useful for creating a critical commentary when editing music. But how to get the text from the HTML page to your word processor, in a format that you want?
Open the HTML in a browser. Dorico does this automatically when you export the comments.
Select the entire text, copy it and paste it into a text editor.
Here’s the fun part. Using a sophisticated text editor (like BBEdit on a Mac), I’m going to use a “Grep” search and replace to perform several operations on the text. I’ll remove the Author and Date fields, and swap the bar number and instrument. I’ll also remove the tabs that separate the fields with spaces and other punctuation.
So here’s the raw text pasted into my text editor:
Creed Author Date Instrument Bars Comment Ben Nov 1, 2021, 1:52:03 PM Bass 26 Dec Bass has two minims instead of semibreve, with underlay 'all things were made'.
It’s easy enough to delete the ‘heading’ lines of “Author Date Instrument…”, which will appear at the start of each Flow’s comments.
Now use the following Grep search command:
This will find “More than one character between the start of a line and the letter M, followed by a Tab”.
In other words, it will remove everything up the Tab after the M of PM or AM in the Date. (Make sure case sensitive is ON.)
Replace it with nothing, to delete the fields we don’t want.
Now we have “Bass 26”, separated by tabs. In my editorial notes, I want the bar number first, followed by the instrument name, without tabs.
So the grep code is: ^(.+)\t(\d+)\t
which means “start of line, one or more characters, followed by a tab, then one or more numbers, followed by a tab.”
We’ve put some bits in brackets, so we can refer to them in the replace field, which is:
\2, \1: (There should be a space at the end.)
This will swap the order of the bits in brackets, skip the tabs, and replace them with our own choice of punctuation.
The processed text can then be pasted into a DTP app or word processor, for styling and layout.