Skip to content

fix: build with author 0.5.1, and keep every script's letters in download names - #13

Merged
alekswebnet merged 1 commit into
mainfrom
fix/build-page-file-names
Nov 9, 2026
Merged

alekswebnet merged 1 commit into
mainfrom
fix/build-page-file-names

Conversation

@alekswebnet

@alekswebnet alekswebnet commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Closes #12

Changes

  • author 0.5.1 (package.json, pnpm-lock.yaml): Question Set's intro title and results heading are stored as plain text, not wrapped in <div>, and an apostrophe shows as typed there (missing-elements/h5p-offline-player#164). pnpm resolves one copy, with player 1.5.1 and pack 1.1.0 as before.
  • Download names (src/build-source.ts, packageName): letters, marks and digits in any script, lower case, joined by hyphens, NFC, at most 60 characters. "Die größten Ereignisse" downloads as die-größten-ereignisse.h5p, where it was die-gro-ten-ereignisse.h5p, and "Річки України" as річки-україни.h5p, where it was activity.h5p.

Testing

pnpm typecheck, pnpm build, pnpm e2e: 11 passed. Changed or new in e2e/build.spec.ts:

  • The link test now carries "Größte Flüsse" (plain base64url, so its UTF-8 bytes go through the fragment) and "Річки України", and checks both download names.
  • New: a Question Set's cover title, "Germany's Surrender: die größten Ereignisse", reads exactly that inside the player. With author 0.5.0 the same check read <div>…</div>, as the live page shows now.

After merging, the deploy puts 0.5.1 on the live page.


Summary by cubic

Upgrades @missing-elements/h5p-author to fix Question Set titles appearing with literal <div> tags. Download names now preserve letters from any writing system instead of stripping non-ASCII characters.

  • Names are lowercased, normalized, hyphenated, and limited to 60 characters.
  • End-to-end tests cover rendered Question Set titles and German and Ukrainian download names.

Written for commit 0c7c31b. Summary will update on new commits.

View guided diff Turn on auto-fix

…load names

author 0.5.0 wrapped Question Set's intro title and results heading in
<div>, which the set draws as text; 0.5.1 stores them plain
(missing-elements/h5p-offline-player#164). A test now checks the cover
shows its title as written, apostrophe and umlauts included.

The download name kept ASCII letters only, so ß became a hyphen and a
Cyrillic or Greek title became activity.h5p. It now keeps letters, marks
and digits in any script.

Closes #12
@alekswebnet alekswebnet added the bug Something isn't working label Nov 9, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 4 files

View guided diff | Turn on auto-fix | Re-trigger cubic

@alekswebnet
alekswebnet merged commit 81e40c7 into main Nov 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build page: <div> around a Question Set's title, and download names that drop ß and non-Latin letters

1 participant