Kashida 1.2.2
dotnet add package Kashida --version 1.2.2
NuGet\Install-Package Kashida -Version 1.2.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Kashida" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Kashida" Version="1.2.2" />
<PackageReference Include="Kashida" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Kashida --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Kashida, 1.2.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Kashida@1.2.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Kashida&version=1.2.2
#tool nuget:?package=Kashida&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Kashida || كـــشـــيـــدة
A lightweight C# utility to add or remove Arabic Kashida (elongation) while safely preserving diacritics.
📦 Installation
dotnet add package Kashida
✅ Example Usage
using Kashida;
var text = "السَّلَامُ عَلَيْكُمْ";
// Add Kashida
var elongated = text.ApplyKashida(); // الـسَّـلَامُ عَـلَـيْـكُـمْ
// Remove Kashida
var cleared = elongated.ClearKashida(); // السَّلَامُ عَلَيْكُمْ
✨ API Reference
string ApplyKashida(this string text, int kashidaCount = 1)
Adds Kashida to elongatable letters while respecting Arabic joining rules and diacritics.
Parameters
text: The input string.kashidaCount: Number of Kashida characters to insert. Default is 1.
Returns
- A new string with Kashida inserted where valid.
Behavior notes
- Kashida is inserted only between letters that can connect.
- Diacritics after a letter are kept and Kashida is inserted after them.
- The ligature "لا" is excluded.
string ClearKashida(this string text)
Removes all Kashida characters from the input while preserving diacritics.
Parameters
text: The input string.
Returns
- A new string without Kashida characters.
📌 Supported Unicode Range
- Arabic block:
U+0600→U+06FF - Diacritics:
U+064B→U+0652, plusU+0653,U+0654
🧾 License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.2.2 | 52 | 6/1/2026 | |
| 1.2.1 | 49 | 5/31/2026 | |
| 1.2.0 | 57 | 5/31/2026 | |
| 1.0.1 | 66 | 5/31/2026 | |
| 1.0.0 | 66 | 5/31/2026 | |
| 0.1.2-beta | 56 | 5/31/2026 | |
| 0.1.1-beta | 333 | 11/21/2025 | |
| 0.1.0-beta | 317 | 11/21/2025 |