source:
diffs/CoolReader_3.0.55.diff@
179
Last change on this file since 179 was 159, checked in by , 11 years ago | |
---|---|
File size: 12.1 KB |
-
.gitignore
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/.gitignore trunk/.gitignore
old new 1 *.*~2 qtbuild3 v3build4 v5build5 wxbuild6 qtbuild7 qt-build8 qtcreator-build9 *~ -
cr3qt/CMakeLists.txt
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/CMakeLists.txt trunk/cr3qt/CMakeLists.txt
old new 48 48 ADD_DEFINITIONS(-DCR3_DATA_DIR="${CMAKE_INSTALL_PREFIX}/share/cr3/" 49 49 -DUSE_FONTCONFIG=1 50 50 ) 51 ELSEIF (OS2) 52 ADD_DEFINITIONS(-DCR3_DATA_DIR="" 53 -DUSE_FONTCONFIG=1 54 ) 51 55 ELSE() 52 56 ADD_DEFINITIONS(-DCR3_DATA_DIR="" 53 57 -DUSE_FONTCONFIG=0 … … 71 75 endif(MINGW) 72 76 ENDIF (WIN32) 73 77 78 IF (OS2) 79 # init of the rc compiler 80 set(RES_FILES "src/cr3_os2.rc") 81 ENABLE_LANGUAGE(RC) 82 set(CMAKE_RC_COMPILER_INIT rc) 83 SET(CMAKE_RC_COMPILE_OBJECT 84 "<CMAKE_RC_COMPILER> -n -r -i ${CMAKE_CURRENT_SOURCE_DIR}/src <SOURCE> <OBJECT>") 85 86 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Zstack 0x2000 -Zlinker \"DISABLE 1121\" -s -Zlinker /PM:PM -Zno-fork -Zhigh-mem -Zmap") 87 ENDIF (OS2) 74 88 75 89 SET(LANGUAGES ru uk cs de es pl bg hu) 76 90 message( "Languages: ${LANGUAGES}" ) … … 158 172 #${QT_LIBRARIES} 159 173 ELSEIF (UNIX) 160 174 SET (EXTRA_LIBS ${QT_LIBRARIES} fontconfig ${STD_LIBS} ) 175 ELSEIF (OS2) 176 SET (EXTRA_LIBS ${QT_LIBRARIES} ${STD_LIBS} intl fontconfig xml2 mmap) 161 177 ELSE() 162 178 SET (EXTRA_LIBS ${STD_LIBS} ${QT_LIBRARIES}) 163 179 ENDIF(MAC) -
cr3qt/src/cr3_os2.rc
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/cr3_os2.rc trunk/cr3qt/src/cr3_os2.rc
old new 1 ICON 1 DISCARDABLE "icons/cr3_os2.ico" 2 Kein Zeilenumbruch am Dateiende. -
cr3qt/src/icons/cr3_os2.ico
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/icons/cr3_os2.ico trunk/cr3qt/src/icons/cr3_os2.ico
old new 1 CI" -
cr3qt/src/main.cpp
: (PÿÿÿCI" º ((ªªÁÁÁÌÌÌÿÛªªIÿImUmªmÿm$Uª$ÿ¶U¶ª¶ÿ¶ÛUÛªÛÿÛªÛÿUÿªÿªÿÿ+U+ª+ÿ+$+U$+ª$+ÿ$+I+UI+ªI+ÿI+m+Um+ªm+ÿm++U+ª+ÿ+¶+U¶+ª¶+ÿ¶+Û+UÛ+ªÛ+ÿÛ+ÿ+Uÿ+ªÿ+ÿÿ+UUUªUÿU$UU$Uª$Uÿ$UIUUIUªIUÿIUmUUmUªmUÿmUUUUªUÿU¶UU¶Uª¶Uÿ¶UÛUUÛUªÛUÿÛUÿUUÿUªÿUÿÿUUUU$ÿ$U$ª$ÿ$IUIªIÿImUmªmÿm'''...666>>>FFFMMMUUU]]]dddlllttt|||Ûÿÿ¶ÿªªª²²²¹¹¹ÿ$IÑÑÑØØØàààèèèðððª¶ÿÿÛÿUªÿ¶U¶ª¶ÿ¶ÛUÛªÛÿÛÿUÿªÿÿÿªUªªªÿª$ªU$ªª$ªÿ$ªIªUIªªIªÿIªmªUmªªmªÿmªªUªªªÿª¶ªU¶ªª¶ªÿ¶ªÛªUÛªªÛªUIÿªUÿªªÿªÿÿªÕUÕªÕÿÕ$ÕU$Õª$Õÿ$ÕIÕUIÕªIÕÿIÕmÕUmÕªmÕÿmÕÕUÕªÕÿÕ¶ÕU¶Õª¶Õÿ¶ÕÛÕUÛÕªÛÕÿÛÕÿÕUÿÕªÿÕÿÿÕUÛÿUÿªÿUÿÿ$ÿU$ÿª$ÿÿ$ÿIÿUIÿªIÿÿIÿmÿUmÿªmÿÿmÿÿUÿªÿÿÿ¶ÿU¶ÿ÷÷÷¢¢¢ÿÿÿÿÿÿÿÿÿÿÿÿÁÿÛªmmÿU¶¶ÿUÛªÛÿªU++$$+ÿUI++mm+ÿU++¶¶+ÿUÛ++ÿÿ+ÿUUU$$UÿUIUUmmUÿUUU¶¶UÿUÛUUÿÿUÿU$$ÿUIm''66>MMM]ddtt|ÿ¶²²¹IØààððªU¶¶ÿUÛÿÿÿUªª$$ªÿUIªªmmªÿUªª¶¶ªÿUÛªÿÿªÿUÕÕ$$ÕÿUIÕÕmmÕÿUÕÕ¶¶Õÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷}ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿöÿÿÿÿÿÿÿÿÿÿÿÿÿÿööÿÿÿÿÿÿÿÿÿÿÿÿÿÿy÷ÿÿÿÿÿÿÿÿÿÿÿÿÿÿööÿÿÿÿÿÿÿÿÿÿÿÿÿö~÷øöÿÿÿÿÿÿ ÿÿÿöÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿöz ÷ yÿÿÿÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ ÷}}ÿÿ÷z{r öÿÿÿÿÿÿÿÿÿÿÿÿÿz÷~÷ ppuuz{x÷öÿÿÿÿÿÿÿÿÿÿ÷øzz q|ttyyzøy|ÿÿÿÿÿÿÿÿ|~~ø~øzvwv~~}y~~÷÷~|}ÿÿÿz~ z~~|÷{vyxvt|{{~øwøÿÿöø~{x~~{|zpywwy}ø{z öÿÿ||xy|ty}zypy{||øø÷÷~ÿÿÿzywwruxq{~~÷ÿÿö{x øurwrsr~ ÿÿÿö÷}~uuvvqqtxøÿÿÿ÷øøtwwyw|rqyzyyxz÷ ÿÿö ö}uxwzzz~øwyy{ ÿÿ÷ÿÿÿÿÿÿÿÿÿÿxvzz|~øÿ öÿö÷ÿuÿ~ÿøÿ~ÿÿÿÿÿqwÿ~ÿpÿÿÿÿÿöqpvy|}q~ÿÿwÿÿÿÿÿÿÿÿyø|yuxxvqz qvö ÷ÿÿÿÿÿÿÿÿÿÿ{uøywz|wrÿ÷öÿÿÿÿÿÿÿÿÿÿ ÷ø|xvÿ}|z}~~øÿÿ ÿÿÿÿÿÿÿÿÿÿÿÿöÿ|tøöÿÿö|øøxpqÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿø~y÷ÿÿÿÿÿ qquÿÿÿÿÿÿÿÿÿÿÿÿÿpÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿöÿÿszÿÿÿÿÿÿÿÿÿÿÿvÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿørÿÿÿÿÿÿÿÿÿÿÿÿÿÿ}ÿÿÿÿÿÿÿ~ÿÿÿÿÿÿÿÿÿÿvÿÿuÿÿÿÿÿÿÿÿÿÿÿvÿÿÿÿ÷pöÿÿÿs~ÿÿÿ}~ÿrrÿÿÿÿÿÿÿÿÿÿÿ~ ÷yÿÿÿupsÿÿÿÿÿÿÿÿÿÿÿÿw~ÿÿÿÿÿzöÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿxrÿÿÿÿÿÿÿÿw|öÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ÷}~ÿÿÿÿÿÿÿÿÿÿ}}ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ \ Kein Zeilenumbruch am Dateiende. diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/cr3qt/src/main.cpp trunk/cr3qt/src/main.cpp
old new 156 156 QString exeDir = QDir::toNativeSeparators(qApp->applicationDirPath() + "/Contents/Resources/"); //QDir::separator(); 157 157 QString translations = exeDir + "i18n"; 158 158 #else 159 #if defined(_WIN32) 159 #if defined(_WIN32) || defined(Q_OS_OS2) 160 160 QString exeDir = QDir::toNativeSeparators(qApp->applicationDirPath() + "/"); //QDir::separator(); 161 161 QString translations = exeDir + "i18n"; 162 162 #else … … 308 308 bool InitCREngine( const char * exename, lString16Collection & fontDirs ) 309 309 { 310 310 CRLog::trace("InitCREngine(%s)", exename); 311 #if def _WIN32311 #if defined(_WIN32) || defined(Q_OS_OS2) 312 312 lString16 appname( exename ); 313 313 int lastSlash=-1; 314 314 lChar16 slashChar = '/'; -
crengine/include/crsetup.h
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/include/crsetup.h trunk/crengine/include/crsetup.h
old new 48 48 #define FILE_STREAM_BUFFER_SIZE 0x40000 49 49 #endif 50 50 51 #elif defined(_LINUX) || defined (LINUX) 51 #elif defined(_LINUX) || defined (LINUX) || defined(_OS2) || defined (OS2) 52 52 53 53 #ifndef LDOM_USE_OWN_MEM_MAN 54 54 #define LDOM_USE_OWN_MEM_MAN 1 -
crengine/src/lvstream.cpp
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/src/lvstream.cpp trunk/crengine/src/lvstream.cpp
old new 54 54 #include <sys/mman.h> 55 55 #endif 56 56 57 #if def _LINUX57 #if defined(_LINUX) || defined(_OS2) 58 58 #include <sys/types.h> 59 59 #include <sys/stat.h> 60 60 #include <unistd.h> … … 302 302 303 303 304 304 //#if USE__FILES==1 305 #if defined(_LINUX) || defined(_WIN32) 305 #if defined(_LINUX) || defined(_WIN32) || defined(_OS2) 306 306 307 307 class LVFileMappedStream : public LVNamedStream 308 308 { … … 828 828 829 829 830 830 //#ifdef _LINUX 831 #ifndef _OS2 831 832 #undef USE_ANSI_FILES 833 #endif 832 834 //#endif 833 835 834 836 #if (USE_ANSI_FILES==1) … … 3517 3519 lChar16 c = pathName[0]; 3518 3520 if ( c=='\\' || c=='/' ) 3519 3521 return true; 3520 #if def _WIN323522 #if defined(_WIN32) || defined(_OS2) 3521 3523 if ( (c>='a' && c<='z') || (c>='A' && c<='Z') ) { 3522 3524 return (pathName[1]==':'); 3523 3525 } … … 3760 3762 */ 3761 3763 LVStreamRef LVMapFileStream( const lChar16 * pathname, lvopen_mode_t mode, lvsize_t minSize ) 3762 3764 { 3763 #if !defined(_WIN32) && !defined(_LINUX) 3765 #if !defined(_WIN32) && !defined(_LINUX) && !defined(_OS2) 3764 3766 // STUB for systems w/o mmap 3765 3767 LVFileStream * stream = LVFileStream::CreateFileStream( pathname, mode ); 3766 3768 if ( stream!=NULL ) -
crengine/src/lvstring.cpp
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/crengine/src/lvstring.cpp trunk/crengine/src/lvstring.cpp
old new 24 24 #include <malloc.h> 25 25 #endif 26 26 #endif 27 27 #include <stddef.h> 28 28 #if (USE_ZLIB==1) 29 29 #include <zlib.h> 30 30 #endif -
CMakeLists.txt
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/CMakeLists.txt trunk/CMakeLists.txt
old new 97 97 ADD_DEFINITIONS( -DMAC=1 -DLINUX=1 -D_LINUX=1 -DCR_EMULATE_GETTEXT=1 ) 98 98 elseif ( WIN32 ) 99 99 ADD_DEFINITIONS( -DWIN32=1 -D_WIN32=1 -DCR_EMULATE_GETTEXT=1 ) 100 elseif ( OS2 ) 101 ADD_DEFINITIONS( -DOS2=1 -D_OS2=1 ) 100 102 else() 101 103 ADD_DEFINITIONS( -DLINUX=1 -D_LINUX=1 ) 102 104 endif(MAC) -
install.os2
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/install.os2 trunk/install.os2
old new 1 CoolReader3 installation 2 3 4 5 0. CONTENTS OF THIS FILE 6 ======================== 7 8 1. INTRODUCTION 9 10 2. REQUIREMENTS 11 12 3. INSTALLATION 13 14 4. BUGREPORTS 15 16 5. CREDITS 17 18 6. SUPPORT AND DONATIONS 19 20 7. HISTORY 21 22 23 1. INTRODUCTION 24 =============== 25 26 Welcome to CoolReader3 port for OS/2 and eComStation. 27 28 29 2. REQUIREMENTS 30 =============== 31 32 * klibc 0.6.3 or later 33 34 ftp://ftp.netlabs.org/pub/gcc/libc-0_6_3-csd3.wpi 35 36 37 * Qt4 dll 38 39 see http://svn.netlabs.org/qt4 for more information whats needed and where to get the latest 40 41 42 3. INSTALLATION 43 =============== 44 45 To install CoolReader3, do the following: 46 47 klibc 48 ----- 49 50 1. Download klibc 0.6.3 csd3 or later. 51 2. Install the package by double-clicking on the WPI file. 52 53 54 55 Qt4 dll 56 ------- 57 58 1. Download the package 59 2. Install the package either with rpm or by zip. 60 61 62 63 CoolReader3 64 ----------- 65 66 1. Create a directory for CoolReader3. 67 2. Extract the ColReader3 package to the new directory. 68 3. Create a WPS object for cr3.exe. 69 4. Start CoolReader3 70 5. Happy reading 71 72 73 74 4. BUGREPORTS 75 ============= 76 77 Please create bugreports at http://svn.netlabs.org/qtapps 78 Only bug reports with a reproducable bug are accepted. :-) 79 80 81 82 5. CREDITS 83 ========== 84 85 The port was done by: 86 87 Silvan Scherrer aka _diver 88 89 Thanks go to: 90 91 * Dmitry A. Kuminov 92 93 They either helped me when I had some nasty questions or did some testing for 94 me. 95 96 97 6. SUPPORT AND DONATIONS 98 ======================== 99 100 CoolReader3 port is based on volunteer work. If you would like to support further 101 development, you can do so in one of the following ways: 102 103 104 * Donate to the Qt4 project: see qt.netlabs.org for more information 105 106 * Contribute to the project: Besides actual development, this also includes 107 maintaining the documentation and the project web site as well as help 108 for users. 109 110 111 7. HISTORY 112 ========== 113 114 2012-09-13 115 116 * updated coolreader source to 3.0.55 117 118 2011-09-30 119 120 * updated coolreader source to 3.0.51 121 * updated Qt to 4.7.3 122 123 2011-06-01 124 125 * initial port 126 -
tinydict/tinydict.cpp
diff -Naur -x build -x .git -x '*.ts' vendor/current/crengine/tinydict/tinydict.cpp trunk/tinydict/tinydict.cpp
old new 994 994 } 995 995 } 996 996 } 997 #ifdef _WIN32 997 #ifdef _WIN32 || defined(_OS2) 998 998 printf("Press any key..."); 999 999 getchar(); 1000 1000 #endif
Note:
See TracBrowser
for help on using the repository browser.