根据你的评论,我推测任何字符样式,或新的诗歌行(\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