A Recogito Studio plugin for exporting TEI annotations as inline markup.
This plugin enables export of annotations as embedded tags in your TEI source, providing more natural integration with downstream TEI workflows. Based on TEI Standoff Converter.
- Injects annotations with selected tags (currently
placeName
andpersName
) directly into the TEI markup. - Lets users choose whether to inline only Recogito annotations, or also include read-only standOff annotations already present in the document.
- When exporting both Recogito and standOff annotations, Recogito annotations will override standOff ones at the same location.
💡 Tip: Combine this plugin with the Recogito Revisions Plugin to manually refine or override automatic NER annotations.
- Change into your Recogito Client folder. To install the plugin package, run:
npm install @recogito/plugin-tei-inliner
- Update your astro.config.mjs to include the plugin:
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import netlify from '@astrojs/netlify';
+ import TEIInlinePlugin from '@recogito/plugin-tei-inliner';
export default defineConfig({
integrations: [
react(),
+ TEIInlinePlugin()
],
output: 'server',
adapter: netlify(),
vite: {
ssr: {
noExternal: ['clsx', '@phosphor-icons/*', '@radix-ui/*']
},
optimizeDeps: {
esbuildOptions: {
target: 'esnext'
}
}
}
});
- Restart the Recogito Client.