12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283 |
- import { Type } from '@angular/core';
- import { EditionLevelType } from '../app.config';
- import { ParseResult } from '../services/xml-parsers/parser-models';
- export interface EditorialConvention {
- element: string;
- attributes: Attributes;
- layouts: EditorialConventionLayouts;
- }
- export type EditorialConventionLayouts = Partial<{ [key in EditionLevelType]: Partial<EditorialConventionLayout> }>;
- export interface EditorialConventionLayout {
- // tslint:disable-next-line: no-any
- style: { [cssProperty: string]: any; }; // List of CSS properties to be assigned to the output element
- pre: string; // Text to be shown before the element
- post: string; // Text to be shown after the element
- }
- export interface HighlightData {
- highlight: boolean;
- highlightColor: string;
- }
- export interface HighlightDataLem {
- highlightLem: boolean;
- highlightColorLem: string;
- }
- export class GenericElement {
- // tslint:disable-next-line: no-any
- type: Type<any>;
- path?: string;
- class?: string;
- attributes: Attributes;
- content: Array<ParseResult<GenericElement>>;
- }
- export type XMLElement = HTMLElement;
- export type OriginalEncodingNodeType = XMLElement;
- export interface EditionStructure {
- pages: Page[];
- }
- export type ViewModeId = 'readingText' | 'imageText' | 'textText' | 'collation' | 'textSources' | 'textVersions';
- export interface ViewMode {
- id: ViewModeId;
- icon: string;
- iconSet?: 'evt' | 'far' | 'fas';
- label: string;
- disabled?: boolean;
- }
- export interface Page {
- id: string;
- label: string;
- facs: string;
- originalContent: OriginalEncodingNodeType[];
- parsedContent: Array<ParseResult<GenericElement>>;
- url: string;
- facsUrl: string;
- }
- export interface NamedEntities {
- all: {
- lists: NamedEntitiesList[];
- entities: NamedEntity[];
- };
- persons: {
- lists: NamedEntitiesList[];
- entities: NamedEntity[];
- };
- places: {
- lists: NamedEntitiesList[];
- entities: NamedEntity[];
- };
- organizations: {
- lists: NamedEntitiesList[];
- entities: NamedEntity[];
- };
- relations: Relation[];
- events: {
- lists: NamedEntitiesList[];
- entities: NamedEntity[];
- };
- }
- // add by FS
- export interface LemmatizedEntities {
- all: {
- lemlists: LemmatizedEntitiesList[];
- lementities: LemmatizedEntity[];
- };
- lemmas: {
- lemlists: LemmatizedEntitiesList[];
- lementities: LemmatizedEntity[];
- };
- relations: Relation[];
- }
- export interface Attributes { [key: string]: string; }
- export interface OriginalEncoding {
- originalEncoding: OriginalEncodingNodeType;
- }
- export type NamedEntityType = 'person' | 'place' | 'org' | 'relation' | 'event' | 'generic';
- export class NamedEntitiesList extends GenericElement {
- id: string;
- label: string;
- namedEntityType: NamedEntityType;
- description?: Description;
- sublists: NamedEntitiesList[];
- content: NamedEntity[];
- relations: Relation[];
- originalEncoding: OriginalEncodingNodeType;
- }
- export class NamedEntity extends GenericElement {
- id: string;
- sortKey: string;
- label: NamedEntityLabel;
- namedEntityType: NamedEntityType | 'personGrp';
- content: NamedEntityInfo[];
- originalEncoding: OriginalEncodingNodeType;
- }
- // add by FS
- export type LemmatizedEntityType = 'lem' | 'w' | 'list' | 'item' ;
- export class LemmatizedEntitiesList extends GenericElement {
- id: string;
- label: string;
- lemmatizedEntityType: LemmatizedEntityType;
- description?: Description;
- sublists: LemmatizedEntitiesList[];
- content: LemmatizedEntity[];
- relations: Relation[];
- originalEncoding: OriginalEncodingNodeType;
- }
- export class LemmatizedEntity extends GenericElement {
- id: string;
- sortKey: string;
- label: LemmatizedEntityLabel;
- lemmatizedEntityType: LemmatizedEntityType | 'interpGrp';
- content: LemmatizedEntityInfo[];
- originalEncoding: OriginalEncodingNodeType;
- }
- export type LemmatizedEntityLabel = string;
- export class LemmatizedEntityInfo extends GenericElement {
- label: string;
- }
- export interface LemmatizedEntityOccurrence {
- pageId: string;
- pageLabel: string;
- refsByDoc: LemmatizedEntityOccurrenceRef[];
- }
- export interface LemmatizedEntityOccurrenceRef {
- docId: string;
- docLabel: string;
- refs: GenericElement[];
- }
- export class LemmatizedEntityRef extends GenericElement {
- entityLemId: string;
- entityLemType: LemmatizedEntityType;
- }
- export type NamedEntityLabel = string;
- export class NamedEntityInfo extends GenericElement {
- label: string;
- }
- export interface NamedEntityOccurrence {
- pageId: string;
- pageLabel: string;
- refsByDoc: NamedEntityOccurrenceRef[];
- }
- export interface NamedEntityOccurrenceRef {
- docId: string;
- docLabel: string;
- refs: GenericElement[];
- }
- export class Relation extends GenericElement {
- name?: string;
- activeParts: string[]; // Pointers to entities involved in relation
- mutualParts: string[]; // Pointers to entities involved in relation
- passiveParts: string[]; // Pointers to entities involved in relation
- description: Description;
- relationType?: string;
- }
- export type Description = Array<ParseResult<GenericElement>>;
- export class NamedEntityRef extends GenericElement {
- entityId: string;
- entityType: NamedEntityType;
- }
- export interface Witnesses {
- witnesses: Witness[];
- groups: WitnessGroup[];
- }
- export interface Witness {
- id: string;
- name: string | Array<ParseResult<GenericElement>> | XMLElement;
- attributes: Attributes;
- content: Array<ParseResult<GenericElement>>;
- groupId: string;
- }
- export interface WitnessGroup {
- id: string;
- name: string;
- attributes: Attributes;
- witnesses: string[];
- groupId: string;
- }
- export class ApparatusEntry extends GenericElement {
- id: string;
- lemma: Reading;
- readings: Reading[];
- notes: Note[];
- originalEncoding: string;
- nestedAppsIDs: string[];
- }
- /* add LemEntry FS */
- export class LemEntry extends GenericElement {
- id: string;
- lemma: Reading;
- readings: Reading[];
- notes: Note[];
- originalEncoding: string;
- nestedLemsIDs: string[];
- }
- export class Reading extends GenericElement {
- id: string;
- witIDs: string[];
- significant: boolean;
- }
- export interface GridItem {
- id: string;
- url: string;
- name: string;
- }
- export type HTML = GenericElement & {
- content: OriginalEncodingNodeType[];
- };
- export class Text extends GenericElement {
- text: string;
- }
- export type NoteLayout = 'popover' | 'plain-text';
- export class Note extends GenericElement {
- noteLayout: NoteLayout;
- noteType: string;
- exponent: string;
- }
- export class Paragraph extends GenericElement {
- n: string;
- }
- export class Lb extends GenericElement {
- id: string;
- n?: string;
- facs?: string; // Needed to handle ITL
- rend?: string;
- }
- export type Comment = GenericElement;
- export class Surface extends GenericElement {
- id: string;
- corresp: string;
- graphics: Graphic[];
- zones: {
- lines: ZoneLine[];
- hotspots: ZoneHotSpot[];
- };
- }
- export type ZoneRendition = 'Line' | 'HotSpot'; // EVT rule to distinguish lines for ITL from HotSpots
- export interface Point {
- x: number;
- y: number;
- }
- export class Zone extends GenericElement {
- id: string;
- coords: Point[];
- rendition?: ZoneRendition;
- // In lines @corresp points to <lb> @xml:id in the main text; in HotSpots it points to @xml:id of element which contains HS description
- // In Embedded Transcription it is the same as @xml:id of zone itself
- corresp?: string;
- rend?: string;
- rotate?: number;
- surface?: string;
- }
- export class ZoneLine extends Zone {
- rendition: 'Line';
- }
- export class ZoneHotSpot extends Zone {
- rendition: 'HotSpot';
- }
- export class Graphic extends GenericElement {
- url: string;
- height: string;
- width: string;
- }
- export interface CharMapping {
- type: string;
- subtype: string;
- attributes: Attributes;
- content: Array<ParseResult<GenericElement>>;
- }
- export interface CharProp {
- name: string;
- value: string;
- }
- export interface EncodingProp extends CharProp {
- version: string;
- }
- export class Char extends GenericElement {
- id: string;
- name: string;
- entityName: string;
- localProps: CharProp[];
- mappings: CharMapping[];
- unicodeProp?: EncodingProp;
- unihanProp?: EncodingProp;
- graphics: Graphic[];
- }
- export class G extends GenericElement {
- id: string;
- charId: string;
- }
- export type ChoiceType = 'normalization' | 'emendation';
- export class Choice extends GenericElement {
- editorialInterventionType: ChoiceType | '';
- originalContent: Array<ParseResult<GenericElement>>;
- normalizedContent: Array<ParseResult<GenericElement>>;
- }
- export class Verse extends GenericElement {
- n: string;
- }
- export class VersesGroup extends GenericElement {
- n: string;
- groupType: string;
- }
- export class Supplied extends GenericElement {
- reason?: string;
- source?: string;
- resp?: string;
- }
- export type DamageDegree = 'high' | 'medium' | 'low' | 'unknown';
- export class Damage extends GenericElement {
- agent: string;
- group?: number;
- degree?: DamageDegree | string; // string representing a number between 0 (undamaged) and 1 (very extensively damaged)
- }
- export class Surplus extends GenericElement {
- reason?: string;
- }
- export class Gap extends GenericElement {
- reason?: string;
- agent?: string;
- quantity?: number;
- unit?: string;
- extent?: string;
- }
- export type PlacementType = 'above' | 'below' | 'inline' | 'left' | 'right' | 'inspace' | 'end' | 'sup' | 'sub' | 'under';
- export class Addition extends GenericElement {
- place: PlacementType;
- }
- export type SicType = 'crux'; // sic types supported in specific ways
- export class Sic extends GenericElement {
- sicType?: SicType | string;
- }
- export class Word extends GenericElement {
- lemma?: string;
- }
- export class Deletion extends GenericElement {
- rend: string;
- }
- export class MsFrag extends GenericElement {
- additional: Additional;
- altIdentifier: AltIdentifier;
- history: History;
- msContents: MsContents;
- msIdentifier: MsIdentifier;
- physDesc: PhysDesc;
- pEl: Paragraph[];
- }
- export class MsPart extends MsFrag {
- head: Head;
- msParts: MsPart[];
- }
- export class MsDesc extends MsPart {
- id: string;
- n: string;
- label: string;
- msFrags: MsFrag[];
- }
- // TODO: fix classes MsDesc, MsPart and MsFrag
- export class Identifier extends GenericElement {
- collection: CollectionEl[];
- idnos: Array<ParseResult<GenericElement>>; // TODO: Add specific type when idno is handled
- regions: Array<ParseResult<GenericElement>>; // TODO: Add specific type when region is handled
- repository: Repository;
- settlements: Array<ParseResult<GenericElement>>; // TODO: Add specific type when settlement is handled
- countries: Array<ParseResult<GenericElement>>; // TODO: Add specific type when country is handled
- }
- export class AltIdentifier extends Identifier {
- noteEl: Note[];
- }
- export class MsIdentifier extends Identifier {
- id: string;
- institution: Institution;
- altIdentifier: AltIdentifier[];
- msName: MsName[];
- }
- export class MsContents extends GenericElement {
- summary: Summary;
- msItem: MsItem[];
- msItemStruct: MsItemStruct;
- pEl: Paragraph[];
- textLangs: Array<ParseResult<GenericElement>>; // TODO: Add specific type when textLang is handled
- }
- export class PhysDesc extends GenericElement {
- objectDesc: ObjectDesc;
- bindingDesc: BindingDesc;
- decoDesc: DecoDesc;
- handDesc: HandDesc;
- accMat: AccMat;
- additions: Additions;
- musicNotation: MusicNotation;
- scriptDesc: ScriptDesc;
- sealDesc: SealDesc;
- typeDesc: TypeDesc;
- pEl: Paragraph[];
- }
- export class History extends GenericElement {
- acquisition: Acquisition;
- origin: Origin;
- provenance: Provenance[];
- summary: Summary;
- pEl: Paragraph[];
- }
- export class Head extends GenericElement {
- place: string;
- rend: string;
- style: string;
- rendition: string;
- n: string;
- facs: string;
- lbEl: Lb[];
- hi: Array<ParseResult<GenericElement>>; // TODO: Add specific type when hi is handled
- title: Array<ParseResult<GenericElement>>; // TODO: Add specific type when title is handled
- origPlace: OrigPlace;
- origDate: OrigDate;
- }
- export class Institution extends GenericElement {
- country: Array<ParseResult<GenericElement>>; // TODO: Add specific type when country is handled
- region: Array<ParseResult<GenericElement>>; // TODO: Add specific type when region is handled
- }
- export class Repository extends GenericElement {
- lang: string;
- }
- export class MsName extends GenericElement {
- name: Array<ParseResult<GenericElement>>; // TODO: Add specific type when idno is handled
- rs: Array<ParseResult<GenericElement>>; // TODO: Add specific type when rs is handled
- gEl: G[];
- }
- export class CollectionEl extends GenericElement {
- collectionType: string;
- }
- export class MsItemStruct extends GenericElement {
- n: string;
- defective: boolean;
- authors: Array<ParseResult<GenericElement>>; // TODO: Add specific type when author is handled
- respStmt: Array<ParseResult<GenericElement>>; // TODO: Add specific type when restStmt is handled
- titles: Array<ParseResult<GenericElement>>; // TODO: Add specific type when title is handled
- rubric: Rubric;
- incipit: Incipit;
- quote: Array<ParseResult<GenericElement>>; // TODO: Add specific type when quote is handled
- explicit: Explicit;
- finalRubric: FinalRubric;
- colophons: Array<ParseResult<GenericElement>>; // TODO: Add specific type when colophon is handled
- decoNote: DecoNote;
- listBibl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when listBibl is handled
- bibl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when bibl is handled
- filiation: Filiation[];
- noteEl: Note[];
- textLangs: Array<ParseResult<GenericElement>>; // TODO: Add specific type when textLang is handled
- locus: Locus;
- }
- export class MsItem extends MsItemStruct {
- docAuthors: Array<ParseResult<GenericElement>>; // TODO: Add specific type when docAuthor is handled
- docTitles: Array<ParseResult<GenericElement>>; // TODO: Add specific type when docTitle is handled
- docImprints: Array<ParseResult<GenericElement>>; // TODO: Add specific type when docImprint is handled
- docDate: Array<ParseResult<GenericElement>>; // TODO: Add specific type when docDate is handled
- locusGrp: LocusGrp;
- gapEl: Gap[];
- msItem: MsItem[];
- }
- export class Summary extends GenericElement {
- pEl: Paragraph[];
- }
- export class Acquisition extends GenericElement {
- notBefore: string;
- notAfter: string;
- name: Array<ParseResult<GenericElement>>; // TODO: Add specific type when name is handled
- }
- export class Origin extends GenericElement {
- notBefore: string;
- notAfter: string;
- evidence: string;
- resp: string;
- origDate: OrigDate;
- origPlace: OrigPlace;
- }
- export class OrigDate extends GenericElement {
- notBefore: string;
- notAfter: string;
- when: string;
- origDateType: string;
- }
- export class OrigPlace extends GenericElement {
- key: string;
- origPlaceType: string;
- }
- export class Provenance extends GenericElement {
- when: string;
- }
- export class ObjectDesc extends GenericElement {
- form: string;
- layoutDesc: LayoutDesc;
- supportDesc: SupportDesc;
- pEl: Paragraph[];
- }
- export class LayoutDesc extends GenericElement {
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- layout: Layout;
- summary: Summary;
- }
- export class Layout extends GenericElement {
- columns: number;
- streams: number;
- ruledLines: number;
- writtenLines: number;
- pEl: Paragraph[];
- }
- export type MaterialValues = 'paper' | 'parch' | 'perg' | 'mixes';
- export class SupportDesc extends GenericElement {
- material: MaterialValues;
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- extents: Array<ParseResult<GenericElement>>; // TODO: Add specific type when extent is handled
- collation: Collation;
- condition: Condition;
- foliation: Foliation;
- support: Support;
- }
- export class Condition extends GenericElement {
- pEl: Paragraph[];
- }
- export class Collation extends GenericElement {
- pEl: Paragraph[];
- }
- export class Foliation extends GenericElement {
- id: string;
- pEl: Paragraph[];
- }
- export class Support extends GenericElement {
- material: Array<ParseResult<GenericElement>>; // TODO: Add specific type when material is handled
- watermark: Array<ParseResult<GenericElement>>; // TODO: Add specific type when watermark is handled
- }
- export class BindingDesc extends GenericElement {
- binding: Binding[];
- condition: Array<ParseResult<GenericElement>>; // TODO: Add specific type when condition is handled
- decoNote: DecoNote[];
- pEl: Paragraph[];
- }
- export class Binding extends GenericElement {
- contemporary: boolean;
- condition: Array<ParseResult<GenericElement>>; // TODO: Add specific type when condition is handled
- decoNote: DecoNote[];
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- }
- export class DecoDesc extends GenericElement {
- decoNote: DecoNote;
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- summary: Summary;
- }
- export class Additions extends GenericElement {
- pEl: Paragraph[];
- }
- export class HandDesc extends GenericElement {
- hands: string;
- handNote: HandNote[];
- }
- export class ScriptDesc extends GenericElement {
- scriptNote: Array<ParseResult<GenericElement>>; // TODO: Add specific type when scriptNote is handled
- summary: Summary;
- }
- export class Seal extends GenericElement {
- contemporary: boolean;
- sealType: string;
- n: string;
- decoNote: DecoNote;
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- }
- export class SealDesc extends GenericElement {
- seal: Seal;
- }
- export class TypeDesc extends GenericElement {
- summary: Summary;
- typeNote: TypeNote;
- }
- export class TypeNote extends GenericElement {
- id: string;
- scope: string;
- }
- export class MusicNotation extends GenericElement {
- term: Array<ParseResult<GenericElement>>; // TODO: Add specific type when term is handled
- }
- export class AccMat extends GenericElement {
- pEl: Paragraph[];
- }
- export class Additional extends GenericElement {
- listBibls: Array<ParseResult<GenericElement>>; // TODO: Add specific type when listBibl is handled
- adminInfo: AdminInfo;
- surrogates: Surrogates;
- }
- export class AdminInfo extends GenericElement {
- noteEl: Note[];
- availabilities: Array<ParseResult<GenericElement>>; // TODO: Add specific type when listBibl is handled
- custodialHist: CustodialHist;
- recordHist: RecordHist;
- }
- export class CustodialHist extends GenericElement {
- pEl: Paragraph[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- custEvent?: CustEvent[];
- }
- export class CustEvent extends GenericElement {
- custEventType: string;
- notBefore: string;
- notAfter: string;
- when: string;
- from: string;
- to: string;
- }
- export class RecordHist extends GenericElement {
- pEl: Paragraph[];
- changes: Array<ParseResult<GenericElement>>; // TODO: Add specific type when change is handled
- source: Source[];
- ab: Array<ParseResult<GenericElement>>; // TODO: Add specific type when ab is handled
- }
- export class Source extends GenericElement {
- pEl: Paragraph[];
- }
- export class Surrogates extends GenericElement {
- bibls: Array<ParseResult<GenericElement>>; // TODO: Add specific type when bibl is handled
- pEl: Paragraph[];
- }
- export class Rubric extends GenericElement {
- lang: string;
- rend: string;
- lbEl: Lb[];
- locus: Locus;
- stamp: Array<ParseResult<GenericElement>>; // TODO: Add specific type when stamp is handled
- }
- export class FinalRubric extends GenericElement {
- lbEl: Lb[];
- }
- export class Incipit extends GenericElement {
- lang: string;
- defective: boolean;
- lbEl: Lb[];
- locus: Locus;
- }
- export class Explicit extends GenericElement {
- lang: string;
- defective: boolean;
- locus: Locus;
- }
- export class Locus extends GenericElement {
- scheme: string;
- from: string;
- to: string;
- facs: string;
- target: string;
- hi: Array<ParseResult<GenericElement>>; // TODO: Add specific type when hi is handled
- gEl: G[];
- locus: Locus;
- }
- export class LocusGrp extends GenericElement {
- scheme: string;
- locus: Locus;
- }
- export class DecoNote extends GenericElement {
- decoNoteType: string;
- watermark: Array<ParseResult<GenericElement>>; // TODO: Add specific type when watermark is handled
- }
- export class Filiation extends GenericElement {
- filiationType: string;
- }
- export class Dimensions extends GenericElement {
- dimensionsType: string;
- scope: string;
- extent: string;
- unit: string;
- quantity: number;
- atLeast: number;
- atMost: number;
- min: number;
- max: number;
- height: Height;
- width: Width;
- depth: Depth;
- dim: Dim;
- }
- export class Height extends GenericElement {
- scope: string;
- extent: string;
- unit: string;
- quantity: number;
- atLeast: number;
- atMost: number;
- min: number;
- max: number;
- gEl: G[];
- }
- export class Width extends GenericElement {
- scope: string;
- extent: string;
- unit: string;
- quantity: number;
- atLeast: number;
- atMost: number;
- min: number;
- max: number;
- gEl: G[];
- }
- export class Depth extends GenericElement {
- scope: string;
- extent: string;
- unit: string;
- quantity: number;
- atLeast: number;
- atMost: number;
- min: number;
- max: number;
- gEl: G[];
- }
- export class Dim extends GenericElement {
- dimType: string;
- scope: string;
- extent: string;
- unit: string;
- quantity: number;
- atLeast: number;
- atMost: number;
- min: number;
- max: number;
- gEl: G[];
- }
- export class FileDesc extends GenericElement {
- titleStmt: TitleStmt;
- publicationStmt: PublicationStmt;
- sourceDesc: SourceDesc;
- editionStmt?: EditionStmt;
- extent?: Extent;
- seriesStmt?: SeriesStmt;
- notesStmt?: NotesStmt;
- }
- export class TitleStmt extends GenericElement {
- titles: Array<ParseResult<GenericElement>>; // TODO: Add specific type when title is handled
- subtitles: Array<ParseResult<GenericElement>>; // TODO: Add specific type when subtitle is handled
- authors: Array<ParseResult<GenericElement>>; // TODO: Add specific type when author is handled
- principals: Array<ParseResult<GenericElement>>; // TODO: Add specific type when principal is handled
- respStmts: RespStmt[];
- editors: Array<ParseResult<GenericElement>>; // TODO: Add specific type when editor is handled
- sponsors: Array<ParseResult<GenericElement>>; // TODO: Add specific type when sponsor is handled
- funders: Array<ParseResult<GenericElement>>; // TODO: Add specific type when funder is handled
- }
- export class RespStmt extends GenericElement {
- responsibility: Resp;
- people: Array<ParseResult<NamedEntityRef>>;
- notes: Note[];
- }
- export class Resp extends GenericElement {
- normalizedResp: string;
- date: string;
- }
- export class EditionStmt extends GenericElement {
- structuredData: boolean;
- edition: Array<ParseResult<GenericElement>>; // TODO: Add specific type when edition is handled
- respStmt: RespStmt[];
- }
- export class PublicationStmt extends GenericElement {
- structuredData: boolean;
- publisher: Array<ParseResult<GenericElement>>; // TODO: Add specific type when publisher is handled
- distributor: Array<ParseResult<GenericElement>>; // TODO: Add specific type when distributor is handled
- authority: Array<ParseResult<GenericElement>>; // TODO: Add specific type when authority is handled
- pubPlace: Array<ParseResult<GenericElement>>; // TODO: Add specific type when pubPlace is handled
- address: Array<ParseResult<GenericElement>>; // TODO: Add specific type when address is handled
- idno: Array<ParseResult<GenericElement>>; // TODO: Add specific type when idno is handled
- availability: Array<ParseResult<GenericElement>>; // TODO: Add specific type when availability is handled
- date: Array<ParseResult<GenericElement>>; // TODO: Add specific type when date is handled
- licence: Array<ParseResult<GenericElement>>; // TODO: Add specific type when licence is handled
- }
- export class SeriesStmt extends GenericElement {
- structuredData: boolean;
- title: Array<ParseResult<GenericElement>>; // TODO: Add specific type when title is handled
- idno: Array<ParseResult<GenericElement>>; // TODO: Add specific type when idno is handled
- respStmt: RespStmt[];
- biblScope: Array<ParseResult<GenericElement>>; // TODO: Add specific type when biblScope is handled
- editor: Array<ParseResult<GenericElement>>; // TODO: Add specific type when editor is handled
- }
- export class NotesStmt extends GenericElement {
- notes: Note[];
- relatedItems: Array<ParseResult<GenericElement>>; // TODO: Add specific type when relatedItem is handled
- }
- export class SourceDesc extends GenericElement {
- structuredData: boolean;
- msDescs: MsDesc[];
- bibl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when bibl is handled
- biblFull: Array<ParseResult<GenericElement>>; // TODO: Add specific type when biblFull is handled
- biblStruct: Array<ParseResult<GenericElement>>; // TODO: Add specific type when biblStruct is handled
- recordingStmt: Array<ParseResult<GenericElement>>; // TODO: Add specific type when recordingStmt is handled
- scriptStmt: Array<ParseResult<GenericElement>>; // TODO: Add specific type when scriptStmt is handled
- }
- export class Extent extends GenericElement { }
- export class EncodingDesc extends GenericElement {
- structuredData: boolean;
- projectDesc: ProjectDesc[];
- samplingDecl: SamplingDecl[];
- editorialDecl: EditorialDecl[];
- tagsDecl: TagsDecl[];
- styleDefDecl: ParseResult<GenericElement>; // TODO: Add specific type when styleDefDecl is handled
- refsDecl: RefsDecl[];
- classDecl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when classDecl is handled
- geoDecl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when geoDecl is handled
- unitDecl: Array<ParseResult<GenericElement>>; // TODO: Add specific type when unitDecl is handled
- schemaSpec: Array<ParseResult<GenericElement>>; // TODO: Add specific type when schemaSpec is handled
- schemaRef: Array<ParseResult<GenericElement>>; // TODO: Add specific type when schemaRef is handled
- }
- export class ProjectDesc extends GenericElement {
- content: Paragraph[];
- }
- export class SamplingDecl extends GenericElement {
- content: Paragraph[];
- }
- export type CorrectionStatus = 'high' | 'medium' | 'low' | 'unknown';
- export type CorrectionMethod = 'silent' | 'markup';
- export class Correction extends ProjectDesc {
- status?: CorrectionStatus;
- method?: CorrectionMethod;
- }
- export type NormalizationMethod = 'silent' | 'markup';
- export class Normalization extends ProjectDesc {
- method: NormalizationMethod;
- sources: string[];
- }
- export type PunctuationMarks = 'none' | 'some' | 'all';
- export type PunctuationPlacement = 'internal' | 'external';
- export class Punctuation extends ProjectDesc {
- marks?: PunctuationMarks;
- placement?: PunctuationPlacement;
- }
- export type QuotationMarks = 'none' | 'some' | 'all';
- export class Quotation extends ProjectDesc {
- marks?: QuotationMarks;
- }
- export type HyphenationEol = 'all' | 'some' | 'hard' | 'none';
- export class Hyphenation extends ProjectDesc {
- eol?: HyphenationEol;
- }
- export class Segmentation extends GenericElement {
- content: Paragraph[];
- }
- export class StdVals extends GenericElement {
- content: Paragraph[];
- }
- export class Interpretation extends GenericElement {
- content: Paragraph[];
- }
- export class EditorialDecl extends GenericElement {
- structuredData: boolean;
- correction: Correction[];
- hyphenation: Hyphenation[];
- interpretation: Interpretation[];
- normalization: Normalization[];
- punctuation: Punctuation[];
- quotation: Quotation[];
- segmentation: Segmentation[];
- stdVals: StdVals[];
- }
- export type RenditionScope = 'first-line' | 'first-letter' | 'before' | 'after';
- export type Scheme = 'css' | 'xslfo' | 'free' | 'other';
- export class Rendition extends GenericElement {
- id: string;
- scope?: RenditionScope | string;
- selector?: string;
- scheme?: Scheme;
- schemeVersion?: string;
- }
- export class TagUsage extends GenericElement {
- gi: string;
- occurs: number;
- withId?: number;
- }
- export class Namespace extends GenericElement {
- name: string;
- tagUsage: TagUsage[];
- }
- export class TagsDecl extends GenericElement {
- rendition: Rendition[];
- namespace: Namespace[];
- }
- export class RefsDecl extends GenericElement {
- structuredData: boolean;
- cRefPattern: CRefPattern[];
- refState: RefState[];
- }
- export class RefState extends GenericElement {
- ed: string;
- unit: string;
- length: number;
- delim?: string;
- }
- export class CRefPattern extends GenericElement {
- matchPattern: string;
- replacementPattern: string;
- }
- export class Abstract extends GenericElement {
- resp: string;
- lang: string;
- }
- export class Calendar extends GenericElement {
- id: string;
- target: string;
- }
- export class CalendarDesc extends GenericElement {
- calendars: Calendar[];
- }
- export type CorrespActionType = 'sent' | 'received' | 'transmitted' | 'redirected' | 'forwarded';
- export class CorrespAction extends GenericElement {
- actionType: CorrespActionType | string;
- }
- export class CorrespContext extends GenericElement { }
- export class CorrespDesc extends GenericElement {
- content: Array<CorrespAction | CorrespContext | Note | Paragraph>;
- }
- export class Creation extends GenericElement { }
- export class Language extends GenericElement {
- ident: string;
- usage?: number;
- }
- export class LangUsage extends GenericElement {
- structuredData: boolean;
- languages: Language[];
- }
- export class CatRef extends GenericElement {
- scheme?: string;
- target?: string;
- }
- export class ClassCode extends GenericElement {
- scheme?: string;
- }
- export class Term extends GenericElement {
- id?: string;
- ref?: string;
- rend?: string;
- }
- export class Keywords extends GenericElement {
- scheme?: string;
- terms: Term[];
- }
- export class TextClass extends GenericElement {
- catRef: CatRef[];
- classCode: ClassCode[];
- keywords: Keywords[];
- }
- export type HandNoteScope = 'sole' | 'major' | 'minor';
- export class HandNote extends GenericElement {
- id: string;
- scribe?: string;
- scribeRef?: string;
- script?: string;
- scriptRef?: string;
- medium?: string;
- scope?: HandNoteScope;
- }
- export class HandNotes extends GenericElement {
- content: HandNote[];
- }
- export class Ptr extends GenericElement {
- id?: string;
- target?: string;
- cRef?: string;
- ptrType?: string;
- rend?: string;
- }
- export class Transpose extends GenericElement {
- content: Ptr[];
- }
- export class ListTranspose extends GenericElement {
- description: Description[];
- transposes: Transpose[];
- }
- export type ChannelMode = 's' | 'w' | 'sw' | 'ws' | 'm' | 'x';
- export class Channel extends GenericElement {
- mode?: ChannelMode;
- }
- export class Constitution extends GenericElement {
- constitutionType?: string;
- }
- export class Derivation extends GenericElement {
- derivationType?: string;
- }
- export class Domain extends GenericElement {
- domainType?: string;
- }
- export class Factuality extends GenericElement {
- factualityType?: string;
- }
- export type ActiveParticipants = 'singular' | 'plural' | 'corporate' | 'unknown';
- export type PassiveParticipants = 'self' | 'single' | 'many' | 'group' | 'world';
- export class Interaction extends GenericElement {
- interactionType?: string;
- active?: ActiveParticipants | string;
- passive?: PassiveParticipants | string;
- }
- export class Preparedness extends GenericElement {
- preparednessType?: string;
- }
- export type Degree = 'high' | 'medium' | 'low' | 'unknown';
- export class Purpose extends GenericElement {
- purposeType?: string;
- degree?: Degree;
- }
- export class TextDesc extends GenericElement {
- channel: Channel[];
- constitution: Constitution[];
- derivation: Derivation[];
- domain: Domain[];
- factuality: Factuality[];
- interaction: Interaction[];
- preparedness: Preparedness[];
- purpose: Purpose[];
- }
- export class ParticDesc extends GenericElement {
- structuredData: boolean;
- participants: NamedEntitiesList[];
- }
- export class Setting extends GenericElement {
- who?: string;
- name: GenericElement[]; // TODO: Add specific type when name is handled
- date: GenericElement[]; // TODO: Add specific type when date is handled
- time: GenericElement[]; // TODO: Add specific type when time is handled
- locale: GenericElement[]; // TODO: Add specific type when locale is handled
- activity: GenericElement[]; // TODO: Add specific type when activity is handled
- }
- export class SettingDesc extends GenericElement {
- structuredData: boolean;
- settings: Setting[];
- places: NamedEntitiesList[];
- }
- export class ProfileDesc extends GenericElement {
- abstract: Abstract[];
- calendarDesc: CalendarDesc[];
- correspDesc: CorrespDesc[];
- creation: Creation[];
- handNotes: HandNotes[];
- langUsage: LangUsage[];
- listTranspose: ListTranspose[];
- particDesc: ParticDesc[];
- settingDesc: SettingDesc[];
- textClass: TextClass[];
- textDesc: TextDesc[];
- }
- export type Status = 'approved' | 'candidate' | 'cleared' | 'deprecated' | 'draft' | 'embargoed' | 'expired' | 'frozen' | 'galley' | 'proposed' | 'published' | 'recommendation' | 'submitted' | 'unfinished' | 'withdrawn';
- export class Change extends GenericElement {
- id?: string;
- who?: string;
- status?: Status | string;
- when?: string;
- notBefore?: string;
- notAfter?: string;
- targets?: string[];
- }
- export class ListChange extends GenericElement {
- content: Array<ListChange | Change>;
- id?: string;
- description?: Description;
- ordered?: boolean;
- }
- export class RevisionDesc extends GenericElement {
- content: Array<ListChange | Change>;
- status?: Status | string;
- }
- export class ProjectInfo {
- fileDesc: FileDesc;
- encodingDesc: EncodingDesc;
- profileDesc: ProfileDesc;
- revisionDesc: RevisionDesc;
- }
- export interface ViewerDataValue {
- manifestURL?: string;
- xmlImages?: XMLImagesValues[];
- }
- export interface XMLImagesValues {
- url: string;
- width?: number;
- height?: number;
- }
- export interface ViewerDataType {
- type: string;
- value: ViewerDataValue;
- }
|