A custom web component built in svelte designed to take a path to a TEI file and display it as HTML.
This repository contains the source code for a custom web component built with Svelte that takes in a path to a TEI file and transforms it into HTML using CETEIcean. The component is designed specifically for Evolving Hands, but is meant to be reusable in other applications by the Newcastle University Library.
Tiago Sousa Garcia
RSE Team
Newcastle University
([email protected])
TBD
Copy the entire dist/TeiConverter
folder to the root of your project (or a suitable folder in the project directory).
TeiConverter/tei-converter.umd.js
as a script in your HTML:<script src="./tei-converter.umd.js"></script>
<tei-converter>
anywhere in the <body>
of your HTML with a @path
attribute pointing to the location of the TEI file you want to convert, and a @configPath
attribute pointing to the location of the configuration file you want to use (the distribution folder includes an example to use as a base). More details on the config file are available here.<tei-converter path="PATH/TO/TEI/FILE.xml" configPath="TeiConverter/TeiConverter.config.json"/>
├── project_root
│ ├── index.html
| └── TeiConverter
│ ├── tei-converter.umd.js
│ └── TeiConverter.config.json
<!DOCTYPE html>
<html lang="en">
<head>
<script src="./TeiConverter/tei-converter.umd.js"></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TEI Converter test</title>
</head>
<body>
<tei-converter path="https://raw.githubusercontent.com/NewcastleRSE/beeing-human-tei-data/dev/1623_consolidated.xml" configPath="TeiConverter/TeiConverter.config.json"/>
</body>
</html>
TBD
TDB
TDB
TBD
Protected and can only be pushed to via pull requests. It should be considered stable and a representation of production code.
Should be considered fragile; code should compile and run, but features may be prone to errors.
A branch per feature that is being worked on.
https://nvie.com/posts/a-successful-git-branching-model/