Ticket #41035

Do we need "\forceglue"?

Open Date: 2020-12-07 13:30 Last Update: 2020-12-24 05:19

Reporter:
Owner:
(None)
Status:
Open
Component:
(None)
MileStone:
(None)
Priority:
4
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

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
  • Priority Update from 1 - Lowest to 4
  • Severity Update from 1 - Lowest to 5 - Medium
Comment

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
Comment

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
Comment

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
  • Resolution Update from None to Fixed
Comment

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

Edit

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