texlive[74674] Master/texmf-dist: kanbun (17mar25)

commits+karl at tug.org commits+karl at tug.org
Mon Mar 17 20:53:50 CET 2025


Revision: 74674
          https://tug.org/svn/texlive?view=revision&revision=74674
Author:   karl
Date:     2025-03-17 20:53:49 +0100 (Mon, 17 Mar 2025)
Log Message:
-----------
kanbun (17mar25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/kanbun/README.md
    trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-en.pdf
    trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.pdf
    trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.tex
    trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-ja.pdf
    trunk/Master/texmf-dist/doc/latex/kanbun/kanbun.tex
    trunk/Master/texmf-dist/tex/latex/kanbun/kanbun.sty

Modified: trunk/Master/texmf-dist/doc/latex/kanbun/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kanbun/README.md	2025-03-17 19:53:41 UTC (rev 74673)
+++ trunk/Master/texmf-dist/doc/latex/kanbun/README.md	2025-03-17 19:53:49 UTC (rev 74674)
@@ -1,9 +1,24 @@
 # The `kanbun` package
 
-The `kanbun` package, like other *kanbun-kundoku* (漢文訓読) LaTeX packages (such as `gckanbun`), allows users to manually input macros for elements in a *kanbun-kundoku* paragraph.
+The `kanbun` package, like other _kanbun-kundoku_ (漢文訓読) LaTeX packages (such as `gckanbun`), allows users to manually input macros for elements in a _kanbun-kundoku_ paragraph.
 
-More importantly, it accepts input with light markup in the “*kanbun* annotation” form when used with LuaLaTeX, which allows typesetting *kanbun-kundoku* paragraphs efficiently.
+More importantly, it accepts input with light markup in the “_kanbun_ annotation” form when used with LuaLaTeX, which allows typesetting _kanbun-kundoku_ paragraphs efficiently.
 
+## Build
+
+Use `replace.sh` to generate `kanbun.sty` and `kanbun.tex` from `kanbun-proto.sty` and `kanbun-proto.tex`, respectively.
+
+```bash
+./replace.sh
+```
+
+Use `build.sh` to generate the documentations and packs the LaTeX package as a `zip` file.
+Some open source fonts are used in the documentation, so you need to install them to compile the documentations.
+
+```bash
+./build.sh
+```
+
 ## Licence
 
 Copyright 2022 Yuanhao Chen
@@ -12,7 +27,7 @@
 conditions of the LaTeX Project Public License, either version 1.3
 of this license or (at your option) any later version.
 The latest version of this license is in
-  <http://www.latex-project.org/lppl.txt>
+<http://www.latex-project.org/lppl.txt>
 and version 1.3 or later is part of all distributions of LaTeX
 version 2005/12/01 or later.
 
@@ -20,5 +35,6 @@
 
 The Current Maintainer of this work is Yuanhao Chen.
 
-This work consists of the files `kanbun.sty`, `kanbun.lua`,
-`kanbun-example.tex` and `kanbun.tex`.
+This work consists of the files `kanbun.sty`
+(from `kanbun-proto.sty`),`kanbun.lua`, `kanbun-example.tex`
+and `kanbun.tex` (from `kanbun-proto.tex`).

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

Modified: trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.tex	2025-03-17 19:53:41 UTC (rev 74673)
+++ trunk/Master/texmf-dist/doc/latex/kanbun/kanbun-example.tex	2025-03-17 19:53:49 UTC (rev 74674)
@@ -19,7 +19,7 @@
 \documentclass{ltjtarticle}
 
 \usepackage[match]{luatexja-fontspec}
-\setmainjfont{FOT-TsukuBOldMin Pr6N}
+\usepackage[haranoaji]{luatexja-preset}
 
 \newlength\myzw
 \setlength\myzw{2.25\zw}

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

Modified: trunk/Master/texmf-dist/doc/latex/kanbun/kanbun.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/kanbun/kanbun.tex	2025-03-17 19:53:41 UTC (rev 74673)
+++ trunk/Master/texmf-dist/doc/latex/kanbun/kanbun.tex	2025-03-17 19:53:49 UTC (rev 74674)
@@ -1,4 +1,4 @@
-%% Copyright 2022 Yuanhao Chen
+%% Copyright 2022--2025 Yuanhao Chen
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -55,11 +55,11 @@
 \en{\defaultfontfeatures{Numbers=OldStyle, Scale=MatchLowercase}}
 \ja{\defaultfontfeatures{Scale=MatchLowercase}}
 \defaultjfontfeatures{Scale=MatchLowercase, YokoFeatures={JFM=ja_JP/{kaiming,prop}, RawFeature={+pkna,+kern}}}
-\setmainjfont[BoldFont={*-D}]{FOT-TsukuMin Pr6N}
+\usepackage[haranoaji]{luatexja-preset}
 \setsansjfont{Sarasa Mono J}
 \setmonojfont[Scale=MatchLowercase, YokoFeatures={JFM=prop, RawFeature={+kern}}]{Sarasa Mono J}
-\setmainfont{Minion Pro}
-\setsansfont{Myriad Pro}
+\setmainfont{Noto Serif}
+\setsansfont{Noto Sans}
 \setmonofont{Sarasa Mono J}
 
 \ja{
@@ -120,8 +120,8 @@
     }
 }
 \date{
-    \en{\scshape 13 february 2022, v1.2}
-    \ja{2022年2月13日, v1.2}
+    \en{\scshape 17 march 2025, v1.3}
+    \ja{2025年3月17日, v1.3}
 }
 
 

