Skip to content

Validate CodeMirror input as valid SGML/NLP compatible #126

@amir-zeldes

Description

@amir-zeldes

Invalid SGML can break the spreadsheet conversion, for example:

<lb>ⲧⲱⲛ_·>_ϫⲉ|ⲟⲩ|ⲣⲱ</lb>

Additionally, some NLP components expect specific constraints on data. For Coptic Scriptorium, element content (not inside attributes) may not contain - or |, since the NLP chain is expecting no pre-tokenization. The latter problem could potentially be solved in the NLP tools, but users would be unaware of what is probably an error.

Possible solutions:

  1. Validate SGML to rule out unescaped >, < in element content (probably in JS in client, maybe highlighting in CodeMirror?)
  2. Make an easily configurable script that also checks for specific characters in element content, configurable per instance, or via the validations table

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions