Debian Codegraph @

docs/nuspell.1.md

raw symbols SCIP
1 ---
2 title: NUSPELL
3 section: 1
4 header: User Commands
5 footer: Nuspell vX.Y # override this on the command line in CMake
6 author: Dimitrij Mijoski
7 date: 2024-07-03 # This date should be changed when significant changes in this
8 # document are made. It is not release date or build date.
9 ---
10
11 # NAME
12
13 nuspell - Command-line tool for spellchecking.
14
15 # SYNOPSIS
16
17 **nuspell** \[**-d** _dict_NAME_\] \[_OPTION_\]... \[_FILE_\]...
18 **nuspell** **-D|\--help|\--version**
19
20 # DESCRIPTION
21
22 Check spelling of each _FILE_. If no _FILE_ is specified, check standard input.
23 The text in the input is first segmented into words with an algorithm
24 that recognizes punctuation and then each word is checked.
25
26 # OPTIONS
27
28 __-d, \--dictionary=__*di_CT*
29 : Use _di_CT_ dictionary. Only one is supported. A dictionary consists of two
30 files with extensions .dic and .aff. The **-d** option accepts either
31 dictionary name without filename extension, usually a language tag, or a
32 path (with slash) to the .aff file including the filename extension. When
33 just a name is given, it will be searched among the list of dictionaries in
34 the default directories (see option **-D**). When a path to .aff is given,
35 only the dictionary under the path is considered. When **-d** is not present,
36 the CLI tools tries to load a dictionary using the language tag from the
37 active locale.
38
39 **-D, \--list-dictionaries**
40 : Print search paths and available dictionaries and exit.
41
42 __\--encoding=__*ENC*
43 : Set both input and output encoding.
44
45 __\--input-encoding=__*ENC*
46 : Set input encoding, default is active locale.
47
48 __\--output-encoding=__*ENC*
49 : Set output encoding, default is active locale.
50
51 **\--help**
52 : Print short help.
53
54 **\--version**
55 : Print version number.
56
57 # EXIT STATUS
58
59 Returns error if the argument syntax is invalid, if the dictionary can not be
60 loaded or if some input file can not be opened. Otherwise, spell checking has
61 occurred and returns success.
62
63 # ENVIRONMENT
64
65 **DICTIONARY**
66 : Specify dictionary, same as option **-d**.
67
68 **DICPATH**
69 : Path to additional directory to search for dictionaries.
70
71 # CAVEATS
72
73 The CLI tool is primarily intended to be used interactively by human. The input
74 is plain text and the output is mostly plain text with some symbols and words
75 that are meant to be read by human and not by machine. The format of the output
76 is not strictly defined and may change, thus it is not machine-readable. Other
77 programs should use the C++ library directly which has stable API.
78
79 # EXAMPLES
80
81 nuspell -d en_US file.txt
82 nuspell -d ../../subdir/di_CT.aff
83
84 # REPORTING BUGS
85
86 Bug reports: <https://github.com/nuspell/nuspell/issues>
87
88 # COPYRIGHT
89
90 Copyright 2016-2024 Nuspell authors.
91
92 # SEE ALSO
93
94 Full documentation: <https://github.com/nuspell/nuspell/wiki>
95
96 Home page: <http://nuspell.github.io/>