# Course number style

The course author can choose number style before generating course images. In the Interactive Course Editor, the selector sits beside **Regenerate course slides**. The PowerPoint preparation screen also provides it alongside rendering language and direction.

| Setting | Generated slide text | Course text and activities |
| --- | --- | --- |
| Automatic | Preserve source digits | Follow the existing player language behavior |
| English — 0123456789 | Western digits | Western digits, independently of language |
| Arabic — ٠١٢٣٤٥٦٧٨٩ | Arabic-Indic digits | Arabic-Indic digits, independently of language |

Changing the selection saves the course render setting and marks existing images for regeneration. Regenerate images and export a new SCORM package to apply it everywhere. Previously downloaded ZIPs are unchanged. Numbers already flattened into images or other artwork cannot be converted. Automatic PowerPoint fields and generated chart axes may retain their renderer's formatting.

The original PowerPoint and editable presentation remain unchanged: formatting is applied to a render-only copy. Tracking IDs, URLs, numeric chart values, answer values and stored learner progress are preserved. Revision checks reject stale settings and publication if another session changes number style while images are being generated.

## H5P activity override

The **H5P** tab has an **H5P number style / شكل الأرقام في أنشطة H5P** selector directly below its header, visible in both activity and overall-settings views. Choose **Follow course setting**, **English — 0123456789**, or **Arabic — ٠١٢٣٤٥٦٧٨٩**. This applies to every activity, including imported activities and those using a custom design, independently of slide digits or course language.

The selection uses the existing H5P autosave and Undo/Redo flow. Once saved, previews reload with the selected digits and the course package is marked outdated. Export a new SCORM ZIP to update downloaded playback; slide-image regeneration is unnecessary. Numeric answers, authored content, tracking keys and content revisions remain unchanged. Digit shapes inside images cannot be changed.

The override is stored in the existing H5P document settings JSON, so no migration or renderer rebuild is needed for this addition. Deploy the backend and rebuilt authoring frontend together. The existing Player 0.1.2 runtime already understands the exported activity digit policy.

## Deployment

Deploy the backend and rebuilt authoring frontend together. Rebuild the existing `docudeck-renderer:1` Docker image from `documents_generator_tools_backend/resources/font-renderer` for PowerPoint rendering. No database migration is needed; the setting uses the existing `render_settings` JSON column.

Offline H5P playback uses the updated compatibility bridge in DocuDeck Player 0.1.2. The Windows installer is generated under `scorm_player/release`. Existing imported courses and learner progress are retained. macOS and Linux packages were not built or verified in this change.

## Local verification (2026-11-15)

- Authoring TypeScript and production build passed.
- Preparation, native publication and SCORM package tests: 30 passed, 332 assertions, isolated SQLite database.
- Number formatting, localization and H5P state tests: 36 passed.
- Existing H5P preview, native authoring and player tests: 30 passed.
- Python renderer tests: 5 tests completed successfully, including 2 skipped optional font-fixture tests.
- A real two-slide PowerPoint was rendered through the isolated Docker renderer in both explicit styles, with Arabic rendering language. Generated images were visually inspected and showed the selected digit shapes; the source file stayed unchanged.
- The Windows 0.1.2 installer was built. Packaged playback validation is recorded in the desktop validation document.

Live authoring browser visual review was unavailable because the browser access host was disconnected. Production deployment has not been performed.
