我发现了一个笔误/思维错误,FRT-s 和 FRT-e 看起来像是里程碑。它们的作用与 cat 类似,都能实现复杂的样式设置,但 usfm 不同,且样式设置方式也不同。范围里程碑(主要)表现得更像跨越段落边界的字符样式。使用范围里程碑的格式如下:
\FRT-s\*
\mt1 Title
...
\FRT-e\*
要为此设置样式,您需要定义一个范围里程碑(FRT-s … FRT-e),然后可以为其指定字符样式选项,或者针对复杂样式 FRT-s+mt1(更安全)。如果需要应用段落样式(例如行距),我认为您仍然需要通过另一种方式来实现(如果我没记错的话,是 ms:FRT-s|mt1)。USFM 标准对于里程碑是否应该能够更改段落样式并未作出说明。
一个较新的选项(也是 USFM 标准中未明确提及的另一个选项)是使用分类段落样式。但这也可以工作:
\mt1 \cat big\cat* Big version of title
此处的样式将应用于 cat:big|mt1 的段落样式
如果您使用本地样式文件,只需包含以下内容:
\Marker cat:big|mt1
\FontSize 36
所有其他属性都将从正常的 mt1 样式继承。
I spot a typo / thinko, the FRT-s and FRT-e look like milestones. They work similarly to cat, in that they let you get complicated styling, but the usfm is different and the way to style them are different. Ranged milestones (mostly) behave more like character styles that persist across paragraph boundaries. The format for using a ranged milestone would be:
\FRT-s\*
\mt1 Title
...
\FRT-e\*
To style this, you’d need to define a ranged milestone (FRT-s … FRT-e) and then you can specify character-style options to that, or for the complex style FRT-s+mt1 (safer). If you need to apply paragraph styling (e.g. line spacing), then I think you still need to do that another way (ms:FRT-s|mt1, if I remember correctly). The USFM standard is silent about whether milestones ought to be able to change paragraph styles.
A newer option (and another one that’s not explicitly mentioned within the USFM standard), is to use a categorized paragraph style. but this will also work:
\mt1 \cat big\cat* Big version of title
Styling for this would be applied to a paragraph style for cat:big|mt1
If you use a local style file, you can just include:
\Marker cat:big|mt1
\FontSize 36
All other properties will be inherited from the normal mt1 style.
机器翻译自 English 显示原文