Commit Graph
100 Commits
Author SHA1 Message Date
p 2aa6390146 Update translations 2023-06-11 18:08:03 +02:00
p c77d994dc4 Rename tools, make them installable 2023-06-11 18:08:03 +02:00
p 238e7a2bb9 Merge TUI and GUI binaries, using a new name
The appropriate interface will be chosen automatically.
2023-06-11 18:08:03 +02:00
p 7bcbc04b04 Bump liberty
This improves the still-imperfect fallback manpage output.
2023-06-11 10:11:54 +02:00
p 59d7c4af17 Improve manpage AsciiDoc compatibility 2023-06-10 15:05:12 +02:00
p 2ed1c005c9 Import liberty for its manpage generator
It cannot parse the page well, so it's just a convenience fallback.
2023-06-10 12:12:42 +02:00
p 26e73711b1 Improve GLib version compatibility 2023-06-10 12:12:41 +02:00
p d13b4a793d Prevent undefined behaviour 2022-09-24 18:42:59 +02:00
p 0570a4d050 sdtui: measure the "search" prompt properly 2022-09-24 18:42:30 +02:00
p e28e576fdb sdtui: improve tab bar overflow behaviour 2022-09-24 11:15:25 +02:00
p ae9952387a sdgui: don't highlight when cursor not on widget 2022-09-12 04:00:26 +02:00
p 27dcf87a64 sdgui: load dictionaries asynchronously
This is a must when loading huge dictionaries,
where not even parallelization helps much.
2022-09-04 13:16:40 +02:00
p 7ef502759e sdgui: clean up DnD 2022-09-04 12:03:26 +02:00
p ded899933c sdgui: make Ctrl+click put hovered word in search 2022-09-03 22:00:53 +02:00
p 832842bf81 sdgui: don't reload on size-allocate
We could annoyingly get these events on window de/focus.
2022-09-03 18:17:04 +02:00
p 49072f9d01 sdgui: fix context menu item sensitivity 2022-09-03 17:19:12 +02:00
p b0f1d3d6ea Build with AsciiDoc as well as Asciidoctor
And bump copyright years.
2022-08-24 00:55:32 +02:00
p 4073749d3b Synchronize cross-compilation scripts 2022-08-11 14:15:20 +02:00
p 2e684d2f4e Clean up cross-compilation 2022-08-10 16:04:10 +02:00
p 57739ff81e Update README 2022-08-05 00:08:54 +02:00
p 2ff01f9fdb sdgui: support text selection in the view
This is generally an improvement over the initial GtkLabel approach:
 - Multiple definition lines can be selected at once.
 - The widget doesn't keep a selection caret around (which means
   it can't be controlled from the keyboard, a conscious trade-off).
 - Text doesn't needlessly go to PRIMARY immediately during selection,
   making it somewhat possible lift the self-exception for
   the PRIMARY selection watch.

Closes #2
2022-08-04 05:23:09 +02:00
p 5ed881d25b czech-wordnet.pl: improve portability
Perl runs `` commands in the shell only if they contain
shell metacharacters.
2022-08-01 23:25:15 +02:00
p 259d0ac860 sdgui: support touch screen dragging for the view 2022-07-24 23:15:18 +02:00
p aa985514a6 sdgui: fix up the smooth scrolling commit 2022-07-24 23:15:18 +02:00
p 6f5e32386e tabfile: fix mismatching popen/fclose 2022-07-24 23:15:18 +02:00
p 92556d5269 README: mention gettext utilities as a dependency 2022-07-24 23:15:10 +02:00
p 2c69937ef5 sdgui: use smooth scrolling 2022-07-24 21:36:57 +02:00
p 4e4ba67025 README: mention icoutils 2022-07-24 21:15:24 +02:00
p 13ddec0274 Add a missing gtk_drag_finish() call 2022-02-17 11:02:35 +01:00
p c899ceff10 sdgui: avoid focusing tab headers by mouse
Our tabs have dummy contents, which causes some complications.
2022-02-11 08:20:10 +01:00
p 4d95f46d36 Bump termo 2021-11-04 14:23:40 +01:00
p 0d0ac40f96 sdtui: handle input field overflows reasonably 2021-11-04 11:43:18 +01:00
p 181df7fbae czech-wordnet.pl: fix to work on non-GNU systems 2021-11-04 08:33:28 +01:00
p b36f185426 Fix various macOS-related/found issues
Even though this software isn't very useful on that system either,
due to its lack of PRIMARY.
2021-11-02 17:04:37 +01:00
p 726ecd83ac Win64Depends.sh: describe a more precise fix 2021-11-01 09:28:18 +01:00
p dd5e90a324 CMakeLists.txt: update icon cache after cleanup
docs/iconcache.txt says the format is machine-independent.

