===== links =====
* [[https://debconf18.debconf.org/talks/21-status-of-japanese-and-cjk-typesetting-with-tex-in-debian/|Norbert Preinings "Status of Japanese (and CJK) typesetting with TeX in Debian"]]
===== Vertical Japanese with XeTeX =====
* https://xml.web.cern.ch/XML/lgc2/xetexmain.pdf
* compile with: %%xelatex file.tex%%
\documentclass{article}
\usepackage{fontspec}
\usepackage{xunicode}
% \usepackage{xltxtra}
\usepackage{graphicx}
\newfontfamily\cjkvert[RawFeature=vertical,Script=CJK]{IPAMincho}
\newcommand{\vminipage}[2]{
\noindent\hfill % ensure right-alignment
{\rotatebox{-90}{\begin{minipage}[t]{#1} % height in real meaning?
\setLTR #2\end{minipage}}}} % \setLTR may not work?
\usepackage{bidi} % temporary bug fix by Vafa
\begin{document}
\XeTeXlinebreaklocale "jp" % allow linebreaks
\XeTeXlinebreakskip = 0pt plus 1pt minus 0.1pt
{\vminipage{.6\textwidth}{\cjkvert
第三夜\\
こんな夢を見た。\\
六つになる子供を負ってる。たしかに自分の子である。ただ不思議な事に
はいつの間にか眼が潰れて、青坊主になっている。自分が御前の眼はいつ
潰れたのかいと聞くと、なに昔からさと答えた。声は子供の声に相違ない
が、言葉つきはまるで大人である。しかも対等だ。左右は青田である。路
は細い。鷺の影が時々闇に差す。
}}
\hfill
\end{document}
===== google/adobe fonts =====
Google/adobe released pan-cjk fonts, yet its still complicated to get them to work wit tex.
* https://github.com/adobe-fonts/source-han-sans -- the font
===== attempt to use the fonts in xetex on Fedora21 =====
This does not work for me currently. The fonts are installed and available in "fc-list | grep -i source", but rendering with xetex fails. Installing the fonts is easy since Fedora20:
yum install adobe-source-code-pro-fonts
[root@спутник ~]# fc-list |grep -i sourcecode
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Bold.otf: Source Code Pro:style=Bold
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Regular.otf: Source Code Pro:style=Regular
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Medium.otf: Source Code Pro,Source Code Pro Medium:style=Medium,Regular
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Light.otf: Source Code Pro,Source Code Pro Light:style=Light,Regular
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Black.otf: Source Code Pro,Source Code Pro Black:style=Black,Regular
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-ExtraLight.otf: Source Code Pro,Source Code Pro ExtraLight:style=ExtraLight,Regular
/usr/share/fonts/adobe-source-code-pro/SourceCodePro-Semibold.otf: Source Code Pro,Source Code Pro Semibold:style=Semibold,Regular
Trying to use the fonts:
% compile with: xelatex file.tex
\documentclass{article}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont{SourceHanSansJP-Medium}
\begin{document}
\fontspec{IPA明朝}
今日は \\
\fontspec[Mapping=tex-text,Script=CJK]{源ノ角ゴシック JP Regular}
今日は \\
\fontspec[Script=CJK]{Source Code Pro Medium}
今日は \\
\fontspec{源ノ角ゴシック JP Regular}
今日は \\
\fontspec{IPA明朝}
今日は \\
\end{document}