diff options
Diffstat (limited to 'hwpfilter/source/hwpeq.cxx')
-rw-r--r-- | hwpfilter/source/hwpeq.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx index ce53b0ca9c63..ba2e762ce790 100644 --- a/hwpfilter/source/hwpeq.cxx +++ b/hwpfilter/source/hwpeq.cxx @@ -32,7 +32,7 @@ using namespace std; #include <sal/types.h> #include <sal/macros.h> -/* @Man: hwp LaTeX ٲٱ */ +/* @Man: hwp수식을 LaTeX으로 바꾸기 */ #ifdef WIN32 # define ENDL "\r\n" #else /* !WIN32 */ @@ -125,7 +125,7 @@ static const hwpeq eq_tbl[] = { { "bullet", NULL, 0, 0 }, { "cap", NULL, 0, 0 }, { "cases", NULL, 0, EQ_ENV }, - { "ccol", NULL, 0, 0 }, /* η */ + { "ccol", NULL, 0, 0 }, /* 세로로 가운데 */ { "cdot", NULL, 0, 0 }, { "cdots", NULL, 0, 0 }, { "check", NULL, 1, 0 }, @@ -401,7 +401,7 @@ static const hwpeq *lookup_eqn(char *str) return result; } -/* ùڸ 빮̰ų 빮ڸ ҹڷ ٲ۴. */ +/* 첫자만 대문자이거나 전부 대문자면 소문자로 바꾼다. */ static char *make_keyword( char *keyword, const char *token) { @@ -462,7 +462,7 @@ void push_token(MzString &white, MzString &token, istream *strm) stk->strm = strm; } -/*
ū ̸ ȯѴ. */ +/*
읽은 토큰의 길이를 반환한다. */ /* control char, control sequence, binary sequence, alphabet string, sigle character */ static int next_token(MzString &white, MzString &token, istream *strm) @@ -498,8 +498,8 @@ static int next_token(MzString &white, MzString &token, istream *strm) ch = strm->get(); } while( ch != EOF && (ch & 0x80 || isalpha(ch)) ) ; strm->putback(sal::static_int_cast<char>(ch)); - /* sub, sub, over, atop Ư ó - next_state() ġ ̴. + /* sub, sub, over, atop 특수 처리 + 그 이유는 next_state()에 영향을 미치기 때문이다. */ if( !STRICMP("sub", token) || !STRICMP("from", token) || !STRICMP("sup", token) || !STRICMP("to", token) || @@ -550,17 +550,17 @@ static int read_white_space(MzString& outs, istream *strm) return result; } -/* μ ʿ space brace +/* 인수가 필요하지 않은 경우 각 항목간의 구분은 space와 brace sqrt {ab}c = sqrt{ab} c - (, } grouping - ^, _ յڷ Ѵ. + (, }는 grouping + ^, _ 는 앞뒤로 결합한다. - sqrt μ ִ + sqrt 등과 같이 인수가 있는 형식 정리 sqrt a -> sqrt{a} sqrt {a} -> sqrt{a} - 1 ̻ μ ִ μ鰣 ش. + 1 이상의 인수가 있는 경우 인수들간의 역백은 없앤다. \frac a b -> frac{a}{b} - over + over의 형식 정리 a over b -> {a}over{b} */ @@ -591,7 +591,7 @@ static int eq_word(MzString& outs, istream *strm, int status) state << white << token; } else { - /* token */ + /* 정상적인 token */ int script_status = SCRIPT_NONE; while( true ) { state << white << token; |