-
Notifications
You must be signed in to change notification settings - Fork 4
/
openrussian.1
148 lines (148 loc) · 3.61 KB
/
openrussian.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
.TH "openrussian" 1 "19 April 2019" "openrussian.lua"
.
.SH NAME
openrussian \-\-
Offline Console Russian Dictionary (based on openrussian.org)
.
.SH SYNOPSIS
.
.SY openrussian
.OP "-L" lang
.OP "-V"
.OP "-p"
.RI [ "pattern .\|.\|." ]
.YS
.
.SH DESCRIPTION
.
This is an offline console and terminal-friendly Russian dictionary,
based on the database of
.UR https://en.openrussian.org/
openrussian.org
.UE .
.
.LP
The search term is specified as a
.BR glob (7)
\fIpattern\fP.
All non-option parameters are concatenated into a single space-separated
search pattern, so there is no need to quote search terms containing spaces.
Any accent combining character (u0301) is stripped from the input pattern.
.
The pattern is matched against:
.RS
.IP \(bu
word base forms (infinitives, singular nominative nouns and singular
nominative male adjectives);
.IP \(bu
word inflections (conjugations, imperatives, declinations),
unless the \fB\-V\fP (verbatim) option is specified;
.IP \(bu
translations according to the translation languages.
The translation languages (currently \fIen\fP, \fIde\fP or a combination thereof)
are guessed from the system
.BR locale (5),
but can be overwritten using the \fB\-L\fP option.
.RE
.
.LP
The accent is always ignored when matching search terms.
If more than one words are found matching the search pattern, the user
is presented with a list of them.
After choosing one \(em or if there is a direct match \(em the information
is displayed using the system
.BR man (1)
page browser.
.
The \fB\-p\fP (pipe) option can be used to output the man-page source (see
.BR groff_man (7))
to stdout instead.
This may be useful for storing them, generating PDF files, etc.
.
.SH OPTIONS
.
.IP "\fB-L\fR \fIlang\fR"
Overwrite the translation languages.
Either \fIen\fP (English) or \fIde\fP (German) may be specified.
The space after \fB-L\fP is optional,
so you may also for instance write \(lq-Lde\(rq.
Multiple translations can be displayed on the same page by specifying
\fB-L\fP multiple times.
The order \fB-L\fP flags also matters and determines the order of
translated material on the result page.
.IP "\fB-V\fR"
Turn on verbatim matching, ie. turn off any kind of inflection matching
and case folding.
This may reduce the number of results for ambiguous search terms.
.IP "\fB-p\fR"
Output the man-page to stdout instead of piping it directly into the
man-page browser.
.IP "\fIpattern .\|.\|.\fR"
The search term as a number of
.BR glob (7)
patterns.
.
.\" NOTE: README.md also lists some examples.
.SH EXAMPLES
.
.TP
A simple lookup:
.EX
openrussian саморазрушение
.EE
.TP
Display the German translation:
.EX
openrussian -Lde саморазрушение
.EE
.TP
Display both German and English translations, giving precedence to German:
.EX
openrussian -Lde -Len саморазрушение
.EE
.TP
If you are unsure which consonants appear in this word:
.EX
openrussian самора[сз]ру[шщ]ение
.EE
.TP
Find more words derived from \(lqразрушение\(rq:
.EX
openrussian *разрушение
.EE
.TP
Avoid ambiguous search results:
.EX
openrussian -V коса
.EE
.TP
Look up by translation:
.EX
openrussian catch a cold
.EE
.TP
Graphical display using \fBgroffer\fP(1):
.EX
openrussian -p кошка | groffer -Kutf8 --mode pdf2
.EE
You may have to specify a non-default font supporting
cyrillic characters via groffer's \fB-f\fP option.
.
.SH SEE ALSO
.
.BR glob (7),
.BR locale (5),
.BR man (1),
.BR groff_man (7),
.BR groffer (1),
.UR https://en.openrussian.org/
openrussian.org website
.UE
.
.SH AUTHOR
.
This manpage and the openrussian.lua script was written by
Robin Haberkorn
.ME .
\# EOF