Note that this package is still *alpha-stage*; documentations are not complete
and specifications are subject to change. Documentations are located at
- doc/luatexja-en.pdf (en), doc/luatexja-ja.pdf (ja), doc/luatexja-zh.pdf (zh).
+ doc/luatexja-en.pdf (en), doc/luatexja-ja.pdf (ja).
+These documents are generated from doc/luatexja.{dtx,ins}. However,
+to produce PDF files, you will need Kozuka fonts (commercial fonts).
LuaTeX-ja is developed on
<http://sourceforge.jp/projects/luatex-ja/wiki/FrontPage(en)>.
<http://git.sourceforge.jp/view?p=luatex-ja/luatexja.git
;a=snapshot;h=refs/tags/$VER$;sf=tgz>
- b. Extract the archive and put src/ into your TEXMF tree.
+ b. Extract the archive and process following three files by LuaLaTeX
+ to generate classes for Japanese typesetting:
+ src/ltjclasses.ins
+ src/ltjltxdoc.ins
+ src/ltjsclasses.ins
+
+ c. Put src/ into your TEXMF tree.
An example location is TEXMF/tex/luatex/luatexja.
If you are updating from old version, you MUST remove it before
extracting the new version of LuaTeX-ja.
- c. You may need to update the filename database, by 'mktexlsr' or something.
+ d. You may need to update the filename database, by 'mktexlsr' or something.
Basic Usage
%</ja>
%<*en>
+\item If you downloaded this package from CTAN, you have to process following three
+ files with \LuaLaTeX to generate classes:
+%</en>
+%<*ja>
+\item もしCTANから本パッケージを取得したのであれば,日本語用クラスファイルを
+生成するために,以下の3ファイルを\LuaLaTeX で処理する必要がある:
+%</ja>
+\begin{itemize}
+ \item \texttt{src/ltjclasses/ltjclasses.ins}
+ \item \texttt{src/ltjclasses/ltjltxdoc.ins}
+ \item \texttt{src/ltjsclasses/ltjsclasses.ins}
+\end{itemize}
+
+%<*en>
\item Copy all the contents of \texttt{src/} into one of your \texttt{TEXMF} tree.
\texttt{TEXMF/tex/luatex/luatexja/} is an example location.
If you cloned entire Git repository, making a symbolic link of \texttt{src/}
+++ /dev/null
-%#!lualatex luatexja-kinsoku_make.tex
-\documentclass{article}
-\usepackage{luatexja}
-\makeatletter
-\input{luatexja-kinsoku.tex}
-\usepackage{luacode}
-\begin{luacode}
- s = table.copy(luatexja.stack.charprop_stack_table[0])
- s.kanjiskip = nil; s.xkanjiskip = nil
- table.tofile('ltj-kinsoku.lua', s, 'return', false, true, false)
-\end{luacode}
-\begin{document}
-\end{document}
+%#!lualatex luatexja-kinsoku_make.tex
+\documentclass{article}
+\usepackage{luatexja}
+\makeatletter
+
\ltj@tempcnta="0%"
\loop\ifnum\ltj@tempcnta<"100%"
\ltjsetparameter{alxspmode={\ltj@tempcnta,0}}%
\ltjsetparameter{jaxspmode={`「,preonly}}
\ltjsetparameter{jaxspmode={`」,postonly}}
-\endinput
-cat `locate ukinsoku.tex` \
- | sed "s/prebreakpenalty\(.*\)=\([0-9]*\)/ltjsetparameter{prebreakpenalty={\1,\2}}/" \
- | sed "s/postbreakpenalty\(.*\)=\([0-9]*\)/ltjsetparameter{postbreakpenalty={\1,\2}}/" \
- | sed "s/inhibitxspcode\(.*\)=0/ltjsetparameter{jaxspmode={\1,inhibit}}/" \
- | sed "s/inhibitxspcode\(.*\)=1/ltjsetparameter{jaxspmode={\1,postonly}}/" \
- | sed "s/inhibitxspcode\(.*\)=2/ltjsetparameter{jaxspmode={\1,preonly}}/" \
- | sed "s/inhibitxspcode\(.*\)=3/ltjsetparameter{jaxspmode={\1,allow}}/" \
- | sed "s/xspcode\(.*\)=0/ltjsetparameter{alxspmode={\1,inhibit}}/" \
- | sed "s/xspcode\(.*\)=2/ltjsetparameter{alxspmode={\1,postonly}}/" \
- | sed "s/xspcode\(.*\)=1/ltjsetparameter{alxspmode={\1,preonly}}/" \
- | sed "s/xspcode\(.*\)=3/ltjsetparameter{alxspmode={\1,allow}}/" > luatexja-kinsoku.tex
\ No newline at end of file
+
+\usepackage{luacode}
+\begin{luacode}
+ s = table.copy(luatexja.stack.charprop_stack_table[0])
+ s.kanjiskip = nil; s.xkanjiskip = nil
+ table.tofile('ltj-kinsoku.lua', s, 'return', false, true, false)
+\end{luacode}
+\begin{document}
+\end{document}
git archive --format=tar --prefix=$PROJECT-$VER/ HEAD | (cd $TEMP && tar xf -)
cd $TEMP
rm -rf $PROJECT-$VER/test
+rm -rf $PROJECT-$VER/src/*.cl*
+rm -rf $PROJECT-$VER/src/make-kinsoku.tex
rm -rf $PROJECT-$VER-orig
cp -r $PROJECT-$VER $PROJECT-$VER-orig
cd $PROJECT-$VER