Hayyan60 downloadsFormat selected Arabic poetry into paired or indented hemistich layouts.
An Obsidian plugin that formats selected Arabic poetry into two classic layouts. It provides fine-grained control over spacing and alignment so verses remain readable in your notes.
Two formatting modes:
Smart alignment: Uses a combination of character counting and visual width estimation to create clean alignment for proportional Arabic fonts.
Full customization:
Multiple ways to use: Access the formatters through the command palette, the right-click context menu, or the customizable ribbon icon.
Select text: In the editor, highlight the lines of Arabic poetry you want to format. The plugin expects each hemistich to be on its own line.
Choose a formatter:
Ctrl/Cmd + P and search for Format Arabic poetry (paired) or Format Arabic poetry (indented).Original text:
واحر قلباه ممن قلبه شبم
ومن بجسمي وحالي عنده سقم
مالي أكتم حبا قد برى جسدي
وتدعي حب سيف الدولة الأمم
Paired format output:
واحر قلباه ممن قلبه شبم ومن بجسمي وحالي عنده سقم
مالي أكتم حبا قد برى جسدي وتدعي حب سيف الدولة الأمم
Indented format output:
واحر قلباه ممن قلبه شبم
ومن بجسمي وحالي عنده سقم
مالي أكتم حبا قد برى جسدي
وتدعي حب سيف الدولة الأمم
You can customize the plugin's behavior by going to Settings -> Community plugins -> Arabic Poetry Formatter.
Format paired or Format indented) is performed when you click the ribbon icon.Arabic Poetry Formatter works entirely inside Obsidian. It does not use the network, collect telemetry, show ads, require accounts or payments, or access files outside your vault.
This plugin is released under the MIT License. See the LICENSE file for more details.