Skip to content
M5DevsPublic

About

A lightweight, zero-dependency, offline-first Unicode converter & symbol palette. Easily convert between hex codes and characters/emojisβ€”designed for restricted environments. 🐻⚑

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Duba πŸ“Œ

License: Dual MIT/Apache-2.0 Vanilla JS Dependencies Offline First Crowdin

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.


✨ Features

  • 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.
  • One-Click Copy with Clipboard Fallback: Tap/click any result tile to copy it immediately to clipboard (uses navigator.clipboard with an automatic document.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: πŸ˜‚, πŸ’€, πŸ”₯, ❀️, ✨, πŸ—Ώ
  • 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 on file:// URLs.
  • Responsive & Dark Mode First: Touch targets optimized for tablets (minimum 44x44px) with automatic theme toggling.

πŸš€ Quick Start / Usage

Running Locally (Double Click)

  1. Download or clone this repository.
  2. Double-click index.html to open directly in any modern browser (file://.../index.html).
  3. No build step, node modules, or server required!

Testing

Run the test suite using Node.js:

node tests/test_converter.js
node tests/test_i18n.js

πŸ“ Repository Structure

β”œβ”€β”€ 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

πŸ“„ License

Duba is open-source software licensed under either of:

at your option.

About

A lightweight, zero-dependency, offline-first Unicode converter & symbol palette. Easily convert between hex codes and characters/emojisβ€”designed for restricted environments. 🐻⚑

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages