Hi again,
I’m returning to this thread to ask about the best practice for handling these and other marker-related errors that come up when basic checks. Since their validity is defined in the .sty files, it makes me think that configurations need to be done there to resolve errors, but I don’t want to mess around under the hood if there is something I should be changing somewhere else instead.
I had been ignoring/denying marker errors for a while, but now I’m getting a book ready for submission to the DBL and it seems like these errors should be resolved more properly. There are three general errors with markers that I can’t resolve:
- \xt not allowed in Introduction paragraphs (\ip);
- \ior not allowed in Introduction Outline paragraphs (\io#); and
- embedded markers being reported as ‘unknown’ (eg. a glossary link embedded within words of Jesus with a \+w marker).
The stylesheet info in the Advanced tab of Project Properties indicates that it is using the usfm.sty Stylesheet, noting that it is “Customized”. I changed the USFM version to 3, but there was no change in the results of the Basic Checks. When I look in usfm.sty in the “C:\My Paratext 9 Projects” folder, it shows “Version=3.0.2”. Since the Project Properties reports that it uses a “Customized” Stylesheet, I looked at the custom.sty file in my project folder as well. The comments at the top of that file say that it “was created by the upgrade to Paratext 8.0. It is based upon the original style files used by your project. These files have been removed, but a backup of the files has been saved to usfm-color.sty.bak and custom.sty.bak” I don’t see either of those .bak files in my current project folder, but I assume they must have been in the Paratext 8 folder.
I temporarily renamed custom.sty in my project folder (ie so the Advanced tab no longer reported a “Customized” stylesheet when I restarted Paratext). I no longer had the same custom color styling we were used to, but when I ran the basic checks with that setup, the errors with \xt and the \ior were resolved. The +w maker was still reported as an “Unknown marker”, though.
So I took a look through the \Marker definitions in the custom.sty fie in my current project folder, and saw some clues to resolving the Marker errors:
- For the “\Marker xt” rule, my current custom.sty has only the value “x” for its “\Occurs under” property, while in the usfm.sty file I find quite a long list of permissible markers.
- For the “\Marker ior” rule, my current custom.sty has only the value “id” for its “\Occurs under” property, while in the usfm.sty file I find it allowed to occur under the various Introduction Outline, as well as the “NEST” value.
- For the “\Marker w” rule, my current custom.sty has a subset of the values that occur in the usfm.sty file, as well as missing the “NEST” value.
So I made other temporary copies of the custom.sty file; one in which I used all the “\Occurs under” values from the usfm.sty for these three markers, and another in which I just commented-out the informaton for these arkers in the custom.sty file. As expected, I did get my custom color styling back, but the results of the Basic Checks was the same as when I had removed custom.sty: the errors with \xt and the \ior were resolved, but \+w maker was still reported as an “Unknown marker”.
Is there any way to resolve the “Unknown marker” errors for \+w markers? And is editing my custom.sty file as I described above the best way to resolve the “Cannot occur here” errors for \xt and \ior markers in the Introduction?