Compare commits

..

No commits in common. "4245dc35df513a0bad63d01b1616cec97073c849" and "2b5eb86a9f1315a7c99325daba710e2214ac2dcf" have entirely different histories.

3 changed files with 9 additions and 14 deletions

2
.gitignore vendored
View File

@ -3,8 +3,6 @@
# Qt Creator files # Qt Creator files
/CMakeLists.txt.user* /CMakeLists.txt.user*
/sdtui.cflags
/sdtui.cxxflags
/sdtui.config /sdtui.config
/sdtui.files /sdtui.files
/sdtui.creator* /sdtui.creator*

View File

@ -2,16 +2,13 @@ StarDict Terminal UI
==================== ====================
'sdtui' aims to provide an easy way of viewing translation as well as other 'sdtui' aims to provide an easy way of viewing translation as well as other
kinds of dictionaries in your terminal, and is inspired by the dictionary kinds of dictionaries in your terminal. I wasn't successful in finding any free
component of PC Translator. I wasn't successful in finding any free software dictionary software of this kind, GUI or not, and thus decided to write my own.
of this kind, GUI or not, and thus decided to write my own.
The project is covered by a permissive license, unlike vast majority of other The project is covered by a permissive license, unlike vast majority of other
similar projects, and can serve as a base for implementing other dictionary similar projects, and can serve as a base for implementing other dictionary
software. I wasn't able to reuse _anything_ for StarDict. software. I wasn't able to reuse _anything_ for StarDict.
image::sdtui.png[align="center"]
Further Development Further Development
------------------- -------------------
While I've been successfully using sdtui for a long time now, some work has to While I've been successfully using sdtui for a long time now, some work has to
@ -20,8 +17,11 @@ Linux and/or BSD distributions. Help is much appreciated.
An approximate list of things that need to be resolved: An approximate list of things that need to be resolved:
- the tab bar and the text input field don't handle overflows well - rewrite the frontend using a proper TUI framework
- figure out a way to become capable of displaying most StarDict dictionaries - possibly make it work better with multiple dictionaries as now it's only
acceptable if you give them short names in the configuration so that they
all fit in the header
- figure out a way to become capable of displaying most dictionaries
Packages Packages
-------- --------
@ -32,7 +32,7 @@ Building and Running
-------------------- --------------------
Build dependencies: CMake, pkg-config, asciidoctor + Build dependencies: CMake, pkg-config, asciidoctor +
Runtime dependencies: ncursesw, zlib, ICU, termo (included), Runtime dependencies: ncursesw, zlib, ICU, termo (included),
glib-2.0, pango, xcb, xcb-xfixes (the latter two optional) glib-2.0, pango, xcb and xcb-xfixes (optional)
$ git clone --recursive https://git.janouch.name/p/sdtui.git $ git clone --recursive https://git.janouch.name/p/sdtui.git
$ mkdir sdtui/build $ mkdir sdtui/build
@ -82,8 +82,7 @@ odd = 16 255
The `watch-selection` option makes the application watch the X11 primary The `watch-selection` option makes the application watch the X11 primary
selection for changes and automatically search for selected text. selection for changes and automatically search for selected text.
This feature requires XCB. Wayland is currently unsupported, but would require This feature requires XCB and it will never work on Wayland by its design.
a compositor supporting the wlr-data-control protocol.
You can also set up some dictionaries to be loaded at startup automatically: You can also set up some dictionaries to be loaded at startup automatically:
@ -93,8 +92,6 @@ name1 = ~/path/to/dict.ifo
name2 = ~/another/dict.ifo name2 = ~/another/dict.ifo
.... ....
The names define how they will appear in the tab bar.
Dictionaries Dictionaries
------------ ------------
Unfortunately this application only really works with specific dictionaries. Unfortunately this application only really works with specific dictionaries.

BIN
sdtui.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB