Dodatki do przeglądarki Firefox
  • Rozszerzenia
  • Motywy
    • do Firefoksa
    • Słowniki i pakiety językowe
    • Inne strony
    • Dodatki na Androida
Zaloguj się
Podgląd „Parsi RTL”

Parsi RTL Autor: Amir SHIRALI POUR

Correct text direction and Persian font for RTL languages on any site — script-ratio detection, not first-strong guessing.

Dostępne w Firefoksie na Androida™Dostępne w Firefoksie na Androida™
0 (recenzje: 0)0 (recenzje: 0)
Pobierz Firefoksa i to rozszerzenie
Pobierz plik
Zeskanuj kod QR, aby otworzyć to rozszerzenie w przeglądarce Firefox dla Androida

Metadane rozszerzenia

O tym rozszerzeniu
Right-aligned is not right-to-left.

The usual fix for RTL text on the web is unicode-bidi: plaintext, which applies
the Unicode first-strong rule: a paragraph takes its direction from its first
strongly-directional character. That is wrong for the most common Persian
sentence shape — one that opens with an English technical term:

Gemini web app رو Google سرو میکند (تو نمیتونی local app رو modify کنی)


First-strong sees the "G", lays the entire line out left-to-right, and the
trailing parenthesis and clause order visually scramble. You end up reading a
Persian sentence from the wrong end.

Parsi RTL decides the direction of every block by SCRIPT RATIO instead: a
Persian sentence carrying English terms stays right-to-left, an English sentence
with one Persian word stays left-to-right. The decision is written onto the
element as a real dir attribute, so caret movement, text selection and
punctuation mirroring follow it too — things a CSS-only fix cannot reach.

WHAT IT DOES

• Every RTL script, not just Persian — Arabic, Urdu, Pashto, Kurdish, Sindhi,
Hebrew, Syriac, Thaana, N'Ko, Adlam.
• Works while answers stream in. AI chat replies arrive token by token, so a
one-shot pass on page load fixes nothing; a frame-batched observer keeps up
without the per-token slowdown a naive script causes.
• Your code blocks stay left-to-right — including inline code inside an RTL
sentence, and tables.
• The composer follows what you type: the input's direction updates live.
• Vazirmatn is bundled and applied only to blocks judged RTL, so icon fonts
survive. A checkbox turns the font off while keeping the direction fix.
• Per-site off switch, from the popup or with Alt+R (macOS: Option+R).
• Right-click any block to force its direction by hand; the automatic pass never
overrides your choice.
• The popup reports whether the script is live in the tab and how many blocks it
switched — you can always tell it is working.

PRIVACY

No network requests, no analytics, no account. The font ships inside the
extension instead of being fetched from a CDN. The only stored values are your
per-site off list and the font checkbox, in local storage on your machine.

Open source: https://github.com/su6i/parsi-rtl
Ocenione na 0 przez 0 recenzentów
Zaloguj się, aby ocenić to rozszerzenie
Nie ma jeszcze ocen

Zapisano ocenę w gwiazdkach

5
0
4
0
3
0
2
0
1
0
Nie ma jeszcze recenzji
Uprawnienia i dane

Wymagane uprawnienia:

  • Mieć dostęp do danych użytkownika na wszystkich stronach

Zbieranie danych:

  • Autorzy tego rozszerzenia twierdzą, że nie wymaga ono zbierania danych.
Więcej informacji
Więcej informacji
Odnośniki dodatku
  • Domowa
  • Pomoc
  • Skopiuj identyfikator dodatku
Wersja
1.0.0
Rozmiar
138,8 KB
Ostatnia aktualizacja
4 dni temu (18 sie 2026)
Powiązane kategorie
  • Modyfikacje interfejsu
  • Narzędzia językowe
Licencja
Licencja MIT
Prywatność
Zasady ochrony prywatności tego dodatku
Historia wersji
  • Wszystkie wersje
Dodaj do kolekcji
Zgłoś ten dodatek
Strona domowa Mozilli

Dodatki

  • O serwisie
  • Blog dodatków do Firefoksa
  • Warsztat rozszerzeń
  • Strefa autora
  • Zasady programistów
  • Blog społeczności
  • Forum
  • Zgłoś błąd
  • Wytyczne recenzji

Pobieranie

  • Download Firefox
  • Windows
  • macOS
  • iOS
  • Android
  • Linux
  • All

Najnowsze kompilacje

  • Nightly
  • Beta

Firefox dla firm

  • Enterprise

Społeczność

  • Connect
  • Contribute
  • Developer

Obserwuj nas

  • Instagram
  • YouTube
  • TikTok
  • Bluesky
  • Podcast
  • Prywatność
  • Ciasteczka
  • Kwestie prawne

O ile nie wskazano inaczej, treść tej strony jest dostępna na warunkach licencji Creative Commons Attribution Share-Alike w wersji 3.0 lub nowszej. Android jest znakiem towarowym firmy Google LLC.