1 \documentclass[english]{article}
2 \usepackage[T1]{fontenc}
3 \usepackage[utf8]{inputenc}
7 % It is impossible to get the document language because the document could start with a command,
8 % whitespace, and English word or whatever and the rest is in Japanese. Checking for the first CJK
9 % environment is no solution because the document could be English and contain only some Japanese.
13 \begin{CJK}{EUC-JP}{}%
14 Japanese \end{CJK} \begin{CJK}{UTF8}{}Chinese traditional\end{CJK} \begin{CJK}{EUC-JP}{}
18 Chinese simplified \end{CJK}\begin{CJK}{EUC-JP}{hei} Japanese \end{CJK} \begin{CJK}{GB}{}Chinese simplified
21 % The following Bg5 encoded text cannot be processed as is by latex.
22 % It needs to be preprocessed by bg5conv or bg5latex needs to be used.
23 % See the documentation of CJK.sty for details.
29 \inputencoding{latin9}%
30 \selectlanguage{english}%
33 % The following SJIS encoded text cannot be processed as is by latex.
34 % It needs to be preprocessed by sjisconv or sjislatex needs to be used.
35 % See the documentation of CJK.sty for details.
38 Shift\_JIS
\93ú
\96{
\8cê
\82Ì
\95¶
\8fÍ
44 JIS-code
\e$BF|K\8l$NJ8>O
\e(B