/**
* supported CJK encodings
+ * SJIS anf Bg5 cannot be supported as this is not
+ * supported by iconv
+ * JIS does not work with LyX's encoding conversion
*/
const char * const supported_CJK_encodings[] = {
"EUC-JP", "KS", "GB", "UTF8", 0};
// store the encoding to be able to reset it
string const encoding_old = p.getEncoding();
string const encoding = p.getArg('{', '}');
- // SJIS and BIG5 don't work with LaTeX according to the comment in unicode.cpp
+ // SJIS and Bg5 cammopt be handled by iconv
// JIS does not work with LyX's encoding conversion
- if (encoding != "SJIS" && encoding != "BIG5" && encoding != "JIS")
+ if (encoding != "Bg5" && encoding != "JIS" && encoding != "SJIS")
p.setEncoding(encoding);
else
p.setEncoding("utf8");
parent_context.check_layout(os);
handle_ert(os, "\\begin{" + name + "}{" + encoding + "}{" + mapping + "}",
parent_context);
- // we must parse the content as verbatim because e.g. SJIS can contain
+ // we must parse the content as verbatim because e.g. JIS can contain
// normally invalid characters
string const s = p.plainEnvironment("CJK");
for (string::const_iterator it = s.begin(), et = s.end(); it != et; ++it) {
else
os << *it;
}
- p.skip_spaces();
handle_ert(os, "\\end{" + name + "}",
parent_context);
} else {
arg += p.getFullOpt();
eat_whitespace(p, os, context, false);
handle_ert(os, arg + '{', context);
- eat_whitespace(p, os, context, false);
parse_text(p, os, FLAG_ITEM, outer, context);
handle_ert(os, "}", context);
} else {
else {
eat_whitespace(p, os, context, false);
handle_ert(os, "\\framebox{", context);
- eat_whitespace(p, os, context, false);
parse_text(p, os, FLAG_ITEM, outer, context);
handle_ert(os, "}", context);
}
arg += p.getFullOpt();
eat_whitespace(p, os, context, false);
handle_ert(os, arg + '{', context);
- eat_whitespace(p, os, context, false);
parse_text(p, os, FLAG_ITEM, outer, context);
handle_ert(os, "}", context);
} else