1 Self-Contained Media Features Demonstration

2 Introduction

This demonstration presents the capability of embedding multimedia files and images directly into the HTML document generated by the MarkCharm compiler. All local media is transparently converted into Base64 Data URIs, enabling the distribution of a single, fully self-contained and auditable .html file.

As demonstrated in the following data:tions, direct cross-references can be made to fig. 3.1, fig. 3.2, audio 4.1, video 5.1, and object 6.1.

3 Repository Images and Scaling

Images continue to be handled by the figure presentation block, supporting optional relative width parameters (width='40%', width='85%'), generating automatic numbering and responsive legibility.

Fig. 3.2 demonstrates the use of high-resolution artwork from the repository collection, scaled to 85% of paragraph length:

Figure 3.2. The School of Athens (Fresco by Raphael in the Vatican)
The School of Athens (Fresco by Raphael in the Vatican)
Source: Wikimedia Commons / Cultural Collection (assets/images/Escola_de_Atenas_Vaticano.jpg).
Notes: High-definition JPEG image encapsulated directly in the HTML body.

4 Audio Resources

For audio file inclusion, use the audio block pointing to assets/audio/ with optional dimension adjustments (width='70%'). The native HTML player embeds playback controls.

Audio 4.1. Opening Audio Jingles
Source: Mozilla Developer Network (MDN) / MarkCharm Audio Collection (assets/audio/audio_exemplo.mp3).
Notes: MP3 file encoded as Base64 Data URI.

As seen in audio 4.1, the audio player is rendered with a responsive width of 70% and support for source and observation sub-blocks.

5 Video Resources

The video block allows embedding video elements (.mp4, .webm, .ogv) stored in assets/videos/, ensuring dynamic presentations remain saved within the report itself.

Video 5.1. Interactive Compilation Demo
Source: W3Schools (Big Buck Bunny) / Video Collection (assets/videos/video_exemplo.mp4).

6 Encapsulated Objects (PDF and Documents)

External documents like PDFs or spreadsheets stored in assets/documents/ can be embedded via the object block, displaying the browser's native viewer interface.

Object 6.1. Complementary Report in PDF Format
Source: W3C (Web Accessibility Initiative) / Document Collection (assets/documents/documento.pdf).

7 Conclusion

MarkCharm's self-contained architecture ensures complete portability of generated documents without needing external asset bundlers or resource managers.


Note

Usage Requirements & Technical Caveats

  1. Self-Contained Mode (\embed_media{true}): Converts images, audio, video, and PDFs into Base64 Data URIs, increasing final HTML file size by ~33%.
  2. Reading Performance: Suitable for reports and deliverables requiring complete web server independence.