Ticket #33958

fontspec 2.4 で luatexja-fontspec が正常に動作しない

Open Date: 2014-06-19 20:31 Last Update: 2014-06-21 21:03

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
7
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

TeX forum で,浮亭さんが次のようなエラーを報告されています(以下 オリジナルの投稿 より引用):

次の sample.tex で \usepackage[ipa]{luatexja-preset} を追加
してコンパイルしました.

------------------------------
\documentclass{ltjsarticle}
\usepackage{luatexja}
\usepackage[ipa]{luatexja-preset} %%これを追加した
\begin{document}
\section{はじめてのLua\TeX-ja}
ちゃんと日本語が出るかな?
\subsection{出たかな?}
長い文章を入力するとちゃんと右端のところで折り返されるかな?
大丈夫そうな気がするけど.ちょっと不安だけど何事も挑戦だよね.
\end{document}
------------------------------

c:> luajitlatex sample.tex

次のエラーが出ました.

(c:/w32tex/share/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
! Undefined control sequence.
l.278 \fontspec_define_feature_option:nnnnn
{CJKShape}{JIS2004}{20}{5}{+jp04}
?

対策わかりません.調査の程,よろしくお願いします.

Ticket History (3/13 Histories)

2014-06-19 20:31 Updated by: h7k
  • New Ticket "fontspec 2.4 で luatexja-fontspec が正常に動作しない" created
2014-06-19 21:23 Updated by: kmaeda
Comment

README を読んでみたのですが,NFSSFamily=... というのが追加されているみたいです. これで和文フォントファミリ名を mc と gt に固定できれば,横組み・縦組み別の fontspec 実装は解決できるのかな. それでいいのかどうかはわかりませんが.

新機能対応は置いておいて,とりあえず動かせるようにできないか見てみます.

2014-06-19 22:37 Updated by: kmaeda
Comment

master から分岐して,kmaeda_fontspec ブランチを作りました.テストはまだあまりしていないですが,一応動いています. 色々手を入れないといけなさそうなので,23 と 24 に分けました.23 はそのうち削除しましょう.

l3kernel も上げたら,l3luatex がなくなっていて lualatex-math でひっかかりました.

2014-06-20 05:47 Updated by: h7k
Comment

ありがとうございます.いろいろ試してみましたら,次のような不具合を見つけました:

  • AltFont= ... の処理に,..._fontid が残っている:
    $ luajitlatex test20a-mfont-fontspec
    ...
    ! Undefined control sequence.
    \__ltj_fontspec_altfont_key_code:n ...te_fontid:n 
                                                      {alt:#1}
    l.12 ]{JJSYuMinchoPr6N-R}
    
  • Noembed オプションが効かない:
    $ luajitlatex test09-fontspec
    ...
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !
    ! fontspec error: "font-not-found"
    ! 
    ! The font "Ryumin-Light" cannot be found.
    ! 
    ! See the fontspec documentation for further information.
    ! 
    ! For immediate help type H <return>.
    !...............................................  
                                                      
    l.59 {\jfontspec[NoEmbed]{Ryumin-Light}
    
2014-06-20 08:46 Updated by: kmaeda
Comment

どうもです.自分の普段の設定が動くことを目標にしていたので,その辺は後回しにしていました. c28036e で直っていると思います.

2014-06-20 19:04 Updated by: None
Comment

alas, an English-speaker (using luatexja for kanji) needs elucidation in English for same problem. Rembrandt Wolpert

2014-06-20 19:32 Updated by: h7k
Comment

どうもです.自分の普段の設定が動くことを目標にしていたので,その辺は後回しにしていました. c28036e で直っていると思います.

The error in test20a-mfont-fontspec is disappeared, but the output in 'addfontfeatures' paragraph is not intentional. (Some kanjis should be written in blue, and in its traditional variant.)

After this situation is solved, I wil upload the new version to CTAN.

2014-06-20 19:51 Updated by: kmaeda
Comment

I have not rewrite \addjfontfeatures yet. Please wait for a while. Thank you.

2014-06-20 20:16 Updated by: None
Comment

Reply To kmaeda

I have not rewrite \addjfontfeatures yet. Please wait for a while. Thank you.

Thank you so much for the English explanation -- I shall be patient (I reverted to an older version in the meantime). Will there be a texlive/tlmgr update? Again many thanks. r.f.wolpert at g mail.com

2014-06-21 13:53 Updated by: kmaeda
Comment

I rewrote all the commands for fontspec v2.4.

Will there be a texlive/tlmgr update?

As h7k (Kitagawa-san) wrote, the new version will be uploaded to CTAN. Then, texlive's luatexja will be updated soon.

2014-06-21 15:15 Updated by: h7k
Comment

I just uploaded the new version (20140621.0) to CTAN. TeX Live's luatexja will be updated in (perhaps) few days.

2014-06-21 16:51 Updated by: None
Comment

Thank you so much! Rembrandt

2014-06-21 21:03 Updated by: h7k
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2014-06-21 21:03
Comment

20140621.0 をリリースしたので完了としておきます.

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