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" />
                    
Directory.Packages.props
<PackageReference Include="Kashida" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=Kashida&version=1.2.2
                    
Install as a Cake Tool

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+0600U+06FF
  • Diacritics: U+064BU+0652, plus U+0653, U+0654

🧾 License

MIT

Product 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.