It does not seem to result in any noticeable improvement.
2021-11-01 08:42:41 +01:00
p ac6ac4f845 Win32CleanupAdwaita.sh: make note of a corner case
I've actually tried to replicate that behaviour earlier,
and it kept around way too many icons.
2021-11-01 02:40:41 +01:00
p 093baaa034 sdgui: make M-Tab go to the last chosen dictionary 2021-10-30 10:45:32 +02:00
p ecab86966f sdtui: make M-Tab go to the last chosen dictionary 2021-10-30 10:18:20 +02:00
p e383a50af7 Add clang-format configuration, clean up 2021-10-30 03:02:33 +02:00
p ed26259e6d sdgui: fix M-0 going one item beyond our intent 2021-10-28 21:42:49 +02:00
p 8c80aa9da2 CMakeLists.txt: configure NSIS
- Install a link to sdgui to the Start Menu.
 - Associate the .ifo file extension with sdgui.
 - Change the installation directory name to contain a space,
   rather than a dash, since that appears to be the norm.
   It's also copied over to the display name.

And thus, the GUI has become somewhat usable on Windows.
2021-10-27 22:52:29 +02:00
p 9aa26e2807 CMakeLists.txt: think of older versions
At minimum it documents the novelty of the command argument.
2021-10-27 19:54:02 +02:00
p f7528a05a3 CMakeLists.txt: refactor icon generation 2021-10-27 19:23:47 +02:00
p 46e9b7b584 sdgui: rasterize some icons, including for Windows 2021-10-27 09:48:57 +02:00
p 0eb935ad9f sdgui: set the window title explicitly 2021-10-27 09:46:54 +02:00
p c75de30765 sdgui: create and install a program icon 2021-10-27 09:46:17 +02:00
p 451859e976 Fix the test target and unargumented ctest
CMake does know how to be tough on users, but we've won at last.
2021-10-27 00:18:01 +02:00
p 0f45b9bf3b Test the project's XMLs for well-formedness
But only if the respective binaries can be found.
2021-10-26 23:34:04 +02:00
p 27a9869a6a Trim down the Windows build a bit
Remove most unused Adwaita icons and cursors, it's about 30 mebibytes
of raw bullshit that doesn't seem to be missing in any shape or form.

Rather sadly, the script is too complex to be rewritten in CMake script.
2021-10-26 11:31:50 +02:00
p 2efad7453a sdgui: let the view act as a drop target for files
Inspired by how the only reasonable method of launching sdgui
on Windows is by using drag and drop on the executable.

Sadly the top-level window cannot be used as a whole for this.
2021-10-25 04:02:37 +02:00
p dc36a88968 Improve GLib deprecation disabling
Added a match against the version stated in the README.
2021-10-24 16:30:44 +02:00
p 0371dd95dd sdgui: fix popup menu alignment
On Windows 10 GTK+ completely failed to turn it around
so that it would be visible.
2021-10-23 18:51:23 +02:00
p cbdb1cfaa6 Remove unnecessary DLLs from Windows builds
This saves 21 MiB of MSYS2 libraries, without any adverse effects.

The MSYS2 build remains bloated, due to the Adwaita icon theme.
2021-10-23 18:27:43 +02:00
p 03ebaddff5 sdgui: add a file open dialog to the menu
And remove the selection following checkbox from Windows builds.
2021-10-23 02:12:24 +02:00
p 5190601852 sdgui: make C-Page Up/Down wrap around
To mimic sdtui behaviour.
2021-10-23 00:45:29 +02:00
p b77395b931 make-template.sh: minor improvements
Normalize the locale, and be more friendly towards paths with spaces.
2021-10-22 23:32:56 +02:00
p 809304cbb3 README: fix cross-building instructions
Copy-pasting and mental exhaustion do not go well together.
2021-10-22 23:32:52 +02:00
p 462428d0a2 sdgui: the firstclassing continues 2021-10-22 02:20:04 +02:00
p 89580f2113 sdgui: cross-compile for Windows
No one bothered to ask whether it /should/ be done.

