Cong Gu
2d95bd0b12
specify dictionary order by -u switches or ~/.sdcv_ordering
2016-09-25 01:13:43 -05:00
Evgeniy A. Dushistov
aa0c5ff051
add clang-format and apply to sdcv.cpp
2016-06-02 14:52:58 +03:00
Evgeniy Dushistov
c78d59de5f
fixes for last commit
2014-10-24 18:03:30 +00:00
Evgeniy Dushistov
73664c078a
add tiny support of KingSoft PowerWord's data
2014-10-23 23:23:48 +00:00
Evgeniy Dushistov
624208793e
fix missed unescaped for ', thanks to Svyatoslav Mishyn
2014-10-23 22:43:04 +00:00
Evgeniy Dushistov
ab8d6ec74e
if search return more then one result
...
save choice to readline history
2014-05-11 02:20:03 +00:00
Evgeniy Dushistov
4f80442ece
fix build with clang's scan-build
2013-07-10 10:27:20 +00:00
Evgeniy Dushistov
8298a578b0
check fread calls
2013-07-07 23:29:09 +00:00
Evgeniy Dushistov
5f8d2cb174
remove not used code, use glib wrappers where possible
2013-07-07 20:12:03 +00:00
Evgeniy Dushistov
d05de97521
remove file module, move code to utils
2013-07-07 19:52:02 +00:00
Evgeniy Dushistov
e39f7eed9a
Simplify file structure
2013-07-07 19:48:44 +00:00
Evgeniy Dushistov
a4f441aa32
rename lib module to more specific name stardict_lib
2013-07-07 19:45:37 +00:00
Evgeniy Dushistov
c3d733b1fc
use glib wrappers where possible for safe memory freeing
2013-07-07 17:07:02 +00:00
Evgeniy Dushistov
9034e792b6
code cleanups + use where possible get_uint32 instead of not safe cast
2013-07-07 17:05:55 +00:00
Evgeniy Dushistov
fae4b432e1
- not requeire exact version number for stardict ifo file
...
- ignore utf-8 BOM during magic string check
2013-07-07 17:04:51 +00:00
Evgeniy Dushistov
1a8b24dced
rename distance header
2013-07-07 15:25:58 +00:00
Evgeniy Dushistov
a1f5ebeee2
remove typedef to simplify code
2013-07-07 15:24:28 +00:00
Evgeniy Dushistov
f5c62baeb9
support of usage colors in sdcv output
2013-07-07 14:43:53 +00:00
Evgeniy Dushistov
7ddc3e2ea9
- update russiang translation and po template
...
- remove not used file
2013-07-07 13:11:54 +00:00
Evgeniy Dushistov
24f1688809
lib: c++11
2013-07-06 23:04:28 +00:00
Evgeniy Dushistov
482feda09e
distance: c++11 plus remove not used code
2013-07-06 22:56:20 +00:00
Evgeniy Dushistov
4d027dccd4
use nullptr and other c++11 features for mapfile.hpp
2013-07-06 22:48:54 +00:00
Evgeniy Dushistov
89ef5574f2
to reduce code size of binary move file to ordinary function
...
instead of template
2013-07-06 22:47:17 +00:00
Evgeniy Dushistov
3812fad586
c++11 for readline + libwrapper
2013-07-06 22:44:11 +00:00
Evgeniy Dushistov
7274a61efa
utils: c++11
2013-07-06 22:38:56 +00:00
Evgeniy Dushistov
edfee97db3
sdcv.cpp: use c++11 where possible
2013-07-06 22:37:42 +00:00
Evgeniy Dushistov
0bd3912672
use c++11 and modern compilator abilities
2013-07-06 22:33:20 +00:00
Evgeniy Dushistov
5f43a6dae6
- remove generated files *.gmo
...
- remove not used Makefile.am
- fix work with translated messages
- make package and make install fixes
2013-07-06 20:04:22 +00:00
Evgeniy Dushistov
dd9304951f
remove autotools stuff, now sdcv uses cmake
2013-07-06 18:36:42 +00:00
Evgeniy Dushistov
06e3f25ea4
fix build plus warning if we have no readline
2013-07-06 17:49:23 +00:00
Evgeniy Dushistov
d2327e2a0f
Import patch from Roman Imankulov:
...
"sdcv" does not set up `rl_readline_name' variable which can be extremely useful for the writing the .inputrc file. Additionally sdcv does not use readline in the "Your choice [-1 to abort]" dialog. This patch fix both these issues, readline_name is set up to "sdcv".
This trick allows me to add into the .inputrc
$if sdcv
"\e\e": "-1\n"
$endif
and type double-escape in the "Your choice" dialog instead of pretty annoying "-1".
2013-07-06 13:40:11 +00:00
Evgeniy Dushistov
0aa0a8aea7
Base on Michal Čihař patch from sf.net and stardict fix for similar bug
2013-07-06 13:18:26 +00:00
Evgeniy Dushistov
0d7afe20af
may be fix for: 'libintl_setlocale' is not a member of 'std'
...
get from here:
https://trac.macports.org/browser/trunk/dports/textproc/sdcv/files/patch-setlocale.diff?rev=85010
2013-07-06 13:00:22 +00:00
Evgeniy Dushistov
ab22f8eb41
replace array with variable size with vector,
...
this should help clang compiler to compile our source code
2013-07-06 12:52:48 +00:00
Evgeniy Dushistov
2a5da7969f
fix warnings about size_t %d -> %zu (C99)
2013-07-06 10:18:21 +00:00
Evgeniy Dushistov
502e845105
Import Volkov Peter ( volkov_peter )'s patch:
...
sdcv uses g_get_home_dir function to find home directory. That function uses passwd entry and this in turn breaks expectations of users and automatic tests inside sandbox where access behind some directory is not allowed (and thus tests are not allowed to write into /root/.stardict/dic...) The patch in attachment fixes this basically by using code from gnome manual:
http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Utility-Functions.html#g-get-home-dir
const char *homedir = g_getenv ("HOME");
if (!homedir)
homedir = g_get_home_dir ();
2010-08-01 21:00:33 +00:00
Evgeniy Dushistov
684a8cef34
fix typo, thanks to
...
Michal Čihař ( nijel )
2010-08-01 20:21:27 +00:00
Evgeniy Dushistov
91fbbea366
fix fgec not defined build error
2010-08-01 19:32:28 +00:00
Evgeniy Dushistov
ed81937443
fix build without mmap
2010-01-26 17:25:22 +00:00
Evgeniy Dushistov
3da4808990
fix build with gcc 4.3
2008-10-11 16:22:08 +00:00
Evgeniy Dushistov
c7c8dab8db
get rid of getopt, because of it cause problem on mac os x.
2007-09-30 18:10:19 +00:00
Evgeniy Dushistov
db87b6a7c2
fix build on amd64: guint32 and size_t may be different type, so usage of std::min is incorrect
2007-09-30 16:27:08 +00:00
Evgeniy Dushistov
98ec160803
remove autotools crap(files produced by autotools) from repository
2007-09-30 16:20:31 +00:00
Evgeniy Dushistov
e34edfcf24
sdcv should be able to handle pango markup type records
...
correctly
2007-08-14 18:35:42 +00:00
Evgeniy Dushistov
3f241bb6bb
0.4.2 release
2007-08-14 18:18:20 +00:00