Bidirectional conversion
Switch cleanly between InPage → Unicode and Unicode → InPage using separate,
purpose-built contextual mapping tables rather than lossy 1:1 dictionary reversals.
Free & open source · 100% offline desktop app
Convert legacy InPage Urdu text into modern Unicode — and back — without losing a single character. Built for Windows 10 & 11 with a raw Win32 clipboard bypass, bundled Noto Nastaliq Urdu rendering, and zero cloud uploads.
For years, InPage was the standard for Urdu books, newspapers, and office documents — long before Unicode became universal. Instead of semantic characters, InPage stores text using a proprietary 2-byte glyph encoding tied to CP-1252. Paste it directly into Microsoft Word or a browser and you get unreadable gibberish.
Online converters come with two serious drawbacks: you have to upload private manuscripts to third-party
servers, and Windows' default clipboard translation silently strips critical legacy bytes like the
non-breaking space (\xa0, which represents the letter Noon).
InPage ↔ Unicode Urdu Converter solves both by running 100% locally on Windows and
reading raw CF_TEXT clipboard bytes directly through the Win32 API.
\xa0) via Win32 ctypes
A fast, offline-first PyQt5 desktop app packaged as a single standalone Windows installer.
Copy text from InPage and click Paste from Clipboard. A native Win32 ctypes
hook reads raw CF_TEXT CP-1252 bytes directly, preventing Windows from stripping non-breaking
spaces (\xa0).
The mapping engine processes 2-byte isolated, initial, medial, and final glyph forms, resolves
Heh-Hamza (ۂ), nested diacritics, Noon-Ghunna, and Bari Yee, and reverses LTR digit runs
automatically.
Converted Urdu renders immediately in Right-to-Left layout using the bundled Noto Nastaliq
Urdu font. Copy straight into Word or save directly to a UTF-8 (or CP-1252) .txt
file.
Engineered around the real quirks of InPage's legacy byte encoding and Windows clipboard handling.
Switch cleanly between InPage → Unicode and Unicode → InPage using separate,
purpose-built contextual mapping tables rather than lossy 1:1 dictionary reversals.
Overrides standard paste behavior with native Windows CF_TEXT byte reads so crucial
InPage glyph markers like \xa0 (Noon) are never silently corrupted.
Zero internet requests, zero analytics, and zero cloud uploads. Safe for unpublished books, legal archives, exam papers, and confidential office documents.
Registers Google's open-source Noto Nastaliq Urdu font dynamically at runtime and switches output to native Right-to-Left (RTL) — no extra system fonts needed.
Handles Heh-Hamza (ۂ) round-trips, diacritics (zabar, zer, pesh, shadda) sitting between
base letters and Hamza, Bari Yee contextual forms, and Kashida cleanup.
Corrects reversed numeric runs from legacy InPage text and optionally inserts clean spaces after
English/Urdu commas (,, ،) and digits (0-9, ۰-۹).
Collapse consecutive double spaces or add extra spacing after every word for custom Urdu typesetting directly from the main window checkboxes.
Tick Also save to file to export straight to .txt — automatically written
in UTF-8 for Unicode output or CP-1252 (latin-1) for legacy InPage workflows.
Starts in under 1.5 seconds, shows live character counts, prevents empty conversions, and warns if the selected conversion direction doesn't match the pasted text.
Whether you're migrating a 300-page book or fixing one copied paragraph, it stays out of your way.
Digitize legacy InPage books, magazines, and newspaper archives into clean Unicode for web & print.
Bulk-readyConvert old InPage thesis chapters and manuscripts to edit comfortably in Word or Google Docs.
OfflineMigrate decades of internal office Urdu archives into modern databases and CMS platforms securely.
Zero cloudFix gibberish CP-1252 pasted Urdu text in seconds without hunting for ad-heavy online tools.
Free foreverEvery formatting rule is available as a checkbox in the Windows app and as a
reusable option in mapping/glyph_map.py.
# Use the conversion engine directly in Python
from mapping.glyph_map import (
inpage_to_unicode,
unicode_to_inpage,
)
unicode_text = inpage_to_unicode(
raw_inpage_bytes,
remove_double_space=True,
add_word_space=False,
add_comma_number_space=True,
)
| Option | Direction | What it does |
|---|---|---|
remove_double_space | Both | Collapses consecutive multiple spaces into a single clean space. |
add_word_space | Both | Appends an extra space after every word for custom Urdu typesetting layouts. |
add_comma_number_space | Both | Inserts a space after commas
(,, ،) and numeric runs (0-9, ۰-۹). |
| Also save to file | Both | Exports directly to .txt
using UTF-8 (Unicode) or CP-1252 (InPage ANSI). |
Grab the latest InPageUnicodeConverter-Setup-1.1.2.exe from the
GitHub releases page. Python, PyQt5, and Noto Nastaliq Urdu are all
bundled inside.
Install to your PC with optional Start Menu and Desktop shortcuts. No extra runtimes or Urdu language packs are needed.
Select your Urdu text inside InPage, copy it (Ctrl+C), and click
Paste from Clipboard inside the converter so the raw Win32 clipboard hook preserves
every byte.
Choose any spacing checkboxes you want and click Convert. Copy the Nastaliq Unicode
output or save it straight to a UTF-8 .txt file.
A few details to keep in mind when moving text between legacy InPage and modern Unicode tools.
Always copy directly from InPage and use the app's Paste from Clipboard button (or paste
directly into the input box). Copying through an intermediate editor like Notepad can strip the
\xa0 non-breaking space byte before the converter sees it.
The app converts character content cleanly, but InPage page layout features — bold, italics, font sizes, text boxes, multi-column frames, tables, and embedded images — are not preserved.
When using Unicode → InPage with Also save to file enabled, the output is
automatically saved in legacy CP-1252 (latin-1) ANSI encoding rather than UTF-8 so InPage
imports it cleanly.
Accuracy relies on standard InPage glyph encoding. Files created with customized font maps or heavily corrupted legacy archives may need a quick manual proofread after conversion.
,, ،) and numeric runs (0-9, ۰-۹) in both
conversion directions.remove_double_space) and append space after every word (add_word_space).ۂ → InPage
mapping and automatic CP-1252 file export for legacy workflows.The core conversion engine (mapping/glyph_map.py) is completely decoupled from the PyQt5 GUI
(src/main_window.py), making it easy to inspect, run automated unit & GUI tests, or embed
the converter into your own Python scripts.
A PyInstaller spec (InPageConverter.spec) and Inno Setup 6 script
(inno_setup.iss) are included for reproducible Windows builds.
# Clone, create venv, and install dependencies
git clone https://github.com/salmanasmat/InPageToUnicode.git
cd InPageToUnicode
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
# Run the desktop app or automated test suite
python src/main.py
python -m unittest discover -s tests
Install InPage to Unicode Urdu Converter on Windows, copy your text from InPage, click the built-in Paste from Clipboard button in the converter, and click Convert. Your clean Unicode Urdu appears immediately in Noto Nastaliq Urdu, ready to paste into Microsoft Word, Google Docs, or any browser — completely offline.
InPage represents certain Urdu glyphs using legacy CP-1252 control and non-breaking space bytes (such as
0xA0 for Noon). Web browsers and standard Windows text boxes normalize or strip
these bytes during paste. InPage to Unicode Urdu Converter uses native Windows ctypes calls
to read raw CF_TEXT bytes directly from the clipboard before Windows alters them.
Yes. Switch the Conversion Direction toggle to Unicode → InPage to
generate contextual legacy InPage glyph bytes, including proper Heh-Hamza (ۂ) round-trip
support, and optionally export them directly to a CP-1252 (ANSI) text file ready for InPage import.
To move text from InPage to Microsoft Word, copy the Urdu text in InPage, click
Paste from Clipboard inside InPage to Unicode Urdu Converter, click
Convert, and paste the clean Unicode output straight into Word. To go from
Word to InPage, switch the toggle to Unicode → InPage, paste your Word
Urdu text, convert it, and copy or export as a CP-1252 ANSI file for InPage.
Yes. It is 100% free and open source under the GNU GPL v3 license with no ads, trials, or paid tiers. It runs entirely locally with zero internet connections, telemetry, or cloud uploads, so private books, legal documents, and manuscripts never leave your PC. You can inspect the full source code on GitHub.
It is a plain-text converter designed for copy-paste and text file workflows. It does not parse
proprietary .inp binary page layouts, multi-column frames, bold/italic styling, tables, or
images — it focuses on fast, accurate text conversion.
No. The Windows installer bundles Python, PyQt5, and Google's Noto Nastaliq Urdu font inside a standalone package. It works out of the box on Windows 10 and Windows 11 without extra downloads.
Yes. The conversion engine automatically corrects reversed LTR digit runs and offers one-click checkboxes to remove consecutive double spaces, add a space after every word, and insert spaces after commas and numbers. See conversion options.
When converting InPage → Unicode, files are saved in standard UTF-8
encoding. When converting Unicode → InPage, files are automatically written in legacy
CP-1252 (latin-1) ANSI encoding so InPage can import them cleanly.
The standalone installer and raw Win32 ctypes clipboard hook are built and tested
specifically for Windows 10 and Windows 11. Developers can run the Python mapping engine and PyQt5 GUI on
other platforms from source, where it falls back to standard clipboard handling.
Download InPage ↔ Unicode Urdu Converter for Windows — fast, private, and free forever.
Found a mapping edge case or bug? Open an issue on GitHub.