author | llornkcor <llornkcor> | 2002-12-20 01:35:01 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-20 01:35:01 (UTC) |
commit | 876e1a4724a7bd75dc642e295de354241096e028 (patch) (side-by-side diff) | |
tree | a37c5dcc9d78e04bb6b859ab89d8cf81e6745087 /noncore/apps/opie-reader/CFilter.cpp | |
parent | 5fd6636ba3d94b48dd543887316c47c5388a43c2 (diff) | |
download | opie-876e1a4724a7bd75dc642e295de354241096e028.zip opie-876e1a4724a7bd75dc642e295de354241096e028.tar.gz opie-876e1a4724a7bd75dc642e295de354241096e028.tar.bz2 |
update - sorry it took so long. hope this works correctly
Diffstat (limited to 'noncore/apps/opie-reader/CFilter.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CFilter.cpp | 127 |
1 files changed, 125 insertions, 2 deletions
diff --git a/noncore/apps/opie-reader/CFilter.cpp b/noncore/apps/opie-reader/CFilter.cpp index c17cf61..d5e3116 100644 --- a/noncore/apps/opie-reader/CFilter.cpp +++ b/noncore/apps/opie-reader/CFilter.cpp @@ -533,5 +533,5 @@ void PeanutFormatter::getch(tchar& ch, CStyle& sty) break; case 'c': - if (currentstyle.getJustify() == CStyle::m_AlignCentre) + if (currentstyle.getJustify() == m_AlignCentre) { currentstyle.setLeftJustify(); @@ -544,5 +544,5 @@ void PeanutFormatter::getch(tchar& ch, CStyle& sty) break; case 'r': - if (currentstyle.getJustify() == CStyle::m_AlignRight) + if (currentstyle.getJustify() == m_AlignRight) { currentstyle.setLeftJustify(); @@ -560,2 +560,125 @@ void PeanutFormatter::getch(tchar& ch, CStyle& sty) sty = currentstyle; } + +void OnePara::getch(tchar& ch, CStyle& sty) +{ + parent->getch(ch, sty); + if (m_lastchar == 10) + { + while (ch == 10) parent->getch(ch, sty); + } + m_lastchar = ch; +} + +#ifdef REPALM +void repalm::getch(tchar& ch, CStyle& sty) +{ + parent->getch(ch, sty); + switch (ch) + { + case 0x80: + ch = 0x20ac; + break; + case 0x82: + ch = 0x201a; + break; + case 0x83: + ch = 0x0192; + break; + case 0x84: + ch = 0x201e; + break; + case 0x85: + ch = 0x2026; + break; + case 0x86: + ch = 0x2020; + break; + case 0x87: + ch = 0x2021; + break; + case 0x88: + ch = 0x02c6; + break; + case 0x89: + ch = 0x2030; + break; + case 0x8a: + ch = 0x0160; + break; + case 0x8b: + ch = 0x2039; + break; + case 0x8c: + ch = 0x0152; + break; +/* + case 0x8e: + ch = 0x017d; + break; +*/ + case 0x91: + ch = 0x2018; + break; + case 0x92: + ch = 0x2019; + break; + case 0x93: + ch = 0x201c; + break; + case 0x94: + ch = 0x201d; + break; + case 0x95: + ch = 0x2022; + break; + case 0x96: + ch = 0x2013; + break; + case 0x97: + ch = 0x2014; + break; + case 0x98: + ch = 0x02dc; + break; + case 0x99: + ch = 0x2122; + break; + case 0x9a: + ch = 0x0161; + break; + case 0x9b: + ch = 0x203a; + break; + case 0x9c: + ch = 0x0153; + break; + case 0x9e: + ch = 0x017e; + break; + case 0x9f: + ch = 0x0178; + break; + case 0x18: + ch = 0x2026; + break; + case 0x19: + ch = 0x2007; + break; + case 0x8d: + ch = 0x2662; + break; + case 0x8e: + ch = 0x2663; + break; + case 0x8f: + ch = 0x2661; + break; + case 0x90: + ch = 0x2660; + break; + default: + break; + } +} +#endif |