Date: Tue, 15 Nov 1994 16:51:15 CST Reply-To: "Gregory J. Murphy" Sender: Text Encoding Initiative public discussion list From: "Gregory J. Murphy" Subject: TEI DTD archive for Author/Editor Since I have recieved a number of requests over the past few weeks for help compiling the TEI DTD for use with SoftQuad's Author/Editor, I have, with the permission of Yuri Rubinski, set up an archive of pre-compiled rules files. They are available for anonymous ftp at ceth.princeton.edu, in the directory .\rules. The file names are somewhat cryptic: each letter represents a tag set, ie. gpvd.rls was compiled with the base tag sets for general, prose, verse and drama included. Since everything was generated automatically, the archive will be updated whenever the DTD is modified. Only licenced users of SoftQuad products are authorized to download these files. Only licenced users of SoftQuad products would have the first clue what to do with these files. ********************************************************************** - Gregory Murphy Text Systems Manager CETH, the Center for Electronic Texts in the Humanities e-mail: GJMURPHY@PUCC.PRINCETON.EDU web: HTTP://WWW.PRINCETON.EDU/~GJMURPHY phone: (609) 258-2460 ********************************************************************** Date: Mon, 26 Jun 1995 12:11:11 CDT Reply-To: "Gregory J. Murphy" Sender: Text Encoding Initiative public discussion list From: "Gregory J. Murphy" Subject: RulesBuilder (fwd) > ***** BTW, a plea: someone said last year (?) that they had flattened > ***** the TEI DTD to avoid all the inclusions (?) so that it > ***** would load in Rules Builder for A/E. I can't find the ref > ***** to this: can anyone point me at an FTP site? > > [...] > >So, can anyone answer the original question? Or, to extend that question, >is there an efficient way to automate this DTD "flattening"? I am still >using an old version of the TEI DTDs, and I'd like a simple system for >taking revised DTD source, making the modifications required by >RulesBuilder, and rebuilding the rules files with my customizations. A number of people have put together tools for doing this, including Michael Sperberg-Mcqueen and myself. Mine is written in Perl, is less clever than Michael's, but is much faster - :-). It is available free via anonymous ftp to ceth.princeton.edu in the directory ./tei/tools and is called "preparse." The compressed zip file includes documentation aimed at users who already have Perl installed and know how to use it. It will run under Perl 4.x for Unix, or BigPerl for DOS. I have no plans to port it to MacPerl, because I am severely Mac-challenged. I will upgrade to Perl 5.0 whenever our system adminstrator gets around to installing it. Here's what it does. You feed it the tei dtd, and specify on the command line which parameter entities you whish to include (ie. TEI.prose and TEI.textcrit). It reads the dtd, expanding all parameter entities. It then turns around and rewrites the dtd, with the difference that if it come across an element in a content model which lacks a declaration, it erases the element and cleans up the connectors. The result is one flavor of the tei in a single file, clean, which Rules Builder will compile in a snap. It can also be used in conjunction with WordPerfect's Intellitag, which suffers similar (and additional) shortcomings. ** Still to do ** : preparse doesn't read document type subsets, which means there is no direct way to include entities for TEI.extensions.dtd and TEI.extensions.ent. When I get some more free time I will include a feature to do this. - Gregory Murphy CETH, the Center for Electronic Texts in the Humanities