The hamburger needs to be replaced with a file open dialog there.
2021-10-22 01:59:09 +02:00
p c7b9d65797 README: make sdgui even more 1st-class
It has reached a fairly high level of usability already.
2021-10-20 14:01:46 +02:00
p 519d6bd108 sdgui: bind Up/Down to view scrolling 2021-10-20 11:51:38 +02:00
p b721e26557 sdgui: improve styling of the text entry 2021-10-20 11:46:52 +02:00
p ec89870a32 sdgui: trim selection text
Just like sdtui does.
2021-10-20 11:19:47 +02:00
p 6158f6e3b5 sdgui: avoid Pango markup for keywords
Sadly, there is no way to make this an improvement for the end user.
2021-10-20 11:17:41 +02:00
p dd7b258698 sdgui: make an attempt at smooth scrolling 2021-10-20 09:46:06 +02:00
p aa3ad12d44 sdgui: decrease source code line count 2021-10-20 09:17:53 +02:00
p 82accaf200 sdgui: make Page Up/Down scroll the view 2021-10-20 09:15:06 +02:00
p e461189f0e sdgui: ignore Caps Lock for accelerators 2021-10-20 08:58:53 +02:00
p 85a30d20c3 sdgui: accelerate the hamburger
The hamburger initially resisted being accelerated.
2021-10-20 08:35:00 +02:00
p 54ef836eec sdgui: make even rows a bit darker by default 2021-10-17 12:46:06 +02:00
p 26a3c0c825 sdgui: bind ^W as in Readline 2021-10-17 11:58:06 +02:00
p 5216205056 README: make sdgui more of a first-class citizen 2021-10-17 11:25:32 +02:00
p c364ec3b81 sdgui: stop hardcoding cell side padding 2021-10-17 11:18:29 +02:00
p a31d329754 sdgui: stop hardcoding colours
Reusing colours from sdtui configuration would be awkward
and complicated, e.g. with font attributes, so abandon that idea.
2021-10-17 09:37:32 +02:00
p 33e98881ad sdgui: add a MIME-associated desktop file
Neither StarDict nor shared-mime-info have their own MIME DB file.
2021-10-16 09:00:31 +02:00
p c0a094e473 sdgui: load dictionaries in parallel, as sdtui did
Also, resolve some use-after-frees in GTK+.
2021-10-16 08:34:37 +02:00
p f147b54393 sdgui: load dictionaries from sdtui configuration 2021-10-16 06:46:44 +02:00
p 10c05a2422 sdgui: clean-up
It doesn't seem like we'll want to remember the position.
2021-10-16 03:45:38 +02:00
p 8fb2ce29cf sdgui: clean up scrolling code 2021-10-15 23:59:45 +02:00
p ce92a23551 sdgui: scroll by three rows
Don't use an arbitrary amount of pixels, base it off the font.
2021-10-15 23:09:26 +02:00
p 573554b9de sdgtk -> sdgui, improve build, mention in README
It's finally not horrible.
2021-10-15 12:09:37 +02:00
p 9d7bc2a839 sdgtk: add and use a custom listview widget
Nothing in GTK+ appears to be suited for what are virtually infinite
lists.  Our workaround with GtkLabel and GtkScrolledWindow has been
heavily suboptimal and needs to be replaced.

Use Pango directly to handle our relatively simple needs.

Upgrades:
 - the widget can be scrolled,
 - keywords are repeated for each definition line,
 - definition lines are now wrapped, and support 'g' and 'x' fields.

Downgrades:
 - text can no longer be selected, so far.
2021-10-15 11:46:09 +02:00
p f812fae922 Add the GNU/FDL German-Czech dictionary to dicts
But only build it with WANT_BAD_DICTS set to non-null.
2021-10-13 23:58:57 +02:00
p 3d53b2c131 Fix g_option_context_get_help() usage 2021-10-12 02:39:16 +02:00
p 627c296057 query-tool: support more field types
Add options to format the output for the terminal, or IRC messages.

Changed the output format to separate dictionary name with a tab,
so it's now rather similar to tabfiles.
2021-10-12 02:38:40 +02:00
p 13a16d1eb5 Update translations 2021-10-12 02:02:40 +02:00
p b8e43c5d5a make-template.sh: fix, improve, update, run 2021-10-11 21:15:11 +02:00
p e2790b42f3 sdtui: fix introductory message centring 2021-10-11 21:15:11 +02:00
p 9b220b74cc sdtui: minor rendering clean-up 2021-10-11 21:15:11 +02:00
p 6f569e076e sdtui: further improve the XML mangler
Comments should be more or less reliably handled by GMarkup now.
2021-10-11 06:32:00 +02:00
p ce2b8b39c0 Update README
We're not that all that far away from a stable version.
2021-10-11 02:46:56 +02:00
p e57751fe0e sdtui: skip keywords in XDXF 2021-10-11 02:43:34 +02:00
p 4d6cd247cb sdtui: implement elementary XDXF display
We're lacking word wrapping, but it's more or less usable.
2021-10-11 02:43:30 +02:00
p b9ba894cc9 Replace the screenshot
To make it apparent what this program is good for.
2021-10-10 07:23:44 +02:00
p de7089d669 gnu-fdl-en-cz.sh: employ Pango formatting
Also add collation fields.
2021-10-10 06:13:49 +02:00
p 16d6eaf012 sdtui: support <b>/<i>/<u> in Pango entries 2021-10-10 06:13:49 +02:00
p bc939712cb sdtui: lay the groundwork for formatted entries 2021-10-10 06:13:49 +02:00
p 6f7fbbb438 sdtui: keep the per-ViewEntry GPtrArrays 2021-10-10 06:13:48 +02:00
p 39ff4069c0 tabfile: fix file format version downgrade 2021-10-10 01:57:51 +02:00