texlive[69245] Master/texmf-dist: luatexja (30dec23)

commits+karl at tug.org commits+karl at tug.org
Sat Dec 30 22:26:42 CET 2023


Revision: 69245
          https://tug.org/svn/texlive?view=revision&revision=69245
Author:   karl
Date:     2023-12-30 22:26:42 +0100 (Sat, 30 Dec 2023)
Log Message:
-----------
luatexja (30dec23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/luatex/luatexja/COPYING
    trunk/Master/texmf-dist/doc/luatex/luatexja/README
    trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf
    trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf
    trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx
    trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty
    trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-setwidth.lua
    trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty
    trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty

Modified: trunk/Master/texmf-dist/doc/luatex/luatexja/COPYING
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexja/COPYING	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/doc/luatex/luatexja/COPYING	2023-12-30 21:26:42 UTC (rev 69245)
@@ -1,4 +1,4 @@
-Copyright (c) 2011--2022 The LuaTeX-ja project, All rights reserved.
+Copyright (c) 2011--2023 The LuaTeX-ja project, All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

Modified: trunk/Master/texmf-dist/doc/luatex/luatexja/README
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexja/README	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/doc/luatex/luatexja/README	2023-12-30 21:26:42 UTC (rev 69245)
@@ -1,4 +1,4 @@
-The LuaTeX-ja Package 20231010.0
+The LuaTeX-ja Package 20231230.0
 --------------------------------
 Copyright (c) 2011--2023 The LuaTeX-ja project
 License: modified BSD (see COPYING)
@@ -11,10 +11,9 @@
   doc/luatexja-en.pdf (en), doc/luatexja-ja.pdf (ja).
 
 LuaTeX-ja is developed on
-  <https://osdn.jp/projects/luatex-ja/wiki/FrontPage(en)>.
+  <https://github.com/luatexja/luatexja>.
 If you have questions or recognize bugs/have feature requests,
-we would like you to create a thread in the forum or a ticket
-in the way which OSDN supplies, via links found in the page above.
+we would like you to create an issue.
 
 
 Installation
@@ -42,9 +41,8 @@
 2. If you must/want to install manually:
 
    a. Download the source archive from CTAN,
-      or tagged as 20231010.0 in the Git repository by
-      <http://git.osdn.jp/view?p=luatex-ja/luatexja.git
-                              ;a=snapshot;h=refs/tags/20231010.0;sf=tgz>
+      or tagged as 20231230.0 in the Git repository by
+      <https://github.com/luatexja/luatexja/archive/refs/tags/$VER.zip>
 
    b. Extract the archive and process following three files by LuaLaTeX
       to generate classes for Japanese typesetting:
@@ -93,4 +91,4 @@
   This file and ltj-kinsoku.lua are not used anymore.
   (Do not remove ltj-kinsoku.tex.)
 
-Last commit date: Tue Oct 10 18:41:17 2023 +0900
+Last commit date: Sat Dec 30 09:05:58 2023 +0900

Modified: trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja-en.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja-ja.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx
===================================================================
--- trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/doc/luatex/luatexja/luatexja.dtx	2023-12-30 21:26:42 UTC (rev 69245)
@@ -596,21 +596,21 @@
 %<ja>\paragraph{プロジェクトWiki} プロジェクトWikiは構築中である.
 %<*en>
 \begin{itemize}
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28en%29} (English)
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage} (Japanese)
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28zh%29} (Chinese)
+\item \url{https://github.com/luatexja/luatexja/wiki/Home(en)} (English)
+\item \url{https://github.com/luatexja/luatexja/wiki} (Japanese)
+\item \url{https://github.com/luatexja/luatexja/wiki/Home(zh)} (Chinese)
 \end{itemize}
 %</en>
 %<*ja>
 \begin{itemize}
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage}(日本語)
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28en%29}(英語)
-\item \url{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28zh%29}(中国語)
+\item \url{https://github.com/luatexja/luatexja/wiki}(日本語)
+\item \url{https://github.com/luatexja/luatexja/wiki/Home(en)}(英語)
+\item \url{https://github.com/luatexja/luatexja/wiki/Home(zh)}(中国語)
 \end{itemize}
 %</ja>
 
-%<en>This project is hosted by OSDN.
-%<ja>本プロジェクトはOSDNのサービスを用いて運営されている.
+%<en>This project is hosted by GitHub.
+%<ja>本プロジェクトはGitHubのサービスを用いて運営されている.
 
 %<en>\paragraph{Members}\
 %<ja>\clearpage\paragraph{開発メンバー}\
@@ -675,11 +675,10 @@
 the following distributions:
   \begin{itemize}
   \item \href{https://www.tug.org/texlive/}{\TeX~Live} (in \texttt{texmf-dist/tex/luatex/luatexja})
-  \item \href{http://w32tex.org/}{W32\TeX}\ (in \texttt{luatexja.tar.xz})
   \item MiK\TeX\ (in \texttt{luatexja.tar.xz})
   \end{itemize}
 Harano Aji fonts are also available in these distributions
-(\texttt{haranoaji} in \TeX~Live and MiK\TeX, and \texttt{luatexja.tar.xz} in W32\TeX).
+(\texttt{haranoaji} in \TeX~Live and MiK\TeX).
 %</en>
 %<*ja>
 現在,\LuaTeX-jaはCTAN (\texttt{macros/luatex/generic/luatexja})に収録されている他,
@@ -687,10 +686,9 @@
   \begin{itemize}
   \item MiK\TeX\ (\texttt{luatexja.tar.lzma})
   \item \TeX~Live (\texttt{texmf-dist/tex/luatex/luatexja})
-  \item W32\TeX\ (\texttt{luatexja.tar.xz})
   \end{itemize}
 これらのディストリビューションは原ノ味フォントも収録している
-(\TeX~Live, MiK\TeX では\texttt{haranoaji},W32\TeX では\texttt{luatexja.tar.xz}).
+(\TeX~Live, MiK\TeX では\texttt{haranoaji}).
 %</ja>
 
 %<*en>
@@ -724,11 +722,11 @@
 \begin{itemize}
 \item Clone the Git repository by
 \begin{lstlisting}
-$ git clone git://git.osdn.jp/gitroot/luatex-ja/luatexja.git
+$ git clone https://github.com/luatexja/luatexja.git
 \end{lstlisting}
-\item Download the \texttt{tar.gz} archive of HEAD in the \texttt{master} branch from
+\item Download the \texttt{zip} archive of HEAD in the \texttt{master} branch from
 \begin{flushleft}
-\url{http://git.osdn.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
+\url{https://github.com/luatexja/luatexja/archive/refs/heads/master.zip}.
 \end{flushleft}
 \end{itemize}
 
@@ -742,11 +740,11 @@
 \begin{itemize}
 \item Gitリポジトリを次のコマンドでクローンする:
 \begin{lstlisting}
-$ git clone git://git.osdn.jp/gitroot/luatex-ja/luatexja.git
+$ git clone https://github.com/luatexja/luatexja.git
 \end{lstlisting}
-\item \texttt{master} ブランチのスナップショット(\texttt{tar.gz} 形式)をダウンロードする:
+\item \texttt{master} ブランチのスナップショット(\texttt{zip} 形式)をダウンロードする:
 \begin{flushleft}
-\url{http://git.osdn.jp/view?p=luatex-ja/luatexja.git;a=snapshot;h=HEAD;sf=tgz}.
+\url{https://github.com/luatexja/luatexja/archive/refs/heads/master.zip}.
 \end{flushleft}
 \end{itemize}
 \texttt{master} ブランチ(従って,CTAN内のアーカイブも)はたまにしか更新されないことに注意.
@@ -830,43 +828,6 @@
   また,和文フォントを読み込むために多量のメモリを消費することにも注意が必要である.
 %</ja>
 
-\item%
-%<*en>
-\textbf{(Outdated) note for MiK\TeX\ users}\quad
-\LuaTeX-ja requires that several CMap files%
-\footnote{\texttt{UniJIS2004-UTF32-\{H,V\}} and \texttt{Adobe-Japan1-UCS2}.}
-must be found from \LuaTeX.
-Strictly speaking, those CMaps are needed
-only in the first run of \LuaTeX-ja after installing or updating.
-But it seems that MiK\TeX\ does not satisfy this condition,
-so you will encounter an error like the following:
-%</en>
-%<*ja>
-\LuaTeX-jaが動作するためには,\emph{導入・更新後の初回起動時に}
-\texttt{UniJIS2004-UTF32-\{H,V\}}, \texttt{Adobe-Japan1-UCS2}という3つのCMapが
-\LuaTeX によって見つけられることが必要である.
-しかし古いバージョンのMiK\TeX ではそのようになっていないので,次のエラーが発生するだろう:
-%</ja>
-\begin{lstlisting}
-! LuaTeX error ...iles (x86)/MiKTeX 2.9/tex/luatex/luatexja/ltj-rmlgbm.lua
-bad argument #1 to 'open' (string expected, got nil)
-\end{lstlisting}
-
-%<*en>
-If so, please execute a batch file which is written on
-\href{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28en%29}{ the Project Wiki (English)}.
-This batch file creates a temporary directory, copy CMaps in it,
-run a test file which loads \LuaTeX-ja in this directory,
-and finally delete the temporary directory.
-%</en>
-%<*ja>
-そのような場合には,
-\href{https://osdn.jp/projects/luatex-ja/wiki/FrontPage%28en%29}{%
-  プロジェクトWiki英語版トップページ}中に書かれているバッチファイルを
-実行して欲しい.このバッチファイルは,作業用ディレクトリにCMap達を
-コピーし,その中で\LuaTeX-jaの初回起動を行い,作業用ディレクトリを消す作業をしている.
-%</ja>
-
 \item
 %<*en>
 Note that when \LuaTeX-ja is loaded in plain \LuaTeX,
@@ -4016,9 +3977,6 @@
 
  In this situation, \LuaTeX-ja performs all replacements which is defined in~\texttt{vert}
  feature for \emph{some} scripts for \emph{some} languages.
- \item Furthermore, a glyph is automatically rotated 90~degrees,
-  if it is not replaced by \texttt{vert} feature for \emph{any} script
-  for \emph{any} language, and if it is marked as `r''~or~``Tr'' in UAX~\#50.
  \item \cs{tfont} uses a vertical JFM instead of a horizontal JFM.
 \LuaTeX-ja ships following vertical JFMs:
 \begin{description}
@@ -4079,8 +4037,7 @@
   このscript,~languageの組み合わせを指定することはできないので,
   \Pkg{luaotfload}そのままでは\texttt{vert}を適用させることはできない.
  }.
- \item さらに,「いかなるscript,~languageでも\texttt{vert}により置換されない」グリフ
-  のうち,UAX~\#50で``r''もしくは``Tr''と指定されているものは90度自動回転させる.
+ \item さらに,置換前と置換後のグリフがどちらも「UAX~\#50で``r''もしくは``Tr''と指定されている」ものは90度自動回転させる.
  \item \ref{ssec:math}節で述べる,数式中の和文フォントには縦組用和文フォントは指定できない.
  \item \meta{JFM name}には縦組用JFMを指定する.
 以下の縦組用JFMが\LuaTeX-jaには同梱されている.%おり,違いを\autoref{tab-difjfm-tate}に示した.
@@ -11918,7 +11875,7 @@
       1.7}, 2008. \newblock
 \url{http://www.iso.org/iso/iso\_catalogue/catalogue_tc/catalogue\_detail.htm?csnumber=51502}
 \bibitem{tc18ltja} 北川弘典.「\LuaTeX-jaの近況」,\TeX Conf~2018.
-  \url{https://osdn.net/projects/luatex-ja/wiki/Documentation/attach/tc18ltja.pdf}
+  \url{https://raw.githubusercontent.com/h-kitagawa/presentations/main/tc18ltja.pdf}
 \bibitem{bxghost} Takuto ASAKURA. \newblock The \textsf{BXghost} Package. \url{https://github.com/wtsnjp/BXghost}
 \end{thebibliography}
 

Modified: trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-base.sty	2023-12-30 21:26:42 UTC (rev 69245)
@@ -123,7 +123,7 @@
 %!   (command_name が "assign_int" であるトークン).
 %! (注意: まだ文字表記(`A)に対応していません.)
 \def\ltj at grab@num{
-  \directlua{tex.sprint('{' .. token.scan_int() .. '}')}
+  \directlua{tex.sprint(luatexbase.catcodetables['latex-package'], '{' .. token.scan_int() .. '}')}
 }
 
 %%------------------ Safe passing

Modified: trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-setwidth.lua
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-setwidth.lua	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/tex/luatex/luatexja/ltj-setwidth.lua	2023-12-30 21:26:42 UTC (rev 69245)
@@ -64,6 +64,7 @@
 local attr_vert_ori = luatexbase.attributes['ltj at vert@ori']
 
 local ltjf_font_extra_info = ltjf.font_extra_info
+local ltjs_orig_char_table = ltjs.orig_char_table
 
 local PACKED       = luatexja.icflag_table.PACKED
 local PROCESSED    = luatexja.icflag_table.PROCESSED
@@ -191,8 +192,15 @@
       local feir = ltjf_font_extra_info[pf]
       if met.rotation and met.vert_activated then
           local f = font_getfont(pf)
-          local r, l = met.rotation[pc], f.properties and f.properties.language
-          if ((r==true) or (type(r)=="table" and not r[l])) and (get_attr(p, attr_vert_ori) or 0)<=0 then
+          local pco = ltjs_orig_char_table[p] or pc
+          local r = met.rotation[pco]
+          local l = f.properties and f.properties.language
+          r = (r==true) or (type(r)=="table" and not r[l])
+          if r then
+            r = met.rotation[pc]
+            r = (r==true) or (type(r)=="table" and not r[l])
+          end
+          if r and (get_attr(p, attr_vert_ori) or 0)<=0 then
             return capsule_glyph_tate_rot(p, met, char_data, head, dir,
               0.5*(get_ascender(pf)-get_descender(pf)))
           end

Modified: trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja-core.sty	2023-12-30 21:26:42 UTC (rev 69245)
@@ -546,7 +546,7 @@
   \ltj at reset@globaldefs
   \begingroup\ltj at curjfnt\m at ne\ltj at curtfnt\m at ne\relax
   #1\directlua{luatexja.__temp = -(\the\ltj at curjfnt)*(\the\ltj at curtfnt)}\endgroup
-  \ltj at tempcntc=\directlua{tex.sprint(luatexja.__temp)}\relax
+  \ltj at tempcntc=\directlua{tex.sprint(-2,luatexja.__temp)}\relax
   \ifnum\ltj at tempcntc=\m at ne
     \@PackageError{luatexja-core}%
     {\string#1 is not a control sequence that represents \MessageBreak

Modified: trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty
===================================================================
--- trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty	2023-12-30 21:26:25 UTC (rev 69244)
+++ trunk/Master/texmf-dist/tex/luatex/luatexja/luatexja.sty	2023-12-30 21:26:42 UTC (rev 69245)
@@ -27,7 +27,7 @@
 \newif\ifltj at disablejfam
 
 %%%% VERSION
-\def\LuaTeXjaversion{20231010.0}
+\def\LuaTeXjaversion{20231230.0}
 
 %% Check if LaTeX is used.
 \begingroup\expandafter\expandafter\expandafter\endgroup



More information about the tex-live-commits mailing list.