diff options
author | Jihui Choi <jihui.choi@gmail.com> | 2015-06-22 12:56:10 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-07-16 05:35:30 -0500 |
commit | 188208d93a5d95e1f5eb39294c5e467d6d53edef (patch) | |
tree | 70e2343c2ee432afc507c6fa41c5691eecddf437 /hwpfilter/source/hwpeq.cxx | |
parent | 43cf7b9abf1262011b22a7b1a355569585f76b16 (diff) |
tdf#91067: Translate Korean comments
Change-Id: Idbee9cb5a1745bb2cc3c4cb1238773da7ff2a0a3
Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Diffstat (limited to 'hwpfilter/source/hwpeq.cxx')
-rw-r--r-- | hwpfilter/source/hwpeq.cxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/hwpfilter/source/hwpeq.cxx b/hwpfilter/source/hwpeq.cxx index a897abeaf791..393a6dbea19d 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: change the hwp formula to 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 }, /* Center vertically */ { "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; } -/* 첫자만 대문자이거나 전부 대문자면 소문자로 바꾼다. */ +/* If only the first character is uppercase or all characters are uppercase, change to lowercase */ void make_keyword( char *keyword, const char *token) { char* ptr; @@ -469,10 +469,10 @@ void push_token(MzString &white, MzString &token, istream *strm) } /* - 읽은 토큰의 길이를 반환한다. -*/ -/* control char, control sequence, binary sequence, - alphabet string, sigle character */ + * It returns the length of the read tokens. + * + * control char, control sequence, binary sequence, + * alphabet string, sigle character */ static int next_token(MzString &white, MzString &token, istream *strm) { int ch = 0; @@ -506,8 +506,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()에 영향을 미치기 때문이다. + /* special treatment of sub, sub, over, atop + The reason for this is that affect next_state(). */ if( !STRICMP("sub", token) || !STRICMP("from", token) || !STRICMP("sup", token) || !STRICMP("to", token) || @@ -558,18 +558,18 @@ static int read_white_space(MzString& outs, istream *strm) return result; } -/* 인수가 필요하지 않은 경우 각 항목간의 구분은 space와 brace - sqrt {ab}c = sqrt{ab} c - (, }는 grouping - ^, _ 는 앞뒤로 결합한다. - - sqrt 등과 같이 인수가 있는 형식 정리 - sqrt a -> sqrt{a} - sqrt {a} -> sqrt{a} - 1 이상의 인수가 있는 경우 인수들간의 역백은 없앤다. - \frac a b -> frac{a}{b} - over의 형식 정리 - a over b -> {a}over{b} +/* If the argument is not required, delimiters are space and brace for each items. + sqrt {ab} c = sqrt {ab} c + (,} are for grouping + ^ ,_ are for combination + + Sorting of formats with arguments, such as sqrt + sqrt a -> sqrt {a} + sqrt {a} -> sqrt {a} + If there is more than one argument, it eliminates backslash between arguments. + \frac a b -> frac {a} {b} + Clean the form of over + a over b -> {a} over {b} */ static int eq_word(MzString& outs, istream *strm, int status) @@ -599,7 +599,7 @@ static int eq_word(MzString& outs, istream *strm, int status) state << white << token; } else { - /* 정상적인 token */ + /* Normal token */ int script_status = SCRIPT_NONE; while( true ) { state << white << token; |