我發現一個錯字/筆誤,FRT-s 和 FRT-e 看起來像是里程碑(milestones)。它們的作用類似於 cat,可以實現複雜的樣式,但 usfm 不同,且樣式化的方式也不同。範圍里程碑(ranged milestones)的行為主要更像跨段落邊界持續存在的字元樣式。使用範圍里程碑的格式如下:
\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