Re: [gutvol-d] on viewing the .pgtei file directly (gutvol-d Digest, Vol 13, Issue 23)

Bowerbird@aol.com wrote:
p.s. when i try to view 16523-x.xml directly in firefox, it says: "this xml file does not appear to have any style information associated with it. the document tree is shown below." and then it shows me the document tree. how can i fix this problem?
Download the file 16523-x.zip, and extract the files. Hopefully, the file "persistent.css" is still part of the package. Edit the .xml file with a simple text editor (beware Microsoft tools!) to add the line: <?xml-stylesheet href="persistent.css" type="text/css"?> immediately after the line: <?xml version="1.0" encoding="utf-8" ?> Save the file, and hopefully your editor won't have screwed up the utf-8 encoding. Now view the file from your local file system with Firefox. You should see just a bunch of run-on text, because the styles in 'persistent.css' are designed to be used with the XSL transformation to XHTML, and so none of them apply. But the document structure will disappear. You can experiment by adding new styles to 'persistent.css' (don't forget to save the file and reload your browser after adding rules). For example, add "p { display:block; text-indent: 3em }" and all of a sudden you will get distinct, indented paragraphs (and some non-paragraphs will also become distinct and indented). Add "teiHeader { display: none }" and all the Gutenberg legal cruft, together with the metadata which is typically only of interest to archivers, will disappear (it's still there, it's just not "in your face" anymore). Add "head { display:block; font-size: x-large; text-align: center }" and the headers will pop out. Add "hi { font-style: italic }" and highlighted text will become italicized. Use "hi { background: yellow }" instead and the highlighted text will look like you have run over it with a yellow highlighter. Or combine them both: "hi { font-style: italic; background: yellow }". The TEI markup used in this file is fairly simple, so you could probably get a pretty good looking file by using no more than a dozen or so CSS rules. Mr. Perathoner's TEI version of Alice in Wonderland (http://www.gutenberg.org/tei/marcello/0.3/examples/alice/) looks like it is much more complex, and would be funner to play with. I really like _Alice_ as an experimental text because it has quite a few typographical oddities which make it a good test case. Unfortunately, I haven't been able to figure out how to tell Firefox how to use a user specified css file (I've got version 1.0.4). If anyone can enlighten me on this score, I would be most grateful. Mr. Noring tells me that I can do it with Opera, but I've yet to try it.

On 8/24/05, Lee Passey <lee@novomail.net> wrote:
Unfortunately, I haven't been able to figure out how to tell Firefox how to use a user specified css file (I've got version 1.0.4). If anyone can enlighten me on this score, I would be most grateful. Mr. Noring tells me that I can do it with Opera, but I've yet to try it.
Put it in userContent.css? http://www.mozilla.org/support/firefox/edit#content R C
participants (2)
-
Lee Passey
-
Robert Cicconetti