File: pyglossary.1

package info (click to toggle)
pyglossary 4.5.0-3
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 2,472 kB
  • sloc: python: 29,937; sh: 72; makefile: 29; xml: 20
file content (144 lines) | stat: -rw-r--r-- 5,217 bytes parent folder | download | duplicates (3)
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
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.47.11.
.TH PYGLOSSARY "1" "December 2019" "PyGlossary 3.2.1" "User Commands"
.SH NAME
PyGlossary \- A tool for converting dictionary files
.SH DESCRIPTION
PyGlossary is a tool for working with dictionary databases (glossaries)
Basic Usage:
.IP
PyGI (Gtk3) Interface:
.IP
To open PyGlossary window:
.IP
pyglossary
.IP
PyGI is the default interface (so you never need to use "\-\-ui=gtk" option)
If PyGI was not found (not installed), then PyGlossary will fallback to Tkinter interface.
.IP
Tkinter Interface:
.IP
To open PyGlossary window:
.IP
pyglossary \fB\-\-ui\fR=\fI\,tk\/\fR
.IP
Usually good for Windows and Mac OS X
.IP
Command Line Interface:
.IP
To show this help:
.IP
pyglossary \fB\-\-help\fR
.IP
To show program version:
.IP
pyglossary \fB\-\-version\fR
.IP
To Convert:
.IP
pyglossary INPUT_FILE OUTPUT_FILE
.IP
To Reverse:
.IP
pyglossary INPUT_FILE OUTPUT_FILE.txt \fB\-\-reverse\fR
.IP
Input and output files formats will be detected from extensions.
Except that you explicitly specify input or output format, for example:
.IP
pyglossary mydic.utf8 mydic.ifo \fB\-\-read\-format\fR=\fI\,tabfile\/\fR
pyglossary mydic.utf8 mydic.ifo \fB\-\-read\-format\fR tabfile
pyglossary mydic.ifo mydic.utf8 \fB\-\-write\-format\fR=\fI\,tabfile\/\fR
pyglossary mydic.ifo mydic.utf8 \fB\-\-write\-format\fR tabfile
.PP
General Options:
.IP
Verbosity:
.IP
\-v0 or '\-\-verbosity 0' for critical errors only
\-v1 or '\-\-verbosity 1' for errors only
\-v2 or '\-\-verbosity 2' for errors and warnings
\-v3 or '\-\-verbosity 3' for errors, warnings and info
\-v4 or '\-\-verbosity 4' for debug mode
.IP
Appearance:
.HP
\fB\-\-no\-progress\-bar\fR and \fB\-\-no\-color\fR, useful for Windows (non\-Unix) command line
.SS "Full Convert Usage:"
.IP
pyglossary INPUT_FILE OUTPUT_FILE [\-vN] [\-\-read\-format=FORMAT
] [\-\-write\-format=FORMAT]
.IP
[\-\-sort|\-\-no\-sort] [\-\-direct|\-\-indirect] [\-\-sort\-cache\-size=2000] [\-\-utf8\-chec
k|\-\-no\-utf8\-check]
[\-\-lower|\-\-no\-lower] [\-\-read\-options=READ_OPTIONS] [\-\-write\-options=WRITE_OPTION
S]
.PP
Command line arguments and options (and arguments for options) is parsed with GNU getopt method
You can also just type extension of output file instead of full path, if you want to create with the sam
e input
file name with another extension. For example:
.IP
pyglossary mydic.ifo txt
.SS "instead of:"
.IP
pyglossary mydic.ifo mydic.txt
.SS "Compressing with gz, bz2 and zip is supported, just append these extension to the file name, for ex
ample:"
.IP
pyglossary mydic.ifo mydic.txt.gz
.PP
or
.IP
pyglossary mydic.ifo txt.gz
.PP
And if the input file has these extensions (gz, bz2, zip), it will be extracted before loading
.PP
Supported input formats:
.TP
Name
|           Description           |   Extentions
.PP
\fB\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\fR+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\
-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.br
BabylonBgl         | Babylon (bgl)                   | .bgl
CC\-CEDICT          | CC\-CEDICT                       | .u8
Csv                | CSV                             | .csv
Dicformids         | DictionaryForMIDs               | .mids
DictOrg            | DICT.org file format (.index)   | .index
ABBYYLingvoDSL     | ABBYY Lingvo DSL (dsl)          | .dsl
Edlin              | Editable Linked List of Entries | .edlin
GettextPo          | Gettext Source (po)             | .po
LingoesLDF         | Lingoes Source (LDF)            | .ldf
OctopusMdict       | Octopus MDict                   | .mdx
OctopusMdictSource | Octopus MDict Source            | .mtxt
Sdict              | Sdictionary Binary(dct)         | .dct
Stardict           | StarDict (ifo)                  | .ifo
Tabfile            | Tabfile (txt, dic)              | .txt .tab .dic
WikipediaDump      | Wikipedia Dump(Static HTML)     | .wiki
Xdxf               | XDXF                            | .xdxf .xml
.PP
Supported output formats:
.TP
Name
|           Description           |    Extentions
.PP
\fB\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\fR+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\
-\-\-\-+\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-
.br
AppleDict          | AppleDict Source (xml)          | .xml
BabylonSource      | Babylon Source (gls)            | .gls .babylon
Csv                | CSV                             | .csv
Dicformids         | DictionaryForMIDs               | .mids
DictOrg            | DICT.org file format (.index)   | .index
Edlin              | Editable Linked List of Entries | .edlin
Freedict           | FreeDict (tei)                  | .tei
GettextPo          | Gettext Source (po)             | .po
LingoesLDF         | Lingoes Source (LDF)            | .ldf
OctopusMdictSource | Octopus MDict Source            | .mtxt
Omnidic            | Omnidic                         | .omni .omnidic
SdictSource        | Sdictionary Source (sdct)       | .sdct
Sql                | SQL                             | .sql
Stardict           | StarDict (ifo)                  | .ifo
Tabfile            | Tabfile (txt, dic)              | .txt .tab .dic
Treedict           | TreeDict                        | .tree .treedict