2023-06-11 16:18:21 +02:00
|
|
|
tdv(1)
|
|
|
|
======
|
2020-10-26 17:01:43 +01:00
|
|
|
:doctype: manpage
|
2023-06-11 16:18:21 +02:00
|
|
|
:manmanual: tdv Manual
|
|
|
|
:mansource: tdv {release-version}
|
2020-10-26 17:01:43 +01:00
|
|
|
|
|
|
|
Name
|
|
|
|
----
|
2023-06-11 16:18:21 +02:00
|
|
|
tdv - Translation dictionary viewer
|
2020-10-26 17:01:43 +01:00
|
|
|
|
|
|
|
Synopsis
|
|
|
|
--------
|
2023-06-11 16:18:21 +02:00
|
|
|
*tdv* [_OPTION_]... [_DICTIONARY_.ifo]...
|
2020-10-26 17:01:43 +01:00
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
2023-06-11 16:18:21 +02:00
|
|
|
*tdv* is a StarDict dictionary viewer, custom-tailored for translation
|
|
|
|
dictionaries, with a simple curses-based terminal UI, and a GTK+ graphical UI.
|
2020-10-26 17:01:43 +01:00
|
|
|
|
2021-10-07 20:08:56 +02:00
|
|
|
Without any command line arguments, the program expects to find a list of
|
|
|
|
dictionaries to load on start-up in its configuration file. The _.ifo_ files
|
|
|
|
contain information required to load dictionaries from their accompanying
|
|
|
|
database files.
|
2020-10-26 17:01:43 +01:00
|
|
|
|
|
|
|
Options
|
|
|
|
-------
|
|
|
|
*-h*, *--help*::
|
|
|
|
Display a help message and exit.
|
|
|
|
|
|
|
|
*-V*, *--version*::
|
|
|
|
Output version information and exit.
|
|
|
|
|
2021-10-07 20:08:56 +02:00
|
|
|
Configuration
|
|
|
|
-------------
|
2023-06-11 16:18:21 +02:00
|
|
|
You can start your _tdv.conf_ file with the following snippet:
|
2021-10-07 20:08:56 +02:00
|
|
|
|
|
|
|
[Settings]
|
|
|
|
center-search = true # Ensure visibility of preceding entries?
|
|
|
|
underline-last = false # Underline the last line of entries?
|
|
|
|
hl-common-prefix = true # Highlight the longest common prefix?
|
|
|
|
watch-selection = true # Watch X11 selection for changes?
|
|
|
|
|
|
|
|
The _watch-selection_ option makes the application watch the X11 PRIMARY
|
|
|
|
selection for changes and automatically search for any selected text.
|
|
|
|
This feature requires XCB. Wayland is currently unsupported,
|
|
|
|
but would require a compositor supporting the wlr-data-control protocol.
|
|
|
|
Luckily, some compositors, such as Sway, synchronize selections with Xwayland.
|
|
|
|
|
|
|
|
To set up automatically loaded dictionaries, use the following scheme:
|
|
|
|
|
2022-08-24 00:43:14 +02:00
|
|
|
// AsciiDoc would otherwise like to process tildes as a long subscript.
|
|
|
|
:tilde: ~
|
|
|
|
|
2021-10-07 20:08:56 +02:00
|
|
|
[subs="normal"]
|
|
|
|
[Dictionaries]
|
2022-08-24 00:43:14 +02:00
|
|
|
_name 1_ = __{tilde}/path/to/dict.ifo__
|
|
|
|
_name 2_ = __{tilde}/another/dict.ifo__
|
2021-10-07 20:08:56 +02:00
|
|
|
|
|
|
|
The left-hand side keys define their appearance in the tab bar.
|
|
|
|
|
|
|
|
Finally, to make the program look nicer in 256color black-on-white terminals,
|
|
|
|
rather than rely on the universal default, try:
|
|
|
|
|
|
|
|
[Colors]
|
|
|
|
header = reverse
|
|
|
|
header-active = ul
|
|
|
|
search = ul
|
|
|
|
even = 16 231
|
|
|
|
odd = 16 255
|
|
|
|
|
|
|
|
Terminal attributes are accepted in a format similar to that of *git-config*(1),
|
|
|
|
only named colours aren't supported.
|
|
|
|
|
|
|
|
Extensions
|
|
|
|
----------
|
|
|
|
Because the StarDict file format is a bit of a clusterfuck with regard to
|
|
|
|
collation of dictionary entries, this software introduces an additional,
|
2023-06-11 16:18:21 +02:00
|
|
|
optional "collation" field into the _.ifo_ file. When *tdv* discovers this
|
2021-10-07 20:08:56 +02:00
|
|
|
field while reading a dictionary, it automatically reorders the index according
|
|
|
|
to that locale (e.g., "cs_CZ"). This operation may take a little while,
|
|
|
|
in the order of seconds.
|
|
|
|
|
2020-10-26 17:01:43 +01:00
|
|
|
Files
|
|
|
|
-----
|
2023-06-11 16:18:21 +02:00
|
|
|
*tdv* follows the XDG Base Directory Specification.
|
2021-10-07 20:08:56 +02:00
|
|
|
|
2023-06-11 16:18:21 +02:00
|
|
|
_~/.config/tdv/tdv.conf_::
|
2021-10-07 20:08:56 +02:00
|
|
|
The configuration file.
|
2020-10-26 17:01:43 +01:00
|
|
|
|
|
|
|
Reporting bugs
|
|
|
|
--------------
|
2023-06-11 18:12:12 +02:00
|
|
|
Use https://git.janouch.name/p/tdv to report bugs, request features,
|
2020-10-26 17:01:43 +01:00
|
|
|
or submit pull requests.
|
2021-10-07 20:08:56 +02:00
|
|
|
|
|
|
|
See also
|
|
|
|
--------
|
|
|
|
*dictzip*(1)
|