Korin API

Submitters
in package
implements Rule

FinalYes

A 5.5.5 file has exactly one SUBM record, directly after HEAD, and HEAD.SUBM points to it.

The submitter is the record HEAD.SUBM points to, or else the first SUBM record, to which a missing HEAD.SUBM then points, unless HEAD has a _SUBM (a pointer to no record, 7.0 @VOID@); it moves after HEAD. Every other SUBM record becomes an extension record (_SUBM, KL2002), which the conversion back restores. A file without a SUBM record stays without one: there is no submitter to name.

Table of Contents

Interfaces

Rule
One conversion rule. It changes one record at a time, so that a conversion can stream: what it must know about the whole input comes from the Prepass, which runs only when a rule needs it.

Methods

needsPrepass()  : bool
Whether the rule needs Context::prepass(): facts about the whole input before the first record.
record()  : void
Converts one record (HEAD and TRLR included) of the document in place.

Methods

needsPrepass()

Whether the rule needs Context::prepass(): facts about the whole input before the first record.

public needsPrepass() : bool
Return values
bool

record()

Converts one record (HEAD and TRLR included) of the document in place.

public record(Document $document, int $record, Context $context) : void
Parameters
$document : Document
$record : int
$context : Context
On this page

Search results