Page 1 of 1

Author view -- change element styling

Posted: Mon Mar 05, 2012 11:48 pm
by bds
Hi all --

I'm trying to alter the way Author displays an <unclear> element. The default is a light gray italics that is difficult to see.

I don't see an obvious place to make a change under Options > Preferences > Editor > Edit modes > Author.... Is this a place where I need to edit a CSS file? If so, I'm not finding the correct file. I'm working with TEI P4 (I know it needs to be upgraded :D ), oXygen 13.2, Mac OS X.

Code: Select all

$ pwd
/Applications/oxygen/frameworks/tei
$ ls
resources tei.jar tei2xml.dtd teip4.framework teip5.framework teip5odd.framework templates xml

Code: Select all

$ find */ -name '*.css'
xml//tei/css/isosch/iso-schematron.css
xml//tei/css/links.css
xml//tei/css/relaxng/relaxng.css
xml//tei/css/tei.css
xml//tei/css/tei_oxygen.css
xml//tei/css/tei_oxygen_odd.css
xml//tei/stylesheet/epub-print.css
xml//tei/stylesheet/msdescription.css
xml//tei/stylesheet/odd.css
xml//tei/stylesheet/profiles/agora/html/tei-agora.css
xml//tei/stylesheet/profiles/bodley/epub/bodley.css
xml//tei/stylesheet/profiles/ecco/epub/ecco.css
xml//tei/stylesheet/profiles/godwindiaries/epub/ota.css
xml//tei/stylesheet/profiles/iso/html/iso.css
xml//tei/stylesheet/profiles/iso/iso-extracts.css
xml//tei/stylesheet/profiles/iso/iso.css
xml//tei/stylesheet/profiles/oepack/epub/oepack.css
xml//tei/stylesheet/profiles/oepack/html/otatext.css
xml//tei/stylesheet/profiles/ota/epub/ota.css
xml//tei/stylesheet/profiles/otapages/epub/ota.css
xml//tei/stylesheet/profiles/oucs/epub/oucs.css
xml//tei/stylesheet/profiles/podcasts/epub/podcast.css
xml//tei/stylesheet/profiles/tei/epub/guidelines-print.css
xml//tei/stylesheet/profiles/tei/epub/guidelines.css
xml//tei/stylesheet/profiles/tei/epub/odd.css
xml//tei/stylesheet/slides/teislides.css
xml//tei/stylesheet/tei-print.css
xml//tei/stylesheet/tei.css
xml//tei/stylesheet/teislides.css
xml//teip4/stylesheet/epub-print.css
xml//teip4/stylesheet/msdescription.css
xml//teip4/stylesheet/odd.css
xml//teip4/stylesheet/tei-print.css
xml//teip4/stylesheet/tei.css
xml//teip4/stylesheet/teislides.css
I tried editing the teip4/stylesheet/tei.css, but the changes didn't seem to take after restarting oXygen. Thanks in advance!

Cheers,
Bridger

Re: Author view -- change element styling

Posted: Tue Mar 06, 2012 12:24 pm
by mihaela
Hi Bridger,

The CSS file used for rendering TEI P4 content is [Oxygen-folder]/frameworks/tei/xml/tei/css/tei_oxygen.css. The style for <unclear/> element is declared in tei.css (this CSS is imported in tei_oxygen.css):

Code: Select all


unclear {
display: inline;
color: silver;
background-color: inherit;
font-style: italic;
}
To change the style for <unclear/> element you should add your modifications in tei_oxygen.css.

Best Regards,
Mihaela

Re: Author view -- change element styling

Posted: Tue Mar 06, 2012 7:33 pm
by bds
hi Mihaela,

thanks very much for the prompt and informative response!

Cheers!