1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285 |
- 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;
- }
|