Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\inhibitxspcode`! の設定がない #8

Closed
h-kitagawa opened this issue Aug 24, 2020 · 5 comments
Closed

\inhibitxspcode`! の設定がない #8

h-kitagawa opened this issue Aug 24, 2020 · 5 comments
Labels

Comments

@h-kitagawa
Copy link
Member

疑問符については kinsoku.tex に

\prebreakpenalty`?=10000
\prebreakpenalty`?=10000
\inhibitxspcode`?=1

という設定があるのに,感嘆符については

\prebreakpenalty`!=10000
\prebreakpenalty`!=10000

しかなく,\inhibitxspcode`!=1 が抜けています.これは意図的でしょうか?

もともとは LuaTeX-ja のチケット「「!」の前の xkanjiskip」ですが,pTeX 系列の kinsoku.tex でも同様の症状があるので,ここで述べておきます.

@aminophen
Copy link
Member

意図的かどうかはよくわかりません。jsclasses では

% 「\TeX!」「〒515」の記号と数字の間に四分アキが入らないようにします。
%
%    \begin{macrocode}
\inhibitxspcode`!=1
\inhibitxspcode`〒=2
%    \end{macrocode}
%

としてありますね。

@aminophen
Copy link
Member

aminophen commented Aug 25, 2020

JFM と考え合わせると,min10 だと "!" が前後に JFM グルー挿入を行うため「実質的に \inhibitxspcode`! を忘れていても露呈するケースは少ない」と言えそうです。(ただし,min10 では "?" も同様に前後に JFM グルー挿入を行うため,これが「意図的に "!" を外した理由」と推測するのは無理がある)

一方 jis だと JFM グルーが挿入されないので,設定忘れが露呈します。jsclasses で設定追加されているのも納得。

@aminophen
Copy link
Member

このような状況ですので,(u)kinsoku.tex に

\inhibitxspcode`!=1

を追加しても,既存文書への影響は限定的であり,むしろ追加するのが好ましいと考えます。

aminophen added a commit to texjporg/platex that referenced this issue Sep 28, 2020
aminophen added a commit to texjporg/uptex-base that referenced this issue Sep 28, 2020
aminophen added a commit to texjporg/uplatex that referenced this issue Sep 28, 2020
@aminophen
Copy link
Member

ptex-base, platex, uptex-base, uplatex すべて "!" の \inhibitxspcode を 1 に設定しました。

@aminophen
Copy link
Member

修正した ptex-base / uptex-base 2020-09-30 を出しました。

platex / uplatex も本日リリース予定です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants