Skip to content

Commit 0b3ffbd

Browse files
authored
Add spelling_language property (#41)
* Add spelling_language property To specify the natural language for which spelling should be checked. * Add .readthedocs.yaml Now required per readthedocs/readthedocs.org#4668
1 parent e02645d commit 0b3ffbd

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.editorconfig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ max_line_length = 78
1010
indent_size = 4
1111
indent_style = space
1212
end_of_line = lf
13-
max_line_length = 78
13+
max_line_length = 78
14+
15+
[*.{yaml,yml}]
16+
indent_size = 2
17+
indent_style = space

.readthedocs.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.12"
7+
8+
sphinx:
9+
configuration: conf.py

conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
copyright = '2019--2020, EditorConfig Team'
2222
author = 'EditorConfig Team'
2323

24-
version = '0.15.1'
25-
release = '0.15.1'
24+
version = '0.16.0'
25+
release = '0.16.0'
2626

2727
# -- General configuration ---------------------------------------------------
2828

index.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ files take precedence.
186186
Supported Pairs
187187
===============
188188

189-
.. versionchanged:: 0.15.1
189+
.. versionchanged:: 0.16
190190

191191
EditorConfig file sections contain key-value pairs separated by an
192192
equal sign (``=``). With the exception of the ``root`` key, all pairs MUST be
@@ -224,6 +224,15 @@ and the supported values associated with them:
224224
* - ``charset``
225225
- Set to ``latin1``, ``utf-8``, ``utf-8-bom``, ``utf-16be`` or ``utf-16le`` to
226226
control the character set. Use of ``utf-8-bom`` is discouraged.
227+
* - ``spelling_language``
228+
- Sets the natural language that should be used for spell checking.
229+
Only one language can be specified. There is no default value.
230+
231+
The format is ``ss`` or ``ss-TT``, where ``ss`` is an `ISO 639`_
232+
language code and ``TT`` is an `ISO 3166`_ territory identifier.
233+
234+
**Note:** This property does **not** specify the charset to be used.
235+
The charset is in separate property ``charset``.
227236
* - ``trim_trailing_whitespace``
228237
- Set to ``true`` to remove all whitespace characters preceding newline
229238
characters in the file and ``false`` to ensure it doesn't.
@@ -277,6 +286,8 @@ numbers. Those version numbers are independent of the version number of
277286
this specification.
278287

279288
.. _core-tests repository: https://github.com/editorconfig/editorconfig-core-test
289+
.. _ISO 639: https://en.wikipedia.org/wiki/ISO_639
290+
.. _ISO 3166: https://en.wikipedia.org/wiki/ISO_3166
280291
.. _Python configparser Library: https://docs.python.org/3/library/configparser.html
281292
.. _Plugin Guidelines: https://github.com/editorconfig/editorconfig/wiki/Plugin-Guidelines
282293
.. _plugin-tests repository: https://github.com/editorconfig/editorconfig-plugin-tests

0 commit comments

Comments
 (0)