From 2a062d95064dfe3ee8db60c4349272a270951887 Mon Sep 17 00:00:00 2001 From: Viktor Mukhachev Date: Wed, 6 Nov 2024 10:07:02 +0100 Subject: [PATCH] correct grammar --- README.md | 15 ++++++++++----- example.html | 4 ++-- package.json | 4 ++-- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 9d98211..71fa26d 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -A JavaScript to transform MathML into a AsciiMath during "copy" and "dragstart" events. -See the [example.html](https://yaffle.github.io/mathml-to-clipboard/example.html). +A JavaScript code to transform MathML into AsciiMath during "copy" and "dragstart" events. +See [example.html](https://yaffle.github.io/mathml-to-clipboard/example.html). -This allows the user to select part of rendered MathML on a page, then copy and paste the selection or use Drag and Drop. -The selection is serialied to a plain text string as AsciiMath. +This allows the user to select a part of the rendered MathML on a page, then copy and paste the selection or use drag-and-drop. +The selection is serialized to a plain text string as AsciiMath. -The script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills like https://github.com/fred-wang/mathml.css/ . +The script only handles MathML tags, so MathJax may not always be supported. It works with MathML polyfills, such as https://github.com/fred-wang/mathml.css/ . Usage: @@ -14,3 +14,8 @@ Usage: npm install Yaffle/mathml-to-clipboard npm run-script build ``` +Then add the script to your html page: +```html + +``` +It will set the "copy" and "dragstart" event handlers on the document. diff --git a/example.html b/example.html index ba0803e..8287062 100644 --- a/example.html +++ b/example.html @@ -9,7 +9,7 @@

- Try to select the next MathML block or it's part with text selection, then copy (Ctrl+C) and paste into a text editor: + Try selecting the next MathML block or a part of it with text selection, then copy (Ctrl+C) and paste into a text editor:

@@ -52,7 +52,7 @@

- You may also try to drag and drop the selection instead of using the clipboard. + You can also try dragging and dropping the selection instead of using the clipboard.

diff --git a/package.json b/package.json index 88e1cfa..314c269 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,9 @@ "url": "https://github.com/Yaffle/mathml-to-clipboard/issues" }, "name": "mathml-to-clipboard", - "description": "A copy event handler for a web application to transform MathML into AsciiMath and put into the clipboard.", + "description": "A copy event handler for a web application that transforms MathML into AsciiMath and places it into the clipboard.", "homepage": "https://github.com/Yaffle/mathml-to-clipboard#readme", - "version": "1.0.3", + "version": "1.0.4", "license": "ISC", "main": "dist/main.js", "devDependencies": {