{"id":18925567,"url":"https://github.com/nightmachinery/rtl_reshaper_rs","last_synced_at":"2025-09-14T04:41:51.625Z","repository":{"id":49991486,"uuid":"348435347","full_name":"NightMachinery/rtl_reshaper_rs","owner":"NightMachinery","description":"A CLI tool to reshape and reorder bi-directional, Arabic/Persian text for display in apps that do not support them natively","archived":false,"fork":false,"pushed_at":"2023-12-15T02:59:07.000Z","size":49,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-14T04:41:51.463Z","etag":null,"topics":["arabic","arabic-language","aranic-reshaper","bidi","bidirectional","cli","cli-app","ligatures","persian","persian-language","persian-reshaper","persian-script","right-to-left","rtl","rust","text-shaping","unicode"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NightMachinery.png","metadata":{"files":{"readme":"readme.org","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-16T17:28:36.000Z","updated_at":"2023-05-18T11:25:51.000Z","dependencies_parsed_at":"2024-11-08T11:12:30.963Z","dependency_job_id":"27734ba3-a8b7-49d4-a6f9-38ac2b5a727c","html_url":"https://github.com/NightMachinery/rtl_reshaper_rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NightMachinery/rtl_reshaper_rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Frtl_reshaper_rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Frtl_reshaper_rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Frtl_reshaper_rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Frtl_reshaper_rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NightMachinery","download_url":"https://codeload.github.com/NightMachinery/rtl_reshaper_rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NightMachinery%2Frtl_reshaper_rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275062968,"owners_count":25398888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arabic","arabic-language","aranic-reshaper","bidi","bidirectional","cli","cli-app","ligatures","persian","persian-language","persian-reshaper","persian-script","right-to-left","rtl","rust","text-shaping","unicode"],"created_at":"2024-11-08T11:12:21.789Z","updated_at":"2025-09-14T04:41:51.580Z","avatar_url":"https://github.com/NightMachinery.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: rtl_reshaper_rs\n\n=rtl_reshaper_rs= is a CLI tool that uses rust libraries =arabic_reshaper= and =unic-bidi= to reshape and reorder bi-directional, Arabic/Persian text for display in apps that do not support them natively.\n* Installation\n#+begin_example zsh\ncargo install --git https://github.com/NightMachinary/rtl_reshaper_rs --force\n#+end_example\nOr (not recommended):\n#+begin_example zsh\ncargo install rtl_reshaper_rs\n#+end_example\n* Usage\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho 'من غذا خوردم.' $'\\n' 'خانه خالی و hollow است ... :)' | rtl_reshaper_rs\necho $'\\n'\n#+end_src\n\n#+RESULTS:\n#+begin_example\n\n .ﻡﺩﺭﻮﺧ ﺍﺬﻏ ﻦﻣ\n): ... ﺖﺳﺍ hollow ﻭ ﯽﻟﺎﺧ ﻪﻧﺎﺧ\n\n#+end_example\n\n[[file:readme.org_imgs/20210316_211212_rq0bk5.png]]\n* Alternatives\n** http://fribidi.org/\n*** https://github.com/NightMachinary/bicon\n**** https://github.com/behdad/bicon\n** [[https://github.com/NightMachinary/.shells/blob/master/scripts/python/RTL/rtl_reshaper.py][Python version]] (less buggy but much slower)\n** Benchmarks\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\ncd ~/code/data/sharif_course_list || return $?\nhyperfine --warmup=6 'ls -l | rtl_reshaper_rs' 'ls -l | rtl_reshaper.py'\n#+end_src\n\n#+RESULTS:\n#+begin_example\nBenchmark #1: ls -l | rtl_reshaper_rs\n  Time (mean ± σ):      24.2 ms ±  12.9 ms    [User: 14.8 ms, System: 8.3 ms]\n  Range (min … max):    13.9 ms …  91.3 ms    91 runs\n\n  Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet PC without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.\n\nBenchmark #2: ls -l | rtl_reshaper.py\n  Time (mean ± σ):      1.310 s ±  0.137 s    [User: 751.1 ms, System: 317.7 ms]\n  Range (min … max):    1.051 s …  1.489 s    10 runs\n\nSummary\n  'ls -l | rtl_reshaper_rs' ran\n   54.07 ± 29.28 times faster than 'ls -l | rtl_reshaper.py'\n#+end_example\n\n* Known issues\n** Upstream\n*** +[[https://github.com/sigmaSd/arabic-reshaper-rs/issues/2][Character 'e' is dropped · Issue #2 · sigmaSd/arabic-reshaper-rs]]+\n*** Newlines are ordered weirdly:\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho A$'\\n'B | rtl_reshaper_rs | cat -n\n#+end_src\n\n#+RESULTS:\n#+begin_example\n     1\tA\n     2\tB\n#+end_example\n\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho ب$'\\n'ن | rtl_reshaper_rs | cat -n\n#+end_src\n\n#+RESULTS:\n#+begin_example\n     1\n     2\tﺏ\n     3\tﻥ\n#+end_example\n\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho ب$'\\n'ن | rtl_reshaper.py | cat -n\n#+end_src\n\n#+RESULTS:\n#+begin_example\n     1\tﺏ\n     2\tﻥ\n#+end_example\n\n*** Punctuation marks are ordered wrongly:\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho \"بد :)\" | rtl_reshaper_rs\n#+end_src\n\n#+RESULTS:\n#+begin_example\n\n): ﺪﺑ\n#+end_example\n\n#+begin_src bsh.dash :results verbatim :exports both :wrap example\necho \"بد :)\" | rtl_reshaper.py\n#+end_src\n\n#+RESULTS:\n#+begin_example\n(: ﺪﺑ\n#+end_example\n\n* License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Frtl_reshaper_rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnightmachinery%2Frtl_reshaper_rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnightmachinery%2Frtl_reshaper_rs/lists"}