FictionBook — Short SAMPLE (FB2)
A minimal FictionBook (.fb2) SAMPLE with one section — for FB2/XML ebook importers.
<?xml version="1.0" encoding="UTF-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"><description><title-info><book-title>SAMPLE Short FB2</book-title><lang>en</lang></title-info></description><body><section><title><p>One</p></title><p>A short FictionBook SAMPLE for XML ebook parsers.</p></section></body></FictionBook>
Specifications
- Format
- FictionBook 2.0
- Sections
- 1
What is a .fb2 file?
FB2 (FictionBook) is an XML-based e-book format that stores an entire book, including metadata and embedded images, in a single well-structured XML file. It emphasizes semantic markup of book structure over fixed presentation. It is especially popular in the Russian-speaking e-book community.
How to use this file
Use an example FB2 to test XML e-book parsing, embedded-image extraction, metadata handling, and converters between FB2 and EPUB.
How to use this file for testing
“FictionBook — Short SAMPLE (FB2)” is a deterministic Novus Examples fixture for Conversion testing, Editor testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.
Documented properties for this file: FictionBook 2.0. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.
E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.
Related files
- svgAnimated Spinner (SVG)An animated loading spinner using SMIL (animateTransform) — a self-contained animated SVG for testing whether a renderer or converter handles SVG animation, and how it rasterises an animated frame.
- adocAsciiDoc Guide (ADOC source)An AsciiDoc getting-started guide with source blocks, an admonition, and a table — for testing AsciiDoc renderers (Asciidoctor), editors, and conversion to HTML/PDF.

- assASS Subtitles (Advanced SSA)An Advanced SubStation Alpha (.ass) subtitle with a styles section and three timed Dialogue events — the styled format libass renders — carrying the same captions as the SRT/VTT twins.

- svgBar Chart (SVG)A bar chart drawn as vector SVG — axis, gridlines, labelled bars — the scalable counterpart to the raster chart images, for testing SVG chart rendering and vector conversion.
- bdfBDF — 5x7 Bitmap Font (digits)A hand-written 5×7 BDF bitmap font covering the digits, a colon, and space — the classic X11 bitmap-font format, in plain text. A fixture for testing BDF parsers, bitmap-font converters, and retro/embedded rendering.

- drawiodraw.io Diagram (XML)A draw.io (diagrams.net) diagram in its native mxGraphModel XML — a small flowchart — for testing draw.io import/export and XML parsing of diagram files.

Generated by generation/ebooks_wave_c.py. Free for any use, no attribution required — license.