任务单 #33582

A bug of parameter kanjiskip setting

开放日期: 2014-03-27 21:38 最后更新: 2014-05-11 11:03

报告人:
属主:
类型:
状态:
关闭
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
1

Details

There is a MWE.

  1. \documentclass{minimal}
  2. \usepackage{luatexja}
  3. \ltjsetparameter{kanjiskip=2pt plus .1pt minus 1pt}
  4. \edef\x{\ltjgetparameter{kanjiskip}}
  5. \show\x
  6. \ltjsetparameter{kanjiskip=2pt minus 1pt}
  7. \edef\y{\ltjgetparameter{kanjiskip}}
  8. \show\y
  9. \stop
The result is
> \x=macro:
->2.0pt plus 0.1pt minus 1.0pt.
l.8 \show\x
         
? 
> \y=macro:
->2.0pt plus 1.0pt.
l.12 \show\y
The \x is fine. But I think tha the value of \y should be 2.0pt minus 1.0pt to correspond to \ltjsetparameter.

It seems that the shrink value of kanjiskip can't be set without a stretch value. I have searched luatexja-en.pdf for detail. But I can't find anything about it. Is this intentional or I miss something?

任务单历史 (3/5 Histories)

2014-03-27 21:38 Updated by: qinglee
  • New Ticket "A bug of parameter kanjiskip setting" created
2014-03-27 22:34 Updated by: h7k
评论

Thanks. "Fixed" at commit 0275521 (or attached ltj-base.lua.diff).


By the way, in my environment (LuaTeX rev 4917),

  1. %#!luatex
  2. \input luatexja.sty
  3. \ltjsetparameter{kanjiskip={2pt minus 1fil}}
  4. \edef\y{\ltjgetparameter{kanjiskip}}
  5. \show\y
  6. \bye
produces
> \y=macro:
->2.0pt minus 1.0pt.
which should be 2.0pt minus 1.0fil, even the above patch is applied.

But I suspect that there is a bug of LuaTeX, since

%#!luatex
\directlua{
  local s = node.new( node.id('glue_spec') )
  s.width = 65536
  s.stretch_order, s.stretch = 1, 10000
  s.shrink_order, s.shrink = 2, 655360
  tex.setskip(0, s)
}
\message{\the\skip0}
\bye
produces
This is LuaTeX, Version beta-0.79.0 
 restricted \write18 enabled.
(./test.tex 1.0pt plus 0.15259fi minus 10.0pt )
No pages of output.
Transcript written on test.log.
which should be 1.0pt plus 0.15259fi minus 10.0fil.

2014-03-28 07:34 Updated by: h7k
  • 处理结果 Update from to Fixed
  • 属主 Update from (无) to h7k
评论

h7k への返信

By the way, in my environment (LuaTeX rev 4917), ... produces {{{

\y=macro:

->2.0pt minus 1.0pt. }}} which should be 2.0pt minus 1.0fil, even the above patch is applied.

That is fixed in LuaTeX rev 4952.

2014-05-11 11:03 Updated by: h7k
  • 状态 Update from 开启 to 关闭
  • Ticket Close date is changed to 2014-05-11 11:03
评论

Fixed in Release 20140504.0.

Attachment File List

编辑

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