Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from Pangu JS™
VortexScript is not affiliated with Pangu JS. The name and any related trademarks are used solely for nominative descriptive purposes.
Pangu.js is a JavaScript library designed to automatically format text by inserting correct spacing between Chinese characters and Latin letters, numbers, or symbols. It is for developers, content creators, and anyone who wants to improve the visual readability and typographic standards of mixed-script text on websites or in applications.
Automatic Spacing: The core function scans text and intelligently adds a space (the "Pangu Space") between Chinese characters and adjacent half-width characters like English letters or digits.
Client-Side Execution: It runs directly in the browser, allowing for real-time text formatting on web pages without requiring server-side processing.
Lightweight and Simple: The library is minimal and easy to integrate into existing projects, requiring only a small script inclusion to start working.
Wide Compatibility: It can be applied to static content, dynamic content loaded via JavaScript, or user-generated text to ensure consistent formatting.
Customizable Integration: Developers can choose to apply it to specific page elements or the entire document body, providing control over where the formatting occurs.
Version
Original
Updated