mesdan 1.1.6 → 1.1.7
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/package.json
CHANGED
|
@@ -66,8 +66,14 @@ export const OsmaniMesdanEki = () => {
|
|
|
66
66
|
const node = anchor.getNode();
|
|
67
67
|
const marMetin = node.getTextContent().slice(0, offset);
|
|
68
68
|
const marHarf = marMetin.slice(-1);
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
if (marHarf === 'ا' && ca.toLowerCase() === 'a') {
|
|
70
|
+
selection.deleteCharacter(true);
|
|
71
|
+
selection.insertText('آ'); // Medli Elif
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
const osmanliHarf = harfLatinidenOsmaniye(ca, marHarf, shiftKey, altKey);
|
|
75
|
+
selection.insertText(osmanliHarf);
|
|
76
|
+
}
|
|
71
77
|
});
|
|
72
78
|
return true;
|
|
73
79
|
}
|