Duba (Ψ―ΩΨ¨Ω) is an ultra-lightweight, zero-dependency, offline-first web utility designed to convert Unicode code points into characters/emojis and vice-versa. Specifically crafted for restricted environments (e.g., student tablets with Knox restrictions, enterprise kiosks, isolated lab environments) where custom soft-keyboards and emojis are blocked.
- Offline-First & Zero Dependencies: Pure HTML5, CSS3, and ES6+ JavaScript. Functions smoothly directly via
file://protocol without any local web server or internet connection. - Auto-Detect Bidirectional Converter:
- Converts Unicode code point inputs (
U+1F600,1f600,\u1F600,\u{1F600},😀,😀,0x1F600) directly into characters/emojis. - Converts characters/emojis directly into formatted Unicode Hex, HTML Entity, CSS Escape, and Decimal formats.
- Converts Unicode code point inputs (
- One-Click Copy with Clipboard Fallback: Tap/click any result tile to copy it immediately to clipboard (uses
navigator.clipboardwith an automaticdocument.execCommand('copy')fallback for locked/legacy browsers). - Quick Symbol Palette (CheatSheet Grid): Curated grid of commonly blocked or hard-to-type symbols across categories:
- Islamic / Arabic:
ο·Ί,ο·»,ο·½ - Math & Science:
Ο,β,β,β,β,Β±,Β°,Ξ© - Utility & UI:
β,β,β,β,Β©,β’,β - Common Emojis:
π,π,π₯,β€οΈ,β¨,πΏ
- Islamic / Arabic:
- Bilingual & RTL Support: Instant UI toggle between English (
en) and Arabic (ar) with full right-to-left (rtl) layout adjustment. Embedded inline translation fallback dictionary ensures it never fails onfile://URLs. - Responsive & Dark Mode First: Touch targets optimized for tablets (minimum 44x44px) with automatic theme toggling.
- Download or clone this repository.
- Double-click
index.htmlto open directly in any modern browser (file://.../index.html). - No build step, node modules, or server required!
Run the test suite using Node.js:
node tests/test_converter.js
node tests/test_i18n.jsβββ locales/
β βββ en.json
β βββ ar.json
βββ src/
β βββ css/
β β βββ style.css
β βββ js/
β βββ converter.js
β βββ i18n.js
β βββ app.js
βββ tests/
β βββ test_converter.js
β βββ test_i18n.js
βββ index.html
βββ .gitattributes
βββ LICENSE-APACHE
βββ LICENSE-MIT
βββ README.md
Duba is open-source software licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.