Ticket #31678

luaotfload 2.3 で "attempt to index field 'ids'" エラー

Date d'ouverture: 2013-07-08 05:56 Dernière mise à jour: 2013-07-11 19:10

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
Aucun

Détails

luaotfload が 2.3 に更新されましたが,LuaTeX-ja 20130515.0 のままで

\input luatexja.sty
\jfont\xxx=file:KozMinPr6N-Regular.otf:jfm=ujis
\xxx あああ
\end
をタイプセットさせると
! LuaTeX error ./ltj-rmlgbm.lua:322: attempt to index field 'ids' (a nil value).
<to be read again> 
\afterassignment 
\jfont \-\afterassignment 
                          \ltj@@jfont \directlua {luatexja.jfont.jfontdefX(f...
l.39 \jfont
         \sevenmin=\ltj@stdmcfont:jfm=ujis at 6.73551pt
というエラーが出ます.


なお,このエラーは既に先日角藤さんから報告があり,W32TeX や LuaTeX-ja の git リポジトリでは修正済みです (commit 5732f2ca). 今日の午後〜夜にでもリリースをします.

Ticket History (3/10 Histories)

2013-07-08 05:56 Updated by: h7k
  • New Ticket "luaotfload 2.3 で "attempt to index field 'ids'" エラー" created
2013-07-08 06:24 Updated by: h7k
  • Résolution Update from Aucun to Fixed
  • Propriétaire Update from (Aucun) to h7k
Commentaire

今日の午後〜夜にでもリリースをします.

といいながら,時間があったのであわてて 20130708.0 をリリース,CTAN にアップロードしました.

2013-07-08 21:37 Updated by: h7k
Commentaire

CTAN の Petra Ruebe-Pugliese さんから,以下のようなメールがきました:

When processing it, I stumbled on a problem:

>

Your upload includes a great number of .sty and .cls files _as well as_ .dtx and .ins files. (So does, by the way, the version of luatexja currently installed in our archive.) I suppose that the .sty and .cls files could be (re)generated from the .dtx and .ins files? Now it is CTAN policy to avoid such redundancies as far as possible, with the exception of .pdf files, that we _do_ want to be available in a compiled format for ready access by the users.

>

This rule has not always been well enforced in the past, but we have decided to be more strict from now on. It may also be that this requirement is not very well documented on the web page -- there is still a lot to do about our web presentation; we would appreciate your feedback about that.

>

It may also be that the maintainer who installed your last version was in a hurry, so that he overlooked these files, that are after all quite well hidden. -- Or did you have a special arrangement with him that I do not know about?

>

I would be grateful I you could answer these questions as soon as possible by replying to the present email. (Write to ctan@dante.de, that is our central address, so each of the maintainers will be informed.)

>

If this should really be a "special case" I would go on with the installation.

>

Otherwise, I would ask you to delete the "dependent files" (.sty, .cls, and possibly others I may not have noticed) and to upload again. (It may be that your next upload arrives on the other main CTAN server. In that case, the dialogue would go on with my English colleage. That's why I asked you to reply first to this email so that I know what to do with your files here on the German server.)

どうしましょう?

現段階では,

  • no_runtime/ltjclasses.{dtx,ins} -> src/ltjclasses/*, doc/ltjclasses.pdf 生成
  • no_runtime/ltjltxdoc.{dtx,ins} -> src/ltjclasses/ltjltxdoc.cls, doc/ltjltxdoc.pdf 生成
  • no_runtime/ltjsclasses.{dtx,ins} -> src/ltjsclasses/*, doc/ltjsclasses.pdf 生成
  • doc/luatexja.{dtx,ins} -> マニュアルの各国語版ソース生成に使用. アーカイブ中には luatexja-{ja,en}.tex はなく,pdf のみが存在.
  • no_runtime/luatexja-kinsoku{_make}.tex -> src/ltj-kinsoku.lua 生成に使用

のようになっています.これ以外は手作業による編集です.

2013-07-09 05:44 Updated by: kmaeda
Commentaire

ある程度コメントを書いてからコミットに気付いた…….ざっと見た感じ問題なさそうだと思います.

2013-07-10 20:07 Updated by: h7k
Commentaire

CTAN に再 up する時間がなかなかとれません…….
# 向こうからの返信を待っていますが,多分 CTAN 側としては,こちら側の再 up 待ちなのでしょう.

ltj-kinsoku.lua は make-kinsoku.tex から生成されますが,3c2f534 では (release.sh によって)CTAN に上げるアーカイブから make-kinsoku.tex は消されるようにしています.

しかし,「デフォルト設定を知りたい」という要望は当然あるでしょうから,

  • make-kinsoku.tex 同梱(ltj-kinsoku_make.tex とでも名称変更?),
  • ltj-kinsoku.lua は同梱せず各自生成(または初回実行時に自動生成)

としたほうがいいのかな.どう思います?

# そういえば,非埋め込みフォント作成用に UniJIS 系 CMap が必要になっていることを
# README に追加するのを忘れていました.
# どうせ再 up するのなら,この辺もきっちり整備してからにしたい.

2013-07-10 20:32 Updated by: kmaeda
Commentaire

ltj-kinsoku.lua について,tool にでも make-kinsoku.tex を置いておくのはいかがでしょう. ある意味バイナリファイルのソースのような感じなので,必要な理由を説明すれば大丈夫ではないかと思います. だめなようなら,初回実行時自動生成ですかね.

2013-07-10 21:45 Updated by: h7k
Commentaire

理由説明を書くのが面倒なので^^;

ltj-kinsoku.lua は同梱せず各自生成

としました (ea31acc).luatexja.dtx は更新しましたが,pdf の再生成はまだです.

その関係で,ltj-kinsoku.lua はなくても LuaTeX-ja の読み込みだけは通るようにしています.

2013-07-11 09:11 Updated by: h7k
Commentaire
5858a07d の状態で CTAN に上げておきました.これで OK が出たなら,20130711.0 とします.
2013-07-11 10:27 Updated by: zrbabbler
Commentaire

(単なる愚痴)

うーん、もう少し CTAN の意向を知りたい感じですね。 “dependent”なファイルというのが

  • (LaTeX ユーザには周知であると想定されている) DocStrip(.dtx)形式に由来するものに限る
  • TeX ユーザなら必ず実行可能である導出手順によるものも含む
    ↑今回はこのケース
  • bash、perl、make、Cコンパイラなどの「どの環境にでも存在する訳でない」ものを使用した導出手順によるものも含む

のどこまでを指すのか。

まあ、最後のケースが問題になるパッケージが絶対に出てきて、そのうち CTAN からのアナウンスがあると思いますが。

2013-07-11 19:10 Updated by: h7k
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2013-07-11 19:10
Commentaire

これで OK が出たなら,20130711.0 とします.

というわけで,正式に 20130711.0 としました.これで完了としておきます.

  • 誤って「Releases 20130711.0」のコミットが SF.jp のリポジトリに紛れ込んでいました. このため,TeX Wiki の新着情報のところにフライングで載せられてしまいました.ものすごいチェック頻度だ.
  • \def\ltj@stdmcfont{psft:Ryumin-Right} の誤植は痛い,なぜ気づかなかったのだろう……. 「LuaTeX-ja の使い方」と,TeX Wiki のページに記述しておきました.

ltj-plain.sty, lltjdefs.sty とは共通部分が割とあるので,もしやる気と時間があれば,dtx 化を行うかもしれません.

Attachment File List

No attachments

Modifier

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