從您的評論中,我推測任何字符樣式,或新的詩歌行(\q1 , \q2)都會阻擋規則的應用。同樣,節號(\v # )也可能是一個問題。
我沒有答案,但我有一個類似的问题,可能有相關的解決方案,所以我想順手問一下。
我試圖做的是將美式英語標題的大寫規則改為英式標題大寫規則。美式標題樣式將第一個單詞和除有限短詞集以外的所有單詞大寫,而英式樣式僅將第一個單詞和專有名詞大寫。我有執行此操作的邏輯,但我需要一種方法,僅將其應用於標題中的文本(\s1 , \s2 等)。
我發現轉寫專案僅將編碼轉換器更改應用於方言文本,並且它們不感知標記上下文。我在 Paratext 外部有一個 cc 表,可以正確地應用大寫更改,但當我將其載入轉寫專案時,它無法正確運作。我的表會更改所有方言文本欄位。非方言欄位(\id , \rem )未受影響。
為了讓轉寫功能真正有用,我們需要一種能夠感知標記上下文並進行更改的方法。這可能嗎?
From your comments I surmise that any character styling, or a new line of poetry (\q1 , \q2) will block the application of the rule. Likewise a verse number (\v # ) may also be an problem.
I do not have an answer, but I have a similar problem that may have a related solution, so I am piggybacking on your post.
What I am trying to do is to change the capitalization of US English headings to UK title capitalization. US title style capitalizes the first word and all words except a limited set of short words, whereas the UK style capitalizes the first word and only proper nouns. I have the logic to do this, but I need a way to apply it only to text in headings (\s1 , \s2 , etc. ).
What I have found is that transliteration projects only apply encoding converter changes to vernacular text, and they are not aware of markup contexts. I have have a cc table that applies capitalization changes properly outside of Paratext, but when I load it into a transliteration project it does not work correctly. My table makes changes to all vernacular text fields. Non-vernacular fields (\id , \rem ) were not affected
For the transliteration functionality to really be useful, we need a way to make changes that are aware of the markup context. Is that possible?
機器翻譯自 English 顯示原文