bindu 2.0.1 → 2.0.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/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2026.10.15, v2.0.3
2
+
3
+ feature:
4
+ - c7f8854 sandhi: ac: apply-dirgha: improve
5
+
6
+ 2026.10.15, v2.0.2
7
+
8
+ feature:
9
+ - b3eae40 sandhi: ac: apply-purvarupa: improve
10
+
1
11
  2026.10.15, v2.0.1
2
12
 
3
13
  feature:
@@ -6,7 +6,7 @@ const {remove} = operator;
6
6
  export const report = () => `akaḥ savarṇe dīrghaḥ`;
7
7
 
8
8
  export const fix = ({path, next, name, nextName, dirgha}) => {
9
- path.node.name = `${name.slice(0, -1)}${dirgha}${nextName.slice(-1)}`;
9
+ path.node.name = `${name.slice(0, -1)}${dirgha}${nextName.slice(1)}`;
10
10
  remove(next);
11
11
  };
12
12
 
@@ -61,13 +61,7 @@ export const traverse = ({push}) => ({
61
61
  .at(0)
62
62
  .toLowerCase();
63
63
 
64
- if (!/[aiuefxAIUEOoFX]/.test(last))
65
- return;
66
-
67
- if (first === 'a' && lastLow === 'e')
68
- return;
69
-
70
- if (first === 'a' && lastLow === 'o')
64
+ if (!/[aiufxAIU]/.test(last))
71
65
  return;
72
66
 
73
67
  if (lastLow === first && DIRGHA[last]) {
@@ -82,7 +76,7 @@ export const traverse = ({push}) => ({
82
76
  return;
83
77
  }
84
78
 
85
- if (YAN[last] && /[aiueoAIUEOfx]/.test(first)) {
79
+ if (YAN[last] && /[aie]/.test(first)) {
86
80
  push({
87
81
  path,
88
82
  next,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bindu",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Pāṇini Aṣṭādhyāyī",
5
5
  "main": "lib/bindu.js",
6
6
  "bin": {