再次您好,
我回到這個討論串,詢問處理這些以及其他在基本檢查(basic checks)中出現的標記相關錯誤的最佳實務。由於它們的有效性是在 .sty 檔案中定義的,這讓我認為需要在該處進行設定以解決錯誤,但如果應該在其他地方進行變更,我不想在內部機制(under the hood)中亂動。
我已經忽略/拒絕標記錯誤一段時間了,但現在我正在準備一本書提交給 DBL,這些錯誤似乎應該更恰當地解決。有三種我無法解決的一般標記錯誤:
- \xt 不允許在引言段落(\ip)中;
- \ior 不允許在引言大綱段落(\io#)中;以及
- 嵌入標記被報告為「未知」(例如,嵌入在耶穌話語中的詞彙表連結,帶有 \+w 標記)。
專案屬性(Project Properties)進階標籤頁中的樣式表資訊顯示它正在使用 usfm.sty 樣式表,並註明它是「已自訂」(Customized)。我將 USFM 版本改為 3,但基本檢查的結果沒有變化。當我在「C:\My Paratext 9 Projects」資料夾中查看 usfm.sty 時,它顯示「Version=3.0.2」。由於專案屬性報告它使用「已自訂」樣式表,我也查看了專案資料夾中的 custom.sty 檔案。該檔案頂部的註解說它「是在升級到 Paratext 8.0 時建立的。它是基於專案原本使用的樣式檔案。這些檔案已被移除,但檔案的備份已儲存為 usfm-color.sty.bak 和 custom.sty.bak」 我在目前的專案資料夾中看不到這兩個 .bak 檔案,但我推測它們一定在 Paratext 8 資料夾中。
我暫時重新命名了專案資料夾中的 custom.sty(即重新啟動 Paratext 後,進階標籤頁不再報告「已自訂」樣式表)。我不再擁有我們習慣的自訂顏色樣式,但當我在那種設定下執行基本檢查時,\xt 和 \ior 的錯誤已解決。不過,+w 標記仍被報告為「未知標記」。
因此,我瀏覽了目前專案資料夾中 custom.sty 檔案的 \Marker 定義,並看到了一些解決標記錯誤的線索:
- 對於「\Marker xt」規則,我目前的 custom.sty 僅在「\Occurs under」屬性中有值「x」,而在 usfm.sty 檔案中,我發現了一個相當長的允許標記列表。
- 對於「\Marker ior」規則,我目前的 custom.sty 僅在「\Occurs under」屬性中有值「id」,而在 usfm.sty 檔案中,我發現它允許出現在各種引言大綱下,以及「NEST」值。
- 對於「\Marker w」規則,我目前的 custom.sty 擁有 usfm.sty 檔案中出現值的子集,並且缺少「NEST」值。
因此,我製作了 custom.sty 檔案的其他臨時副本;一份使用了 usfm.sty 中這三個標記的所有「\Occurs under」值,另一份則只是註解掉了 custom.sty 檔案中這些標記的資訊。正如預期,我確實恢復了自訂顏色樣式,但基本檢查的結果與我移除 custom.sty 時相同:\xt 和 \ior 的錯誤已解決,但 \+w 標記仍被報告為「未知標記」。
有沒有辦法解決 \+w 標記的「未知標記」錯誤?以及像我上面描述的那樣編輯我的 custom.sty 檔案,是否是解決引言中 \xt 和 \ior 標記「不能在此處出現」錯誤的最佳方式?
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?
機器翻譯自 English