Skip to content
Devix Open Source

Type a title

Watch what four other libraries do with Arabic, Persian and Urdu — and what happens when you keep the script instead.

Live preview
<div class="demo demo--wide">
  <div class="demo-field">
    <label class="demo-label" for="title">A title</label>
    <input class="demo-input" id="title" value="مرحبا بالعالم">
  </div>

  <div class="demo-row">
    <div class="demo-seg" id="lang" role="group" aria-label="Language">
      <button type="button" data-lang="ar" aria-pressed="true">Arabic</button>
      <button type="button" data-lang="fa">Persian</button>
      <button type="button" data-lang="ur">Urdu</button>
    </div>
    <button class="demo-btn demo-btn--ghost" data-try="مَرْحَبًا بِالْعَالَمِ">With vowel marks</button>
    <button class="demo-btn demo-btn--ghost" data-try="می‌روم به خانه">Persian, joined</button>
    <button class="demo-btn demo-btn--ghost" data-try="مدرسة القاهرة">Ta marbuta</button>
  </div>

  <dl class="demo-kv" id="out"></dl>
  <p class="demo-hint" id="note"></p>
</div>