Commit Graph

52 Commits

Author SHA1 Message Date
Přemysl Eric Janouch f8a8395114 Fix another error path 2013-07-18 19:47:07 +02:00
Přemysl Eric Janouch 1df7021276 Fix the dictionary loading error path 2013-07-18 00:16:57 +02:00
Přemysl Eric Janouch 852667350b Actually use DictzipInputStream in sdtui 2013-07-18 00:16:50 +02:00
Přemysl Eric Janouch 270539c72e Move private data into StardictDictPrivate 2013-07-18 00:16:50 +02:00
Přemysl Eric Janouch 15f62b7054 Add a class to handle dictzip files
Provides pseudo-random access to dictionary files compressed using dictzip.

It doesn't implement a cache, it just loads missing chunks until it has the
whole file.  I'm not sure if discarding not recently used chunks is really
a useful feature.  If there _was_ a way to get noticed when system memory
is low, I think the best way to handle that event would be to simply release
it all.

All in all, this is pretty useless.  But it was interesting to write.

This has yet to be integrated into the application proper.
2013-07-18 00:16:43 +02:00
Přemysl Eric Janouch c2e8709372 Fix minimal required CMake version 2013-07-14 21:09:01 +02:00
Přemysl Eric Janouch 0c2a603a21 Add support for transposition with Ctrl-T 2013-07-09 07:50:17 +02:00
Přemysl Eric Janouch 1cc91a4b17 Fix double- and zero-wide characters
It's not perfect but seems to work well enough.
2013-06-02 00:04:43 +02:00
Přemysl Eric Janouch d3b966a93f Fix a 100% CPU usage bug 2013-05-19 20:06:29 +02:00
Přemysl Eric Janouch ce3b2c80a1 Use a little bit more straight-forward detection 2013-05-19 19:28:08 +02:00
Přemysl Eric Janouch ebc482b8fd Indicate with ellipsis that text is too long 2013-05-19 18:42:38 +02:00
Přemysl Eric Janouch a405bd508c Update translations 2013-05-19 08:04:13 +02:00
Přemysl Eric Janouch 1636c34f83 Add a manpage 2013-05-19 07:49:47 +02:00
Přemysl Eric Janouch c38f1046f3 Don't abort() on setlocale() failure 2013-05-19 05:26:20 +02:00
Přemysl Eric Janouch a48bcd1948 Add Czech translation 2013-05-19 05:05:14 +02:00
Přemysl Eric Janouch 5225c6117b Initialise GError's 2013-05-19 05:04:47 +02:00
Přemysl Eric Janouch 46083b1e7d Internationalisation 2013-05-19 05:04:37 +02:00
Přemysl Eric Janouch c430b6d7f8 Don't do case-sensitive searches 2013-05-19 01:29:04 +02:00
Přemysl Eric Janouch 110f2523d3 Fix window resizing 2013-05-19 01:07:08 +02:00
Přemysl Eric Janouch caac68a3ed Fix characters not representable in LC_CTYPE 2013-05-19 00:12:52 +02:00
Přemysl Eric Janouch c09e3dcc96 Show some help/about information 2013-05-18 23:48:53 +02:00
Přemysl Eric Janouch ec57f2d806 Extend key code handling 2013-05-18 23:47:57 +02:00
Přemysl Eric Janouch 583b19c6e4 Add Ctrl-L to repaint everything
Any serious application has it, so why not this one.
2013-05-18 03:06:35 +02:00
Přemysl Eric Janouch de2a576ba5 Allow mouse clicks within the search field 2013-05-18 01:14:49 +02:00
Přemysl Eric Janouch c017d5b569 Don't redraw the top line to restore the cursor
Consider this a rather temporary solution.
2013-05-18 00:38:18 +02:00
Přemysl Eric Janouch 9c024a57cd Add CMake infrastructure 2013-05-17 18:41:14 +02:00
Přemysl Eric Janouch 156e12c456 Add LICENSE and README 2013-05-17 00:54:11 +02:00
Přemysl Eric Janouch 5cb6a2e506 New functionality
Ctrl-Up/Down skips whole entries
Alt-Left/Right moves the division line
Enter confirms the entry for overwriting

The modified arrow keys aren't going to work everywhere,
e.g. the Linux terminal doesn't support them.
2013-05-16 23:56:01 +02:00
Přemysl Eric Janouch d07f80c051 Support Ctrl-A/E shortcuts 2013-05-16 20:46:33 +02:00
Přemysl Eric Janouch 11c16cc173 Add Pango parsing. 2013-05-15 20:58:40 +02:00
Přemysl Eric Janouch b8c4d29233 Store search input in UCS4. 2013-05-15 19:30:47 +02:00
Přemysl Eric Janouch 421d87b7c0 Refactoring. 2013-05-15 17:26:39 +02:00
Přemysl Eric Janouch 776cebe535 Begone, bug. 2013-05-15 13:19:36 +02:00
Přemysl Eric Janouch e054f21ad5 Add simple mouse support. 2013-05-15 13:03:54 +02:00
Přemysl Eric Janouch a7a85a8e55 Use GIConv to get rid of encoding issues 2013-05-15 12:53:50 +02:00
Přemysl Eric Janouch bdff36bbce Add basic functionality
The bugs are there but the program is usable now.
2013-05-14 23:17:03 +02:00
Přemysl Eric Janouch 6db153b1e2 Start working on sdtui; implement line editing 2013-05-12 05:58:24 +02:00
Přemysl Eric Janouch 8ab74e16d7 Rename the project 2013-05-11 04:17:39 +02:00
Přemysl Eric Janouch 1e0d43ef65 Get rid of clang 2013-05-11 04:04:21 +02:00
Přemysl Eric Janouch e783f31de9 Finish the add-pronunciation tool 2013-05-11 04:03:05 +02:00
Přemysl Eric Janouch bcf933fb9e Move dictionary generation to its own module 2013-05-10 02:06:27 +02:00
Přemysl Eric Janouch 28321b72e9 Ignore deprecation 2013-05-09 00:46:59 +02:00
Přemysl Eric Janouch 5b7af35cfa Create a private header 2013-05-08 20:59:40 +02:00
Přemysl Eric Janouch febff16ed4 Move sources into their own directory 2013-05-08 20:54:06 +02:00
Přemysl Eric Janouch 04ae72158e Add a WIP tool to add pronunciations to dicts 2013-05-08 20:44:41 +02:00
Přemysl Eric Janouch 818ee593aa Use GMappedFile if possible 2013-05-08 20:44:41 +02:00
Přemysl Eric Janouch 0e6c42a649 Make the test run on older GLib libraries 2013-05-08 20:44:41 +02:00
Přemysl Eric Janouch d55275d603 Be a bit more robust, fix data entries 2013-05-08 20:44:41 +02:00
Přemysl Eric Janouch 2d77af94c6 Cleaning up 2013-05-08 20:44:41 +02:00
Přemysl Eric Janouch 3ff81982d0 Make the test pass 2013-05-08 20:44:33 +02:00