mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 02:03:55 -05:00
[GH-ISSUE #1042] Fix missing icons in Epub for definitions, examples, and collaborations #5637
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @profvjreddi on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/harvard-edge/cs249r_book/issues/1042
In the Epub version of the textbook, icons for definitions, examples, and collaborations do not appear as expected. This issue seems to be related to
foldbox.cssand style files not properly handling the icon visibility or inclusion for these sections.Steps to Reproduce
Expected Behavior
Icons should be displayed for definitions, examples, and collaborations in the Epub output.
Potential Causes
foldbox.cssor related style files affecting Epub styling.Suggested Fix
foldbox.cssand related style files for icon styling.Labels: ePub, bug
Issue Type: Bug
@profvjreddi commented on GitHub (Apr 20, 2026):
Fixed. The HTML build uses Bootstrap Icons via CSS pseudo-elements, which EPUB readers don't load — no external font fetch and no icon font embedded in the package. Swapped the three callout types to Unicode glyphs in
epub-vol1.css/epub-vol2.css:Unicode renders reliably across Kindle, Apple Books, Kobo, ClearView, Tolino without a bundled font. Same pattern extends to the other callout types if I want to swap more later.