From 629ebb426fa19c8009357be1b824008ae981449d Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Fri, 30 Sep 2022 05:06:59 +0800 Subject: [PATCH] Fix typos (#3366) Found via `codespell -S ./searx/translations,./searx/data,./searx/static -L ans,te,fo,doubleclick,tthe,dum` --- CHANGELOG.rst | 2 +- README.rst | 6 +++--- dockerfiles/docker-entrypoint.sh | 2 +- dockerfiles/uwsgi.ini | 2 +- docs/admin/engines.rst | 2 +- docs/admin/engines/recoll.rst | 2 +- docs/admin/installation-uwsgi.rst | 2 +- docs/admin/settings.rst | 2 +- docs/blog/lxcdev-202006.rst | 6 +++--- docs/blog/search-database-engines.rst | 4 ++-- docs/blog/search-indexer-engines.rst | 4 ++-- docs/blog/sql-engines.rst | 2 +- docs/dev/engine_overview.rst | 4 ++-- docs/dev/reST.rst | 16 +++++++-------- docs/user/search_syntax.rst | 2 +- manage | 2 +- searx/__init__.py | 4 ++-- searx/engines/__init__.py | 4 ++-- searx/engines/bing_videos.py | 2 +- searx/engines/duckduckgo_definitions.py | 2 +- searx/engines/github.py | 2 +- searx/engines/google.py | 2 +- searx/engines/google_news.py | 4 ++-- searx/engines/google_videos.py | 4 ++-- searx/engines/photon.py | 2 +- searx/engines/prowlarr.py | 2 +- searx/engines/startpage.py | 4 ++-- searx/engines/wikidata.py | 4 ++-- searx/engines/wolframalpha_api.py | 2 +- searx/engines/xpath.py | 2 +- searx/external_urls.py | 2 +- searx/plugins/https_rewrite.py | 2 +- searx/plugins/https_rules/Yahoo.xml | 2 +- searx/poolrequests.py | 2 +- searx/preferences.py | 12 +++++------ searx/query.py | 8 ++++---- searx/results.py | 8 ++++---- searx/search/checker/__main__.py | 2 +- searx/search/checker/background.py | 2 +- searx/search/checker/impl.py | 4 ++-- searx/search/processors/online.py | 2 +- searx/settings.yml | 4 ++-- searx/settings_loader.py | 4 ++-- searx/templates/oscar/preferences.html | 2 +- searx/testing.py | 2 +- searx/webadapter.py | 6 +++--- searx/webapp.py | 2 +- searx/webutils.py | 2 +- searx_extra/update/update_currencies.py | 4 ++-- searx_extra/update/update_languages.py | 2 +- utils/lib.sh | 20 +++++++++---------- utils/lxc.sh | 6 +++--- utils/morty.sh | 2 +- utils/searx.sh | 10 +++++----- .../etc/uwsgi/apps-archlinux/searx.ini | 2 +- .../etc/uwsgi/apps-archlinux/searx.ini:socket | 2 +- .../etc/uwsgi/apps-available/searx.ini | 2 +- .../etc/uwsgi/apps-available/searx.ini:socket | 2 +- 58 files changed, 110 insertions(+), 110 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d92c5fc9..ee832dd6 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -424,7 +424,7 @@ Special thanks to `NLNet `__ for sponsoring multiple features - Removed engines: faroo Special thanks to `NLNet `__ for sponsoring multiple features of this release. -Special thanks to https://www.accessibility.nl/english for making accessibilty audit. +Special thanks to https://www.accessibility.nl/english for making accessibility audit. News ~~~~ diff --git a/README.rst b/README.rst index b1ca5544..2ddeed0c 100644 --- a/README.rst +++ b/README.rst @@ -94,7 +94,7 @@ the new proposed features privacy respecting enough. The most significant issue engine metrics. Searx is built for privacy conscious users. It comes a unique set of -challanges. One of the problems we face is that users rather not report bugs, +challenges. One of the problems we face is that users rather not report bugs, because they do not want to publicly share what engines they use or what search query triggered a problem. It is a challenge we accepted. @@ -124,8 +124,8 @@ instances locally, instead of using public instances. Why should I use SearxNG? ######################### -SearxNG has rolling releases, depencencies updated more frequently, and engines are fixed +SearxNG has rolling releases, dependencies updated more frequently, and engines are fixed faster. It is easy to set up your own public instance, and monitor its -perfomance and metrics. It is simple to maintain as an instance adminstrator. +performance and metrics. It is simple to maintain as an instance administrator. As a user, it provides a prettier user interface and nicer experience. diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh index 6592b1c7..eddab685 100755 --- a/dockerfiles/docker-entrypoint.sh +++ b/dockerfiles/docker-entrypoint.sh @@ -100,7 +100,7 @@ update_conf() { # There is a new version if [ $FORCE_CONF_UPDATE -ne 0 ]; then # Replace the current configuration - printf '⚠️ Automaticaly update %s to the new version\n' "${CONF}" + printf '⚠️ Automatically update %s to the new version\n' "${CONF}" if [ ! -f "${OLD_CONF}" ]; then printf 'The previous configuration is saved to %s\n' "${OLD_CONF}" mv "${CONF}" "${OLD_CONF}" diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini index 818a99cc..b4662e79 100644 --- a/dockerfiles/uwsgi.ini +++ b/dockerfiles/uwsgi.ini @@ -9,7 +9,7 @@ workers = 4 # The right granted on the created socket chmod-socket = 666 -# Plugin to use and interpretor config +# Plugin to use and interpreter config single-interpreter = true master = true plugin = python3 diff --git a/docs/admin/engines.rst b/docs/admin/engines.rst index 36b96ae3..ed6f27bd 100644 --- a/docs/admin/engines.rst +++ b/docs/admin/engines.rst @@ -37,7 +37,7 @@ Disabled **D** Engine type **ET** ------------- ----------- -------------------- ------------ Safe search **SS** ------------- ----------- --------------------------------- -Weigth **W** +Weight **W** ------------- ----------- --------------------------------- Disabled **D** ------------- ----------- --------------------------------- diff --git a/docs/admin/engines/recoll.rst b/docs/admin/engines/recoll.rst index cba2e81f..d1f717ac 100644 --- a/docs/admin/engines/recoll.rst +++ b/docs/admin/engines/recoll.rst @@ -39,7 +39,7 @@ Example Scenario: #. Recoll indexes a local filesystem mounted in ``/export/documents/reference``, -#. the Recoll search inteface can be reached at https://recoll.example.org/ and +#. the Recoll search interface can be reached at https://recoll.example.org/ and #. the contents of this filesystem can be reached though https://download.example.org/reference .. code:: yaml diff --git a/docs/admin/installation-uwsgi.rst b/docs/admin/installation-uwsgi.rst index 7b482975..03aabeb7 100644 --- a/docs/admin/installation-uwsgi.rst +++ b/docs/admin/installation-uwsgi.rst @@ -94,7 +94,7 @@ My experience is, that this command is a bit buggy. .. _uwsgi configuration: -Alltogether +All together =========== Create the configuration ini-file according to your distribution (see below) and diff --git a/docs/admin/settings.rst b/docs/admin/settings.rst index 7cf055db..9ef5784e 100644 --- a/docs/admin/settings.rst +++ b/docs/admin/settings.rst @@ -129,7 +129,7 @@ Global Settings outgoing: # communication with search engines request_timeout : 2.0 # default timeout in seconds, can be override by engine # max_request_timeout: 10.0 # the maximum timeout in seconds - useragent_suffix : "" # informations like an email address to the administrator + useragent_suffix : "" # information like an email address to the administrator pool_connections : 100 # Number of different hosts pool_maxsize : 10 # Number of simultaneous requests by host # uncomment below section if you want to use a proxy diff --git a/docs/blog/lxcdev-202006.rst b/docs/blog/lxcdev-202006.rst index b53501da..0323ea22 100644 --- a/docs/blog/lxcdev-202006.rst +++ b/docs/blog/lxcdev-202006.rst @@ -207,7 +207,7 @@ debug services from filtron and morty analogous use: Another point we have to notice is that each service (:ref:`searx `, :ref:`filtron ` and :ref:`morty `) runs under dedicated system user account with the same name (compare :ref:`create searx user`). To -get a shell from theses accounts, simply call one of the scripts: +get a shell from these accounts, simply call one of the scripts: .. tabs:: @@ -311,7 +311,7 @@ of the container: Now we can develop as usual in the working tree of our desktop system. Every time the software was changed, you have to restart the searx service (in the -conatiner): +container): .. tabs:: @@ -370,7 +370,7 @@ We build up a fully functional searx suite in a archlinux container: $ sudo -H ./utils/lxc.sh install suite searx-archlinux To access HTTP from the desktop we installed nginx for the services inside the -conatiner: +container: .. tabs:: diff --git a/docs/blog/search-database-engines.rst b/docs/blog/search-database-engines.rst index 94f418e7..667296a4 100644 --- a/docs/blog/search-database-engines.rst +++ b/docs/blog/search-database-engines.rst @@ -16,7 +16,7 @@ you can use your owm template by placing the template under ``searx/templates/{theme_name}/result_templates/{template_name}`` and setting ``result_template`` attribute to ``{template_name}``. -Futhermore, if you do not want to expose these engines on a public instance, you can +Furthermore, if you do not want to expose these engines on a public instance, you can still add them and limit the access by setting ``tokens`` as described in the `blog post about private engines`_. @@ -29,7 +29,7 @@ structure. Redis ----- -Reqired package: ``redis`` +Required package: ``redis`` Redis is a key value based data store usually stored in memory. diff --git a/docs/blog/search-indexer-engines.rst b/docs/blog/search-indexer-engines.rst index ca4dd3c8..1dafa4fb 100644 --- a/docs/blog/search-indexer-engines.rst +++ b/docs/blog/search-indexer-engines.rst @@ -15,7 +15,7 @@ All of the engines above are added to ``settings.yml`` just commented out, as yo Please note that if you are not using HTTPS to access these engines, you have to enable HTTP requests by setting ``enable_http`` to ``True``. -Futhermore, if you do not want to expose these engines on a public instance, you can +Furthermore, if you do not want to expose these engines on a public instance, you can still add them and limit the access by setting ``tokens`` as described in the `blog post about private engines`_. @@ -57,7 +57,7 @@ small-scale (less than 10 million documents) data collections. E.g. it is great web pages you have visited and searching in the contents later. The engine supports faceted search, so you can search in a subset of documents of the collection. -Futhermore, you can search in Meilisearch instances that require authentication by setting ``auth_token``. +Furthermore, you can search in Meilisearch instances that require authentication by setting ``auth_token``. Here is a simple example to query a Meilisearch instance: diff --git a/docs/blog/sql-engines.rst b/docs/blog/sql-engines.rst index c40e3e79..68a9e3fa 100644 --- a/docs/blog/sql-engines.rst +++ b/docs/blog/sql-engines.rst @@ -62,7 +62,7 @@ Before enabling MySQL engine, you must install the package ``mysql-connector-pyt The authentication plugin is configurable by setting ``auth_plugin`` in the attributes. By default it is set to ``caching_sha2_password``. -This is an example configuration for quering a MySQL server: +This is an example configuration for querying a MySQL server: .. code:: yaml diff --git a/docs/dev/engine_overview.rst b/docs/dev/engine_overview.rst index bbd14139..186042f3 100644 --- a/docs/dev/engine_overview.rst +++ b/docs/dev/engine_overview.rst @@ -41,7 +41,7 @@ engine file argument type information ======================= =========== ======================================================== categories list pages, in which the engine is working -paging boolean support multible pages +paging boolean support multiple pages time_range_support boolean support search time range engine_type str ``online`` by default, other possibles values are ``offline``, ``online_dictionary``, ``online_currency`` @@ -159,7 +159,7 @@ parsed arguments ---------------- The function ``def request(query, params):`` always returns the ``params`` -variable. Inside searx, the following paramters can be used to specify a search +variable. Inside searx, the following parameters can be used to specify a search request: =================== =========== ========================================================================== diff --git a/docs/dev/reST.rst b/docs/dev/reST.rst index 1817504c..e690e55c 100644 --- a/docs/dev/reST.rst +++ b/docs/dev/reST.rst @@ -15,7 +15,7 @@ generated and deployed at :docs:`github.io <.>`. For build prerequisites read :ref:`docs build`. The source files of Searx's documentation are located at :origin:`docs`. Sphinx -assumes source files to be encoded in UTF-8 by defaul. Run :ref:`make docs.live +assumes source files to be encoded in UTF-8 by default. Run :ref:`make docs.live ` to build HTML while editing. .. sidebar:: Further reading @@ -227,13 +227,13 @@ To refer anchors use the `ref role`_ markup: .. code:: reST - Visit chapter :ref:`reST anchor`. Or set hyperlink text manualy :ref:`foo + Visit chapter :ref:`reST anchor`. Or set hyperlink text manually :ref:`foo bar `. .. admonition:: ``:ref:`` role :class: rst-example - Visist chapter :ref:`reST anchor`. Or set hyperlink text manualy :ref:`foo + Visist chapter :ref:`reST anchor`. Or set hyperlink text manually :ref:`foo bar `. .. _reST ordinary ref: @@ -494,8 +494,8 @@ Figures & Images is flexible. To get best results in the generated output format, install ImageMagick_ and Graphviz_. -Searx's sphinx setup includes: :ref:`linuxdoc:kfigure`. Scaleable here means; -scaleable in sense of the build process. Normally in absence of a converter +Searx's sphinx setup includes: :ref:`linuxdoc:kfigure`. Scalable here means; +scalable in sense of the build process. Normally in absence of a converter tool, the build process will break. From the authors POV it’s annoying to care about the build process when handling with images, especially since he has no access to the build process. With :ref:`linuxdoc:kfigure` the build process @@ -503,7 +503,7 @@ continues and scales output quality in dependence of installed image processors. If you want to add an image, you should use the ``kernel-figure`` (inheritance of :dudir:`figure`) and ``kernel-image`` (inheritance of :dudir:`image`) -directives. E.g. to insert a figure with a scaleable image format use SVG +directives. E.g. to insert a figure with a scalable image format use SVG (:ref:`svg image example`): .. code:: reST @@ -1185,7 +1185,7 @@ and *targets* (e.g. a ref to :ref:`row 2 of table's body `). - cell 4.4 * - row 5 - - cell 5.1 with automatic span to rigth end + - cell 5.1 with automatic span to right end * - row 6 - cell 6.1 @@ -1237,7 +1237,7 @@ and *targets* (e.g. a ref to :ref:`row 2 of table's body `). - cell 4.4 * - row 5 - - cell 5.1 with automatic span to rigth end + - cell 5.1 with automatic span to right end * - row 6 - cell 6.1 diff --git a/docs/user/search_syntax.rst b/docs/user/search_syntax.rst index 57cb5195..7068f8dc 100644 --- a/docs/user/search_syntax.rst +++ b/docs/user/search_syntax.rst @@ -17,7 +17,7 @@ Prefix: ``:`` Prefix: ``?`` to add engines and categories to the currently selected categories -Abbrevations of the engines and languages are also accepted. Engine/category +Abbreviations of the engines and languages are also accepted. Engine/category modifiers are chainable and inclusive (e.g. with :search:`!it !ddg !wp qwer ` search in IT category **and** duckduckgo **and** wikipedia for ``qwer``). diff --git a/manage b/manage index f9a92864..af264cdf 100755 --- a/manage +++ b/manage @@ -192,7 +192,7 @@ docker.build() { # awk to remove the "v" and the "g" SEARX_GIT_VERSION=$(git describe --tags | awk -F'-' '{OFS="-"; $1=substr($1, 2); if ($3) { $3=substr($3, 2); } print}') - # add the suffix "-dirty" if the repository has uncommited change + # add the suffix "-dirty" if the repository has uncommitted change # /!\ HACK for searx/searx: ignore utils/brand.env git update-index -q --refresh if [ ! -z "$(git diff-index --name-only HEAD -- | grep -v 'utils/brand.env')" ]; then diff --git a/searx/__init__.py b/searx/__init__.py index 0f9b435b..cf116d31 100644 --- a/searx/__init__.py +++ b/searx/__init__.py @@ -41,11 +41,11 @@ if settings['ui']['static_path']: ''' enable debug if -the environnement variable SEARX_DEBUG is 1 or true +the environment variable SEARX_DEBUG is 1 or true (whatever the value in settings.yml) or general.debug=True in settings.yml disable debug if -the environnement variable SEARX_DEBUG is 0 or false +the environment variable SEARX_DEBUG is 0 or false (whatever the value in settings.yml) or general.debug=False in settings.yml ''' diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 79bdfbc0..75e30513 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -142,7 +142,7 @@ def load_engine(engine_data): engine.stats = { 'sent_search_count': 0, # sent search - 'search_count': 0, # succesful search + 'search_count': 0, # successful search 'result_count': 0, 'engine_time': 0, 'engine_time_count': 0, @@ -171,7 +171,7 @@ def load_engine(engine_data): categories.setdefault(category_name, []).append(engine) if engine.shortcut in engine_shortcuts: - logger.error('Engine config error: ambigious shortcut: {0}'.format(engine.shortcut)) + logger.error('Engine config error: ambiguous shortcut: {0}'.format(engine.shortcut)) sys.exit(1) engine_shortcuts[engine.shortcut] = engine.name diff --git a/searx/engines/bing_videos.py b/searx/engines/bing_videos.py index 2e1f13de..e25f152e 100644 --- a/searx/engines/bing_videos.py +++ b/searx/engines/bing_videos.py @@ -70,7 +70,7 @@ def request(query, params): if params['time_range'] in time_range_dict: params['url'] += time_range_string.format(interval=time_range_dict[params['time_range']]) - # bing videos did not like "older" versions < 70.0.1 when selectin other + # bing videos did not like "older" versions < 70.0.1 when selecting other # languages then 'en' .. very strange ?!?! params['headers']['User-Agent'] = 'Mozilla/5.0 (X11; Linux x86_64; rv:73.0.1) Gecko/20100101 Firefox/73.0.1' diff --git a/searx/engines/duckduckgo_definitions.py b/searx/engines/duckduckgo_definitions.py index 0473b0a9..0b5c8563 100644 --- a/searx/engines/duckduckgo_definitions.py +++ b/searx/engines/duckduckgo_definitions.py @@ -80,7 +80,7 @@ def response(resp): # * book / performing art / film / television / media franchise / concert tour / playwright # * prepared food # * website / software / os / programming language / file format / software engineer - # * compagny + # * company content = '' heading = search_res.get('Heading', '') diff --git a/searx/engines/github.py b/searx/engines/github.py index b68caa35..f927e546 100644 --- a/searx/engines/github.py +++ b/searx/engines/github.py @@ -40,7 +40,7 @@ def response(resp): search_res = loads(resp.text) - # check if items are recieved + # check if items are received if 'items' not in search_res: return [] diff --git a/searx/engines/google.py b/searx/engines/google.py index ba7e562d..8d80f297 100644 --- a/searx/engines/google.py +++ b/searx/engines/google.py @@ -282,7 +282,7 @@ def response(resp): # google *sections* if extract_text(eval_xpath(result, g_section_with_header)): - logger.debug("ingoring ") + logger.debug("ignoring ") continue try: diff --git a/searx/engines/google_news.py b/searx/engines/google_news.py index ff39543d..67812d73 100644 --- a/searx/engines/google_news.py +++ b/searx/engines/google_news.py @@ -2,7 +2,7 @@ """Google (News) For detailed description of the *REST-full* API see: `Query Parameter -Definitions`_. Not all parameters can be appied: +Definitions`_. Not all parameters can be applied: - num_ : the number of search results is ignored - save_ : is ignored / Google-News results are always *SafeSearch* @@ -155,7 +155,7 @@ def response(resp): padding = (4 -(len(jslog) % 4)) * "=" jslog = b64decode(jslog + padding) except binascii.Error: - # URL cant be read, skip this result + # URL can't be read, skip this result continue # now we have : b'[null, ... null,"https://www.cnn.com/.../index.html"]' diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py index 8665181a..b52a9159 100644 --- a/searx/engines/google_videos.py +++ b/searx/engines/google_videos.py @@ -2,7 +2,7 @@ """Google (Video) For detailed description of the *REST-full* API see: `Query Parameter -Definitions`_. Not all parameters can be appied. +Definitions`_. Not all parameters can be applied. .. _admonition:: Content-Security-Policy (CSP) @@ -163,7 +163,7 @@ def response(resp): # google *sections* if extract_text(eval_xpath(result, g_section_with_header)): - logger.debug("ingoring ") + logger.debug("ignoring ") continue title = extract_text(eval_xpath_getindex(result, title_xpath, 0)) diff --git a/searx/engines/photon.py b/searx/engines/photon.py index 8c11c8ff..0212c1b5 100644 --- a/searx/engines/photon.py +++ b/searx/engines/photon.py @@ -72,7 +72,7 @@ def response(resp): elif properties.get('osm_type') == 'R': osm_type = 'relation' else: - # continue if invalide osm-type + # continue if invalid osm-type continue url = result_base_url.format(osm_type=osm_type, diff --git a/searx/engines/prowlarr.py b/searx/engines/prowlarr.py index 24ad618c..8fb6550e 100644 --- a/searx/engines/prowlarr.py +++ b/searx/engines/prowlarr.py @@ -71,7 +71,7 @@ def response(resp): if 'downloadUrl' in result: new_result['torrentfile'] = result['downloadUrl'] - # magnet link *may* be in guid, but it may be also idential to infoUrl + # magnet link *may* be in guid, but it may be also identical to infoUrl if 'guid' in result and isinstance(result['guid'], str) and result['guid'].startswith('magnet'): new_result['magnetlink'] = result['guid'] diff --git a/searx/engines/startpage.py b/searx/engines/startpage.py index 513f508e..5690e105 100644 --- a/searx/engines/startpage.py +++ b/searx/engines/startpage.py @@ -51,7 +51,7 @@ search_url = base_url + 'sp/search?' # specific xpath variables # ads xpath //div[@id="results"]/div[@id="sponsored"]//div[@class="result"] -# not ads: div[@class="result"] are the direct childs of div[@id="results"] +# not ads: div[@class="result"] are the direct children of div[@id="results"] results_xpath = '//div[@class="w-gl__result__main"]' link_xpath = './/a[@class="w-gl__result-title result-link"]' content_xpath = './/p[@class="w-gl__description"]' @@ -216,7 +216,7 @@ def _fetch_supported_languages(resp): # native name, the English name of the writing script used by the language, # or occasionally something else entirely. - # this cases are so special they need to be hardcoded, a couple of them are mispellings + # this cases are so special they need to be hardcoded, a couple of them are misspellings language_names = { 'english_uk': 'en-GB', 'fantizhengwen': ['zh-TW', 'zh-HK'], diff --git a/searx/engines/wikidata.py b/searx/engines/wikidata.py index 60adb41c..e1841701 100644 --- a/searx/engines/wikidata.py +++ b/searx/engines/wikidata.py @@ -49,7 +49,7 @@ WIKIDATA_PROPERTIES = { # SERVICE wikibase:label: https://en.wikibooks.org/wiki/SPARQL/SERVICE_-_Label#Manual_Label_SERVICE # https://en.wikibooks.org/wiki/SPARQL/WIKIDATA_Precision,_Units_and_Coordinates # https://www.mediawiki.org/wiki/Wikibase/Indexing/RDF_Dump_Format#Data_model -# optmization: +# optimization: # * https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/query_optimization # * https://github.com/blazegraph/database/wiki/QueryHints QUERY_TEMPLATE = """ @@ -335,7 +335,7 @@ def get_attributes(language): add_amount('P2046') # area add_amount('P281') # postal code add_label('P38') # currency - add_amount('P2048') # heigth (building) + add_amount('P2048') # height (building) # Media for p in ['P400', # platform (videogames, computing) diff --git a/searx/engines/wolframalpha_api.py b/searx/engines/wolframalpha_api.py index 9c84e280..48241269 100644 --- a/searx/engines/wolframalpha_api.py +++ b/searx/engines/wolframalpha_api.py @@ -50,7 +50,7 @@ def request(query, params): # replace private user area characters to make text legible def replace_pua_chars(text): - pua_chars = {'\uf522': '\u2192', # rigth arrow + pua_chars = {'\uf522': '\u2192', # right arrow '\uf7b1': '\u2115', # set of natural numbers '\uf7b4': '\u211a', # set of rational numbers '\uf7b5': '\u211d', # set of real numbers diff --git a/searx/engines/xpath.py b/searx/engines/xpath.py index 92423302..3ef44735 100644 --- a/searx/engines/xpath.py +++ b/searx/engines/xpath.py @@ -35,7 +35,7 @@ time_range_support = False time_range_url = '&hours={time_range_val}' '''Time range URL parameter in the in :py:obj:`search_url`. If no time range is -requested by the user, the URL paramter is an empty string. The +requested by the user, the URL parameter is an empty string. The ``{time_range_val}`` replacement is taken from the :py:obj:`time_range_map`. .. code:: yaml diff --git a/searx/external_urls.py b/searx/external_urls.py index 11c6a32d..e45ca674 100644 --- a/searx/external_urls.py +++ b/searx/external_urls.py @@ -30,7 +30,7 @@ def get_external_url(url_id, item_id, alternative="default"): """Return an external URL or None if url_id is not found. url_id can take value from data/external_urls.json - The "imdb_id" value is automaticaly converted according to the item_id value. + The "imdb_id" value is automatically converted according to the item_id value. If item_id is None, the raw URL with the $1 is returned. """ diff --git a/searx/plugins/https_rewrite.py b/searx/plugins/https_rewrite.py index aeb42495..c2b9646b 100644 --- a/searx/plugins/https_rewrite.py +++ b/searx/plugins/https_rewrite.py @@ -78,7 +78,7 @@ def load_single_https_ruleset(rules_path): rules = [] exclusions = [] - # parse childs from ruleset + # parse children from ruleset for ruleset in root: # this child define a target if ruleset.tag == 'target': diff --git a/searx/plugins/https_rules/Yahoo.xml b/searx/plugins/https_rules/Yahoo.xml index 33548c4a..7fb1e7ac 100644 --- a/searx/plugins/https_rules/Yahoo.xml +++ b/searx/plugins/https_rules/Yahoo.xml @@ -2435,7 +2435,7 @@ - learn more about request methods') %} + {% set method_info = _('Change how forms are submitted, learn more about request methods') %} {{ preferences_item_header(method_info, method_label, rtl, 'method') }}