Skip to content

Add Persian short month names for %b - #180

Merged
slashmili merged 2 commits into
slashmili:mainfrom
amir-pashayi:add-fa-short-month-names
Jun 2, 2026
Merged

slashmili merged 2 commits into
slashmili:mainfrom
amir-pashayi:add-fa-short-month-names

Conversation

@amir-pashayi

Copy link
Copy Markdown
Contributor

Summary

Adds dedicated Persian short month names for the %b directive.

Previously, %b used full Persian month names, the same as %B. This change keeps %B unchanged and makes %b return shorter names such as فرو, ارد, and خرد.

Tests

python -m pytest
126 passed, 3 skipped

Closes #168

@slashmili

Copy link
Copy Markdown
Owner

Thanks @amir-pashayi,

I'm not sure if it's common to see "فرو" as short form of "فرودین"? Or do you see it people use it calendars or in websites?

@amir-pashayi

Copy link
Copy Markdown
Contributor Author

Thanks for checking.

You're right, I don't think these are official or widely standardized abbreviations. I used this style after seeing similar short month names on a Persian desk calendar in a cafe, mainly for limited-space calendar/UI layouts.

The intention is only to make %b useful as a short-month directive while keeping %B unchanged. I'm happy to adjust the exact short names if you prefer a different set.

@slashmili

Copy link
Copy Markdown
Owner

Ok thanks for explanation. Could you please fix the merge conflict and I'll merge it.

@amir-pashayi

Copy link
Copy Markdown
Contributor Author

Fixed the merge conflict. Thanks again!

@slashmili
slashmili merged commit 9eda62a into slashmili:main Jun 2, 2026
13 checks passed
@slashmili

Copy link
Copy Markdown
Owner

Thanks

@slashmili

Copy link
Copy Markdown
Owner

Published as 6.0.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add %b supoort

2 participants