The TEI Content module allows the display of textual documents encoded according to the standards of the Text Encoding Initiative (TEI). Texts are stored in the Drupal database and displayed through an XSL transformation using the content filter mechanism. The module provides specific support for many of the features that are part of the TEI Lite (P5) set of elements.

Possible use cases for TEI Content are text edition projects in literary studies, history, or other text-based disciplines, provided they have a relatively straightforward editorial situation: only one given edition of a text is documented, a single-column presentation makes sense, and authorial and editorial annotation are important. The modules could also be of use in educational contexts, e.g. workshops on electronic textual editing.

Features
* XML/TEI code is stored in the Drupal database (no separate database required).
* XSL transformation to HTML is done server-side (original XML/TEI remains unmodified).
* TEI documents can be uploaded via the Drupal GUI and modified online.
* Relies on the Drupal core book module for longer, structured documents.
* Stylesheet (XSL+CSS) provided out-of-the-box caters for larger part of TEI Lite (P5) set of elements.
* Toggle mechanism for two alternative transcriptions via TEI’s “choice” mechanism.
* Bottom toolbar for switching between transcriptions, in-page navigation, book navigation.
* Two types of notes displayed in right sidebar: author’s and editor’s notes.
* Four types of quotes displayed: inline or block, quotes or italics.
* Display of scribal corrections: TEI’s “del”, “gap”, “add”, and “unclear” elements.
* Basic settings (colors, texts) via Drupal GUI.
* Rather detailed documentation is available.

Similar module
The XML Content module (http://drupal.org/project/xmlcontent) is more general in scope in that it allows displaying any XML document and does not provide any specific stylesheet. At the same time, its particular strenght is the online validation of XML documents for well-formedness and/or validity against a schema. The strength of the TEI Content module is that it offers more advanced support specifically for TEI Lite.

More information
Sandbox page: http://drupal.org/sandbox/christof.s/1118172
Sample installation: http://www.berardier.org/essai
Attached files show two of the configuration screens of the module.

Comments

christof.s’s picture

Anyone interested in having a look at our work? Any feedback would be very much appreciated.

sam sai’s picture

Hi Christof,

I would be very much interested in testing your plugin. I'm just wondering how to updload it : i suppose I'll be able to do that only once the drupal reviewers have validate the add-on? Or do I simply get it from this page? http://drupalcode.org/sandbox/christof.s/1118172.git

Thanks a lot for your work, looking forward to using it.
All the best,
Sam

christof.s’s picture

@Sam: I'm replying via your profile's contact form.

christof.s’s picture

StatusFileSize
new17.56 KB

Hi there, I'm attaching a sample XML/TEI file encoded in TEI Lite for those who don't have one around. The "top-level" one can be uploaded first, then the "node1" on can be used as a first chapter/section/page. This should make it easier to test the module. -- Christof

christof.s’s picture

Hi there! Is there anything missing in our project application, or some other problem? We are ready to supply any information or data that may be necessary for a review of our code. Or is it just that everyone is busy? Hope I don't sound too impatient ;-)

vlester’s picture

Hello,
Same question, where can I download it ?
This module looks really really great, I can't wait to test it !

christof.s’s picture

Hi Vlester,
I am replying on your contact page, can send you the modules for testing.
Christof

christof.s’s picture

Hi everyone, because the review process will probably take some more time, and there is some interest in the module from people who are not familiar with the GIT repository, the modules can now (provisionally) be downloaded at http://www.teichi.org. Please remember that the module has not been approved by Drupal and is still experimental. If you do test the modules, please write about your experience, either here or by contacting me directly.

klausi’s picture

Status: Needs review » Needs work

* "readme.txt" needs to be called README.txt, see http://drupal.org/node/318#naming
* lines in README.txt should not exceed 80 characters
* Remove all old CVS $Id$ tags, they are not needed anymore
* info file: only list files therre that contain classes/interfaces
* info file: why are the dependencies commented out?
* info file: remove the datestamp line, drupal.org packaging adds such information
* teicontent_install(): there should be no empty line between doc block and function definition
* "Implements hook_install ()" there should be no space before "()"
* teicontent_node_infos_schema(): nested array indentation is not correct, array entries of the same array should be at the same level
* "hook_help()" should be "Implements hook_help().". Also elsewhere
* teicontent_filter_tips() each important function should have a doc block
* _teicontent_get_content_infos(): @return code block does not say that an array is returned.

... several other code style issues. Please go through all your code again and apply proper coding standards. Also check your comments.

christof.s’s picture

Thanks, klausi, for your comments. We will fix those things and report back.

misc’s picture

@christof.s has been contacted to ask if the application is abandoned.

After ten weeks with a status of needs work: the applicant may be contacted by a reviewer to determine whether the application was indeed abandoned. The action taken by the reviewer should be documented in the project application issue.

http://drupal.org/node/894256

christof.s’s picture

Hi MiSc, thank you for your message. The application is still active. We have taken note of the issues mentioned by klausi and generally have been working some more on the module, but had to take a break from it. We will post a revised version of the module soon. Thank you!

misc’s picture

Could we mark this application as postponed until you have the time to work on it?

christof.s’s picture

Status: Needs work » Postponed

Sure, I guess we can do that.

Anonymous’s picture

Is this being worked on at all? I could commit a couple hours to cleaning up some of the coding style issues, but wanted to make sure the latest version is in the git repo before starting.

christof.s’s picture

Hi ahankinson, Yes we are working on this again! Bear with us for some more weeks and you should be able to look at a clearly improved version. Thanks!

klausi’s picture

Status: Postponed » Closed (won't fix)

Closing due to lack of activity. Feel free to reopen if you are still working on this application.