我遇到一個與「詞彙表意外的非構詞字元」問題相關的問題,但我將原本的問題移至這個新討論串,因為在我的情況下,我看到的「意外的非構詞字元」錯誤發生在詞彙表標記內的文字;也就是位於 \w…\w* 或 +w…+w* 標記之間、連結到詞彙表條目的文字(樣式名稱:Peripheral Ref - Wordlist Entry)。
標記基本檢查似乎預期 \w…\w* 標記之間應為單一字詞,當其中使用非構詞字元時就會拋出錯誤。在我們的情況下,我們有一些可接受的關鍵詞呈現方式包含逗號,還有更多包含連字號的情況。這些標點符號用法的上下文有效性已在標點符號清單中正確設定(例如,連字號僅標記為有效的字中標點,逗號僅標記為有效的字尾標點)。它們在字元清單中也都列為有效,但我們不希望在專案設定 > 語言設定 > 其他字元中將它們列為字中標點,因為那樣會為每個與連字號連寫在一起的動詞代詞後綴組合在字詞清單中產生許多不同的字詞。
有沒有辦法允許這些非構詞字元在 \w…\w* 標記內的關鍵詞呈現方式中視為有效,而無需將它們定義為字中標點?或者我們唯一的選擇是否認此錯誤的所有訊息?
I have a problem related to the issue “Glossary unexpected non-wordforming characters”, but I’m moving my original question to this new thread because in my case I’m seeing “unexpected non-wordforming character” errors for text within glossary markups; ie text that is linked to a glossary entry between \w…\w* or +w…+w* markers (style name: Peripheral Ref - Wordlist Entry).
The Markers basic check seems to expect single words between the \w…\w* markers and throws an error when non-wordforming characters are used there. In our case, we have some acceptable keyterm renderings that include commas, and many more cases that include hyphens. The validity of the contexts for these punctuations’ usages are set correctly in the Punctuation Inventory (ie hyphen is only marked as valid word-medial and comma is marked as valid only word-final). They are both listed as valid in the Characters Inventory as well, but we don’t want to list either of them as word-medial punctuation in Project Settings > Language Settings > Other Characters because that would create many different words in the word list for each combination of verb pronoun enclitic that are written together with the hyphen.
Is there a way to allow for these non-wordforming characters as valid in a keyword rendering within the \w…\w* markers without defining them as word-medial punctuation, or is our only other option to deny all the messages for this error?
機器翻譯自 English