[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-dev
Subject:    AW: RTF: Inline background-color will be inherit to next cell
From:       <markus.sticker.epos () zf ! com>
Date:       2013-03-19 9:13:52
Message-ID: E866FA5CA032EF4B96CBAC456C703F5B070F01A3 () frds00835 ! emea ! zf-world ! com
[Download RAW message or body]

Hi Robert,

 

thanks for your reply.

What is your guess in the code. I hab a look at the textrun 
but I seems that there is no fail.

Thanks

 

Best regards

 

Markus

 

Von: Robert Meyer [mailto:rmeyer@hotmail.co.uk] 
Gesendet: Montag, 18. März 2013 12:41
An: fop-dev@xmlgraphics.apache.org
Betreff: RE: RTF: Inline background-color will be inherit to next cell

 

Hi Markus,

I had a quick look at this on Friday. The problem, from what I could make out, is \
that styling information is stored on a stack which runs in parallel with an element \
array. When it comes to the stylized text, it reads the top most set of attributes \
(which in RTF just sets the new colour / font as it doesn't worry about state) and \
writes the text. The problem comes when the text has finished as although the \
previous style information is now the top-most on the stack, it is not written to the \
document and therefore is stuck as the styled text. I am not sure if this is specific \
to tables, but if not it would seem odd that no-one has picked up on this before.

I am guessing the way to fix this would be that whenever anything is removed from the \
attribute stack, the next top-most item (previous style) is then written to the RTF \
document before any else happens. The problem with this though is that it may cause \
other issues as I am not sure exactly when the styling information is removed. If it \
occurs earlier e.g. just after the style has been written, you won't want the \
previous style to be applied as the text being written won't have started / finished \
yet. It's a difficult one and all depends on the implementation.

I will take another look at this at some point but unfortunately at present have \
prior obligations.

Regards,

Robert Meyer

________________________________

Subject: RTF: Inline background-color will be inherit to next cell
Date: Fri, 15 Mar 2013 11:56:55 +0100
From: markus.sticker.epos@zf.com <mailto:markus.sticker.epos@zf.com> 
To: fop-dev@xmlgraphics.apache.org <mailto:fop-dev@xmlgraphics.apache.org> 

Hi,

 

I found this error. The inline background-color has been taken to the next cell.

Mit freundlichen Grüßen/Kind regards

Markus Sticker
Technik ZF-Konzern/Operations and Technology ZF Group
Infrastruktur/Infrastructure (OTEP4)

ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone  +49 7541 77-7644, Telefax/Fax  +49 7541 77-907644
Markus.Sticker.epos@zf.com


Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio \
Behr  Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. \
Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard \
Buhl, Rolf Lutz, Wilhelm Rehm

Sitz/Headquarters: Friedrichshafen 
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal \
court of Ulm HRB 630206

 


[Attachment #3 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft \
Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} \
o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.ecxmsonormal, li.ecxmsonormal, div.ecxmsonormal
	{mso-style-name:ecxmsonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.ecxmsochpdefault, li.ecxmsochpdefault, div.ecxmsochpdefault
	{mso-style-name:ecxmsochpdefault;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.ecxmsohyperlink
	{mso-style-name:ecxmsohyperlink;}
span.ecxmsohyperlinkfollowed
	{mso-style-name:ecxmsohyperlinkfollowed;}
span.ecxe-mailformatvorlage17
	{mso-style-name:ecxe-mailformatvorlage17;}
p.ecxmsonormal1, li.ecxmsonormal1, div.ecxmsonormal1
	{mso-style-name:ecxmsonormal1;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
span.ecxmsohyperlink1
	{mso-style-name:ecxmsohyperlink1;
	color:blue;
	text-decoration:underline;}
span.ecxmsohyperlinkfollowed1
	{mso-style-name:ecxmsohyperlinkfollowed1;
	color:purple;
	text-decoration:underline;}
span.ecxe-mailformatvorlage171
	{mso-style-name:ecxe-mailformatvorlage171;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
p.ecxmsochpdefault1, li.ecxmsochpdefault1, div.ecxmsochpdefault1
	{mso-style-name:ecxmsochpdefault1;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Calibri","sans-serif";}
span.E-MailFormatvorlage28
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi \
Robert,<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>thanks for \
your reply.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What is \
your guess in the code. I hab a look at the textrun <br>but I seems that there is no \
fail.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best \
regards<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Markus<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span lang=EN-US \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Von:</span></b><span \
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Robert Meyer \
[mailto:rmeyer@hotmail.co.uk] <br><b>Gesendet:</b> Montag, 18. März 2013 \
12:41<br><b>An:</b> fop</span><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>-dev@xmlgraphics.apache.org<br><b>Betreff:</b> \
RE: RTF: Inline background-color will be inherit to next \
cell<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p \
class=MsoNormal style='margin-bottom:12.0pt'><span \
style='font-family:"Calibri","sans-serif"'>Hi Markus,<br><br>I had a quick look at \
this on Friday. The problem, from what I could make out, is that styling information \
is stored on a stack which runs in parallel with an element array. When it comes to \
the stylized text, it reads the top most set of attributes (which in RTF just sets \
the new colour / font as it doesn't worry about state) and writes the text. The \
problem comes when the text has finished as although the previous style information \
is now the top-most on the stack, it is not written to the document and therefore is \
stuck as the styled text. I am not sure if this is specific to tables, but if not it \
would seem odd that no-one has picked up on this before.<br><br>I am guessing the way \
to fix this would be that whenever anything is removed from the attribute stack, the \
next top-most item (previous style) is then written to the RTF document before any \
else happens. The problem with this though is that it may cause other issues as I am \
not sure exactly when the styling information is removed. If it occurs earlier e.g. \
just after the style has been written, you won't want the previous style to be \
applied as the text being written won't have started / finished yet. It's a difficult \
one and all depends on the implementation.<br><br>I will take another look at this at \
some point but unfortunately at present have prior \
obligations.<br><br>Regards,<br><br>Robert Meyer<o:p></o:p></span></p><div><div \
class=MsoNormal align=center style='text-align:center'><span \
style='font-family:"Calibri","sans-serif"'><hr size=2 width="100%" align=center \
id=stopSpelling></span></div><p class=MsoNormal style='margin-bottom:12.0pt'><span \
lang=EN-US style='font-family:"Calibri","sans-serif"'>Subject: RTF: Inline \
background-color will be inherit to next cell<br>Date: Fri, 15 Mar 2013 11:56:55 \
+0100<br>From: </span><span style='font-family:"Calibri","sans-serif"'><a \
href="mailto:markus.sticker.epos@zf.com"><span \
lang=EN-US>markus.sticker.epos@zf.com</span></a></span><span lang=EN-US \
style='font-family:"Calibri","sans-serif"'><br>To: </span><span \
style='font-family:"Calibri","sans-serif"'><a \
href="mailto:fop-dev@xmlgraphics.apache.org"><span \
lang=EN-US>fop-dev@xmlgraphics.apache.org</span></a></span><span lang=EN-US \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><div><p \
class=MsoNormal><span \
style='font-family:"Calibri","sans-serif"'>Hi,<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US style='font-family:"Calibri","sans-serif"'>I found \
this error. The inline background-color has been taken to the next cell.</span><span \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Mit \
freundlichen Grüßen/Kind regards</span><span \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Markus \
Sticker</span><br><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Technik \
ZF-Konzern/Operations and Technology ZF Group</span><br><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Infrastruktur/Infrastructure \
(OTEP4)</span><span style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>ZF \
Friedrichshafen AG</span></b><span \
style='font-family:"Calibri","sans-serif"'><br></span><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif"'>88038 Friedrichshafen, \
Deutschland/Germany<br>Telefon/Phone&nbsp; +49 7541 77-7644, Telefax/Fax&nbsp; +49 \
7541 77-907644</span><span \
style='font-family:"Calibri","sans-serif"'><br></span><u><span \
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:blue'><a \
href="mailto:Markus.Sticker.epos@zf.com">Markus.Sticker.epos@zf.com</a></span></u><span \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span style='font-family:"Calibri","sans-serif"'><br></span><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif"'>Vorsitzender des \
Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio Behr \
<br>Vorstand/Board of Management: Dr. Stefan Sommer (Vorsitzender/CEO), Dr. \
Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner, Reinhard \
Buhl, Rolf Lutz, Wilhelm Rehm</span><span \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:7.0pt;font-family:"Arial","sans-serif"'>Sitz/Headquarters: \
Friedrichshafen <br>Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register \
of the municipal court of Ulm HRB 630206</span><span \
style='font-family:"Calibri","sans-serif"'><o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-family:"Calibri","sans-serif"'>&nbsp;<o:p></o:p></span></p></div></div></div></div></body></html>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic