From 1746288313031e72e55dfa7fb223cc2e66ce9606 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 22 Dec 2017 21:23:18 +0000 Subject: jlreq (22dec17) git-svn-id: svn://tug.org/texlive/trunk@46121 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/jlreq/README-ja.md | 42 +- Master/texmf-dist/doc/latex/jlreq/README.md | 4 + Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html | 196 +++--- Master/texmf-dist/doc/latex/jlreq/jlreq.html | 11 +- .../texmf-dist/fonts/tfm/public/jlreq/bjlreq-v.tfm | Bin 2032 -> 1932 bytes .../texmf-dist/fonts/tfm/public/jlreq/bjlreq.tfm | Bin 2032 -> 1932 bytes .../fonts/tfm/public/jlreq/bjlreqg-v.tfm | Bin 2032 -> 1932 bytes .../texmf-dist/fonts/tfm/public/jlreq/bjlreqg.tfm | Bin 2032 -> 1932 bytes .../fonts/tfm/public/jlreq/bzjlreq-v.tfm | Bin 2068 -> 1968 bytes .../texmf-dist/fonts/tfm/public/jlreq/bzjlreq.tfm | Bin 2068 -> 1968 bytes .../fonts/tfm/public/jlreq/bzjlreqg-v.tfm | Bin 2068 -> 1968 bytes .../texmf-dist/fonts/tfm/public/jlreq/bzjlreqg.tfm | Bin 2068 -> 1968 bytes .../texmf-dist/fonts/tfm/public/jlreq/jlreq-v.tfm | Bin 2004 -> 1904 bytes Master/texmf-dist/fonts/tfm/public/jlreq/jlreq.tfm | Bin 2004 -> 1904 bytes .../texmf-dist/fonts/tfm/public/jlreq/jlreqg-v.tfm | Bin 2004 -> 1904 bytes .../texmf-dist/fonts/tfm/public/jlreq/jlreqg.tfm | Bin 2004 -> 1904 bytes .../fonts/tfm/public/jlreq/ubjlreq-v.tfm | Bin 2440 -> 2332 bytes .../texmf-dist/fonts/tfm/public/jlreq/ubjlreq.tfm | Bin 2440 -> 2332 bytes .../fonts/tfm/public/jlreq/ubjlreqg-v.tfm | Bin 2440 -> 2332 bytes .../texmf-dist/fonts/tfm/public/jlreq/ubjlreqg.tfm | Bin 2440 -> 2332 bytes .../fonts/tfm/public/jlreq/ubzjlreq-v.tfm | Bin 2476 -> 2368 bytes .../texmf-dist/fonts/tfm/public/jlreq/ubzjlreq.tfm | Bin 2476 -> 2368 bytes .../fonts/tfm/public/jlreq/ubzjlreqg-v.tfm | Bin 2476 -> 2368 bytes .../fonts/tfm/public/jlreq/ubzjlreqg.tfm | Bin 2476 -> 2368 bytes .../texmf-dist/fonts/tfm/public/jlreq/ujlreq-v.tfm | Bin 2412 -> 2304 bytes .../texmf-dist/fonts/tfm/public/jlreq/ujlreq.tfm | Bin 2412 -> 2304 bytes .../fonts/tfm/public/jlreq/ujlreqg-v.tfm | Bin 2412 -> 2304 bytes .../texmf-dist/fonts/tfm/public/jlreq/ujlreqg.tfm | Bin 2412 -> 2304 bytes .../fonts/tfm/public/jlreq/uzjlreq-v.tfm | Bin 2448 -> 2340 bytes .../texmf-dist/fonts/tfm/public/jlreq/uzjlreq.tfm | Bin 2448 -> 2340 bytes .../fonts/tfm/public/jlreq/uzjlreqg-v.tfm | Bin 2448 -> 2340 bytes .../texmf-dist/fonts/tfm/public/jlreq/uzjlreqg.tfm | Bin 2448 -> 2340 bytes .../texmf-dist/fonts/tfm/public/jlreq/zjlreq-v.tfm | Bin 2040 -> 1940 bytes .../texmf-dist/fonts/tfm/public/jlreq/zjlreq.tfm | Bin 2040 -> 1940 bytes .../fonts/tfm/public/jlreq/zjlreqg-v.tfm | Bin 2040 -> 1940 bytes .../texmf-dist/fonts/tfm/public/jlreq/zjlreqg.tfm | Bin 2040 -> 1940 bytes Master/texmf-dist/tex/latex/jlreq/jlreq.cls | 764 ++++++++++----------- Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua | 258 ++++--- Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua | 603 +++++++++++----- 39 files changed, 1094 insertions(+), 784 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/jlreq/README-ja.md b/Master/texmf-dist/doc/latex/jlreq/README-ja.md index 4e1afabafbd..5369bda26f1 100644 --- a/Master/texmf-dist/doc/latex/jlreq/README-ja.md +++ b/Master/texmf-dist/doc/latex/jlreq/README-ja.md @@ -200,7 +200,12 @@ } ``` -のように使います. +のように使います.この意味は次の通りです. + +* `\part`,`\section`,`\subsection`という順番で見出しが掲げられていて,その前後が見出しでない場合は,`\part`は三行取り+前に一行空き,`\section`と`\subsection`は二行取りとなります. +* `\section`,`\subsection`という順番で見出しが掲げられていて,その前後が乱し出ない場合は,全体で五行取りとし,`\section`と`\subsection`との間に`23pt`の空き,`\subsection`の後に`16pt`の空きを入れます. + +個々の設定は以下のようになります. * 各々の``{}``内には``_<見出し命令名>``か``<寸法>``をカンマ区切りで並べます. * 先頭に``[]``で囲まれた設定を追加できます.これは連続して掲げられた見出し全体への設定となります.``lines / before_lines / after_lines / before_space / after_space``が利用可能です.各々の意味は上述の行取り指定と同じです. @@ -209,7 +214,7 @@ * 見出しに対する``{}``で囲まれた設定内では,``lines / before_lines / after_lines / before_space / after_space``が利用可能です.各々の意味は上述の行取り指定と同じです. * ``{}``で囲まれた部分を``*``のみにすると(例えば``_section{*}``とすると)単独で掲げた場合と同じ設定を使います. -なお,見出しが連続しているかは単純に別行見出しの命令が並んで書かれているかのみで判断します.従ってそれらの命令間に出力には関係しないような命令が挟まっていたとしても,見出しが連続して掲げられているとは判断されません.ただし,見出し命令の間に空白または`\label`のみが挟まれている場合は,見出しが連続していると判断されます. +なお,見出しが連続しているかは単純に別行見出しの命令が並んで書かれているかのみで判断します.従ってそれらの命令間に出力には関係しないような命令が挟まっていたとしても,見出しが連続して掲げられているとは判断されません.ただし,見出し命令の間に空白,改行または`\label[<オプション>]{<引数>}…{<引数>}`という形のもののみが挟まれている場合は,見出しが連続していると判断されます. ### 同行見出し `\DeclareRuninHeading`で作成します.通常の文書クラスにおける`\section`と同様の,`\<命令名>*[running head]{見出し文字列}`という書式の命令が作成されます.設定は以下の通り. @@ -259,6 +264,35 @@ `\NewPageStyle`,`\RenewPageStyle`,`\ProvidePageStyle`もあります.`\ModifyPageStyle`により既存のページスタイルを改変することが可能です. +## JFM +以下のような独自のJFMを使います.パッケージによっては,パッケージ独自のJFMや,また標準のJFMを使うように設定がし直される場合があります.例えばLuaTeX-jaに付属するluatexja-presetパッケージは通常LuaTeX-ja標準のJFMを使います.本クラスファイルで使っているJFMを使う場合は, +```LaTeX +\usepackage[jfm_yoko=jlreq,jfm_tate=jlreqv,hiragino-pron]{luatexja-preset} +``` +のようにオプションで指定する必要があります. + +### pLaTeX/upLaTeXの場合 +JFMの名前は次の通りです.`[]`で囲まれている文字は設定により入ったり入らなかったりします. +``` +[u][b][z]jlreq[g][-v] +``` +それぞれの文字は以下の場合に入ります. + +* `u`: upLaTeX利用時 +* `b`: ぶら下げ組み利用時.(クラスオプションに`hanging_punctuation`が指定された時.) +* `z`: 行頭における開き括弧類の前の空きが,段落開始時が全角二分,折り返し時が二分の時.(クラスオプションに`open_bracket_pos=zenkakunibu_nibu`が指定された時.) +* `g`: ゴシック用フォント. +* `-v`: 縦書き用. + +例えば,ぶら下げ組みを利用せず,クラスオプションに`open_bracket_pos=zenkakunibu_nibu`が指定されいてるソースをpLaTeXで処理した場合,横書き明朝体には`zjlreq`という名前のJFMが使われます. + +### LuaLaTeXの場合 +* 横書き用のJFMは`jlreq` +* 縦書き用のJFMは`jlreqv` + +となります.ゴシックも同じJFMを使います. + + ## その他 * クラスオプション`jlreq_notes`が渡されると,日本語組版処理の記述と矛盾する設定が行われた場合に通知がされます. @@ -310,6 +344,10 @@ - `\contentsname` と `\indexname`に入っていたスペースを削除. * 2017-12-02 - バグ修正 +* 2017-12-22 + - JFMを改善. + - 別行見出しの間の`\label`の検出方法を変更. + - `\theequation`,`\thefigure`,`\thetable`に章番号を追加. diff --git a/Master/texmf-dist/doc/latex/jlreq/README.md b/Master/texmf-dist/doc/latex/jlreq/README.md index f03fb696ff9..6d00ba2dd30 100644 --- a/Master/texmf-dist/doc/latex/jlreq/README.md +++ b/Master/texmf-dist/doc/latex/jlreq/README.md @@ -64,6 +64,10 @@ This package is distributed under the BSD 2-Clause License. See [LICENSE](LICENS - Removed a space from `\contentsname` and `\indexname`. * 2017-12-02 - Fixed bugs. +* 2017-12-22 + - Improved JFM. + - Change the way to detect `\label` between block headings. + - Added chapter number to `\theequation`,`\thefigure`,`\thetable`. diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html b/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html index 9b467ace760..fe3b66bf5d1 100644 --- a/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html +++ b/Master/texmf-dist/doc/latex/jlreq/jlreq-ja.html @@ -53,45 +53,45 @@ border-style: none; } div.sourceCode { overflow-x: auto; text-indent: 0em;} - code > span.kw { color: #007020; font-weight: bold; } /* Keyword */ - code > span.dt { color: #902000; } /* DataType */ - code > span.dv { color: #40a070; } /* DecVal */ - code > span.bn { color: #40a070; } /* BaseN */ - code > span.fl { color: #40a070; } /* Float */ - code > span.ch { color: #4070a0; } /* Char */ - code > span.st { color: #4070a0; } /* String */ - code > span.co { color: #008000; } /* Comment */ - code > span.ot { color: #007020; } /* Other */ - code > span.al { color: #ff0000; font-weight: bold; } /* Alert */ - code > span.fu { color: #0040FF; } /* Function */ - code > span.er { color: #ff0000; font-weight: bold; } /* Error */ - code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ - code > span.cn { color: #880000; } /* Constant */ - code > span.sc { color: #4070a0; } /* SpecialChar */ - code > span.vs { color: #4070a0; } /* VerbatimString */ - code > span.ss { color: #bb6688; } /* SpecialString */ - code > span.im { } /* Import */ - code > span.va { color: #19177c; } /* Variable */ - code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ - code > span.op { color: #666666; } /* Operator */ - code > span.bu { color: #0040FF; } /* BuiltIn */ - code > span.ex { } /* Extension */ - code > span.pp { color: #bc7a00; } /* Preprocessor */ - code > span.at { color: #7d9029; } /* Attribute */ - code > span.do { color: #ba2121; font-style: italic; } /* Documentation */ - code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ - code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ - code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ + code span.kw { color: #007020; font-weight: bold; } /* Keyword */ + code span.dt { color: #902000; } /* DataType */ + code span.dv { color: #40a070; } /* DecVal */ + code span.bn { color: #40a070; } /* BaseN */ + code span.fl { color: #40a070; } /* Float */ + code span.ch { color: #4070a0; } /* Char */ + code span.st { color: #4070a0; } /* String */ + code span.co { color: #008000; } /* Comment */ + code span.ot { color: #007020; } /* Other */ + code span.al { color: #ff0000; font-weight: bold; } /* Alert */ + code span.fu { color: #0040FF; } /* Function */ + code span.er { color: #ff0000; font-weight: bold; } /* Error */ + code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ + code span.cn { color: #880000; } /* Constant */ + code span.sc { color: #4070a0; } /* SpecialChar */ + code span.vs { color: #4070a0; } /* VerbatimString */ + code span.ss { color: #bb6688; } /* SpecialString */ + code span.im { } /* Import */ + code span.va { color: #19177c; } /* Variable */ + code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ + code span.op { color: #666666; } /* Operator */ + code span.bu { color: #0040FF; } /* BuiltIn */ + code span.ex { } /* Extension */ + code span.pp { color: #bc7a00; } /* Preprocessor */ + code span.at { color: #7d9029; } /* Attribute */ + code span.do { color: #ba2121; font-style: italic; } /* Documentation */ + code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ + code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ + code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */

jlreq

-

これは何?

+

これは何?

日本語組版処理の要件の実装を試みるLuaTeX-ja / pLaTeX / upLaTeX用のクラスファイルと,それに必要なJFMの組み合わせです.

-

提供されるもの

+

提供されるもの

クラスファイルjlreq.clsと,横書きLuaTeX-ja用のJFMであるjfm-jlreq.luaが用意されています.また,縦書きのJFMやpLaTeX / upLaTeX 用のJFMを生成するいくつかのスクリプトがあります.

-

インストール

+

インストール

makeで必要なJFMを生成してください.その後,

と配置します.make installとすると,$TEXMF=$TEXMFHOMEとしてこのコピーを行います.

-

使い方

+

使い方

通常通り

-
\documentclass{jlreq}
+
\documentclass{jlreq}

とします.これで横書きのarticle相当の文書クラスとなります.エンジンは自動判定されますが,指定する場合はクラスオプションにplatex/uplatex/lualatexのいずれかを渡してください.縦書きにするにはtateオプションを渡します.また,reportやbook相当の文書クラスとするには,それぞれreportbookオプションを渡します.たとえば,縦書きの本を作成するには

-
\documentclass[tate,book]{jlreq}
+
\documentclass[tate,book]{jlreq}

とします.

その他,oneside / twoside / onecolumn / twocolumn / titlepage / notitlepage / draft / final / openright / openany / leqno / fleqnというよくあるオプションを受け付けます.

標準的な文書クラスと同じように中身を書くことができますが,次のような命令が追加 / 拡張されています.

@@ -112,33 +112,34 @@

設定用命令です.プリアンブルでしか使えません.文書に対する設定は,クラスオプションとして行うか\jlreqsetupを通じて行うかします.どちらで設定するかは設定項目によります.

\section

\section*[running head]{見出し文字列}[副題]というように,通常の書式に加えて副題を受け付けられるように拡張されています.その他,\part(articleのみ),\chapter(book/reportのみ),\subsection\subsubsectionも副題を受け付けます.

-

abstract環境

+

abstract環境

プリアンブルにもかけるようになっています.プリアンブルに書かれた場合は,\maketitleとともに出力されます.二段組の場合は,段組にならず概要を出力することができます.

\sidenote

この命令は傍注の幅が正の時にのみ定義されます.デフォルトの基本版面ではこの幅は0に設定されています.従って\sidenoteは定義されません.後の基本版面の設定を参考にしてください.

\sidenoteは傍注(縦組みの場合は脚注)を出力します.内部では\marginparを使っています.デフォルトでは\footnoteと同様の書式となりますが,\jlreqsetupsidenote_type=symbolが指定されている場合,その書式は\sidenote{該当項目}{注}となります.たとえば

-
刊行できる\sidenote{原稿}{印刷などの方法により……}を入手する仕事である.
+
刊行できる\sidenote{原稿}{印刷などの方法により……}を入手する仕事である.

とします.後の説明も参照してください.

\endnote

後注を指定します.\footnoteと同様の書式です.デフォルトでは,注自身の出力は見出し直前に行われます.この動作は\jlreqsetupendnote_positionを渡すことで制御できます.詳しくは後の注関係の説明をご覧ください.また\theendnotesを実行するとその場に出力をします.

\warichu

割注を出力します.行分割位置などは自動で計算されます.(複数回のコンパイルが必要.)\warichu*ではこれらの位置を手動で指定できます.書式は

-
\warichu*{(一行目前) & (一行目後)\\ (二行目前) & (二行目後)...}
+
\warichu*{(一行目前) & (一行目後)\\ (二行目前) & (二行目後)...}
+

です.&が省略されている場合は自動で調整されます.

\tatechuyoko

縦中横を出力します.\tatechuyoko{<文字列>}とします.縦書きでない場所で使うとエラーになります.

\jafontsize

和文フォントサイズを指定する\fontsizeです.クラスオプションでjafontscale=0.9とされている場合,\fontsize{9pt}{15pt}とすると和文フォントのサイズは8.1ptとなりますが,\jafontsize{9pt}{15pt}とすると9ptとなります.(欧文フォントサイズは10ptとなる.)なお,第二引数は\fontsizeの第二引数と全く同じです.

-

\ 

+

\ 

全角空白(U+3000)一文字からなるマクロです.和文間隔を挿入します.LuaLaTeXでは のみでも和文間隔を入力できます.

-

その他

+

その他

-

各種設計

+
\usepackage[balance]{nidanfloat}
+

とするとこの処理が行われます.ただし,最終ページでの\newpage\clearpageが正しく動作しません.詳しくはnidanfloatパッケージのマニュアルをご覧ください.

+

各種設計

設計はクラスオプションまたは\jlreqsetupによりkeyval形式で行います.以下では次の用法を使います.

-

基本版面

+

基本版面

クラスオプションです.

-

組み方

+

組み方

クラスオプションです.

-

注関係

+

注関係

\jlreqsetupで指定します.

-

キャプション

+

キャプション

図表のキャプションを\jlreqsetupで変更できます.

-

引用

+

引用

quote / quotation / verse環境の挙動を\jlreqsetupで指定できます.

-

箇条書き

+

箇条書き

\jlreqsetupで指定します.

-

定理環境

+

定理環境

\jlreqsetupで指定します.

-

見出し

+

見出し

見出しの設定は,\Declare***Headingという命令で行います(***には見出しの種類に応じた文字列が入る).書式はすべて

-
\Declare***Heading{<命令名>}{<レベル>}{<設定>}
+
\Declare***Heading{<命令名>}{<レベル>}{<設定>}
+

となっています.また,\New***Heading\Renew***Heading\Provide***Headingも同時に用意されます.それぞれ\newcommand\renewcommand\providecommandに対応した動きをします.

-

扉見出し

+

扉見出し

\DeclareTobiraHeadingで作成します.通常のクラスファイルにおける\section等と同じ書式の命令ができます.設定は以下の通り.

-

別行見出し

+

別行見出し

\DeclareBlockHeadingで作成します.\<命令名>*[running head]{見出し文字列}[副題]という書式の命令を作成します.設定は以下の通り.

-

書式関連

+

書式関連

-

インデント関連

+

インデント関連

-

その他

+

その他

-

行取り

+

行取り

行取りの指定は以下のいずれかの方法で行うことができます.

-

連続して掲げる見出しの行取り

+

連続して掲げる見出しの行取り

\SetBlockHeadingSpacesにより,見出しが連続して掲げられたときの行取りを設定することができます.\SetBlockHeadingSpaces

-
\SetBlockHeadingSpaces{
-  {_part{lines=3,before_lines=1},_section{lines=2},_subsection{lines=2}}
-  [lines=5]{_section,23pt,_subsection,16pt}
-}
-

のように使います.

+
\SetBlockHeadingSpaces{
+  {_part{lines=3,before_lines=1},_section{lines=2},_subsection{lines=2}}
+  [lines=5]{_section,23pt,_subsection,16pt}
+}
+

のように使います.この意味は次の通りです.

+ +

個々の設定は以下のようになります.

-

なお,見出しが連続しているかは単純に別行見出しの命令が並んで書かれているかのみで判断します.従ってそれらの命令間に出力には関係しないような命令が挟まっていたとしても,見出しが連続して掲げられているとは判断されません.ただし,見出し命令の間に空白または\labelのみが挟まれている場合は,見出しが連続していると判断されます.

-

同行見出し

+

なお,見出しが連続しているかは単純に別行見出しの命令が並んで書かれているかのみで判断します.従ってそれらの命令間に出力には関係しないような命令が挟まっていたとしても,見出しが連続して掲げられているとは判断されません.ただし,見出し命令の間に空白,改行または\label[<オプション>]{<引数>}…{<引数>}という形のもののみが挟まれている場合は,見出しが連続していると判断されます.

+

同行見出し

\DeclareRuninHeadingで作成します.通常の文書クラスにおける\sectionと同様の,\<命令名>*[running head]{見出し文字列}という書式の命令が作成されます.設定は以下の通り.

-

窓見出し

+

窓見出し

\DeclareCutinHeadingで作成します.\<命令名>{見出し文字列}という書式の命令を作成します.設定は以下の通り.

\ModifyHeading

既に(上のどれかを使い)定義された見出し命令の設定を変更します.たとえば

-
\ModifyHeading{section}{lines=10}
+
\ModifyHeading{section}{lines=10}

とすると,\sectionのフォントなどの設定はそのままに,行取りのみが10行に変更されます.見出しの種類を変更することはできません.

\SaveHeading

見出し命令の定義を待避します.

-
\SaveHeading{section}{\restoresection} % \sectionの中身を\restoresectionに待避.
-\RenewBlockHeading{section}{1}{font=……} % \sectionを新しく定義する.
-……
-\restoresection % \sectionの中身を元に戻す.
+
\SaveHeading{section}{\restoresection} % \sectionの中身を\restoresectionに待避.
+\RenewBlockHeading{section}{1}{font=……} % \sectionを新しく定義する.
+……
+\restoresection % \sectionの中身を元に戻す.

のように使います.

-

ページスタイル

-
\DeclarePageStyle{<ページスタイル名>}{<設定>}
+

ページスタイル

+
\DeclarePageStyle{<ページスタイル名>}{<設定>}
+

によりページスタイルを定義することができます.<設定>はkeyval形式です.定義したページスタイルは\pagestyleで適用できます.設定は以下の通り.

\NewPageStyle\RenewPageStyle\ProvidePageStyleもあります.\ModifyPageStyleにより既存のページスタイルを改変することが可能です.

-

その他

+

JFM

+

以下のような独自のJFMを使います.パッケージによっては,パッケージ独自のJFMや,また標準のJFMを使うように設定がし直される場合があります.例えばLuaTeX-jaに付属するluatexja-presetパッケージは通常LuaTeX-ja標準のJFMを使います.本クラスファイルで使っているJFMを使う場合は,

+
\usepackage[jfm_yoko=jlreq,jfm_tate=jlreqv,hiragino-pron]{luatexja-preset}
+

のようにオプションで指定する必要があります.

+

pLaTeX/upLaTeXの場合

+

JFMの名前は次の通りです.[]で囲まれている文字は設定により入ったり入らなかったりします.

+
[u][b][z]jlreq[g][-v]
+
+

それぞれの文字は以下の場合に入ります.

+ +

例えば,ぶら下げ組みを利用せず,クラスオプションにopen_bracket_pos=zenkakunibu_nibuが指定されいてるソースをpLaTeXで処理した場合,横書き明朝体にはzjlreqという名前のJFMが使われます.

+

LuaLaTeXの場合

+ +

となります.ゴシックも同じJFMを使います.

+

その他

-

ライセンス

+

ライセンス

このパッケージは二条項BSDライセンスの元で配布されています.詳しくはLICENSEをご覧ください.

-

履歴

+

履歴

