我不完全確定 python 做了什麼,但(假設 引號在傳送至 XeTeX 部分時被識別為引號),如果它們之間沒有空格等內容,程式就會在它們之間加入 \quotekernamount 的間距。我不完全確定原因,但目前的代碼顯示為 \quotekernamount=0pt。如果是 0pt,那麼字元之間唯一的字距調整就取決於字型內建的字距調整。
此外, 我目前看不到 PTXprint 使用者介面中有任何控制選項,甚至在 TeXpert hacks 頁面也沒有。哎呀。
當然,您可以前往進階分頁,
確保已勾選「套用自訂設定」,
點擊「編輯」,然後加入一行類似以下的內容:
\quotekernamount=0.3ex
(其中 1ex 是該字型中 x 的高度,當然您也可以使用絕對尺寸,例如 pt 或 mm 等)
目前此規則適用的引號清單如下:
U+201C LEFT DOUBLE QUOTATION MARK
U+2018 LEFT SINGLE QUOTATION MARK
U+201D RIGHT DOUBLE QUOTATION MARK
U+2019 RIGHT SINGLE QUOTATION MARK
理想情況下,它應該也對低引號套用相同的邏輯,但我推測它不應該對高低引號的混合使用套用此規則。
I’m not entirely sure what the python does, but (assuming that the quotes as they get through to the XeTeX portion of things are recognised as quotation marks) with no spaces, etc. between them, then it will add \quotekernamount of space between them. I’m not entirely sure why, but the code currently says \quotekernamount=0pt. If it is 0pt, then the only kerning between the characters depends on the font’s in-built kerning.
Also, I can’t see any control in PTXprint’s user interface at the moment, not even on the TeXpert hacks page. Oops.
You can of course go to the advanced tab,
Ensure that there’s a tick / check on apply customised settings,
click on “Edit”, and then add a line something like:
\quotekernamount=0.3ex
(where 1ex is the height of an x in the font, you can of course use an absolute dimension, like pt or mm, etc)
The current list of quotes for which this apply are:
U+201C LEFT DOUBLE QUOTATION MARK
U+2018 LEFT SINGLE QUOTATION MARK
U+201D RIGHT DOUBLE QUOTATION MARK
U+2019 RIGHT SINGLE QUOTATION MARK
Ideally, it would also apply the same logic to low quotes, but I presume it should not apply it to mixtures of high and low quote marks.
機器翻譯自 English 顯示原文