-# This one needs hardcoded support, since the inputenc package does not know
-# tis620-0, and thailatex sets up babel directly to use tis620-0, so the value
-# for inputenc is never output to .tex files (but needed for the hardcoded
-# tis620-0 support).
-Encoding tis620-0 tis620-0 TIS620-0
+Encoding pt154 pt154 "Cyrillic (pt 154)" PT154 fixed inputenc
+End
+
+Encoding pt254 pt254 "Cyrillic (pt 254)" PT254 fixed inputenc
+End
+
+# encodings used by CJK.sty
+
+# The following encodings that are supported by the CJK package are not
+# included here, because they are not widely used and lack proper iconv support:
+# Bg5+, GBt
+# See the NOTES file of libiconv for details.
+
+# The following encodings can't be handled directly, because the code points
+# of TeX control characters like {, } and \ can occur in the second byte:
+
+# For traditional chinese
+#Encoding big5 Bg5 "Chinese (traditional) (Big5)" BIG5 variable CJK
+#End
+
+# For japanese
+#Encoding shift-jis SJIS "Japanese (CJK) (SJIS)" SJIS variable CJK
+#End
+
+# The following encodings need hardcoded support of the encodable unicode
+# range, but are known by iconv:
+
+# For simplified chinese
+Encoding euc-cn GB "Chinese (simplified) (EUC-CN)" EUC-CN variable CJK
+End
+
+# For simplified chinese
+Encoding gbk GBK "Chinese (simplified) (GBK)" GBK variable CJK
+End
+
+# For japanese
+Encoding jis JIS "Japanese (CJK) (JIS)" ISO-2022-JP variable CJK
+End
+
+# For korean
+Encoding euc-kr KS "Korean (EUC-KR)" EUC-KR variable CJK