texlive[52150] Master: bxghost (23sep19)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 23 00:15:54 CEST 2019


Revision: 52150
          http://tug.org/svn/texlive?view=revision&revision=52150
Author:   karl
Date:     2019-09-23 00:15:53 +0200 (Mon, 23 Sep 2019)
Log Message:
-----------
bxghost (23sep19)

Modified Paths:
--------------
    trunk/Master/tlpkg/bin/tlpkg-ctan-check
    trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/bxghost/
    trunk/Master/texmf-dist/doc/latex/bxghost/LICENSE
    trunk/Master/texmf-dist/doc/latex/bxghost/README.md
    trunk/Master/texmf-dist/tex/latex/bxghost/
    trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
    trunk/Master/tlpkg/tlpsrc/bxghost.tlpsrc

Added: trunk/Master/texmf-dist/doc/latex/bxghost/LICENSE
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxghost/LICENSE	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/bxghost/LICENSE	2019-09-22 22:15:53 UTC (rev 52150)
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright 2019 Takuto ASAKURA (wtsnjp)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

Added: trunk/Master/texmf-dist/doc/latex/bxghost/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/bxghost/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/bxghost/README.md	2019-09-22 22:15:53 UTC (rev 52150)
@@ -0,0 +1,37 @@
+# The BXghost Package
+
+LaTeX: ghost insertion for proper xkanjiskip
+
+## System requirements
+
+* TeX format: LaTeX
+* TeX engine: LuaTeX, XeTeX, pTeX, upTeX, and ApTeX (pTeX-ng)
+
+Since this package is intended to create documents in Japanese, it assumes appropriate classes and/or packages are loaded in some engines (e.g., LuaTeX-ja for LuaTeX and bxjscls for XeTeX). BXghost does not load any external packages automatically.
+
+## Usage
+
+This package provides following commands:
+
+* `\eghostguarded{<text>}` inserts *Europian ghost* (invisible and zero-width alphabets) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
+* `\jghostguarded{<text>}` inserts *Japanese ghost* (invisible and zero-width Kanji) before and after the `<text>`. In math mode, it outputs only `<text>` without the ghosts.
+
+## Acknowledgements
+
+The logic and style of the code in this package is greatly inspired by [Package PXghost](https://gist.github.com/zr-tex8r/4461060) and various packages in [the BX series](http://zrbabbler.sp.land.to/package.html#ssec-bx). I would like to thank the author of the packages, Dr. Takayuki YATO (aka. [ZR](https://github.com/zr-tex8r)).
+
+## License
+
+This package is distributed under [the MIT license](./LICENSE).
+
+## Revision History
+
+* Version 0.2.0  ‹2019/09/17›
+  * Add supports for XeTeX and ApTeX (pTeX-ng)
+* Version 0.1.0  ‹2019/09/16›
+  * The first public version
+  * Add supports for LuaTeX to the original [PXghost](https://gist.github.com/zr-tex8r/4461060) package
+
+---
+
+Takuto ASAKURA ([wtsnjp](https://twitter.com/wtsnjp))


Property changes on: trunk/Master/texmf-dist/doc/latex/bxghost/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty	2019-09-22 22:15:53 UTC (rev 52150)
@@ -0,0 +1,100 @@
+%%
+%% This is file 'bxghost.sty'.
+%%
+%% Copyright 2019 Takuto ASAKURA (wtsnjp)
+%%   GitHub:   https://github.com/wtsnjp
+%%   Twitter:  @wtsnjp
+%%
+%% This package is distributed under the MIT License.
+%%
+
+%% package declaration
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{bxghost}[2019/09/17 v0.2.0]
+
+%% preparations
+\def\bxqgg at pkgname{bxghost}
+\def\bxqgg at warn{\PackageWarningNoLine\bxqgg at pkgname}
+
+%--------------------------------------- general
+
+%% \bxqgg at engine : engine type
+\def\bxqgg at next#1#2{%
+  \edef\bxqgg at tmpa{\string#1}\edef\bxqgg at tmpb{\meaning#1}%
+  \ifx\bxqgg at tmpa\bxqgg at tmpb #2\fi}
+\chardef\bxqgg at engine=0 % other TeX
+\bxqgg at next\kanjiskip    {\chardef\bxqgg at engine=1 }% (u)pTeX (or ApTeX)
+\bxqgg at next\luatexversion{\chardef\bxqgg at engine=2 }% LuaTeX
+\bxqgg at next\XeTeXversion {\chardef\bxqgg at engine=3 }% XeTeX
+
+%--------------------------------------- not supported engine
+
+\ifnum\bxqgg at engine=\z@
+  \bxqgg at warn{This engine is not supported, sorry}
+  \expandafter\endinput
+\fi
+
+%--------------------------------------- eghostguarded
+
+% use an arbitrary font available in T1 encoding
+\font\bxqgg at TI=ec-lmr10 at 1.23456pt
+\chardef\bxqgg at cwm=23 % compwordmark (in T1)
+
+% allow xkanjiskip around
+% Note: for XeTeX, xeCJK will handle nicely. We have nothing to do :)
+\ifcase\bxqgg at engine
+\or  % pTeX
+  \xspcode\bxqgg at cwm=3\relax
+\or  % LuaTeX
+  \ltjsetparameter{alxspmode={\bxqgg at cwm,3}}
+\fi
+
+%%<*> \eghostguarded{<text>}
+\newcommand*\eghostguarded{%
+  \ifmmode \expandafter\@firstofone
+  \else \expandafter\bxqgg at eghostguarded@a
+  \fi
+}
+\def\bxqgg at eghostguarded@a#1{%
+  {\bxqgg at TI\bxqgg at cwm}%
+  #1%
+  {\bxqgg at TI\bxqgg at cwm}%
+}
+
+%--------------------------------------- jghostguarded
+
+%% \bxqgg at fwsp: a zenkaku space (U+3000)
+\begingroup
+  \ifnum\bxqgg at engine=\@ne  % pTeX
+    \kansujichar\@ne=\jis"2121\relax
+    \xdef\bxqgg at fwsp{\kansuji\@ne}
+  \else  % others
+    \lccode`\Z="3000\relax
+    \lowercase{\xdef\bxqgg at fwsp{Z}}
+  \fi
+\endgroup
+
+%% \bxqgg at kern@m at ne@zw: a negative zenkaku width kern
+\ifnum\bxqgg at engine=\@ne
+  % pTeX knows the unit `zw'
+  \def\bxqgg at kern@m at ne@zw{\kern-1zw\relax}
+\else
+  % for other engines, we use \zw instead
+  \def\bxqgg at kern@m at ne@zw{\kern-1\zw\relax}
+\fi
+
+%%<*> \jghostguarded{<text>}
+\newcommand*\jghostguarded{%
+  \ifmmode \expandafter\@firstofone
+  \else \expandafter\bxqgg at jghostguarded@a
+  \fi
+}
+\edef\bxqgg at jghostguarded@a#1{%
+  \bxqgg at fwsp\bxqgg at kern@m at ne@zw
+  #1%
+  \bxqgg at kern@m at ne@zw\bxqgg at fwsp
+}
+
+%--------------------------------------- all done
+\endinput
+%% EOF


Property changes on: trunk/Master/texmf-dist/tex/latex/bxghost/bxghost.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-09-22 22:14:51 UTC (rev 52149)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check	2019-09-22 22:15:53 UTC (rev 52150)
@@ -133,7 +133,7 @@
     brandeis-dissertation brandeis-problemset
     breakcites breakurl bredzenie breqn bropd brushscr
     bullcntr bundledoc burmese businesscard-qrcode bussproofs bussproofs-extra
-    bxbase bxcalc bxcjkjatype bxdpx-beamer bxdvidriver
+    bxbase bxcalc bxcjkjatype bxdpx-beamer bxdvidriver bxghost
     bxjaholiday bxjaprnind bxpapersize bxpdfver bxeepic bxenclose
     bxjalipsum bxjscls bxnewfont bxorigcapt bxtexlogo bxwareki bytefield 
   c90 c-pascal cabin cachepic caladea calcage calctab calculation calculator

Added: trunk/Master/tlpkg/tlpsrc/bxghost.tlpsrc
===================================================================
Modified: trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc	2019-09-22 22:14:51 UTC (rev 52149)
+++ trunk/Master/tlpkg/tlpsrc/collection-langjapanese.tlpsrc	2019-09-22 22:15:53 UTC (rev 52150)
@@ -8,6 +8,7 @@
 depend babel-japanese
 depend bxbase
 depend bxcjkjatype
+depend bxghost
 depend bxjaholiday
 depend bxjalipsum
 depend bxjaprnind



More information about the tex-live-commits mailing list