待辦事項 #41035

Do we need "\forceglue"?

啟用日期: 2020-12-07 13:30 最後更新: 2020-12-24 05:19

回報者:
負責人:
(無)
類型:
狀態:
開啟
元件:
(無)
里程碑:
(無)
優先權:
4
嚴重程度:
5 - 中
處理結果:
修正
檔案:

細節

In luatexja, we can use \inhibitglue or \< to stop luatexja inserting glue around a JAchar. But sometimes when we need to temporarily or forcibly insert a kanjiskip or an xkanjiskip (especially xkanjiskip), what can we do?

For example, I want to temporarily insert an xkanjiskip between ( and あ. In luatexja.dtx, (\hskip\ltjgetparameter{xkanjiskip}あ is used (line 2271), or we can use \ltjsetparameter{alxspmode...} to set it, but it cannot be multiply changed in one paragraph. However when luatexja-adjust is used, the JAglue will have priorities. The \hskip\ltjgetparameter{xkanjiskip} will be stretched firstly while other xkanjiskips are the third to be stretched.

Therefore, do we need a command like "\forceglue", especially "\forcexkglue" or "\>" to tell luatexja to insert an xkanjiskip here and "\forcekglue" to tell luatexja to insert a kanjiskip there? And they will have the same priorities like other JAglues under luatexja-adjust.

Just a discussion, thank you very much.

Ticket History (3/5 Histories)

2020-12-07 13:30 Updated by: tanukihee
  • New Ticket "Do we need "\forceglue"?" created
2020-12-09 15:46 Updated by: h7k
  • 優先權 Update from 1 - 最低 to 4
  • 嚴重程度 Update from 1 - 最低 to 5 - 中
評語

do we need a command like "\forceglue", especially "\forcexkglue" or "\>" to tell luatexja to insert an xkanjiskip here and "\forcekglue" to tell luatexja to insert a kanjiskip there? And they will have the same priorities like other JAglues under luatexja-adjust.

That's a good idea. I'll work on the holiday season.

Note that \> is defined as a synonym of \medspace by LaTeX kernel (unlike \<), so I'm not sure that it is good to define \> always by the LuaTeX-ja package. (Personally, I prefer to define/use a short form \>.)

2020-12-09 19:58 Updated by: tanukihee
評語

What about "\+"? It is not defined by LaTeX neither. (But it's a quite important macro in TeX...)

(Edited, 2020-12-09 22:38 Updated by: tanukihee)
2020-12-23 08:24 Updated by: h7k
評語

Added \insertxkanjiskip and \insertkanjiskip in commit 6be0fb5. By default, they use values at the execution place, but \insertxkanjiskip late and \insertkanjiskip late uses those at the end of the paragraph. I hope they work fine with luatexja-adjust.

shorthand form

I didn't put any shorthand form in LuaTeX-ja itself now.

  • I defined \protected\def\+{\insertxkanjiskip late} in luatexja.dtx now.
  • Perhaps BXjscls's way (use \>, but it behaves as \medspace in math mode) is an appropreate way.
2020-12-24 05:19 Updated by: h7k
  • 處理結果 Update from to 修正
評語

I released LuaTeX-ja 20201224.0, which includes \insertxkanjiskip. But I leave this ticket open, because of the shorthand form.

Attachment File List

No attachments

編輯

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登入