<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\documentclass[a4paper]{article}
\usepackage{CJKutf8,CJKspace,CJKpunct,ruby}
\setlength{\parindent}{0pt}
%% \begin{jaQuote}{&lt;family&gt;}...\end{jaQuote}
\newenvironment{jaQuote}[1]{%
  \begin{quote}\linespread{1.4}\selectfont
  \begin{CJK*}{UTF8}{#1}\CJKtilde
}{%
  \end{CJK*}\end{quote}%
}
%% \jaRuby{&lt;base&gt;}{&lt;ruby&gt;}
\newcommand{\jaRuby}[2]{{%
  \renewcommand{\rubysize}{0.5}%
  \renewcommand{\rubysep}{-0.12em}\rubyCJK
  \setlength{\baselineskip}{1.257em}\linespread{}%
  \ruby{#1}{#2}%
}}
%% sample text
\newcommand{\jaEllip}{\Unicode{"20}{"26}}
\newcommand{\jaSnowman}{\Unicode{"26}{"03}}
\newcommand{\jaSampleText}{%
  ã“ã®~FAQ~ãƒªã‚¹ãƒˆã¯ã€ã‚ˆãã‚ã‚‹è³ªå•ã¨ãã®ç­”ã‚’é›†ã‚ã€
  å½¹ã«ç«‹ã¤ã‚ˆã†ã«ã—ãŸã‚‚ã®ã§ã™ã€‚
  ã“ã®~FAQ~ãƒªã‚¹ãƒˆã®æ§‹é€&nbsp;ã¯ã€ä»¥å‰ã®ã‚‚ã®ã¨æ¯”ã¹ã¦
  å¤§å¹…ã«å¤‰æ›´ã•ã‚Œã¦ã„ã¾ã™ã€‚%
  \jaRuby{æ–°}{ã‚ãŸã‚‰}ã—ã„æ§‹é€&nbsp;ã«é–¢ã—ã¦ã¯ã€
  ã€Œã“ã®~FAQ~ã®èª­ã¿æ–¹ã¨ãã®æ§‹é€&nbsp;ã€ã®
  é&nbsp;…ç›®ã‚’\jaRuby{å‚ç…§}{ã•ã‚“ã—ã‚‡ã†}ã—ã¦ä¸‹ã•ã„ã€‚
}
\begin{document}

Family `\texttt{ipxm}' (IPAexMincho):
\begin{jaQuote}{ipxm}
  \jaSampleText
\end{jaQuote}

(also using \texttt{ipxm} for alphabet)
\begin{jaQuote}{ipxm}
  \fontfamily{ipxm}\selectfont
  pdf{\LaTeX}~ã¨~CJK~ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã§æ—¥æœ¬èªž\jaSnowmanï¼
  \par\punctstyle{plain}
  % Japanese "Ascii Art" --- one of the few places
  % where "hankaku-kana" is reasonably used
  ( Ë˜Ï‰Ë˜ )ï½½ï¾”ï½§\jaEllip
\end{jaQuote}

Use of non-BMP characters
\begin{jaQuote}{ipxm}
  %'ð&nbsp;®Ÿ' = U+20B9F
  çŒ«ð&nbsp;®Ÿã‚‹ã‚ˆã‚ŠçŒ«ã‚’å›²ãˆã€‚
\end{jaQuote}

\sffamily
Family `\texttt{ipxg}' (IPAexGothic):
\begin{jaQuote}{ipxg}
  \jaSampleText
\end{jaQuote}

(also using \texttt{ipxg} for alphabet)
\begin{jaQuote}{ipxg}
  \fontfamily{ipxg}\selectfont
  pdf{\LaTeX}~ã¨~CJK~ãƒ‘ãƒƒã‚±ãƒ¼ã‚¸ã§æ—¥æœ¬èªž\jaSnowmanï¼
  \par\punctstyle{plain}
  ( Ë˜Ï‰Ë˜ )ï½½ï¾”ï½§\jaEllip
\end{jaQuote}

Use of non-BMP characters
\begin{jaQuote}{ipxg}
  çŒ«ð&nbsp;®Ÿã‚‹ã‚ˆã‚ŠçŒ«ã‚’å›²ãˆã€‚
\end{jaQuote}

\end{document}
</pre></body></html>