Intervention / Intervention/image

Persian text results in reversed order of lines when using `wrap()`

Open
#1,396 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
14.4k
Forks
1.5k
Avg merge
17h 51m
Merged PRs (30d)
11

Description

Hello, I checked that in Farsi language, it reverses the text when warping

1807641428114306

Its correct form should be as below

من
سبحان قادری
نسب هستم

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with wrap() and the Persian sample shown in the report, then trace the text-wrapping and rendering entry point. Compare the generated line order with the expected three lines; done means Persian text is rendered in the reported order without regressing other wrapped text.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.