123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- {
- "manifest": {
- "name": "@ijmbarr/jupyterlab_spellchecker",
- "version": "0.7.2",
- "description": "A spell checker for JupyterLab.",
- "keywords": [
- "jupyter",
- "jupyterlab",
- "jupyterlab-extension"
- ],
- "homepage": "https://github.com/jupyterlab-contrib/spellchecker",
- "bugs": {
- "url": "https://github.com/jupyterlab-contrib/spellchecker/issues"
- },
- "license": "BSD-3-Clause",
- "author": {
- "name": "JupyterLab Spellchecker Development Team"
- },
- "contributors": [
- {
- "name": "Iain Barr"
- },
- {
- "name": "Michał Krassowski"
- },
- {
- "name": "Oliver Cordes",
- "email": "ocordes@astro.uni-bonn.de",
- "url": "https://astro.uni-bonn.de/~ocordes"
- }
- ],
- "files": [
- "dictionaries/*{aff,dic}",
- "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
- "schema/**/*.{json,}",
- "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}",
- "style/index.js"
- ],
- "main": "lib/index.js",
- "types": "lib/index.d.ts",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jupyterlab-contrib/spellchecker.git"
- },
- "scripts": {
- "build": "jlpm run build:lib && jlpm run build:labextension:dev",
- "build:prod": "jlpm run build:lib && jlpm run build:labextension",
- "build:labextension": "jupyter labextension build .",
- "build:labextension:dev": "jupyter labextension build --development True .",
- "build:lib": "tsc",
- "clean": "jlpm run clean:lib",
- "clean:lib": "rimraf lib tsconfig.tsbuildinfo",
- "clean:labextension": "rimraf jupyterlab_spellchecker/labextension",
- "clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
- "eslint": "eslint . --ext .ts,.tsx --fix",
- "eslint:check": "eslint . --ext .ts,.tsx",
- "install:extension": "jupyter labextension develop --overwrite .",
- "prepare": "jlpm run clean && jlpm run build:prod",
- "watch": "run-p watch:src watch:labextension",
- "watch:src": "tsc -w",
- "watch:labextension": "jupyter labextension watch ."
- },
- "dependencies": {
- "@jupyterlab/application": "^3.0.3",
- "@jupyterlab/apputils": "^3.0.2",
- "@jupyterlab/cells": "^3.0.3",
- "@jupyterlab/codemirror": "^3.0.2",
- "@jupyterlab/fileeditor": "^3.0.3",
- "@jupyterlab/notebook": "^3.0.3",
- "@jupyterlab/statusbar": "^3.0.2",
- "@jupyterlab/ui-components": "^3.0.2",
- "@lumino/widgets": "^1.16.1",
- "@types/codemirror": "0.0.87",
- "typo-js": "^1.1.0"
- },
- "devDependencies": {
- "@jupyterlab/builder": "^3.0.0",
- "@jupyterlab/translation": "^3.0.0",
- "@lumino/coreutils": "^1.8.0",
- "@typescript-eslint/eslint-plugin": "^4.8.1",
- "@typescript-eslint/parser": "^4.8.1",
- "eslint": "^7.14.0",
- "eslint-config-prettier": "^6.15.0",
- "eslint-plugin-prettier": "^3.1.4",
- "npm-run-all": "^4.1.5",
- "prettier": "^2.1.1",
- "rimraf": "^3.0.2",
- "typescript": "~4.1.3"
- },
- "jupyterlab": {
- "discovery": {
- "server": {
- "managers": [
- "pip",
- "conda"
- ],
- "base": {
- "name": "jupyterlab-spellchecker"
- }
- }
- },
- "extension": true,
- "schemaDir": "schema",
- "outputDir": "jupyterlab_spellchecker/labextension"
- },
- "styleModule": "style/index.js",
- "_registry": "npm",
- "_loc": "/home/jovyan/.cache/yarn/v6/.tmp/0f557d7fd1c78911b88705aa96f14692/package.json",
- "readmeFilename": "README.md",
- "readme": "# jupyterlab-spellchecker\n\n[![Extension status](https://img.shields.io/badge/status-ready-success \"ready to be used\")](https://jupyterlab-contrib.github.io/)\n[![Github Actions Status](https://github.com/jupyterlab-contrib/spellchecker/workflows/Build/badge.svg)](https://github.com/jupyterlab-contrib/spellchecker/actions)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyterlab-contrib/spellchecker/master?urlpath=lab)\n[![PyPI version](https://img.shields.io/pypi/v/jupyterlab-spellchecker.svg)](https://pypi.org/project/jupyterlab-spellchecker/)\n[![Conda version](https://img.shields.io/conda/vn/conda-forge/jupyterlab-spellchecker.svg)](https://anaconda.org/conda-forge/jupyterlab-spellchecker)\n\nA JupyterLab extension highlighting misspelled words in markdown cells within notebooks and in the text files.\n\n![](https://raw.githubusercontent.com/jupyterlab-contrib/spellchecker/master/demo.gif)\n\nThe JupyterLab extension is based on [the spellchecker Jupyter Notebook extension](https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tree/master/src/jupyter_contrib_nbextensions/nbextensions/spellchecker) and relies on [Typo.js](https://github.com/cfinke/Typo.js) for the actual spell checking.\nSpellchecker suggestions are available from the context menu. The style of the highlights can be customized in the *Advanced Settings Editor*.\n\nThe extension provides (Hunspell) [SCOWL](http://wordlist.aspell.net/) dictionaries for:\n- American, British, Canadian, and Australian English\n- French,\n- German (Germany, Austria, Switzerland)\n- Portuguese,\n- Spanish\n\nand will also use the Hunspell dictionaries installed in [known paths](https://github.com/jupyterlab-contrib/spellchecker/search?q=OS_SPECIFIC_PATHS) which vary by operating systems.\nIf you use JupyterLab in a browser running on a different computer than the jupyter server, please note that the dictionaries need to be installed on the server machine.\n\nYou can add custom dictionary by placing Hunspell files it in `dictionaries` folder in one of the `data` locations as returned by:\n\n```bash\njupyter --paths\n```\n\nYou should place two files with extensions `.aff` and `.dic`, and name following [BCP 47](https://datatracker.ietf.org/doc/html/rfc5646#section-2.1) standards.\nFor more details, please see the [example](#adding-dictionaries---example) below.\n\n## JupyterLab Version\nThe extension has been tested up to JupyterLab version 3.0.\n\n## Installation\n\nFor JupyterLab 3.x:\n\n```bash\npip install jupyterlab-spellchecker\n```\n\nor\n\n```bash\nconda install -c conda-forge jupyterlab-spellchecker\n```\n\nFor JupyterLab 2.x:\n\n```bash\njupyter labextension install @ijmbarr/jupyterlab_spellchecker\n```\n\n### Adding dictionaries - example\n\nIf `jupyter --paths` looks like:\n\n```\nconfig:\n /home/your_name/.jupyter\n /usr/local/etc/jupyter\n /etc/jupyter\ndata:\n /home/your_name/.local/share/jupyter\n /usr/local/share/jupyter\n /usr/share/jupyter\nruntime:\n /home/your_name/.local/share/jupyter/runtime\n```\n\nand you want to add Polish language, you would put `pl_PL.aff` and `pl_PL.dic` in `/home/your_name/.local/share/jupyter/dictionaries` (you will need to create this folder), so that the final structure looks similar to:\n\n```\n/home/your_name/.local/share/jupyter\n├── dictionaries\n│ ├── pl_PL.aff\n│ └── pl_PL.dic\n├── kernels\n│ └── julia-1.5\n│ ├── kernel.json\n│ ├── logo-32x32.png\n│ └── logo-64x64.png\n├── nbconvert\n│ └── templates\n│ ├── html\n│ └── latex\n├── nbsignatures.db\n├── notebook_secret\n└── runtime\n```\n\n#### Where to get the dictionaries from?\n\nSome good sources of dictionaries include:\n- [LibreOffice/dictionaries](https://github.com/LibreOffice/dictionaries) GitHub repository\n- [Chromium](https://chromium.googlesource.com/chromium/deps/hunspell_dictionaries/+/master) repository\n- (if you know of any other quality resources please send a PR to add them here)\n\n#### Using online dictionaries\n\nAn alternative to saving the dictionary on your own disk (or more accurately on the disk where jupyter-server is set up)\nis fetching the dictionaries from a remote URL. This requires an Internet connection to load the dictionary\n(each time when you open JupyterLab or change the dictionary), and might be useful if you are not able\nto save dictionaries on disk (e.g. when using JupyterLab on JupyterHub configured by someone else).\n\nTo configure the online dictionaries go to *Advanced Settings Editor* → *Spellchecker*\nand set `onlineDictionaries` to an array of JSON objects like in the example below:\n\n```json\n[\n {\n \"id\": \"en_US-online\",\n \"aff\": \"https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.aff\",\n \"dic\": \"https://cdn.jsdelivr.net/codemirror.spell-checker/latest/en_US.dic\",\n \"name\": \"My favorite variant of English\"\n }\n]\n```\n\n## Contributing\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the jupyterlab_spellchecker directory\n# Install package in development mode\npip install -e .\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm run build\npip install pytest\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm run watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\n### Before commit\n\nMake sure that eslint passes:\n\n```bash\njlpm run eslint:check\n```\n\nIf there are any issues it might be possible to autofix them with:\n\n```bash\njlpm run eslint\n```\n\nRun tests:\n\n```bash\npython -m pytest\n```\n",
- "licenseText": "BSD 3-Clause License\n\nCopyright (c) 2020, ijmbarr All rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n this list of conditions and the following disclaimer in the documentation\n and/or other materials provided with the distribution.\n\n* Neither the name of the copyright holder nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
- },
- "artifacts": [],
- "remote": {
- "type": "tarball",
- "reference": "file:../extensions/ijmbarr-jupyterlab_spellchecker-0.7.2.tgz",
- "registry": "npm",
- "hash": "",
- "cacheIntegrity": "sha1-NqxH7SNfW8U3T1qy/gbdMRjXWQg="
- },
- "registry": "npm",
- "hash": "36ac47ed235f5bc5374f5ab2fe06dd3118d75908"
- }
|