Page 1 of 1
tei:pb/@facs image not shown in author mode
Posted: Thu Oct 03, 2019 2:20 pm
by eduarddrenth
Is there a way to show tei:pb/@facs image in author mode
Re: tei:pb/@facs image not shown in author mode
Posted: Wed Oct 09, 2019 9:43 am
by alex_jitianu
Hello,
The author layout is controlled through CSS so if you write the proper rule then it will render that image. If you can post a sample TEI then I can provide a possible CSS rule to render the image.
Best regards,
Alex
Re: tei:pb/@facs image not shown in author mode
Posted: Wed Oct 09, 2019 1:34 pm
by eduarddrenth
Hi,
Never saw your reply because I did not receive mail.
I am very experienced in css, where can I find the css?
Regards, Eduard
alex_jitianu wrote: ↑Wed Oct 09, 2019 9:43 am
Hello,
The author layout is controlled through CSS so if you write the proper rule then it will render that image. If you can post a sample TEI then I can provide a possible CSS rule to render the image.
Best regards,
Alex
Re: tei:pb/@facs image not shown in author mode
Posted: Wed Oct 09, 2019 1:43 pm
by eduarddrenth
Found the css here: Oxygen\ XML\ Editor\ 21/frameworks/tei/xml/tei/css/
alex_jitianu wrote: ↑Wed Oct 09, 2019 9:43 am
Hello,
The author layout is controlled through CSS so if you write the proper rule then it will render that image. If you can post a sample TEI then I can provide a possible CSS rule to render the image.
Best regards,
Alex
Re: tei:pb/@facs image not shown in author mode
Posted: Wed Oct 09, 2019 3:53 pm
by eduarddrenth
Thanks for the pointer,
I created tei_pbimages.css and added that as an alternate stylesheet for TEI P5:
Code: Select all
pb[facs] {
content: attr(facs,url);
width: 600px;
float: right;
display: block;
}
alex_jitianu wrote: ↑Wed Oct 09, 2019 9:43 am
Hello,
The author layout is controlled through CSS so if you write the proper rule then it will render that image. If you can post a sample TEI then I can provide a possible CSS rule to render the image.
Best regards,
Alex
Re: tei:pb/@facs image not shown in author mode
Posted: Thu Oct 10, 2019 8:38 am
by alex_jitianu
Hi,
I'm glad to hear you found a solution. Perhaps it is worth sharing the CSS with the official framework so that others will benefit from it:
https://github.com/TEIC/oxygen-tei
You can add an issue on the project or send a pull request.
Best regards,
Alex