Setting up GlyphWiki #
The BXglyphwiki Package Bundle #
To use Hanazono fonts with LuaLaTeX, refer to the BXglyphwiki package bundle.
A template file by toyjack is also available.
Sample File for Using bxglyphwiki with LuaLaTeX #
The following is a sample file that demonstrates the use of user-created characters (作字, sakuji) from GlyphWiki in addition to Hanazono fonts.
\documentclass{jlreq}
\usepackage{luatexja-fontspec}
% A setting where: HanaMinA is used for BMP (Basic Multilingual Plane) characters and HanaMinB is used for SIP (Supplementary Ideographic Plane) characters; however, these are to be replaced by IPAexMincho if possible.
\setmainjfont[AltFont={
{Range="20000-"2FFFF, Font=HanaMinB},
{Range="0080-"FFFF, Font=IPAexMincho},
}]{HanaMinA}
% Hanazono Mincho AFDKO version 2017-06-20
% Below are the GlyphWiki settings.
\usepackage[luatex]{graphicx}
% Use Chinese character forms registered on GlyphWiki in Lualatex.
% \GWI{zihai-021005}
% Place bxglyphwiki.lua in the same folder as the tex source file.
\usepackage[luatex]{bxglyphwiki}
\begin{document}
Here's an example of "壽 (u58fd)" from GlyphWiki.
(u58fd-g) (=zihai-024114) is displayed as \GWI{u58fd-g},
(u58fd-itaiji-009) is displayed as \GWI{u58fd-itaiji-009},
(u58fd-itaiji-010) is displayed as \GWI{u58fd-itaiji-010}.
\end{document}
If it works fine, then edit this sample file as needed.