Discept UI is a React-based frontend application designed to work with TEI (Text Encoding Initiative) files, providing features for displaying and editing these files, as well as future integration with IIIF image sources.
- Renders TEI XML documents as HTML using
CETEIHelper. - This component is used to display TEI files in a human-readable format.
- It allows for the visualization of TEI documents in the frontend interface.
- A component for displaying zoomable images, with future support for IIIF (International Image Interchange Format) sources.
- Currently handles standard image URLs, with future plans to support IIIF-compliant image tiles for better integration with high-resolution image displays.
- A button for performing AI-powered document alignment.
- It uses the BertAlign service to align two documents (languages) by sending their contents to a backend for processing.
- The button shows a loading indicator while the AI alignment is in progress.
To run Discept UI on your local machine, follow these steps:
npm installnpm startThis will start the development server, and you can open the application in your browser at http://localhost:3000.
The toolbar now includes a Sync button for reading and writing TEI files directly from an eXistDB collection. Configure the server URL, collection path, and credentials in the dialog. Errors such as network issues trigger an alert describing the problem.