Spacing bug in Author mode, oXygen 9.1

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
dsewell
Posts: 124
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Spacing bug in Author mode, oXygen 9.1

Post by dsewell » Mon Jan 07, 2008 8:20 pm

I'm running standalone oXygen 9.1 (build 2007122116) under OS X. I'm finding a bug in space rendering in Author view with a simple TEI document where there is a <hi> tag following UTF-8 quotation marks. I haven't spent time playing around to see whether other non-ASCII characters cause the same behavior. What I'm seeing on screen is shown in this screen grab: http://lister.ei.virginia.edu/~drs2n/spacing.png. Clicking inside the "bad" paragraph causes the spacing to jump around.

This is using the default CSS associated with TEI files. The sample XML file:

Code: Select all


<TEI xmlns="http://www.tei-c.org/ns/1.0">
<!-- a simple TEI Lite file demonstrating a bug in oXygen XML space handling -->
<teiHeader>
<fileDesc>
<titleStmt>
<title>Test document</title>
<author>David Sewell, dsewell@virginia.edu</author>
</titleStmt>
<publicationStmt>
<p>unpublished</p>
</publicationStmt><sourceDesc>
<p>original</p>
</sourceDesc></fileDesc>
</teiHeader>
<text>
<body>
<div>
<p>This is a paragraph.</p>
</div>
<div>
<note n="1" xml:id="n1">
<p>This is a note. It has a word in <hi rend="italic">italics</hi>
here. This paragraph is okay when you click inside and
edit it.</p>
</note>
<note n="2" xml:id="n2">
<p>This paragraph has text inside “Unicode quotation marks” and
then <hi rend="italic">italics</hi> like so. Are the spacing
and editing okay, or not?</p>
</note>
</div>
</body>
</text>
</TEI>

dsewell
Posts: 124
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

More info

Post by dsewell » Mon Jan 07, 2008 8:23 pm

I'm running OS X 10.4.11, with Java version 1.5.0_13

dsewell
Posts: 124
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

No bug running under Leopard

Post by dsewell » Tue Jan 08, 2008 5:45 am

I just tried this on another machine running OS X 10.5.1, and I do not see the buggy behavior.

george
Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Tue Jan 08, 2008 5:16 pm

Hi David,

We were also not able to reproduce the issue and we tested on a few operating systems.
It may be a font related problem, if we get wrong information when we ask the width of the rendered text and thus we display the following inline block of text at a different location than expected.

Best Regards,
George
George Cristian Bina

Dan
Posts: 462
Joined: Mon Feb 03, 2003 10:56 am

Post by Dan » Tue Jan 08, 2008 5:19 pm

I tried on my Mac 10.5.1 and on a 10.4.11 and I could not reproduce it.

I think there is a problem with some fonts on that computer. I've seen cases in which some fonts report larger metrics than real, and the layout gets a bit out of the sync.

You could try opening the file frameworks/tei/xml/tei/css/tei.css and change the used fonts. Search for "font-family" and replace all the values with:

font-family:roman, 'times new roman', times, serif;

Regards,
Dan

dsewell
Posts: 124
Joined: Mon Jun 09, 2003 6:02 pm
Location: Charlottesville, Virginia USA

Post by dsewell » Tue Jan 08, 2008 9:24 pm

Dan wrote:I tried on my Mac 10.5.1 and on a 10.4.11 and I could not reproduce it.

I think there is a problem with some fonts on that computer. I've seen cases in which some fonts report larger metrics than real, and the layout gets a bit out of the sync.

You could try opening the file frameworks/tei/xml/tei/css/tei.css and change the used fonts. Search for "font-family" and replace all the values with:

font-family:roman, 'times new roman', times, serif;
I was able to fix this on my system by editing tei_oxygen.css and adding

Code: Select all

font-family: Georgia
to the "TEI, body" definition. (I prefer Georgia in any case.) So it does appear to be a font metric problem with this particular configuration of Java + OS X.

Post Reply