| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| OpenPublisher5-i386-windowsXP.exe | 2026-10-20 | 56.5 MB | |
| openpublisher5_amd64-windows-portable.exe | 2026-10-20 | 183.2 MB | |
| openpublisher5_amd64-windows.exe | 2026-10-20 | 165.2 MB | |
| openpublisher5_amd64-macos.dmg | 2026-10-20 | 233.1 MB | |
| openpublisher5_amd64-linux.run | 2026-10-20 | 193.4 MB | |
| openpublisher5_amd64-linux.rpm | 2026-10-20 | 215.4 MB | |
| openpublisher5_amd64-linux.flatpak | 2026-10-20 | 153.6 MB | |
| openpublisher5_amd64-linux.deb | 2026-10-20 | 156.2 MB | |
| openpublisher5_amd64-linux.AppImage | 2026-10-20 | 166.4 MB | |
| openpublisher5_amd64-freebsd.pkg | 2026-10-20 | 185.5 MB | |
| 5.11.7_ Native RTL Language Support, Directional Controls _ International Typography source code.tar.gz | 2026-10-20 | 23.4 MB | |
| 5.11.7_ Native RTL Language Support, Directional Controls _ International Typography source code.zip | 2026-10-20 | 23.6 MB | |
| README.md | 2026-10-20 | 12.5 kB | |
| Totals: 13 Items | 1.8 GB | 0 | |
🚀 Summary
Version 5.11.7 introduces comprehensive native Right-to-Left (RTL) language support for Arabic, Hebrew, Persian, Urdu, and other bidirectional languages, bringing OpenPublisher in line with Microsoft Word and Publisher:
- Smart Auto-Detection (
dir="auto"): All newly created text boxes and styled text box templates now include HTML5 bidirectional auto-detection (dir="auto") by default. As soon as a user starts typing in Arabic, Hebrew, or Persian, text orientation, punctuation placement, and cursor flow automatically calibrate to right-to-left without requiring any manual menu toggling. - Authentic Office Directional Ribbon Controls: Added a dedicated 3-button directional control to the Home tab Paragraph group: Left-to-Right (
[ ¶→ ]), Right-to-Left ([ ←¶ ]), and Auto-detect ([ AUTO ]). Featuring crisp custom SVG pilcrow icons matching Microsoft Office, the buttons display real-time active tool states synchronized with text alignment and cursor selection. - Contextual Text Tools Ribbon Integration: Embedded the identical LTR, RTL, and AUTO directional controls into the contextual "Text Box Tools" ribbon tab (
ribbon-format-text), allowing users to switch directions directly from the formatting tab. - Floating Mini-Toolbar Controls: Added inline Left-to-Right and Right-to-Left direction buttons to the floating text formatting toolbar (
#float-toolbar), making quick directional toggling accessible right above selected text. - Native Windows Office Keyboard Shortcuts: Implemented global keyboard shortcuts: pressing
Ctrl + Right Shiftinstantly switches active text blocks to Right-to-Left orientation with right alignment; pressingCtrl + Left Shiftinstantly switches back to Left-to-Right orientation with left alignment. - Options Modal Language Preferences: Added a new "Default Text Direction" configuration dropdown in the Options dialog under the Language tab. Users can set their preferred default orientation for all new text boxes (Auto-detect, Left-to-Right, or Right-to-Left) with persistence in localStorage (
opub_default_text_direction). - Multi-Cell Table Direction Support: Table cells now support batch directional changes. When multiple table cells are selected, switching to RTL or LTR updates all selected cells simultaneously.
- International Fallback Typography: Expanded the primary font family stack to include high-legibility Arabic and Semitic typefaces:
'Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', 'Amiri', sans-serif, ensuring Arabic characters render with smooth ligatures and balanced baselines. - Full Document Serialization & History Integration: Updated element attribute serialization in
core/history.jsandcore/pages.jsto capture and restoredata-text-directionanddir, guaranteeing full fidelity across undo/redo operations and.opubdocument saving.
Asset cachebusters across all resource tags in index.html have been upgraded to ?v=5.11.7, and the Service Worker cache has been bumped to open-publisher-v5-11-7.
🎨 Key Features & Architectural Improvements
1. Smart Auto-Detection & Direction Engine (elements/text/text.js)
- Default Bidirectional Detection:
addTextBox()andTextBoxStylesSystem.insertStyled()now applydir="auto"anddata-text-direction="auto"upon element creation.- The browser's native Unicode Bidirectional Algorithm (UBA) dynamically determines line direction based on the first strongly directional character in each paragraph.
- Direction Switching API (
window.setTextDirection(dir)): - Accepts
'ltr','rtl', or'auto'. - Intelligently targets the active cursor selection block (e.g. paragraph, list item, or heading) inside any
[contenteditable="true"]element, or applies to the entire text box when selected from the canvas boundary. - Automatically switches text alignment to
rightwhen switching to RTL, and toleftwhen switching to LTR, preserving center alignment if already centered. - Sets the
data-text-directionattribute on the outer.pub-elementwrapper for styling and persistence. - Multiple Table Cell Selection:
- Integrates with
window._tableSelectedCellsto set directional attributes and text alignment across multiple highlighted table cells in a single action.
2. Microsoft Office Paragraph Ribbon Controls & Visual Redesign (index.html, extensions/ui-interactions.js, style.css)
- Paragraph Group Balanced 2-Row Grid Layout:
- Contextual Ribbon (
extensions/ui-interactions.js):- Row 1: Bullets, Numbered List, divider, Decrease Indent, Increase Indent, divider, Left-to-Right (
ctx-dir-ltr), Right-to-Left (ctx-dir-rtl). - Row 2: Align Left, Align Center, Align Right, Align Justify, divider, Line Spacing, divider, Auto Text Direction (
ctx-dir-auto). - Both rows are symmetrical and perfectly balanced at 166px width, eliminating empty space and aligning dividers cleanly.
- Row 1: Bullets, Numbered List, divider, Decrease Indent, Increase Indent, divider, Left-to-Right (
- Home Tab (
index.html):- Structured as a balanced 3x2 grid with alignment tools on row 1 and LTR, RTL, AUTO on row 2, accompanied by the Line Spacing tool button.
- Crisp Direction Glyphs & Auto Icon:
- Replaced spindly vector pilcrows with crisp, FontAwesome-weighted direction glyphs:
- Left-to-Right (
[≡→]): Left-aligned text bars with a bold, rounded right arrow. - Right-to-Left (
[←≡]): Bold rounded left arrow with right-aligned text bars. - Auto Direction (
[↔]): Bidirectional arrow icon with paragraph context lines, replacing raw text "AUTO".
- Left-to-Right (
- Theme Color & Dark Mode Integration (
style.css): - Configured
.ribbon-toolbar .mini-btn svg,.ctx-btn-strict svg, and#float-toolbar .mini-btn svgto inheritcolor: var(--ui-theme-dark)andfill: currentColor, harmonizing with FontAwesome icons in both light and dark themes. - Dynamic UI State Synchronization (
window.updateTextDirectionUI): - Automatically inspects the computed direction and
dirattribute of the active text element. - Toggles the
.active-toolhighlight class across ribbon buttons, contextual tabs, and the floating toolbar in real time as the cursor moves through text.
3. Floating Mini-Toolbar Controls (index.html, elements/text/text.js)
- Inline Direction Buttons:
- Added
#float-dir-ltrand#float-dir-rtlto the floating selection toolbar (#float-toolbar). - Allows quick directional toggling directly adjacent to highlighted text without needing to mouse up to the ribbon.
- Synchronized with
updateFloatToolbarValues()to reflect the current paragraph direction.
4. Native Windows Office Keyboard Shortcuts (elements/text/text.js)
- Left/Right Shift Detection:
- Utilizes
KeyboardEvent.DOM_KEY_LOCATION_RIGHTandKeyboardEvent.DOM_KEY_LOCATION_LEFTto detect physical Shift key locations. Ctrl + Right Shift: Switches selection to RTL orientation and right alignment.Ctrl + Left Shift: Switches selection to LTR orientation and left alignment.- Matches the standard Windows desktop shortcuts used across Microsoft Office, Notepad, and Windows text editors.
5. Options Modal Language Configuration (ui/modals/options-modal.js)
- Default Text Direction Dropdown:
- Added a new configuration section under the Language tab in Options:
- Auto-detect (Recommended): Automatically checks typed characters.
- Left-to-Right (LTR): Forces all newly created text boxes to LTR.
- Right-to-Left (RTL): Forces all newly created text boxes to RTL.
- Stored persistently in
localStorage.getItem('opub_default_text_direction'). - Decorated into OpenPublisher's custom Windows-styled dropdown UI (
.custom-dom-select).
6. Persistence & Undo/Redo Integration (core/history.js, core/pages.js)
- History Attribute Filtering:
- Added
data-text-directionanddirtofilterAttrsincore/history.js. - Stored inside page serialization data (
data.filterAttributes) during undo/redo snapshots. core/pages.jsautomatically restores both attributes onto.pub-elementand child text boxes upon loading or reverting pages.
📁 Files Modified in 5.11.7
| File | Changes |
|---|---|
elements/text/text.js |
Updated addTextBox() and TextBoxStylesSystem.insertStyled() to apply dir="auto" and international fallback fonts ('Segoe UI', Tahoma, Arial, 'Noto Sans Arabic', 'Amiri', sans-serif). Implemented window.setTextDirection(), window.updateTextDirectionUI(), updateFloatToolbarValues() direction synchronization, and Ctrl + Left/Right Shift global keyboard shortcuts. |
index.html |
Updated Home tab Paragraph group with a 2-row layout containing alignment tools on row 1 and LTR, RTL, AUTO directional buttons on row 2. Added #float-dir-ltr and #float-dir-rtl to the floating text toolbar. Updated all 84 asset cachebusters to ?v=5.11.7. |
extensions/ui-interactions.js |
Injected LTR, RTL, and AUTO direction buttons into the contextual ribbon Paragraph group (ctx-dir-ltr-${target.suffix}, ctx-dir-rtl-${target.suffix}, ctx-dir-auto-${target.suffix}). Bumped version header to v5.11.7. |
ui/modals/options-modal.js |
Added Default Text Direction setting under the Language tab with Auto-detect, LTR, and RTL options. Handled localStorage persistence (opub_default_text_direction). Bumped version header to v5.11.7. |
core/history.js |
Added data-text-direction and dir to filterAttrs in serializeCurrentPage() to ensure direction settings persist across undo/redo and .opub saving. |
sw.js |
Bumped service worker cache name to open-publisher-v5-11-7 and version header to (v5.11.7). |
core/boot.js, core/core.js, extensions/legacy-fixes.js, extensions/print-engine.js, extensions/pwa-install.js, ui/menus.js, ui/modals/card-sheet-modal.js, ui/sidebar-context.js |
Bumped version headers to v5.11.7. |
✅ Verification Checklist
- [x] Home Ribbon Direction Controls: Verified that
#btn-text-dir-ltr,#btn-text-dir-rtl, and#btn-text-dir-autorender with authentic Office SVG icons and active-state highlights. - [x] Contextual Ribbon Direction Controls: Verified that
#ctx-dir-ltr-text,#ctx-dir-rtl-text, and#ctx-dir-auto-textappear and function on the contextual "Text Box Tools" ribbon tab. - [x] Smart Auto-Detection (
dir="auto"): Verified that newly created text boxes automatically receivedir="auto",data-text-direction="auto", and Arabic fallback font stacks. - [x] Interactive RTL Switching: Verified that clicking RTL sets
dir="rtl", aligns text to the right, and updates outer wrapper attributes. - [x] Interactive LTR Switching: Verified that clicking LTR sets
dir="ltr", aligns text to the left, and updates outer wrapper attributes. - [x] Interactive AUTO Switching: Verified that clicking AUTO restores
dir="auto"dynamic bidirectional evaluation. - [x] Keyboard Shortcut
Ctrl + Right Shift: Verified that pressingCtrl + Right Shiftimmediately switches the active text box to RTL with right alignment. - [x] Keyboard Shortcut
Ctrl + Left Shift: Verified that pressingCtrl + Left Shiftimmediately switches the active text box to LTR with left alignment. - [x] Floating Mini-Toolbar: Verified that
#float-dir-ltrand#float-dir-rtlrender on the floating selection toolbar. - [x] Options Modal Language Tab: Verified that the Default Text Direction dropdown renders under the Language tab, saves choices to
localStorage, and applies selected defaults to newly created text boxes. - [x] Document History & Serialization: Verified that
data-text-directionanddirare preserved duringserializeCurrentPage()and restored across undo/redo cycles. - [x] Cachebuster Synchronization: Verified that all resource cachebusters in
index.htmland the Service Worker cache insw.jsare upgraded tov5.11.7.
| Text box tools |
|---|
| Home |
|---|
🎉 Version 5.11.7: Open Publisher