Modified: trunk/Master/texmf-dist/tex/latex/kanbun/kanbun.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/kanbun/kanbun.sty	2025-03-17 19:53:41 UTC (rev 74673)
+++ trunk/Master/texmf-dist/tex/latex/kanbun/kanbun.sty	2025-03-17 19:53:49 UTC (rev 74674)
@@ -1,4 +1,4 @@
-%% Copyright 2022 Yuanhao Chen
+%% Copyright 2022--2025 Yuanhao Chen
 %
 % This work may be distributed and/or modified under the
 % conditions of the LaTeX Project Public License, either version 1.3
@@ -18,7 +18,7 @@
 \NeedsTeXFormat{LaTeX2e}[2021/06/01]
 \RequirePackage{expl3,xparse,l3keys2e,ifluatex}
 \ProvidesExplClass{kanbun}
-    {2022/02/13} {1.2} {漢文の訓点文の組版}
+    {2025/3/17} {1.3} {漢文の訓点文の組版}
 
 \ExplSyntaxOn
 \cs_generate_variant:Nn \str_if_eq:nnTF { V }
@@ -263,10 +263,16 @@
         \sys_if_engine_xetex:TF {} {
             \platex_if_direction_tate:TF {
                 \str_case:VnTF \kaeriten_output {
+                    % When using U+30EC: KATAKANA LETTER RE
                     { 一レ } { \tl_set:Nn \kaeriten_output { \kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw 一\kern \fp_eval:n {-0.75/\kanbun_scale}\kanbun_zw レ } }
                     { 甲レ } { \tl_set:Nn \kaeriten_output { 甲\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw レ } }
                     { 上レ } { \tl_set:Nn \kaeriten_output { 上\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw レ } }
                     { 天レ } { \tl_set:Nn \kaeriten_output { 天\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw レ } }
+                    % When using U+3191: IDEOGRAPHIC ANNOTATION REVERSE MARK
+                    { 一㆑ } { \tl_set:Nn \kaeriten_output { \kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw 一\kern \fp_eval:n {-0.75/\kanbun_scale}\kanbun_zw ㆑ } }
+                    { 甲㆑ } { \tl_set:Nn \kaeriten_output { 甲\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw ㆑ } }
+                    { 上㆑ } { \tl_set:Nn \kaeriten_output { 上\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw ㆑ } }
+                    { 天㆑ } { \tl_set:Nn \kaeriten_output { 天\kern \fp_eval:n {-0.25/\kanbun_scale}\kanbun_zw ㆑ } }
                 } {} {}
             } {}
         }
@@ -366,10 +372,12 @@
         "process_input_buffer" , store_lines , "store_lines")
 end
 % require main loop
-kanbunzwtosp = \luaescapestring{\kanbunzwtosp}
 require("kanbun.lua")
 }
-\def\Kanbun{\directlua{register_verbatim()}}
+\def\Kanbun{\directlua{
+    kanbunzwtosp = \luaescapestring{\kanbunzwtosp}
+    register_verbatim()
+}}
 \def\createcatcodes{%
     \bgroup%
         \catcode`\\=12 \catcode`\{=12 \catcode`\}=12%



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