diff --git a/Master/texmf-dist/doc/latex/jlreq/jlreq.html b/Master/texmf-dist/doc/latex/jlreq/jlreq.html index fc11659dea4..35236912238 100644 --- a/Master/texmf-dist/doc/latex/jlreq/jlreq.html +++ b/Master/texmf-dist/doc/latex/jlreq/jlreq.html @@ -1,5 +1,5 @@ - + @@ -140,10 +140,15 @@ +
  • 2017-12-22 +

  • -

    Noriyuki Abe
    -https://github.com/abenori/jlreq

    +

    Noriyuki Abe https://github.com/abenori/jlreq

    diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq-v.tfm index 793cf36a35b..969911269a4 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq.tfm index 0b73849adec..bdf93f2b50f 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg-v.tfm index 793cf36a35b..969911269a4 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg.tfm index 0b73849adec..bdf93f2b50f 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bjlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq-v.tfm index c716d828d08..ca99321bb69 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq.tfm index 3fd81f0cd83..1e4cbcddb86 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg-v.tfm index c716d828d08..ca99321bb69 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg.tfm index 3fd81f0cd83..1e4cbcddb86 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/bzjlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq-v.tfm index 7aa0a12a1e3..d0baea61728 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq.tfm index 2d3f827527f..8cc1f02ec53 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg-v.tfm index 7aa0a12a1e3..d0baea61728 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg.tfm index 2d3f827527f..8cc1f02ec53 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/jlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq-v.tfm index a271082edcb..d52f57b60b2 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq.tfm index 0d01cdefc7c..e04af490351 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg-v.tfm index a271082edcb..d52f57b60b2 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg.tfm index 0d01cdefc7c..e04af490351 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubjlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq-v.tfm index 103cec2ecb6..3eb8e12031e 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq.tfm index a195f167fad..d39d77e79ed 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg-v.tfm index 103cec2ecb6..3eb8e12031e 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg.tfm index a195f167fad..d39d77e79ed 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ubzjlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq-v.tfm index 17caa6eed98..8c3bf49ec14 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq.tfm index ffb76518fc5..2ec79270e29 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg-v.tfm index 17caa6eed98..8c3bf49ec14 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg.tfm index ffb76518fc5..2ec79270e29 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/ujlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq-v.tfm index b765d463538..894103f1a82 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq.tfm index 26d287fa66e..64792076ecc 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg-v.tfm index b765d463538..894103f1a82 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg.tfm index 26d287fa66e..64792076ecc 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/uzjlreqg.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq-v.tfm index a12c8e69297..40ae924ea82 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq.tfm index b20ae78927b..50dd903043a 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreq.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg-v.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg-v.tfm index a12c8e69297..40ae924ea82 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg-v.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg-v.tfm differ diff --git a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg.tfm b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg.tfm index b20ae78927b..50dd903043a 100644 Binary files a/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg.tfm and b/Master/texmf-dist/fonts/tfm/public/jlreq/zjlreqg.tfm differ diff --git a/Master/texmf-dist/tex/latex/jlreq/jlreq.cls b/Master/texmf-dist/tex/latex/jlreq/jlreq.cls index e8c784eafa0..0b062cf4363 100644 --- a/Master/texmf-dist/tex/latex/jlreq/jlreq.cls +++ b/Master/texmf-dist/tex/latex/jlreq/jlreq.cls @@ -5,7 +5,7 @@ %% % (based on JLReq 20120403 https://www.w3.org/TR/2012/NOTE-jlreq-20120403/ja/) \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{jlreq}[2017/12/02 jlreq] +\ProvidesClass{jlreq}[2017/12/22 jlreq] \RequirePackage{xkeyval,everyhook,filehook,etoolbox,ifthen} %. helper1 @@ -101,12 +101,54 @@ } \jlreq@do +% #1(skipレジスタ)が0か(展開不可). \def\jlreq@ifgluezero#1{% - \edef\@tempa{\the#1}% - \edef\@tempb{\detokenize{0.0pt}}% - \ifx\@tempa\@tempb\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi + \begingroup + \edef\@tempa{\the#1}% + \edef\@tempb{\detokenize{0.0pt}}% + \edef\jlreq@do{\ifx\@tempa\@tempb\noexpand\@firstoftwo\else\noexpand\@secondoftwo\fi}% + \expandafter\endgroup + \jlreq@do } +% #1が#2で終わるか(展開不可) +\def\jlreq@ifendswith#1#2{% + \jlreq@ifempty{#2}{\@firstoftwo}{% + \begingroup + \def\jlreq@tempa##1#2\jlreq@uniqtoken##2\jlreq@endmark{% + \edef\jlreq@do{\jlreq@ifempty{##2}{\noexpand\@secondoftwo}{\noexpand\@firstoftwo}}% + }% + \jlreq@tempa#1\jlreq@uniqtoken#2\jlreq@uniqtoken\jlreq@endmark + \expandafter\endgroup + \jlreq@do + }% +} +% #1が#2で始まるか(展開不可) +\def\jlreq@ifstartswith#1#2{% + \jlreq@ifempty{#2}{\@firstoftwo}{% + \jlreq@ifempty{#1}{\@secondoftwo}{% + \begingroup + \def\jlreq@tempa##1#2##2\jlreq@endmark{% + \edef\jlreq@do{\jlreq@ifempty{##1}{\noexpand\@firstoftwo}{\noexpand\@secondoftwo}}% + }% + \jlreq@tempa#1#2\jlreq@endmark + \expandafter\endgroup + \jlreq@do + }% + }% +} +% #1が#2を含むか(展開不可){}内に#2があってもFALSE判定. +\def\jlreq@ifcontains#1#2{% + \jlreq@ifempty{#2}{\@firstoftwo}{% + \begingroup + \def\jlreq@tempa##1#2##2\jlreq@endmark{% + \edef\jlreq@do{\jlreq@ifempty{##2}{\noexpand\@secondoftwo}{\noexpand\@firstoftwo}}% + }% + \jlreq@tempa#1#2\jlreq@endmark + \expandafter\endgroup + \jlreq@do + }% +} % @removeelementの括弧があっても動くかもしれない版 % 次の変数を使う:\jlreq@tempa:消したいやつ,\jlreq@tempb:消していない分を放り込んでいく @@ -144,7 +186,7 @@ \ifx\jlreq@nextchar\reserved@d\let\reserved@b\reserved@a\fi \reserved@b } -% \@ifsart +% 空白を無視しない\@ifsart \def\jlreq@ifstar#1#2{\jlreq@ifnextchar *{\edef\reserved@a*{\unexpanded{#1}}\reserved@a}{#2}} % カンマで区切って,その前と後ろを\jlreq@resulta,\jlreq@resultbに入れる % もしカンマがない場合は\ifjlreq@resultがfalseになる. @@ -849,282 +891,171 @@ \xkanjiskip=\jlreq@xkanjiskip \fi -% 禁則処理,表1,2に従う -% 行末 -% 初め括弧類 +% 文字クラスのリスト(必要なものだけ) +% 開き括弧(文字クラス1) +\edef\jlreq@charlist@openingbrackets{(〔[{〈《「『【‘“\ifx p\jlreq@engine\else ⦅〘〖«〝\fi} +% 閉じ括弧(文字クラス2) +\edef\jlreq@charlist@closingbrackets{)〕]}〉》」』】’”\ifx p\jlreq@engine\else⦆〙〗»〟\fi} +% ハイフン(文字クラス3) +\edef\jlreq@charlist@hyphens{‐〜\ifx p\jlreq@engine\else ゠–\fi} +% 区切り約物(文字クラス4) +\edef\jlreq@charlist@dividingpunctuationmarks{!?\ifx p\jlreq@engine\else ‼⁇⁈⁉\fi} +% 中点類(文字クラス5) +\edef\jlreq@charlist@middlenodes{・:;} +% 句点類(文字クラス6) +\edef\jlreq@charlist@fullstops{。.} +% 読点類(文字クラス7) +\edef\jlreq@charlist@commas{、,} +% 分離禁止文字(文字クラス8) +\edef\jlreq@charlist@inseparablecharacters{—…‥\ifx p\jlreq@engine\else 〳〴〵\fi} +% 繰返し記号(文字クラス9) +\edef\jlreq@charlist@iterationmarks{ヽヾゝゞ々\ifx p\jlreq@engine\else 〻\fi} +% 長音記号(文字クラス10) +\edef\jlreq@charlist@prolongedsoundmark{ー} +% 小書きの仮名(文字クラス11) +\edef\jlreq@charlist@smallkana{ぁぃぅぇぉァィゥェォっゃゅょゎッャュョヮヵヶ\ifx p\jlreq@engine\else ゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ\fi}%ㇷ゚ +% 前置省略記号(文字クラス12) +\edef\jlreq@charlist@prefixedabbreviations{¥$£#\ifx p\jlreq@engine\else €№\fi} +% 平仮名(文字クラス15) +\edef\jlreq@charlist@hiragana{あいうえおかがきぎくぐけげこごさざしじすずせぜそぞただちぢつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもやゆよらりるれろわゐゑをん\ifx p\jlreq@engine\else ゔ\fi}% か゚き゚く゚け゚こ゚ +% 片仮名(文字クラス16) +\edef\jlreq@charlist@katakana{アイウエオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモヤユヨラリルレロワヰヱヲンヴ\ifx p\jlreq@engine\else ヷヸヹヺ\fi}% カ゚キ゚ク゚ケ゚コ゚セ゚ツ゚ト゚ + \ifx l\jlreq@engine - \newcommand*{\jlreq@setpostbreakpenalty}[2]{\ltjsetparameter{postbreakpenalty={`#1,#2}}} - \newcommand*{\jlreq@setprebreakpenalty}[2]{\ltjsetparameter{prebreakpenalty={`#1,#2}}} - \newcommand*{\jlreq@setjaxspmode}[2]{\ltjsetparameter{jaxspmode={`#1,#2}}} + \newcommand*{\jlreq@setpostbreakpenalty@}[2]{\ltjsetparameter{postbreakpenalty={`#1,#2}}} + \newcommand*{\jlreq@setprebreakpenalty@}[2]{\ltjsetparameter{prebreakpenalty={`#1,#2}}} + \newcommand*{\jlreq@addjaxspmode@}[2]{% + \jlreq@tempcnta=\ltjgetparameter{jaxspmode}{`#1}% + \jlreq@switch{#2}{ + {pre}{% + \ifnum\jlreq@tempcnta=2 + \ltjsetparameter{jaxspmode={`#1,allow}}% + \else\ifnum\jlreq@tempcnta=0 + \ltjsetparameter{jaxspmode={`#1,preonly}}% + \fi\fi + } + {post}{% + \ifnum\jlreq@tempcnta=1 + \ltjsetparameter{jaxspmode={`#1,allow}}% + \else\ifnum\jlreq@tempcnta=0 + \ltjsetparameter{jaxspmode={`#1,postonly}}% + \fi\fi + } + }% + } + \newcommand*{\jlreq@deljaxspmode@}[2]{% + \jlreq@tempcnta=\ltjgetparameter{jaxspmode}{`#1}% + \jlreq@switch{#2}{ + {pre}{% + \ifnum\jlreq@tempcnta=2 + \ltjsetparameter{jaxspmode={`#1,postonly}}% + \else\ifnum\jlreq@tempcnta=1 + \ltjsetparameter{jaxspmode={`#1,inhibit}}% + \fi\fi + } + {post}{% + \ifnum\jlreq@tempcnta=3 + \ltjsetparameter{jaxspmode={`#1,preonly}}% + \else\ifnum\jlreq@tempcnta=2 + \ltjsetparameter{jaxspmode={`#1,inhibit}}% + \fi\fi + } + }% + } \else - \newcommand*{\jlreq@setpostbreakpenalty}[2]{\postbreakpenalty`#1=#2} - \newcommand*{\jlreq@setprebreakpenalty}[2]{\prebreakpenalty`#1=#2} - \newcommand*{\jlreq@setjaxspmode}[2]{% + \newcommand*{\jlreq@setpostbreakpenalty@}[2]{\postbreakpenalty`#1=#2} + \newcommand*{\jlreq@setprebreakpenalty@}[2]{\prebreakpenalty`#1=#2} + \newcommand*{\jlreq@addjaxspmode@}[2]{% + \jlreq@tempcnta=\inhibitxspcode`#1 \jlreq@switch{#2}{ - {inhibit}{\inhibitxspcode`#1=0} - {preonly}{\inhibitxspcode`#1=1} - {postonly}{\inhibitxspcode`#1=2} - {allow}{\inhibitxspcode`#1=3} - {\inhibitxspcode`#1=#2} - } + {pre}{% + \ifnum\jlreq@tempcnta=1 + \inhibitxspcode`#1=3 + \else\ifnum\jlreq@tempcnta=0 + \inhibitxspcode`#1=2 + \fi\fi + } + {post}{% + \ifnum\jlreq@tempcnta=2 + \inhibitxspcode`#1=3 + \else\ifnum\jlreq@tempcnta=0 + \inhibitxspcode`#1=1 + \fi\fi + } + }% + } + \newcommand*{\jlreq@deljaxspmode@}[2]{% + \jlreq@tempcnta=\inhibitxspcode`#1 + \jlreq@switch{#2}{ + {pre}{% + \ifnum\jlreq@tempcnta=3 + \inhibitxspcode`#1=1 + \else\ifnum\jlreq@tempcnta=2 + \inhibitxspcode`#1=0 + \fi\fi + } + {post}{% + \ifnum\jlreq@tempcnta=3 + \inhibitxspcode`#1=2 + \else\ifnum\jlreq@tempcnta=1 + \inhibitxspcode`#1=0 + \fi\fi + } + }% } \fi +% #1{...}{#3}を...が#2のリストに対して適用. +\newcommand*\jlreq@iterateapply[3]{% + \edef\jlreq@tempa{#2}% + \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=\jlreq@tempa\do{% + \expandafter#1\expandafter{\@tempa}{#3}% + }% +} +\def\jlreq@setpostbreakpenalty{\jlreq@iterateapply{\jlreq@setpostbreakpenalty@}} +\def\jlreq@setprebreakpenalty{\jlreq@iterateapply{\jlreq@setprebreakpenalty@}} +\def\jlreq@addjaxspmode{\jlreq@iterateapply{\jlreq@addjaxspmode@}} +\def\jlreq@deljaxspmode{\jlreq@iterateapply{\jlreq@deljaxspmode@}} + +\jlreq@aftercls@addtodeletecs{\jlreq@iterateapply} \jlreq@aftercls@addtodeletecs{\jlreq@setpostbreakpenalty} +\jlreq@aftercls@addtodeletecs{\jlreq@setpostbreakpenalty@} \jlreq@aftercls@addtodeletecs{\jlreq@setprebreakpenalty} -\jlreq@aftercls@addtodeletecs{\jlreq@setjaxspmode} - -\jlreq@setpostbreakpenalty{(}{10000} -\jlreq@setpostbreakpenalty{〔}{10000} -\jlreq@setpostbreakpenalty{[}{10000} -\jlreq@setpostbreakpenalty{{}{10000} -\jlreq@setpostbreakpenalty{〈}{10000} -\jlreq@setpostbreakpenalty{《}{10000} -\jlreq@setpostbreakpenalty{「}{10000} -\jlreq@setpostbreakpenalty{『}{10000} -\jlreq@setpostbreakpenalty{【}{10000} -\ifx p\jlreq@engine\else -\jlreq@setpostbreakpenalty{⦅}{10000} -\jlreq@setpostbreakpenalty{〘}{10000} -\jlreq@setpostbreakpenalty{〖}{10000} -\jlreq@setpostbreakpenalty{«}{10000} -\jlreq@setpostbreakpenalty{〝}{10000} -\fi -\jlreq@setpostbreakpenalty{‘}{10000} -\jlreq@setpostbreakpenalty{“}{10000} -% 前置省略記号 -\jlreq@setpostbreakpenalty{¥}{10000} -\jlreq@setpostbreakpenalty{$}{10000} -\jlreq@setpostbreakpenalty{£}{10000} -\jlreq@setpostbreakpenalty{#}{10000} -\ifx p\jlreq@engine\else -\jlreq@setpostbreakpenalty{€}{10000} -\jlreq@setpostbreakpenalty{№}{10000} -\fi -% 行頭 -% 終わり括弧類 -\jlreq@setprebreakpenalty{)}{10000} -\jlreq@setprebreakpenalty{〕}{10000} -\jlreq@setprebreakpenalty{]}{10000} -\jlreq@setprebreakpenalty{}}{10000} -\jlreq@setprebreakpenalty{〉}{10000} -\jlreq@setprebreakpenalty{》}{10000} -\jlreq@setprebreakpenalty{」}{10000} -\jlreq@setprebreakpenalty{』}{10000} -\jlreq@setprebreakpenalty{】}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{⦆}{10000} -\jlreq@setprebreakpenalty{〙}{10000} -\jlreq@setprebreakpenalty{〗}{10000} -\jlreq@setprebreakpenalty{»}{10000} -\jlreq@setprebreakpenalty{〟}{10000} -\fi -\jlreq@setprebreakpenalty{’}{10000} -\jlreq@setprebreakpenalty{”}{10000} -% ハイフン類 -\jlreq@setprebreakpenalty{‐}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{゠}{10000} -\jlreq@setprebreakpenalty{–}{10000} -\jlreq@setprebreakpenalty{〜}{10000} -\fi -% 区切り約物 -\jlreq@setprebreakpenalty{!}{10000} -\jlreq@setprebreakpenalty{?}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{‼}{10000} -\jlreq@setprebreakpenalty{⁇}{10000} -\jlreq@setprebreakpenalty{⁈}{10000} -\jlreq@setprebreakpenalty{⁉}{10000} -\fi -% 中点類 -\jlreq@setprebreakpenalty{・}{10000} -\jlreq@setprebreakpenalty{:}{10000} -\jlreq@setprebreakpenalty{;}{10000} -% 句点類 -\jlreq@setprebreakpenalty{。}{10000} -\jlreq@setprebreakpenalty{.}{10000} -% 読点類 -\jlreq@setprebreakpenalty{、}{10000} -\jlreq@setprebreakpenalty{,}{10000} -% 繰返し記号 -\jlreq@setprebreakpenalty{ヽ}{10000} -\jlreq@setprebreakpenalty{ヾ}{10000} -\jlreq@setprebreakpenalty{ゝ}{10000} -\jlreq@setprebreakpenalty{ゞ}{10000} -\jlreq@setprebreakpenalty{々}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{〻}{10000} -\fi -% 長音記号 -\jlreq@setprebreakpenalty{ー}{10000} -% 小書きの仮名 -\jlreq@setprebreakpenalty{ぁ}{10000} -\jlreq@setprebreakpenalty{ぃ}{10000} -\jlreq@setprebreakpenalty{ぅ}{10000} -\jlreq@setprebreakpenalty{ぇ}{10000} -\jlreq@setprebreakpenalty{ぉ}{10000} -\jlreq@setprebreakpenalty{ァ}{10000} -\jlreq@setprebreakpenalty{ィ}{10000} -\jlreq@setprebreakpenalty{ゥ}{10000} -\jlreq@setprebreakpenalty{ェ}{10000} -\jlreq@setprebreakpenalty{ォ}{10000} -\jlreq@setprebreakpenalty{っ}{10000} -\jlreq@setprebreakpenalty{ゃ}{10000} -\jlreq@setprebreakpenalty{ゅ}{10000} -\jlreq@setprebreakpenalty{ょ}{10000} -\jlreq@setprebreakpenalty{ゎ}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{ゕ}{10000} -\jlreq@setprebreakpenalty{ゖ}{10000} -\fi -\jlreq@setprebreakpenalty{ッ}{10000} -\jlreq@setprebreakpenalty{ャ}{10000} -\jlreq@setprebreakpenalty{ュ}{10000} -\jlreq@setprebreakpenalty{ョ}{10000} -\jlreq@setprebreakpenalty{ヮ}{10000} -\jlreq@setprebreakpenalty{ヵ}{10000} -\jlreq@setprebreakpenalty{ヶ}{10000} -\ifx p\jlreq@engine\else -\jlreq@setprebreakpenalty{ㇰ}{10000} -\jlreq@setprebreakpenalty{ㇱ}{10000} -\jlreq@setprebreakpenalty{ㇲ}{10000} -\jlreq@setprebreakpenalty{ㇳ}{10000} -\jlreq@setprebreakpenalty{ㇴ}{10000} -\jlreq@setprebreakpenalty{ㇵ}{10000} -\jlreq@setprebreakpenalty{ㇶ}{10000} -\jlreq@setprebreakpenalty{ㇷ}{10000} -\jlreq@setprebreakpenalty{ㇸ}{10000} -\jlreq@setprebreakpenalty{ㇹ}{10000} -\jlreq@setprebreakpenalty{ㇺ}{10000} -\jlreq@setprebreakpenalty{ㇻ}{10000} -\jlreq@setprebreakpenalty{ㇼ}{10000} -\jlreq@setprebreakpenalty{ㇽ}{10000} -\jlreq@setprebreakpenalty{ㇾ}{10000} -\jlreq@setprebreakpenalty{ㇿ}{10000} -\fi +\jlreq@aftercls@addtodeletecs{\jlreq@setprebreakpenalty@} +\jlreq@aftercls@addtodeletecs{\jlreq@addjaxspmode} +\jlreq@aftercls@addtodeletecs{\jlreq@addjaxspmode@} +\jlreq@aftercls@addtodeletecs{\jlreq@deljaxspmode} +\jlreq@aftercls@addtodeletecs{\jlreq@deljaxspmode@} + +% 行末禁則 +\jlreq@setpostbreakpenalty{\jlreq@charlist@openingbrackets}{10000} +\jlreq@setpostbreakpenalty{\jlreq@charlist@prefixedabbreviations}{10000} + +% 行頭禁則 +\jlreq@setprebreakpenalty{\jlreq@charlist@closingbrackets}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@hyphens}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@dividingpunctuationmarks}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@middlenodes}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@fullstops}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@commas}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@iterationmarks}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@prolongedsoundmark}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@smallkana}{10000} % xkanjiskip -% 初め括弧類(二分) -\jlreq@setjaxspmode{(}{preonly} -\jlreq@setjaxspmode{〔}{preonly} -\jlreq@setjaxspmode{[}{preonly} -\jlreq@setjaxspmode{{}{preonly} -\jlreq@setjaxspmode{〈}{preonly} -\jlreq@setjaxspmode{《}{preonly} -\jlreq@setjaxspmode{「}{preonly} -\jlreq@setjaxspmode{『}{preonly} -\jlreq@setjaxspmode{【}{preonly} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{⦅}{preonly} -\jlreq@setjaxspmode{〘}{preonly} -\jlreq@setjaxspmode{〖}{preonly} -\jlreq@setjaxspmode{«}{preonly} -\jlreq@setjaxspmode{〝}{preonly} -\fi -\jlreq@setjaxspmode{‘}{preonly} -\jlreq@setjaxspmode{“}{preonly} -% 終わり括弧類(二分) -\jlreq@setjaxspmode{)}{postonly} -\jlreq@setjaxspmode{〕}{postonly} -\jlreq@setjaxspmode{]}{postonly} -\jlreq@setjaxspmode{}}{postonly} -\jlreq@setjaxspmode{〉}{postonly} -\jlreq@setjaxspmode{》}{postonly} -\jlreq@setjaxspmode{」}{postonly} -\jlreq@setjaxspmode{』}{postonly} -\jlreq@setjaxspmode{】}{postonly} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{⦆}{postonly} -\jlreq@setjaxspmode{〙}{postonly} -\jlreq@setjaxspmode{〗}{postonly} -\jlreq@setjaxspmode{»}{postonly} -\jlreq@setjaxspmode{〟}{postonly} -\fi -\jlreq@setjaxspmode{’}{postonly} -\jlreq@setjaxspmode{”}{postonly} -% ハイフン類(二分) -\jlreq@setjaxspmode{‐}{inhibit} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{゠}{inhibit} -\jlreq@setjaxspmode{–}{inhibit} -\jlreq@setjaxspmode{〜}{inhibit} -\fi -% 区切り約物 -\jlreq@setjaxspmode{!}{postonly} -\jlreq@setjaxspmode{?}{postonly} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{‼}{postonly} -\jlreq@setjaxspmode{⁇}{postonly} -\jlreq@setjaxspmode{⁈}{postonly} -\jlreq@setjaxspmode{⁉}{postonly} -\fi -% 中点類 -\jlreq@setjaxspmode{・}{postonly} -\jlreq@setjaxspmode{:}{postonly} -\jlreq@setjaxspmode{;}{postonly} -% 句点類(二分) -\jlreq@setjaxspmode{。}{postonly} -\jlreq@setjaxspmode{.}{postonly} -% 読点類(二分) -\jlreq@setjaxspmode{、}{postonly} -\jlreq@setjaxspmode{,}{postonly} -% 分離禁止文字 -\jlreq@setjaxspmode{—}{inhibit} -\jlreq@setjaxspmode{…}{inhibit} -\jlreq@setjaxspmode{‥}{inhibit} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{〳}{inhibit} -\jlreq@setjaxspmode{〴}{inhibit} -\jlreq@setjaxspmode{〵}{inhibit} -\fi -% 前置省略記号 -\jlreq@setjaxspmode{¥}{inhibit} -\jlreq@setjaxspmode{$}{inhibit} -\jlreq@setjaxspmode{£}{inhibit} -\jlreq@setjaxspmode{#}{inhibit} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{€}{inhibit} -\jlreq@setjaxspmode{№}{inhibit} -\fi -% 後置省略記号 -\jlreq@setjaxspmode{°}{inhibit} -\jlreq@setjaxspmode{′}{inhibit} -\jlreq@setjaxspmode{″}{inhibit} -\jlreq@setjaxspmode{℃}{inhibit} -\jlreq@setjaxspmode{¢}{inhibit} -\jlreq@setjaxspmode{%}{inhibit} -\jlreq@setjaxspmode{‰}{inhibit} -\ifx p\jlreq@engine\else -\jlreq@setjaxspmode{㏋}{inhibit} -\jlreq@setjaxspmode{ℓ}{inhibit} -\jlreq@setjaxspmode{㌃}{inhibit} -\jlreq@setjaxspmode{㌍}{inhibit} -\jlreq@setjaxspmode{㌔}{inhibit} -\jlreq@setjaxspmode{㌘}{inhibit} -\jlreq@setjaxspmode{㌢}{inhibit} -\jlreq@setjaxspmode{㌣}{inhibit} -\jlreq@setjaxspmode{㌦}{inhibit} -\jlreq@setjaxspmode{㌧}{inhibit} -\jlreq@setjaxspmode{㌫}{inhibit} -\jlreq@setjaxspmode{㌶}{inhibit} -\jlreq@setjaxspmode{㌻}{inhibit} -\jlreq@setjaxspmode{㍉}{inhibit} -\jlreq@setjaxspmode{㍊}{inhibit} -\jlreq@setjaxspmode{㍍}{inhibit} -\jlreq@setjaxspmode{㍑}{inhibit} -\jlreq@setjaxspmode{㍗}{inhibit} -\jlreq@setjaxspmode{㎎}{inhibit} -\jlreq@setjaxspmode{㎏}{inhibit} -\jlreq@setjaxspmode{㎜}{inhibit} -\jlreq@setjaxspmode{㎝}{inhibit} -\jlreq@setjaxspmode{㎞}{inhibit} -\jlreq@setjaxspmode{㎡}{inhibit} -\jlreq@setjaxspmode{㏄}{inhibit} -\fi +\jlreq@addjaxspmode{\jlreq@charlist@iterationmarks}{pre} +\jlreq@addjaxspmode{\jlreq@charlist@iterationmarks}{post} +\jlreq@addjaxspmode{\jlreq@charlist@prolongedsoundmark}{pre} +\jlreq@addjaxspmode{\jlreq@charlist@prolongedsoundmark}{post} +\jlreq@addjaxspmode{\jlreq@charlist@smallkana}{pre} +\jlreq@addjaxspmode{\jlreq@charlist@smallkana}{post} +\jlreq@addjaxspmode{\jlreq@charlist@hiragana}{pre} +\jlreq@addjaxspmode{\jlreq@charlist@hiragana}{post} +\jlreq@addjaxspmode{\jlreq@charlist@katakana}{pre} +\jlreq@addjaxspmode{\jlreq@charlist@katakana}{post} +\jlreq@addjaxspmode{\jlreq@charlist@dividingpunctuationmarks}{post} + % 分割禁止(分離禁止文字は特定の並びで分割禁止だが,とりあえず一括で禁止しておく.) -\jlreq@setprebreakpenalty{—}{10000} -\jlreq@setprebreakpenalty{…}{10000} -\jlreq@setprebreakpenalty{‥}{10000} +\jlreq@setprebreakpenalty{\jlreq@charlist@inseparablecharacters}{10000} % ¥100とか70%とか…… %.. 文字範囲 @@ -1228,13 +1159,6 @@ \DeclareRobustCommand*{\mit}{\@fontswitch\relax\mathnormal} %.. 和文 -% 必要になりそうなリスト -% 開き括弧(文字クラス1) -\edef\jlreq@charlist@openingbrackets{(〔[{〈《「『【‘“\ifx p\jlreq@engine\else ⦅〘〖«〝\fi} -% 閉じ括弧(文字クラス2) -\edef\jlreq@charlist@closingbrackets{)〕]}〉》」』】’”\ifx p\jlreq@engine\else⦆〙〗»〟\fi} -% 区切り約物(文字クラス4) -\edef\jlreq@charlist@dividingpunctuationmarks{!?\ifx p\jlreq@engine\else ‼⁇⁈⁉\fi} % JFMに関連する設定 \ifx l\jlreq@engine % この値は後でjfm-jlreq内で読む @@ -1243,8 +1167,8 @@ % \item後の行頭括弧のために仕込み. \jlreq@saveoriginalcs{list} \jlreq@saveoriginalcs{endlist} - \pretocmd{\list}{\jlreq@pushhook@postpar{\directlua{luatexja.jfmglue.create_beginpar_node()}}}{}{}% ltjsclassesから - \apptocmd{\endlist}{\jlreq@pophook@postpar} + \pretocmd{\list}{\jlreq@pushhook@postpar{\ltjfakeparbegin}}{}{} + \apptocmd{\endlist}{\jlreq@pophook@postpar}{}{} \else % 非LuaTeXの場合はJFMの入れ替えと\everyparでの処理で対処. % 行頭括弧に対して\inhibitglueを入れたりする命令を作る @@ -1294,8 +1218,8 @@ \ifx l\jlreq@engine \RequirePackage{luatexja-adjust} \ltjenableadjust[lineend=extended,priority=true] - \ltjsetparameter{stretch_priority={kanjiskip=10,xkanjiskip=-30}} - \ltjsetparameter{shrink_priority={kanjiskip=0,xkanjiskip=0}} + \ltjsetparameter{stretch_priority={kanjiskip=0,xkanjiskip=10}} + \ltjsetparameter{shrink_priority={kanjiskip=0,xkanjiskip=-30}} \fi \ifx p\jlreq@engine @@ -1394,7 +1318,6 @@ \AtBeginDocument{\catcode` =\active} \fi - % \jaspace \DeclareRobustCommand*{\jaspace}[1]{% \ifcsname jlreq@jaspace@#1\endcsname\csname jlreq@jaspace@#1\endcsname @@ -1474,20 +1397,23 @@ \fi } \fi -\jlreq@divide{\jlreq@fontsize}{\jlreq@jafontsize} -\edef\jlreq@jafontinvscale{\strip@pt\jlreq@resultdimen} -\newcommand*{\jafontsize}[2]{% - \begingroup - \jlreq@iffloat{#1}{% - \jlreq@tempdima=\jlreq@jafontinvscale\dimexpr #1pt\relax - \edef\jlreq@do{\noexpand\fontsize{\strip@pt\jlreq@tempdima}{\unexpanded{#2}}}% - }{% - \jlreq@tempdima=\jlreq@jafontinvscale\dimexpr#1\relax - \edef\jlreq@do{\noexpand\fontsize{\expandonce{\the\jlreq@tempdima}}{\unexpanded{#2}}}% - }% - \expandafter\endgroup - \jlreq@do + +% \jafontsize +\def\@tempa#1{ + \newcommand*{\jafontsize}[2]{% + \begingroup + \jlreq@iffloat{##1}{% + \edef\jlreq@do{\noexpand\fontsize{\strip@pt\dimexpr#1\dimexpr##1pt\relax\relax}}% + }{% + \edef\jlreq@do{\noexpand\fontsize{\the\dimexpr#1\dimexpr##1\relax\relax}}% + }% + \expandafter\endgroup + \jlreq@do{##2}% + } } +\jlreq@divide{\jlreq@fontsize}{\jlreq@jafontsize} +\edef\jlreq@do{\noexpand\@tempa{\strip@pt\jlreq@resultdimen}} +\jlreq@do \renewcommand{\normalsize}{% \@setfontsize\normalsize{\jlreq@fontsize}{\jlreq@baselineskip}% @@ -1627,11 +1553,13 @@ \ifdim\marginparwidth>0pt \setlength{\marginparsep}{2\zw} % フォントサイズ×2(4.2.7:特に問題に~e) \else - \setlength{\marginparsep}{0pt} % フォントサイズ×2(4.2.7:特に問題に~e) + \setlength{\marginparsep}{0pt} \fi -\ifdim\marginparwidth>25\zw\relax - \jlreq@note{並列注の字詰め方向の長さ(行長)は,15字から20字くらいである.ケースによっては25字程度にする場合もある (4.2.7).} +\ifdim\marginparwidth>0pt + \ifnum 0\ifdim\marginparwidth>25\zw 1\fi\ifdim\marginparwidth<15\zw 1\fi>0 + \jlreq@note{並列注の字詰め方向の長さ(行長)は,15字から20字くらいである.ケースによっては25字程度にする場合もある (4.2.7).} + \fi \fi % 縦書きの時は脚注に固定 % (TODO: 頭注) @@ -1926,7 +1854,6 @@ % ラベルフォーマットでは#1=カウンタ名,見出し文字列フォーマットでは#1=見出し文字列,副題フォーマットでは#1=副題 % ラベルのみのフォーマットは目次に使われる. \newcommand{\jlreq@startBlockHeading}[5]{% - % 一端フックを無効化 \edef\jlreq@BlockHeading@start@format{\unexpanded{#4}}% この二つは\parを含むかもしれないので引数渡しはしない(後の\@ifstarで詰まる) \edef\jlreq@BlockHeading@start@totalformat{\unexpanded{#5}}% \jlreq@BlockHeading@start@{#1}{#2}{#3}% @@ -1964,11 +1891,13 @@ \expandafter\xdef\csname jlreq@BlockHeading@spaces@current@format@\the\jlreq@BlockHeading@spaces@current@count\endcsname{% \unexpanded{#5}% }% - \expandafter\xdef\csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@BlockHeading@spaces@current@count\endcsname{ + \expandafter\xdef\csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@BlockHeading@spaces@current@count\endcsname{% \expandonce{\jlreq@resulta}% }% \expandafter\xdef\csname jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count\endcsname{}% - \jlreq@BlockHeading@start@afterheading + \ifx\jlreq@BlockHeading@spaces@headingslist\@empty\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi + {\jlreq@BlockHeading@spaces@outputwospace\ignorespaces}% + {\jlreq@BlockHeading@start@afterheading}% } \def\jlreq@BlockHeading@start@afterheading{\futurelet\jlreq@nextchar\jlreq@BlockHeading@start@afterheading@} @@ -1979,28 +1908,42 @@ % スペースを読み飛ばす \expandafter\def\expandafter\jlreq@BlockHeading@start@afterheading@@\space{\jlreq@BlockHeading@start@afterheading} \def\jlreq@BlockHeading@start@afterheading@@@{% - \def\jlreq@do{\jlreq@BlockHeading@spaces@output\jlreq@BlockHeading@spaces@clear}% + \def\jlreq@do{\jlreq@BlockHeading@spaces@output}% \expandafter\@for\expandafter\@tempa\expandafter:\expandafter=\jlreq@BlockHeading@allheadings\do{% \expandafter\ifx\csname\@tempa\endcsname\jlreq@nextchar\def\jlreq@do{}\fi }% % \jlreq@BlockHeading@HeadingSpaces@ignoretokens内のものは特別扱いする \expandafter\@tfor\expandafter\@tempa\expandafter:\expandafter=\jlreq@BlockHeading@HeadingSpaces@ignoretokens\do{% \expandafter\ifx\@tempa\jlreq@nextchar - \edef\jlreq@do{% - \unexpanded{\let\jlreq@BlockHeading@start@savecs=}\expandonce{\@tempa}% - \noexpand\pretocmd\expandonce{\@tempa}{\noexpand\let\expandonce{\@tempa}=\noexpand\jlreq@BlockHeading@start@savecs\noexpand\jlreq@BlockHeading@HeadingSpaces@saveafter}{}{}% - \noexpand\apptocmd\expandonce{\@tempa}{\unexpanded{\jlreq@endmark\jlreq@BlockHeading@start@afterheading}}{}{}% - }% + \def\jlreq@do{\jlreq@BlockHeading@start@afterheading@saveafter@cs}% \fi }% \jlreq@do } -\def\jlreq@BlockHeading@HeadingSpaces@saveafter#1\jlreq@endmark{% - \csxappto{jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count}{\unexpanded{#1}}% +% コントロールシークエンスを保存 +\def\jlreq@BlockHeading@start@afterheading@saveafter@cs#1{% + \csgappto{jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count}{#1}% + \jlreq@BlockHeading@start@afterheading@saveafter@option +} +% オプションがあれば保存 +\def\jlreq@BlockHeading@start@afterheading@saveafter@option{% + \@ifnextchar[{\jlreq@BlockHeading@start@afterheading@saveafter@option@}{\jlreq@BlockHeading@start@afterheading@saveafter@arguments}% +} +\def\jlreq@BlockHeading@start@afterheading@saveafter@option@[#1]{% + \csxappto{jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count}{\unexpanded{[#1]}}% + \jlreq@BlockHeading@start@afterheading@saveafter@arguments +} +% 引数を保存し続けるループ +\def\jlreq@BlockHeading@start@afterheading@saveafter@arguments{% + \jlreq@ifnextchar\bgroup{\jlreq@BlockHeading@start@afterheading@saveafter@arguments@}{\jlreq@BlockHeading@start@afterheading}% +} +\def\jlreq@BlockHeading@start@afterheading@saveafter@arguments@#1{% + \csxappto{jlreq@BlockHeading@spaces@current@after@\the\jlreq@BlockHeading@spaces@current@count}{\unexpanded{{#1}}}% + \jlreq@BlockHeading@start@afterheading@saveafter@arguments } -% 特別扱いしたいトークンの列を並べる +% 特別扱いしたいマクロを並べる \def\jlreq@BlockHeading@HeadingSpaces@ignoretokens{\label} % \jlreq@resultaにaux吐き出しとかを入れて,\jlreq@resultbに出力を入れる(縦方向調整なし) @@ -2036,7 +1979,7 @@ % {1 = 配置(clr)}{2 = 字下げ}{3 = 字上げ}{4 = 出力} \long\def\jlreq@BlockHeading@start@makeoutput@#1#2#3#4{% \edef\jlreq@result{% - \noindent + \noexpand\noindent \jlreq@ifempty{#2}{}{\unexpanded{\hskip #2}}% \noexpand\vbox{% \noexpand\noindent @@ -2422,7 +2365,7 @@ \@ifundefined{#1}{\DeclareBlockHeading{#1}{#2}{#3}}{}% } -% 別行見出しが連続した場合の処理 +%.. 別行見出しが連続した場合の処理 % 設定値保存に次のマクロを使う % \jlreq@BlockHeading@spaces@headingslist % : スペースを考慮しないとならない見出しのリスト.,_chapter_section_subsection,_section_subsection,...みたいな感じ @@ -2532,9 +2475,14 @@ }% } \def\jlreq@SetBlockHeadingSpaces@@@@#1#{% - \expandafter\jlreq@SetBlockHeadingSpaces@ifcontainsunderbar\expandafter{\@gobble #1}{% + \expandafter\jlreq@ifcontains\expandafter{\@gobble #1}{_}{% \ClassWarning{jlreq}{Unusual heading name `\@gobble #1' is found. You forgot a comma? (in SetBlockHeadingSpaces)}% }{}% + \jlreq@ifendswith{#1}{*}{{% + \def\@tempa_##1*{\def\@tempa{##1}}% + \@tempa#1 + \ClassWarning{jlreq}{The heading name `\@gobble #1' ends with `*'. Do you mean `\@tempa{*}'? (in SetBlockHeadingSpaces)}% + }}{}% \appto\jlreq@headings{#1}% \jlreq@SetBlockHeadingSpaces@@@@@ } @@ -2551,14 +2499,6 @@ \@gobble % \jlreq@endmarkを食う }% } -% #1に_が含まれているか -\def\jlreq@SetBlockHeadingSpaces@ifcontainsunderbar@#1_#2\jlreq@endmark{% - \jlreq@ifempty{#2}{\@secondoftwo}{\@firstoftwo}% -} -\def\jlreq@SetBlockHeadingSpaces@ifcontainsunderbar#1{% - \jlreq@SetBlockHeadingSpaces@ifcontainsunderbar@#1_\jlreq@endmark -} - % 現在の情報に基づき出力 \def\jlreq@BlockHeading@spaces@output{% @@ -2571,10 +2511,18 @@ % 連続スペース情報とか無視して各々の見出しを出力する \def\jlreq@BlockHeading@spaces@outputwospace{% - \jlreq@tempcnta=0 - \@whilenum\jlreq@tempcnta<\jlreq@BlockHeading@spaces@current@count\do{% + \begingroup + \jlreq@tempcnta=0 + \def\jlreq@do{}% + \jlreq@BlockHeading@spaces@outputwospace@ + \jlreq@BlockHeading@spaces@clear + \expandafter\endgroup + \jlreq@do +} +\def\jlreq@BlockHeading@spaces@outputwospace@{% + \ifnum\jlreq@tempcnta<\jlreq@BlockHeading@spaces@current@count \advance\jlreq@tempcnta by 1 - \csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@tempcnta\endcsname + \eappto\jlreq@do{\csexpandonce{jlreq@BlockHeading@spaces@current@before@\the\jlreq@tempcnta}}% \edef\jlreq@tempa{% \unexpanded{\long\def\jlreq@tempa##1}{\csexpandonce{jlreq@BlockHeading@spaces@current@format@\the\jlreq@tempcnta}}% }% @@ -2586,10 +2534,9 @@ {\csexpandonce{jlreq@BlockHeading@spaces@current@output@\the\jlreq@tempcnta}}% }}% }% - \edef\jlreq@do{\jlreq@tempb}% - \jlreq@do - \csname jlreq@BlockHeading@spaces@current@after@\the\jlreq@tempcnta\endcsname - }% + \eappto\jlreq@do{\jlreq@tempb\csexpandonce{jlreq@BlockHeading@spaces@current@after@\the\jlreq@tempcnta}}% + \expandafter\jlreq@BlockHeading@spaces@outputwospace@ + \fi } \def\jlreq@BlockHeading@spaces@output@#1#2\jlreq@endmark{% @@ -2608,6 +2555,7 @@ \expandonce{\jlreq@result}% \fi }% + \jlreq@BlockHeading@spaces@clear \jlreq@do } % jlreq@resultに出力すべきものを入れていく @@ -2657,16 +2605,18 @@ % 連続見出しスペース調整用のデータをすべてクリアする \def\jlreq@BlockHeading@spaces@clear{% - \jlreq@tempcnta=0 - \@whilenum\jlreq@tempcnta<\jlreq@BlockHeading@spaces@current@count\do{% - \advance\jlreq@tempcnta by 1 - \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@space@\the\jlreq@tempcnta\endcsname=\@undefined - \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@output@\the\jlreq@tempcnta\endcsname=\@undefined - \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@tempcnta\endcsname=\@undefined - \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@after@\the\jlreq@tempcnta\endcsname=\@undefined - }% - \gdef\jlreq@BlockHeading@spaces@current@sequence{}% - \global\jlreq@BlockHeading@spaces@current@count=0 + \begingroup + \jlreq@tempcnta=0 + \@whilenum\jlreq@tempcnta<\jlreq@BlockHeading@spaces@current@count\do{% + \advance\jlreq@tempcnta by 1 + \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@space@\the\jlreq@tempcnta\endcsname=\@undefined + \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@output@\the\jlreq@tempcnta\endcsname=\@undefined + \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@before@\the\jlreq@tempcnta\endcsname=\@undefined + \expandafter\global\expandafter\let\csname jlreq@BlockHeading@spaces@current@after@\the\jlreq@tempcnta\endcsname=\@undefined + }% + \gdef\jlreq@BlockHeading@spaces@current@sequence{}% + \global\jlreq@BlockHeading@spaces@current@count=0 + \endgroup } %.. 同行見出し @@ -2732,38 +2682,43 @@ % 1 = 書式指定,2 = インデント, 3 = 見出しと本文の間, 4 = これを越えたら二行以上,5 = これを越えたら三行以上,6 = テキスト \def\jlreq@CutinHeading@start@#1#2#3#4#5#6{% % 一行で処理したときの見出し長さを計測 - \setbox\@tempboxa=\hbox{#1#6}% - \@tempdima=\wd\@tempboxa - % 何行必要かを\jlreq@CutinHeading@linecountに入れる - \ifdim\@tempdima>#5\def\jlreq@CutinHeading@linecount{3}% - \else\ifdim\@tempdima>#4\def\jlreq@CutinHeading@linecount{2}% - \else\def\jlreq@CutinHeading@linecount{1}\fi\fi - % \@tempdimaが実際の一行の長さに近い - \divide\@tempdima by \jlreq@CutinHeading@linecount - % \jlreq@resultboxに見出し部分を,\jlreq@CutinHeading@linecountに見出し自身に何行使うかを入れる - \ifnum\jlreq@CutinHeading@linecount=1\relax - \setbox\jlreq@resultbox=\vbox{\parindent=0pt\rightskip=0pt\leftskip=0pt\hbox{#1#6}}% - \def\jlreq@CutinHeading@linecount{2}% - \else - \jlreq@inlinenote@determinelength{#6}{#1}{}{\jlreq@CutinHeading@linecount}{\jlreq@CutinHeading@linecount}{\@tempdima}{\linewidth}% - \def\jlreq@CutinHeading@linecount{3}% - \fi - % 普通の一行の高さ/深さに合わせて見出しのボックスを作る - \setbox\@tempboxa=\vtop to \dimexpr\numexpr\jlreq@CutinHeading@linecount - 1\relax\baselineskip + 1\zh\relax{\vskip 0pt plus 1fill minus 1fill \box\jlreq@resultbox\vskip 0pt plus 1fill minus 1fill}% - % 高さを通常の一行のそれにする - \setbox\jlreq@tempboxa=\hbox{阿}% - \dp\@tempboxa=\dimexpr\ht\@tempboxa + \dp\@tempboxa - \ht\jlreq@tempboxa\relax - \ht\@tempboxa=\ht\jlreq@tempboxa - \noindent - \hspace*{#2}% - \copy\@tempboxa - % でかい見出しボックスの分をキャンセルする空きを入れる - % \baselineskip - \ht\jlreq@tempboxaはTeXが挿入するスキップの分 - \hspace*{#3}% - \vspace{-\dimexpr\ht\@tempboxa + \dp\@tempboxa + \baselineskip - \ht\jlreq@tempboxa\relax}% - \par - \hangindent=\dimexpr#2 + \wd\@tempboxa + #3\relax - \hangafter=-\jlreq@CutinHeading@linecount\relax + \begingroup + \setbox\@tempboxa=\hbox{#1#6}% + \@tempdima=\wd\@tempboxa + % 何行必要かを\jlreq@CutinHeading@linecountに入れる + \ifdim\@tempdima>#5\def\jlreq@CutinHeading@linecount{3}% + \else\ifdim\@tempdima>#4\def\jlreq@CutinHeading@linecount{2}% + \else\def\jlreq@CutinHeading@linecount{1}\fi\fi + % \@tempdimaが実際の一行の長さに近い + \divide\@tempdima by \jlreq@CutinHeading@linecount + % \jlreq@resultboxに見出し部分を,\jlreq@CutinHeading@linecountに見出し自身に何行使うかを入れる + \ifnum\jlreq@CutinHeading@linecount=1\relax + \setbox\jlreq@resultbox=\vbox{\parindent=0pt\rightskip=0pt\leftskip=0pt\hbox{#1#6}}% + \def\jlreq@CutinHeading@linecount{2}% + \else + \jlreq@inlinenote@determinelength{#6}{#1}{}{\jlreq@CutinHeading@linecount}{\jlreq@CutinHeading@linecount}{\@tempdima}{\linewidth}% + \def\jlreq@CutinHeading@linecount{3}% + \fi + % 普通の一行の高さ/深さに合わせて見出しのボックスを作る + \setbox\@tempboxa=\vtop to \dimexpr\numexpr\jlreq@CutinHeading@linecount - 1\relax\baselineskip + 1\zh\relax{\vskip 0pt plus 1fill minus 1fill \box\jlreq@resultbox\vskip 0pt plus 1fill minus 1fill}% + % 高さを通常の一行のそれにする + \setbox\jlreq@tempboxa=\hbox{阿}% + \dp\@tempboxa=\dimexpr\ht\@tempboxa + \dp\@tempboxa - \ht\jlreq@tempboxa\relax + \ht\@tempboxa=\ht\jlreq@tempboxa + \noindent + \hspace*{#2}% + \copy\@tempboxa + \hspace*{#3}% + \par + % でかい見出しボックスの分をキャンセルする空きを入れる + % \baselineskip - \ht\jlreq@tempboxaはTeXが挿入するスキップの分 + \vskip -\dimexpr\ht\@tempboxa + \dp\@tempboxa + \baselineskip - \ht\jlreq@tempboxa\relax\relax + \edef\jlreq@do{% + \noexpand\hangindent=\the\dimexpr#2 + \wd\@tempboxa + #3\relax\relax + \noexpand\hangafter=-\jlreq@CutinHeading@linecount\relax + }% + \expandafter\endgroup + \jlreq@do \prevdepth=0pt % 改段落が起こっても\hang****をキープするように\parを書き換えておく(終わったら元に戻す). \def\par{% @@ -2771,10 +2726,8 @@ \jlreq@tempcnta=\hangafter\relax \jlreq@tempdima=\hangindent\relax \@@par - \ifnum\jlreq@tempcnta<-\prevgraf\relax - \ifjlreq@tempa\else - \advance\jlreq@tempcnta by \prevgraf\relax - \fi + \ifjlreq@tempa\else\advance\jlreq@tempcnta by \prevgraf\relax\fi + \ifnum\jlreq@tempcnta<0 \hangafter=\jlreq@tempcnta\relax \hangindent=\jlreq@tempdima\relax \else @@ -3000,7 +2953,7 @@ % 文字サイズは6ポイントくらい(4.2.3.a)とりあえす\scriptsize % \footnoteと\footnotemarkの前後に\jlreq@hook@prenote/\jlreq@hook@postnoteを入れる -\jlreq@saveoriginalcs{footnote}% +\jlreq@saveoriginalcs{footnote} \edef\jlreq@do{ \unexpanded{\long\def\jlreq@fixjfm@footnote@[#1]#2}{% \expandonce{\footnote[#1]{#2}}% @@ -3138,6 +3091,8 @@ \else \renewcommand*{\thefootnote}{\arabic{footnote}\hbox{})\inhibitglue} \fi +\ifthenelse{\equal{\jlreq@article@type}{article}}{}{\@addtoreset{footnote}{chapter}} + %.. 後注(4.2.4) \def\jlreq@endnotemarkname{@thefnmark}% 合印用番号を一時的に入れるマクロ名 @@ -4092,7 +4047,12 @@ %.. figure環境 \newcounter{figure} -\renewcommand*{\thefigure}{\arabic{figure}} +\ifthenelse{\equal{\jlreq@article@type}{article}}{% + \renewcommand{\thefigure}{\@arabic\c@figure} +}{% + \@addtoreset{figure}{chapter} + \renewcommand{\thefigure}{\ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@figure} +} \newcommand*{\fps@figure}{h} \newcommand*{\ftype@figure}{1} \newcommand*{\ext@figure}{lof} @@ -4104,7 +4064,12 @@ %.. table環境 \newcounter{table} -\renewcommand*{\thetable}{\arabic{table}} +\ifthenelse{\equal{\jlreq@article@type}{article}}{% + \renewcommand{\thetable}{\@arabic\c@table} +}{% + \@addtoreset{table}{chapter} + \renewcommand{\thetable}{\ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@table} +} \newcommand*{\fps@table}{h} \newcommand*{\ftype@table}{2} \newcommand*{\ext@table}{lot} @@ -4487,7 +4452,12 @@ \setlength\fboxsep{.3\zw} \setlength\fboxrule{\jlreq@omotekeiwidth} % 根拠はない % 後で -\renewcommand{\theequation}{\@arabic\c@equation} +\ifthenelse{\equal{\jlreq@article@type}{article}}{% + \renewcommand{\theequation}{\@arabic\c@equation} +}{% + \@addtoreset{equation}{chapter} + \renewcommand{\theequation}{\ifnum\c@chapter>\z@\thechapter.\fi \@arabic\c@equation} +} %. 目次 \setcounter{tocdepth}{3} @@ -4728,19 +4698,17 @@ \hbox{\yoko \setbox\jlreq@tempboxa=\hbox{阿}% \vrule width 0pt height \ht\jlreq@tempboxa depth \dp\jlreq@tempboxa #1}% - \def\jlreq@do{% - % 後ろのJFM glue - \jlreq@ifletter{\jlreq@nextchar}{% - \jlreq@expandmacros{\jlreq@nextchar}{\jlreq@tempa}% - \def\jlreq@tempb####1####2\jlreq@endmark{\def\jlreq@tempa{####1}}% - \expandafter\jlreq@tempb\jlreq@tempa\jlreq@endmark - \jlreq@calc@jfmglue{\char\jlreq@lastnodechar}{\jlreq@tempa}% - \jlreq@calc@jfmglue{阿}{\jlreq@tempa}% - \jlreq@ifgluezero\jlreq@resultskip{}{\hskip\jlreq@resultskip}% - \inhibitglue - }{}% - }% - \futurelet\jlreq@nextchar\jlreq@do + \futurelet\jlreq@nextchar\jlreq@tatechuyoko@ +} +\def\jlreq@tatechuyoko@{% + \jlreq@ifletter{\jlreq@nextchar}{% + \jlreq@expandmacros{\jlreq@nextchar}{\jlreq@tempa}% + \def\jlreq@tempb##1##2\jlreq@endmark{\def\jlreq@tempa{##1}}% + \expandafter\jlreq@tempb\jlreq@tempa\jlreq@endmark + \jlreq@calc@jfmglue{阿}{\jlreq@tempa}% + \jlreq@ifgluezero\jlreq@resultskip{}{\hskip\jlreq@resultskip}% + \inhibitglue + }{}% } % 日にち @@ -4749,13 +4717,19 @@ \def\和暦{\西暦false} % #1年#2月#3日 #4は\numberとか\kansujiとか \def\jlreq@wareki#1#2#3#4{% + \jlreq@warekiyear{#1}{#2}{#3}{#4}% + #4#2月#4#3日% +} +\def\jlreq@warekiyear#1#2#3#4{% % 昭和:1989年1月7日まで \ifnum0\ifnum#1<1988 1\fi\ifnum#1=1989 \ifnum#2=1 \ifnum#3<8 1\fi\fi\fi>0 昭和\jlreq@warekiyear@{#1}{1926}{#4}% - \else + % 平成:2019年4月末日まで + \else%\ifnum0\ifnum#1<2019 1\fi\ifnum#1=1989 \ifnum#2<5 1\fi\fi>0 平成\jlreq@warekiyear@{#1}{1989}{#4}% - \fi - #4#2月#4#3日% +% \else +% 新元号\jlreq@warekiyear@{#1}{2019}{#4}% + \fi%\fi } \def\jlreq@warekiyear@#1#2#3{\ifnum#1=#2 元年\else #3\numexpr#1-#2+1\relax 年\fi} \def\today{% diff --git a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua index 3ce24664de5..d4ff74d1997 100644 --- a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua +++ b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreq.lua @@ -12,8 +12,10 @@ xkanjiskipは{1,-3},kanjiskip={0,0} \ltjsetparameter{stretch_priority={kanjiskip=0,xkanjiskip=0}} ]] +local stretch_width = 0.25 -- 空き第四段階の空き量 + local hyphen_glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -22,16 +24,17 @@ local hyphen_glue = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, [9] = {0, 0, 0}, [10] = {0, 0, 0}, [11] = {0, 0, 0}, - [12] = {0, 0, 0}, - [13] = {0, 0, 0}, - [14] = {0, 0, 0}, - [15] = {0, 0, 0}, - [16] = {0, 0, 0}, - [0] = {0, 0, 0}, + [12] = {0, stretch_width, 0, priority = {-1,0}}, + [13] = {0, stretch_width, 0, priority = {-1,0}}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, + [15] = {0, stretch_width, 0, priority = {-1,0}}, + [16] = {0, stretch_width, 0, priority = {-1,0}}, + [0] = {0, stretch_width, 0, priority = {-1,0}}, + [27] = {0, stretch_width, 0, priority = {-1,0}}, --[[ [20] = {0, 0, 0}, [21] = {0, 0, 0}, @@ -40,20 +43,17 @@ local hyphen_glue = { [24] = {0, 0, 0}, [25] = {0, 0, 0}, [26] = {0, 0, 0}, - [27] = {0, 0, 0}, [28] = {0, 0, 0}, [29] = {0, 0, 0}, [30] = {0, 0, 0}, ]] } - - local jfm = { dir = 'yoko', zw = 1.0, zh = 1.0, - version = 2, + version = 3, -- 文字クラス4,9,10,11,15,16,19との間は(x)kanjiskipで調整する. kanjiskip = {0, 0.25, 0}, xkanjiskip = {0.25, 0.25, 0.125}, @@ -84,7 +84,8 @@ local jfm = { [15] = {0, 0, 0}, [16] = {0, 0, 0}, [0] = {0, 0, 0}, - --[[ + [27] = {0, 0, 0}, +--[[ [20] = {0, 0, 0}, [21] = {0, 0, 0}, [22] = {0, 0, 0}, @@ -92,7 +93,6 @@ local jfm = { [24] = {0, 0, 0}, [25] = {0, 0, 0}, [26] = {0, 0, 0}, - [27] = {0, 0, 0}, [28] = {0, 0, 0}, [29] = {0, 0, 0}, [30] = {0, 0, 0}, @@ -107,7 +107,7 @@ local jfm = { width = 0.5,height = 0.88,depth = 0.12, align = 'left', glue = { - [1] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [301] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -116,16 +116,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [8] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, [9] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [10] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [11] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [12] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [13] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [14] = {0, 0, 0}, - [15] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [16] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [0] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [12] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [13] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, + [15] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [16] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [0] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [27] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, --[[ [20] = {0, 0, 0}, [21] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -134,7 +135,6 @@ local jfm = { [24] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [25] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [26] = {0.5, 0, 0, ratio = 0, priority = {0,-2}}, - [27] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [28] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [29] = {0, 0, 0}, [30] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -170,25 +170,26 @@ local jfm = { width = 1,height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0.5, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, [302] = {0, 0, 0}, [4] = {0, 0, 0}, - [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, + [5] = {0.25, stretch_width, 0.25, ratio = 1, priority = {-1,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, [9] = {0, 0, 0}, [10] = {0, 0, 0}, [11] = {0, 0, 0}, - [12] = {0, 0, 0}, - [13] = {0, 0, 0}, - [14] = {0, 0, 0}, - [15] = {0, 0, 0}, - [16] = {0, 0, 0}, --- [0] = {0, 0, 0}, + [12] = {0, stretch_width, 0, priority = {-1,0}}, + [13] = {0, stretch_width, 0, priority = {-1,0}}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, + [15] = {0, stretch_width, 0, priority = {-1,0}}, + [16] = {0, stretch_width, 0, priority = {-1,0}}, + [0] = {0, stretch_width, 0, priority = {-1,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -197,9 +198,6 @@ local jfm = { [24] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, - ]] --- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, - --[[ [28] = {0, 0, 0}, [29] = {0, 0, 0}, [30] = {0, 0, 0}, @@ -214,7 +212,7 @@ local jfm = { width = 0.5,height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, + [1] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, [2] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [300] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [301] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, @@ -223,16 +221,17 @@ local jfm = { [5] = {0.5, 0, 0.5, ratio = 0.5, priority = {0,-1}}, [6] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [7] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [8] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, + [8] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, [9] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [10] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [11] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [12] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [13] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [14] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [15] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [16] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - [0] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, + [12] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [13] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [14] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [15] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [16] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [0] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, + [27] = {0.25, stretch_width, 0.25, ratio = 0, priority = {-1,-1}}, --[[ [20] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [21] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, @@ -241,9 +240,6 @@ local jfm = { [24] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [25] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [26] = {0.25, 0, 0, ratio = 0, priority = {0,-1}}, - ]] - [27] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, - --[[ [28] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [29] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, [30] = {0.25, 0, 0.25, ratio = 0, priority = {0,-1}}, @@ -258,7 +254,7 @@ local jfm = { width = 0.5,height = 0.88,depth = 0.12, align = 'left', glue = { - [1] = {0.5, 0, 0, ratio = 0}, + [1] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, [2] = {0, 0, 0}, [300] = {0.5, 0, 0, ratio = 0}, [301] = {0.5, 0, 0, ratio = 0}, @@ -267,16 +263,17 @@ local jfm = { [5] = {0.75, 0, 0.25, ratio = 0.33333333, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0.5, 0, 0, ratio = 0}, + [8] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, [9] = {0.5, 0, 0, ratio = 0}, [10] = {0.5, 0, 0, ratio = 0}, [11] = {0.5, 0, 0, ratio = 0}, - [12] = {0.5, 0, 0, ratio = 0}, - [13] = {0.5, 0, 0, ratio = 0}, - [14] = {0.5, 0, 0, ratio = 0}, - [15] = {0.5, 0, 0, ratio = 0}, - [16] = {0.5, 0, 0, ratio = 0}, - [0] = {0.5, 0, 0, ratio = 0}, + [12] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [13] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [14] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [15] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [16] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [0] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, + [27] = {0.5, stretch_width, 0, ratio = 0, priority = {-1,0}}, --[[ [20] = {0, 0, 0}, [21] = {0.5, 0, 0, ratio = 0}, @@ -285,9 +282,6 @@ local jfm = { [24] = {0.5, 0, 0, ratio = 0}, [25] = {0.5, 0, 0, ratio = 0}, [26] = {0.5, 0, 0, ratio = 0}, - ]] - [27] = {0.5, 0, 0, ratio = 0}, - --[[ [28] = {0.5, 0, 0, ratio = 0}, [29] = {0.5, 0, 0, ratio = 0}, [30] = {0.5, 0, 0, ratio = 0}, @@ -302,7 +296,7 @@ local jfm = { width = 0.5,height = 0.88,depth = 0.12, align = 'left', glue = { - [1] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [301] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -311,16 +305,17 @@ local jfm = { [5] = {0.75, 0, 0.75, ratio = 0.33333333, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [8] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, [9] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [10] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [11] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [12] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [13] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [14] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [15] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [16] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - [0] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, + [12] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [13] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [14] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [15] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [16] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [0] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, + [27] = {0.5, stretch_width, 0.5, ratio = 0, priority = {-1,-2}}, --[[ [20] = {0, 0, 0}, [21] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -329,9 +324,6 @@ local jfm = { [24] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [25] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [26] = {0.5, 0, 0, ratio = 0, priority = {0,-2}}, - ]] - [27] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, - --[[ [28] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [29] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, [30] = {0.5, 0, 0.5, ratio = 0, priority = {0,-2}}, @@ -345,7 +337,7 @@ local jfm = { width = 1,height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -354,7 +346,7 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, 0, 0}, -- 空き注4 -- [9] = {0, 0.25, 0, priority = {0,0}}, -- [10] = {0, 0.25, 0, priority = {0,0}}, -- [11] = {0, 0.25, 0, priority = {0,0}}, @@ -364,6 +356,7 @@ local jfm = { -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, [0] = {0, 0.25, 0, priority = {0,0}}, + [27] = {0, 0.25, 0, priority = {0,0}}, --[[ [20] = {0, 0, 0}, [21] = {0, 0.25, 0, priority = {0,0}}, @@ -372,9 +365,6 @@ local jfm = { [24] = {0, 0, 0}, [25] = {0, 0, 0}, [26] = {0, 0, 0}, - ]] - [27] = {0, 0.25, 0, priority = {0,0}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -387,7 +377,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -396,15 +386,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, -- [9] = {0, 0.25, 0, priority = {0,0}}, -- [10] = {0, 0.25, 0, priority = {0,0}}, -- [11] = {0, 0.25, 0, priority = {0,0}}, -- [12] = {0, 0.25, 0, priority = {0,0}}, -- [13] = {0, 0.25, 0, priority = {0,0}}, - [14] = {0, 0, 0}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -413,9 +405,6 @@ local jfm = { [24] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, - ]] - [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -428,7 +417,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -437,15 +426,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, -- [9] = {0, 0.25, 0, priority = {0,0}}, -- [10] = {0, 0.25, 0, priority = {0,0}}, -- [11] = {0, 0.25, 0, priority = {0,0}}, -- [12] = {0, 0.25, 0, priority = {0,0}}, -- [13] = {0, 0.25, 0, priority = {0,0}}, - [14] = {0, 0, 0}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -454,9 +445,6 @@ local jfm = { [24] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, - ]] - [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -469,7 +457,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -478,15 +466,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, -- [9] = {0, 0.25, 0, priority = {0,0}}, -- [10] = {0, 0.25, 0, priority = {0,0}}, -- [11] = {0, 0.25, 0, priority = {0,0}}, -- [12] = {0, 0.25, 0, priority = {0,0}}, -- [13] = {0, 0.25, 0, priority = {0,0}}, - [14] = {0, 0, 0}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0, 0.125, ratio = 0, priority = {1,-3}}, @@ -495,9 +485,6 @@ local jfm = { [24] = {0.25, 0, 0.125, ratio = 0, priority = {1,-3}}, [25] = {0.25, 0, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, - ]] - [27] = {0.25, 0, 0.125, ratio = 0, priority = {1,-3}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -528,7 +515,8 @@ local jfm = { [14] = {0, 0, 0}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, --- [0] = {0, 0.25, 0, priority = {0,0}}, + [0] = {0, 0.25, 0, priority = {0,0}}, + [27] = {0, 0.25, 0, priority = {0,0}}, --[[ [20] = {0, 0, 0}, [21] = {0, 0.25, 0, priority = {0,0}}, @@ -537,9 +525,6 @@ local jfm = { [24] = {0, 0, 0}, [25] = {0, 0.25, 0, priority = {0,0}}, [26] = {0, 0, 0}, - ]] - [27] = {0, 0.25, 0, priority = {0,0}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -552,7 +537,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -567,10 +552,11 @@ local jfm = { -- [11] = {0, 0.25, 0, priority = {0,0}}, -- [12] = {0, 0.25, 0, priority = {0,0}}, -- [13] = {0, 0.25, 0, priority = {0,0}}, - [14] = {0, 0, 0}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, [0] = {0, 0.25, 0, priority = {0,0}}, + [27] = {0, 0.25, 0, priority = {0,0}}, --[[ [20] = {0, 0, 0}, [21] = {0, 0.25, 0, priority = {0,0}}, @@ -579,9 +565,6 @@ local jfm = { [24] = {0, 0.25, 0, priority = {0,0}}, [25] = {0, 0.25, 0, priority = {0,0}}, [26] = {0, 0, 0}, - ]] - [27] = {0, 0.25, 0, priority = {0,0}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -594,7 +577,7 @@ local jfm = { align = 'middle', width= 1,height = 0.88,depth = 0.12, glue = { - [1] = {0, 0, 0}, + [1] = {0, stretch_width, 0, priority = {-1,0}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -603,16 +586,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0, 0}, + [8] = {0, stretch_width, 0, priority = {-1,0}}, [9] = {0, 0, 0}, [10] = {0, 0, 0}, [11] = {0, 0, 0}, - [12] = {0, 0, 0}, - [13] = {0, 0, 0}, - [14] = {0, 0, 0}, - [15] = {0, 0, 0}, - [16] = {0, 0, 0}, - [0] = {0, 0, 0}, + [12] = {0, stretch_width, 0, priority = {-1,0}}, + [13] = {0, stretch_width, 0, priority = {-1,0}}, + [14] = {0, stretch_width, 0, priority = {-1,0}}, + [15] = {0, stretch_width, 0, priority = {-1,0}}, + [16] = {0, stretch_width, 0, priority = {-1,0}}, + [0] = {0, stretch_width, 0, priority = {-1,0}}, + [27] = {0, stretch_width, 0, priority = {-1,0}}, --[[ [20] = {0, 0, 0}, [21] = {0, 0, 0}, @@ -621,9 +605,6 @@ local jfm = { [24] = {0, 0, 0}, [25] = {0, 0, 0}, [26] = {0, 0, 0}, - ]] - [27] = {0, 0, 0}, - --[[ [28] = {0, 0, 0}, [29] = {0, 0, 0}, [30] = {0, 0, 0}, @@ -636,7 +617,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -654,6 +635,8 @@ local jfm = { [14] = {0, 0, 0}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -663,7 +646,6 @@ local jfm = { [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, ]] - [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, @@ -677,7 +659,7 @@ local jfm = { height = 0.88,depth = 0.12, align = 'middle', glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -695,6 +677,8 @@ local jfm = { [14] = {0, 0, 0}, -- [15] = {0, 0.25, 0, priority = {0,0}}, -- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -704,7 +688,6 @@ local jfm = { [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, ]] - [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, @@ -733,7 +716,7 @@ local jfm = { align = 'middle', width = 1,height = 0.88,depth = 0.12, glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, [300] = {0, 0, 0}, [301] = {0, 0, 0}, @@ -742,10 +725,17 @@ local jfm = { [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, - [8] = {0, 0.25, 0, priority = {0,0}}, - [12] = {0, 0.25, 0, priority = {0,0}}, - [13] = {0, 0.25, 0, priority = {0,0}}, +-- [8] = {0, 0.25, 0, priority = {0,0}}, +-- [9] = {0, 0.25, 0, priority = {0,0}}, +-- [10] = {0, 0.25, 0, priority = {0,0}}, +-- [11] = {0, 0.25, 0, priority = {0,0}}, +-- [12] = {0, 0.25, 0, priority = {0,0}}, +-- [13] = {0, 0.25, 0, priority = {0,0}}, [14] = {0, 0, 0}, +-- [15] = {0, 0.25, 0, priority = {0,0}}, +-- [16] = {0, 0.25, 0, priority = {0,0}}, +-- [0] = {0, 0.25, 0, priority = {0,0}}, +-- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, --[[ [20] = {0, 0, 0}, [21] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, @@ -754,9 +744,6 @@ local jfm = { [24] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [25] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [26] = {0, 0, 0}, - ]] --- [27] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, - --[[ [28] = {0, 0.25, 0, priority = {0,0}}, [29] = {0, 0, 0}, [30] = {0, 0.25, 0, priority = {0,0}}, @@ -1012,27 +999,31 @@ local jfm = { [30] = {0, 0, 0}, } }, - +]] [27] = {-- 欧文 - chars = {'jcharbdd'}, + chars = {'alchar'}, glue = { - [1] = {0.5, 0, 0.5, ratio = 1, priority = {0,-2}}, + [1] = {0.5, stretch_width, 0.5, ratio = 1, priority = {-1,-2}}, [2] = {0, 0, 0}, - [3] = {0, 0, 0}, + [300] = {0, 0, 0}, + [301] = {0, 0, 0}, + [302] = {0, 0, 0}, [4] = {0, 0, 0}, [5] = {0.25, 0, 0.25, ratio = 1, priority = {0,-1}}, [6] = {0, 0, 0}, [7] = {0, 0, 0}, [8] = {0, 0.25, 0, priority = {0,0}}, - [9] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, - [10] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, - [11] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [9] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [10] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [11] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, [12] = {0, 0.25, 0, priority = {0,0}}, [13] = {0, 0.25, 0, priority = {0,0}},-- 空け注10 [14] = {0, 0, 0}, - [15] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, - [16] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, - [0] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [15] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [16] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [0] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, +-- [27] = {0, 0, 0, ratio = 0, priority = {1,0}}, +--[[ [20] = {0, 0, 0}, [21] = {0, 0.25, 0, priority = {0,0}}, [22] = {0.25, 0.25, 0.125, ratio = 1, priority = {1,-3}}, @@ -1044,9 +1035,10 @@ local jfm = { [28] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, [29] = {0, 0, 0}, [30] = {0.25, 0.25, 0.125, ratio = 0, priority = {1,-3}}, +--]] } }, - +--[[ [28] = { -- 割注始め括弧類 chars = {'(', '〔', '['}, glue = { diff --git a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua index fd5213a9b61..dcced2f4e3d 100644 --- a/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua +++ b/Master/texmf-dist/tex/luatex/jlreq/jfm-jlreqv.lua @@ -5,9 +5,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -21,24 +21,6 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ - 0, - 0.25, - 0, - ["priority"]={ 0, 0 }, - }, - [12]={ - 0, - 0.25, - 0, - ["priority"]={ 0, 0 }, - }, - [13]={ - 0, - 0.25, - 0, - ["priority"]={ 0, 0 }, - }, [14]={ 0, 0, 0 }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, @@ -75,6 +57,7 @@ local jfm={ [14]={ 0, 0, 0 }, [15]={ 0, 0, 0 }, [16]={ 0, 0, 0 }, + [27]={ 0, 0, 0 }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -90,16 +73,16 @@ local jfm={ ["glue"]={ [0]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, { 0, 0, 0 }, @@ -121,9 +104,9 @@ local jfm={ [7]={ 0, 0, 0 }, [8]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [9]={ @@ -149,31 +132,43 @@ local jfm={ }, [12]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [13]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, - [14]={ 0, 0, 0 }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [15]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [16]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, + ["ratio"]=0, + }, + [27]={ + 0.5, + 0.25, + 0.5, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [300]={ @@ -206,33 +201,69 @@ local jfm={ ["chars"]={ "!", "?", "‼", "⁇", "⁈", "⁉" }, ["depth"]=0.5, ["glue"]={ + [0]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, { 0.5, + 0.25, 0.5, - 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, [4]={ 0, 0, 0 }, [5]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=1, }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [9]={ 0, 0, 0 }, [10]={ 0, 0, 0 }, [11]={ 0, 0, 0 }, - [12]={ 0, 0, 0 }, - [13]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [15]={ 0, 0, 0 }, - [16]={ 0, 0, 0 }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [15]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [16]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -248,16 +279,16 @@ local jfm={ ["glue"]={ [0]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, { 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, { @@ -297,9 +328,9 @@ local jfm={ }, [8]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [9]={ @@ -325,44 +356,44 @@ local jfm={ }, [12]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [13]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [14]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [15]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [16]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [27]={ 0.25, - 0, 0.25, - ["priority"]={ 0, -1 }, + 0.25, + ["priority"]={ -1, -1 }, ["ratio"]=0, }, [300]={ @@ -398,14 +429,16 @@ local jfm={ ["glue"]={ [0]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, { 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, { 0, 0, 0 }, @@ -426,8 +459,9 @@ local jfm={ [7]={ 0, 0, 0 }, [8]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [9]={ @@ -450,38 +484,44 @@ local jfm={ }, [12]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [13]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [14]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [15]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [16]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [27]={ 0.5, + 0.25, 0, - 0, + ["priority"]={ -1, 0 }, ["ratio"]=0, }, [300]={ @@ -514,16 +554,16 @@ local jfm={ ["glue"]={ [0]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, { 0, 0, 0 }, @@ -545,9 +585,9 @@ local jfm={ [7]={ 0, 0, 0 }, [8]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [9]={ @@ -573,44 +613,44 @@ local jfm={ }, [12]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [13]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [14]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [15]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [16]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [27]={ 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=0, }, [300]={ @@ -651,9 +691,9 @@ local jfm={ }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -689,9 +729,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -705,14 +745,17 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [27]={ + [8]={ + 0, 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, 0.25, - 0.125, - ["priority"]={ 1, -3 }, - ["ratio"]=0, + 0, + ["priority"]={ -1, 0 }, }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, @@ -727,9 +770,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -743,14 +786,17 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [27]={ + [8]={ + 0, 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, 0.25, - 0.125, - ["priority"]={ 1, -3 }, - ["ratio"]=0, + 0, + ["priority"]={ -1, 0 }, }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, @@ -765,9 +811,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -781,14 +827,17 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [27]={ + [8]={ + 0, 0.25, 0, - 0.125, - ["priority"]={ 1, -3 }, - ["ratio"]=0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, @@ -801,6 +850,12 @@ local jfm={ ["chars"]={ "¥", "$", "£", "#", "€", "№" }, ["depth"]=0.5, ["glue"]={ + [0]={ + 0, + 0.25, + 0, + ["priority"]={ 0, 0 }, + }, { 0.5, 0, @@ -845,9 +900,9 @@ local jfm={ }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -861,7 +916,12 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [27]={ 0, 0.25, @@ -879,8 +939,18 @@ local jfm={ ["chars"]={ " " }, ["depth"]=0.5, ["glue"]={ - [0]={ 0, 0, 0 }, - { 0, 0, 0 }, + [0]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + { + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, { 0, 0, 0 }, [4]={ 0, 0, 0 }, [5]={ @@ -892,16 +962,51 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [9]={ 0, 0, 0 }, [10]={ 0, 0, 0 }, [11]={ 0, 0, 0 }, - [12]={ 0, 0, 0 }, - [13]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [15]={ 0, 0, 0 }, - [16]={ 0, 0, 0 }, - [27]={ 0, 0, 0 }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [15]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [16]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [27]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -916,9 +1021,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -933,13 +1038,6 @@ local jfm={ [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, [14]={ 0, 0, 0 }, - [27]={ - 0.25, - 0.25, - 0.125, - ["priority"]={ 1, -3 }, - ["ratio"]=0, - }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -953,9 +1051,9 @@ local jfm={ ["glue"]={ { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -970,13 +1068,53 @@ local jfm={ [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, [14]={ 0, 0, 0 }, - [27]={ + [300]={ 0, 0, 0 }, + [301]={ 0, 0, 0 }, + [302]={ 0, 0, 0 }, + }, + ["height"]=0.5, + }, + [27]={ + ["chars"]={ "alchar" }, + ["depth"]=0.5, + ["glue"]={ + { + 0.5, + 0.25, + 0.5, + ["priority"]={ -1, -2 }, + ["ratio"]=1, + }, + { 0, 0, 0 }, + [4]={ 0, 0, 0 }, + [5]={ 0.25, + 0, 0.25, - 0.125, - ["priority"]={ 1, -3 }, - ["ratio"]=0, + ["priority"]={ 0, -1 }, + ["ratio"]=1, }, + [6]={ 0, 0, 0 }, + [7]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ 0, 0 }, + }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ 0, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ 0, 0 }, + }, + [14]={ 0, 0, 0 }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -996,12 +1134,17 @@ local jfm={ ["chars"]={ "‐" }, ["depth"]=0.5, ["glue"]={ - [0]={ 0, 0, 0 }, + [0]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -1015,15 +1158,51 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [9]={ 0, 0, 0 }, [10]={ 0, 0, 0 }, [11]={ 0, 0, 0 }, - [12]={ 0, 0, 0 }, - [13]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [15]={ 0, 0, 0 }, - [16]={ 0, 0, 0 }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [15]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [16]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [27]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -1036,12 +1215,17 @@ local jfm={ ["chars"]={ "゠", "–" }, ["depth"]=0.5, ["glue"]={ - [0]={ 0, 0, 0 }, + [0]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -1055,15 +1239,51 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [9]={ 0, 0, 0 }, [10]={ 0, 0, 0 }, [11]={ 0, 0, 0 }, - [12]={ 0, 0, 0 }, - [13]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [15]={ 0, 0, 0 }, - [16]={ 0, 0, 0 }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [15]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [16]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [27]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -1076,12 +1296,17 @@ local jfm={ ["chars"]={ "〜" }, ["depth"]=0.5, ["glue"]={ - [0]={ 0, 0, 0 }, + [0]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, { 0.5, - 0, + 0.25, 0.5, - ["priority"]={ 0, -2 }, + ["priority"]={ -1, -2 }, ["ratio"]=1, }, { 0, 0, 0 }, @@ -1095,15 +1320,51 @@ local jfm={ }, [6]={ 0, 0, 0 }, [7]={ 0, 0, 0 }, - [8]={ 0, 0, 0 }, + [8]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [9]={ 0, 0, 0 }, [10]={ 0, 0, 0 }, [11]={ 0, 0, 0 }, - [12]={ 0, 0, 0 }, - [13]={ 0, 0, 0 }, - [14]={ 0, 0, 0 }, - [15]={ 0, 0, 0 }, - [16]={ 0, 0, 0 }, + [12]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [13]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [14]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [15]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [16]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, + [27]={ + 0, + 0.25, + 0, + ["priority"]={ -1, 0 }, + }, [300]={ 0, 0, 0 }, [301]={ 0, 0, 0 }, [302]={ 0, 0, 0 }, @@ -1113,7 +1374,7 @@ local jfm={ }, ["dir"]="tate", ["kanjiskip"]={ 0, 0.25, 0 }, - ["version"]=2, + ["version"]=3, ["xkanjiskip"]={ 0.25, 0.25, 0.125 }, ["zh"]=1, ["zw"]=1, -- cgit v1.2.3