StandardManuscript.h header

#include <ew/app/StandardManuscript.h>

Namespace ew::app

ShunnManuscriptInfo struct

struct ew::app::ShunnManuscriptInfo

The title-page metadata for a standard ("Shunn format") manuscript. The manuscript's word count is computed from its content, so it is not carried here.

Members

QString ew::app::ShunnManuscriptInfo::title

The manuscript title, centered on the title page and used (short) in the running header.

QString ew::app::ShunnManuscriptInfo::authorName

The author's legal name: top-left of the title page, and its final word is the surname shown in the running header.

QString ew::app::ShunnManuscriptInfo::contact

The author's contact block – address, email, phone – shown under the name on the title page. Lines are separated by ' '.

QString ew::app::ShunnManuscriptInfo::penName

The pen name for the byline ("by ..."); when empty the byline uses the legal name.

Functions

QString ew::app::manuscriptToShunnRtf(const std::vector< ManuscriptSection > &sections, const ShunnManuscriptInfo &info)

Renders sections (from compileManuscript, in reading order) as an RTF document in standard manuscript format – the layout literary agents and editors expect: 12-point Courier, double-spaced, one-inch margins, a title page (contact block top-left, rounded word count top-right, title and byline centered a third of the way down), each top-level section starting a fresh page with its title a third of the way down, half-inch first-line paragraph indents, centered "#" scene breaks between a chapter's nested sections, a running "Surname / TITLE / page" header suppressed on the title page, and a closing "THE END". RTF is a plain-text interchange format accepted for manuscript submission, so this needs no word-processor engine. info supplies the title-page metadata; a chapter's Markdown body is reduced to prose with **bold** and *italic* carried as RTF emphasis. An empty sections list still yields a valid title page.