Skip to content

Commit

Permalink
Refactor data models
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaraDipi committed Feb 9, 2021
1 parent abd6f17 commit 21ed5e7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/app/models/evt-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -875,36 +875,31 @@ export class SamplingDecl extends GenericElement {

export type CorrectionStatus = 'high' | 'medium' | 'low' | 'unknown';
export type CorrectionMethod = 'silent' | 'markup';
export class Correction extends GenericElement {
content: Paragraph[];
export class Correction extends ProjectDesc {
status?: CorrectionStatus;
method?: CorrectionMethod;
}

export type NormalizationMethod = 'silent' | 'markup';
export class Normalization extends GenericElement {
content: Paragraph[];
export class Normalization extends ProjectDesc {
method: NormalizationMethod;
sources: string[];
}

export type PunctuationMarks = 'none' | 'some' | 'all';
export type PunctuationPlacement = 'internal' | 'external';
export class Punctuation extends GenericElement {
content: Paragraph[];
export class Punctuation extends ProjectDesc {
marks?: PunctuationMarks;
placement?: PunctuationPlacement;
}

export type QuotationMarks = 'none' | 'some' | 'all';
export class Quotation extends GenericElement {
content: Paragraph[];
export class Quotation extends ProjectDesc {
marks?: QuotationMarks;
}

export type HyphenationEol = 'all' | 'some' | 'hard' | 'none';
export class Hyphenation extends GenericElement {
content: Paragraph[];
export class Hyphenation extends ProjectDesc {
eol?: HyphenationEol;
}

Expand Down

0 comments on commit 21ed5e7

Please sign in to comment.