0 票
163 次瀏覽

我們用於當地文字的字型相當不錯,但英文字母、數字和標點符號卻不然。我可以在 ptxprint-premods.tex 或 ptxprint-mods.tex 中加入哪些 XeTeX 指令來替換字形?我希望將大部分文字的字型設為字型 A,但使用字型 B 的字形來顯示數字和少數標點符號。

我嘗試使用備援字型(Fallback Font),並在「缺字」文字框中加入「0 1 2 3 4 5 6 7 8 9」。但 PTXprint 失敗並顯示通用的「Failed to create」錯誤。

機器翻譯自 English
PTXprint 由 (126 點) 提出 | 163 次瀏覽

1 個回答

0 票

我認為你不應該使用備援字型(fallback-font)方法,因為它會對所有數字產生不良影響,而你不想破壞 s1、q1 等樣式。我建議改用多階段方法:

  1. 指定一個能良好顯示數字的不同字型,並將其應用於章節、節號等樣式。
  2. 建立一個自訂字元樣式,指定該字型用於文中的數字。
    例如,這樣你可以獲得良好的結果:
\s1 The feeding of the \+znum 5000\+znum*
  1. 制定一些變更規則,不要將節號、章號等數字包裹在 \+znum \+znum*中,但要包裹其他數字。
  2. 我可能忘記了一些事項……
機器翻譯自 English
由 (1.1k 點) 提出

找不到相關問題

Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, purifies us from all sin.
1 John 1:7
3,060 個問題
6,021 個回答
5,689 則評論
2,035 位使用者