taraskevizer 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -169,7 +169,7 @@ $ npm i -g taraskevizer
169
169
  ## Usage
170
170
 
171
171
  ```bash
172
- $ taraskevize "планета"
172
+ $ tarask "планета"
173
173
  ```
174
174
 
175
175
  ## Options
@@ -178,14 +178,15 @@ $ taraskevize "планета"
178
178
  # Alpabet
179
179
  --latin (-l)
180
180
  --arabic (-a)
181
- # When to replace і by й after vowels
181
+ # When to replace і(i) by й(j) after vowels
182
182
  --jrandom (-jr)
183
183
  --jalways (-ja)
184
- # Do replace ґ(g) by г(h) in cyrillic alphabet?
184
+ # Replace ґ(g) by г(h) in cyrillic alphabet
185
185
  --h (-h)
186
186
  # Variations
187
187
  --no-variations (-nv)
188
188
  --first-variation-only (-fvo)
189
189
  # Other
190
190
  --no-color (-nc)
191
+ --html (-html) # options except alphabet and j will be ignored
191
192
  ```
package/dist/index.cjs CHANGED
@@ -2092,12 +2092,12 @@ function toTags(text, orig, abc, applyF) {
2092
2092
  continue;
2093
2093
  if (!/\(/.test(word)) {
2094
2094
  if (word.length === oWord.length) {
2095
- const LettersText = word.split("");
2096
- for (let x = 0; x < LettersText.length; x++) {
2097
- if (LettersText[x] !== oWord[x])
2098
- LettersText[x] = applyF(LettersText[x]);
2095
+ const wordLetters = word.split("");
2096
+ for (let j = 0; j < wordLetters.length; j++) {
2097
+ if (wordH[j] !== oWord[j])
2098
+ wordLetters[j] = applyF(wordLetters[j]);
2099
2099
  }
2100
- text[i] = LettersText.join("");
2100
+ text[i] = wordLetters.join("");
2101
2101
  continue;
2102
2102
  }
2103
2103
  if (abc === CYRILLIC) {
package/dist/index.js CHANGED
@@ -2065,12 +2065,12 @@ function toTags(text, orig, abc, applyF) {
2065
2065
  continue;
2066
2066
  if (!/\(/.test(word)) {
2067
2067
  if (word.length === oWord.length) {
2068
- const LettersText = word.split("");
2069
- for (let x = 0; x < LettersText.length; x++) {
2070
- if (LettersText[x] !== oWord[x])
2071
- LettersText[x] = applyF(LettersText[x]);
2068
+ const wordLetters = word.split("");
2069
+ for (let j = 0; j < wordLetters.length; j++) {
2070
+ if (wordH[j] !== oWord[j])
2071
+ wordLetters[j] = applyF(wordLetters[j]);
2072
2072
  }
2073
- text[i] = LettersText.join("");
2073
+ text[i] = wordLetters.join("");
2074
2074
  continue;
2075
2075
  }
2076
2076
  if (abc === CYRILLIC) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "taraskevizer",
3
3
  "author": "GooseOb",
4
4
  "license": "MIT",
5
- "version": "1.2.1",
5
+ "version": "1.2.3",
6
6
  "private": false,
7
7
  "homepage": "https://gooseob.github.io/taraskevizatar/",
8
8
  "main": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "types": "dist/index.d.ts",
11
11
  "type": "module",
12
12
  "bin": {
13
- "taraskevize": "./bin/index.js"
13
+ "tarask": "./bin/index.js"
14
14
  },
15
15
  "files": [
16
16
  "dist/**/*",
@@ -28,6 +28,7 @@
28
28
  "type": "git",
29
29
  "url": "git+https://github.com/GooseOb/taraskevizer.git"
30
30
  },
31
+ "description": "Канвэртацыя акадэмічнага правапісу ў клясычны",
31
32
  "keywords": [
32
33
  "taraskevizatar",
33
34
  "taraskevica",