<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-352</id>
	<title>Nabble - FOP - Dev</title>
	<updated>2009-11-26T07:22:26Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/FOP---Dev-f352.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/FOP---Dev-f352.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26530959</id>
	<title>DO NOT REPLY [Bug 48293] New: Unable to extract the data from pdf file for greek fonts</title>
	<published>2009-11-26T07:22:26Z</published>
	<updated>2009-11-26T07:22:26Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48293&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48293&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Summary: Unable to extract the data from pdf file for greek
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fonts
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product: Fop
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Version: all
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Platform: PC
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OS/Version: Windows XP
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: NEW
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Severity: critical
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: P1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Component: fonts
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AssignedTo: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530959&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-dev@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ReportedBy: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530959&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;maruthivenugopal.bandaru@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Created an attachment (id=24624)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24624&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24624&lt;/a&gt;)
&lt;br&gt;it contains the problem with greek font in pdf
&lt;br&gt;&lt;br&gt;Hi fop dev team,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;We are facing an issue for extracting data from the pdf files,
&lt;br&gt;which are belongs to greece, for example, when we tried to copy the content of
&lt;br&gt;pdf file in word document, it is displaying that content as square boxes.
&lt;br&gt;Kindly help us on this issue.
&lt;br&gt;&lt;br&gt;Thanks &amp; Regards
&lt;br&gt;Maruthi
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48293--New%3A-Unable-to-extract-the-data-from-pdf-file-for-greek-fonts-tp26530959p26530959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26530443</id>
	<title>Re: svn commit: r828678 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/afp: goca/ modca/ modca/triplets/</title>
	<published>2009-11-26T06:46:38Z</published>
	<updated>2009-11-26T06:46:38Z</updated>
	<author>
		<name>cbowditch</name>
	</author>
	<content type="html">Adrian Cumiskey wrote:
&lt;br&gt;&amp;gt; Hi Chris,
&lt;br&gt;&lt;br&gt;Hi Adrian,
&lt;br&gt;&lt;br&gt;thanks for your input on this. It is appreciated.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/11/26 Chris Bowditch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530443&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26530443&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Adrian Cumiskey wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I agree it might be better if the AttributeQualifier triplet is
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at the end of the list as it is optional, and FullyQualifiedName
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; and AttributeValue are both manditory. &amp;nbsp;I would be very
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; surprised if this should cause a problem as I don't believe
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; there are any ordering rules for triplets. &amp;nbsp;I'd be interested to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hear how bug manifests itself?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; MO:DCA Specification dictates the order of the triplets, here:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I don't believe that it does, this is just a list of possible applicable 
&lt;br&gt;&amp;gt; triplets for the TagLogicalElement structure field, the order in which 
&lt;br&gt;&amp;gt; they are present should not be important.
&lt;/div&gt;&lt;br&gt;You could well be right here. Since I am not an expert on AFP I asked 
&lt;br&gt;Jeremias for his thoughts too. We could see nothing in the MO:DCA spec 
&lt;br&gt;to confirm or deny either way.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Attribute Qualifier is the last part of TLE structured field.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; One of our customers has a process that extracts the TLE values
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; which now fails because the 10 bytes of the AttributeQualifier occur
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; in front of the value.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I do not think that it is correct for your customer to make this 
&lt;br&gt;&amp;gt; assumption about the position of the triplet in the structured field 
&lt;br&gt;&amp;gt; data. &amp;nbsp; AFAIK it is still perfectly valid AFP so long as all the 
&lt;br&gt;&amp;gt; mandatory triplets are present and all the structured field data lengths 
&lt;br&gt;&amp;gt; and triplet data lengths are present and correct. &amp;nbsp;But if this patch 
&lt;br&gt;&amp;gt; fixes the problem for your client I have no problem with you applying it.
&lt;/div&gt;&lt;br&gt;Based on what you've told me today I tend to agree that anyone writing 
&lt;br&gt;an AFP Parser should not assume the order of triplets matches the 
&lt;br&gt;specification. However, I would imagine that a lot of people writing 
&lt;br&gt;such a parser would tend to (incorrectly?) assume that the order of the 
&lt;br&gt;triplets would match that shown in the structured field definition in 
&lt;br&gt;the specification. So if FOP does choose to deviate from the shown 
&lt;br&gt;order, we may find that AFP streams cannot be processed by some 
&lt;br&gt;printers/viewers/software. Which is not desirable.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; Adrian.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-svn-commit%3A-r828678---in--xmlgraphics-fop-trunk-src-java-org-apache-fop-afp%3A-goca--modca--modca-triplets--tp26527587p26530443.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26529824</id>
	<title>Re: svn commit: r828678 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/afp:  goca/ modca/ modca/triplets/</title>
	<published>2009-11-26T05:58:57Z</published>
	<updated>2009-11-26T05:58:57Z</updated>
	<author>
		<name>Adrian Cumiskey</name>
	</author>
	<content type="html">Hi Chris,&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/26 Chris Bowditch &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26529824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Adrian Cumiskey wrote:&lt;br&gt;&lt;div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I agree it might be better if the AttributeQualifier triplet is at the end of the list as it is optional, and FullyQualifiedName and AttributeValue are both manditory.  I would be very surprised if this should cause a problem as I don&amp;#39;t believe there are any ordering rules for triplets.  I&amp;#39;d be interested to hear how bug manifests itself?&lt;br&gt;


&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
MO:DCA Specification dictates the order of the triplets, here: &lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;amp;DT=20010307105730&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;amp;DT=20010307105730&lt;/a&gt;&lt;br&gt;

&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;I don&amp;#39;t believe that it does, this is just a list of possible applicable triplets for the TagLogicalElement structure field, the order in which they are present should not be important.&lt;br&gt;  &lt;br&gt;
&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Attribute Qualifier is the last part of TLE structured field.&lt;br&gt;
&lt;br&gt;
One of our customers has a process that extracts the TLE values which now fails because the 10 bytes of the AttributeQualifier occur in front of the value.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;I do not think that it is correct for your customer to make this assumption about the position of the triplet in the structured field data.   AFAIK it is still perfectly valid AFP so long as all the mandatory triplets are present and all the structured field data lengths and triplet data lengths are present and correct.  But if this patch fixes the problem for your client I have no problem with you applying it.&lt;br&gt;
 &lt;br&gt;Adrian.&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-svn-commit%3A-r828678---in--xmlgraphics-fop-trunk-src-java-org-apache-fop-afp%3A-goca--modca--modca-triplets--tp26527587p26529824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528522</id>
	<title>Re: svn commit: r828678 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/afp: goca/ modca/ modca/triplets/</title>
	<published>2009-11-26T04:08:13Z</published>
	<updated>2009-11-26T04:08:13Z</updated>
	<author>
		<name>cbowditch</name>
	</author>
	<content type="html">Adrian Cumiskey wrote:
&lt;br&gt;&amp;gt; Hi Chris,
&lt;br&gt;&lt;br&gt;Hi Adrian,
&lt;br&gt;&lt;br&gt;thanks for your reply.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I agree it might be better if the AttributeQualifier triplet is at the 
&lt;br&gt;&amp;gt; end of the list as it is optional, and FullyQualifiedName and 
&lt;br&gt;&amp;gt; AttributeValue are both manditory. &amp;nbsp;I would be very surprised if this 
&lt;br&gt;&amp;gt; should cause a problem as I don't believe there are any ordering rules 
&lt;br&gt;&amp;gt; for triplets. &amp;nbsp;I'd be interested to hear how bug manifests itself?
&lt;br&gt;&lt;br&gt;MO:DCA Specification dictates the order of the triplets, here: 
&lt;br&gt;&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&lt;/a&gt;&lt;br&gt;&lt;br&gt;Attribute Qualifier is the last part of TLE structured field.
&lt;br&gt;&lt;br&gt;One of our customers has a process that extracts the TLE values which 
&lt;br&gt;now fails because the 10 bytes of the AttributeQualifier occur in front 
&lt;br&gt;of the value.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adrian.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/11/26 Chris Bowditch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt; 
&lt;br&gt;&amp;gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acumiskey@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acumiskey@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Author: acumiskey
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Date: Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; New Revision: 828678
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Hi Adrian,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; there is a bug in this commit. AttributeQualifier was moved from end
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; of TLE to be between Attribute Name and Attribute Value.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I will commit a fix shortly.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Chris
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Log:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fixes &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Created Triplet interface.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Created new AttributeValueTriplet and AttributeQualifierTriplet.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Promoted truncate() from GraphicsCharacterString to
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AbstractAFPObject so it can be reused for AttributeValueTriplet.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Added:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (original)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -45,7 +45,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public GraphicsCharacterString(String str, int x, int y) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(x, y);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str, MAX_STR_LEN);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -57,7 +57,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public GraphicsCharacterString(String str) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super(null);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str, MAX_STR_LEN);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -83,20 +83,6 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; * Truncates the string as necessary
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; * @param str a character string
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; * @return a possibly truncated string
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;private String truncate(String str) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (str.length() &amp;gt; MAX_STR_LEN) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;str = str.substring(0, MAX_STR_LEN);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(&amp;quot;truncated character string, longer than &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + MAX_STR_LEN + &amp;quot; chars&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return str;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Returns the text string as an encoded byte array
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @return the text string as an encoded byte array
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (original)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -43,7 +43,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** the structured field class id */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected static final byte SF_CLASS = (byte)0xD3;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- &amp;nbsp; &amp;nbsp;private static final byte[] SF_HEADER = new byte[] {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;protected static final byte[] SF_HEADER = new byte[] {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x5A, // Structured field identifier
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x00, // Length byte 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x10, // Length byte 2
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -177,6 +177,21 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Truncates the string as necessary
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param str a character string
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param maxLength the maximum length allowed for the string
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @return a possibly truncated string
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;protected String truncate(String str, int maxLength) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (str.length() &amp;gt; maxLength) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;str = str.substring(0, maxLength);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(&amp;quot;truncated character string '&amp;quot; + str + &amp;quot;',
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; longer than &amp;quot; + maxLength + &amp;quot; chars&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return str;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** structured field type codes */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public interface Type {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (original)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -27,9 +27,12 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import org.apache.fop.afp.modca.Registry.ObjectType;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import org.apache.fop.afp.modca.triplets.AbstractTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import org.apache.fop.afp.modca.triplets.CommentTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; org.apache.fop.afp.modca.triplets.ObjectClassificationTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.Triplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* A MODCA structured object base class providing support for
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Triplets
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -37,7 +40,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public class AbstractTripletStructuredObject extends
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AbstractStructuredObject {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** list of object triplets */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;protected List/*&amp;lt;AbstractTriplet&amp;gt;*/ triplets = new
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.util.ArrayList/*&amp;lt;AbstractTriplet&amp;gt;*/();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;protected List/*&amp;lt;Triplet&amp;gt;*/ triplets = new
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.util.ArrayList/*&amp;lt;Triplet&amp;gt;*/();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Returns the triplet data length
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -109,7 +112,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param triplet the triplet to add
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;protected void addTriplet(AbstractTriplet triplet) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;protected void addTriplet(Triplet triplet) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; triplets.add(triplet);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@@ -130,7 +133,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; * Sets the fully qualified name of this resource
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Sets the fully qualified name of this structured field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param fqnType the fully qualified name type of this resource
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param fqnFormat the fully qualified name format of this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resource
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (original)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -21,9 +21,10 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import java.io.IOException;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import java.io.OutputStream;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -import java.io.UnsupportedEncodingException;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-import org.apache.fop.afp.AFPConstants;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;import org.apache.fop.afp.util.BinaryUtils;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -45,7 +46,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* effect on the appearance of a document when it is presented.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* &amp;lt;p/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -public class TagLogicalElement extends AbstractAFPObject {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +public class TagLogicalElement extends
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AbstractTripletStructuredObject {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Name of the key, used within the TLE
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -75,77 +76,43 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.tleID = tleID;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Sets the attribute value of this structured field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param value the attribute value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public void setAttributeValue(String value) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;addTriplet(new AttributeValueTriplet(value));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// convert name and value to ebcdic
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteName = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteValue = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteName =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (UnsupportedEncodingException usee) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteName = name.getBytes();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = value.getBytes();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Constructor:: UnsupportedEncodingException
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; translating the name &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ name);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = new byte[27 + tleByteName.length +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tleByteValue.length];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[0] = 0x5A;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Set the total record length
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= BinaryUtils.convert(26 + tleByteName.length +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tleByteValue.length, 2);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Ignore first byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[1] = rl1[0];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = rl1[1];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Structured field ID for a TLE
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[3] = (byte) 0xD3;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[4] = (byte) Type.ATTRIBUTE;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[5] = (byte) Category.PROCESS_ELEMENT;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[6] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[7] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[8] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Use 2 triplets, attribute name and value (the key for
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; indexing)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl2 = BinaryUtils.convert(tleByteName.length +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4, 1);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[9] = rl2[0]; // length of the triplet, including
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[10] = 0x02; //Identifies it as a FQN triplet
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[11] = 0x0B; // GID format
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[12] = 0x00;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// write out TLE name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int pos = 13;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; tleByteName.length; i++) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = tleByteName[i];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl3 = BinaryUtils.convert(tleByteValue.length +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4, 1);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = rl3[0]; // length of the triplet,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; including this field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x36; //Identifies the triplet, attribute
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; tleByteValue.length; i++) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = tleByteValue[i];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// attribute qualifier
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x0A;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = (byte)0x80;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] id = BinaryUtils.convert(tleID, 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; id.length; i++) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = id[i];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] level = BinaryUtils.convert(1, 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; level.length; i++) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = level[i];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Sets the attribute qualifier of this structured field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param seqNumber the attribute sequence number
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param levNumber the attribute level number
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public void setAttributeQualifier(int seqNumber, int
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levNumber) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;addTriplet(new AttributeQualifierTriplet(seqNumber,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levNumber));
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setFullyQualifiedName(
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FullyQualifiedNameTriplet.TYPE_ATTRIBUTE_GID,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FullyQualifiedNameTriplet.FORMAT_CHARSTR,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setAttributeQualifier(tleID, 1);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setAttributeValue(value);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = new byte[SF_HEADER.length];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copySF(data, Type.ATTRIBUTE, Category.PROCESS_ELEMENT);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int tripletDataLength = getTripletDataLength();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] l = BinaryUtils.convert(data.length +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tripletDataLength - 1, 2);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[1] = l[0];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = l[1];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; os.write(data);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeTriplets(os);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (original)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -19,70 +19,12 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-import org.apache.fop.afp.Streamable;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -import org.apache.fop.afp.StructuredData;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.modca.AbstractAFPObject;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* A simple implementation of a MOD:CA triplet
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -public abstract class AbstractTriplet implements Streamable,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StructuredData {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;/** Triplet identifiers */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FULLY_QUALIFIED_NAME = 0x02;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MAPPING_OPTION = 0x04;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_CLASSIFICATION = 0x10;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MODCA_INTERCHANGE_SET = 0x18;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_FUNCTION_SET_SPECIFICATION
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x21;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0x22;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_LOCAL_IDENTIFIER = 0x24;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_SECTION_NUMBER = 0x25;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte CHARACTER_ROTATION = 0x26;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_BYTE_OFFSET = 0x2D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte ATTRIBUTE_VALUE = 0x36;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte DESCRIPTOR_POSITION = 0x43;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MEDIA_EJECT_CONTROL = 0x45;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_USAGE_ATTRIBUTE = 0x47;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MEASUREMENT_UNITS = 0x4B;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_AREA_SIZE = 0x4C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte AREA_DEFINITION = 0x4D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte COLOR_SPECIFICATION = 0x4E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte ENCODING_SCHEME_ID = 0x50;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MEDIUM_MAP_PAGE_NUMBER = 0x56;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_BYTE_EXTENT = 0x57;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_OFFSET = 0x5A;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_COUNT = 0x5E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_DATE_AND_TIMESTAMP = 0x62;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte COMMENT = 0x65;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MEDIUM_ORIENTATION = 0x68;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_OBJECT_INCLUDE = 0x6C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_SPACE_RESET_MIXING =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x70;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_SPACE_MIXING_RULE = 0x71;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte TONER_SAVER = 0x74;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte COLOR_FIDELITY = 0x75;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FONT_FIDELITY = 0x78;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte ATTRIBUTE_QUALIFIER = (byte)0x80;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte PAGE_POSITION_INFORMATION =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (byte)0x81;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte PARAMETER_VALUE = (byte)0x82;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_CONTROL = (byte)0x83;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FINISHING_OPERATION = (byte)0x85;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte TEXT_FIDELITY = (byte)0x86;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte MEDIA_FIDELITY = (byte)0x87;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte FINISHING_FIDELITY = (byte)0x88;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte DATA_OBJECT_FONT_DESCRIPTOR =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (byte)0x8B;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte LOCALE_SELECTOR = (byte)0x8C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte UP3I_FINISHING_OPERATION = (byte)0x8E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte RENDERING_INTENT = (byte)0x95;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte CMR_TAG_FIDELITY = (byte)0x96;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - &amp;nbsp; &amp;nbsp;public static final byte DEVICE_APPEARANCE = (byte)0x97;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +public abstract class AbstractTriplet extends AbstractAFPObject
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; implements Triplet {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** the triplet identifier */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; protected final byte id;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Added:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (added)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -0,0 +1,48 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import java.io.IOException;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import java.io.OutputStream;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.util.BinaryUtils;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + * The attribute qualifier triplet is used to specify a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; qualifier for a document
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + * attribute.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +public class AttributeQualifierTriplet extends AbstractTriplet {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;private int seqNumber;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;private int levNumber;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Main constructor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * + &amp;nbsp; &amp;nbsp; * @param seqNumber the attribute qualifier
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sequence number
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * @param levNumber the attribute qualifier level number
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public AttributeQualifierTriplet(int seqNumber, int
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levNumber) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(ATTRIBUTE_QUALIFIER);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.seqNumber = seqNumber;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.levNumber = levNumber;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = getData();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] id = BinaryUtils.convert(seqNumber, 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(id, 0, data, 2, id.length);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] level = BinaryUtils.convert(levNumber, 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(level, 0, data, 6, level.length);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;os.write(data);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public int getDataLength() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 10;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public String toString() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &amp;quot;seqNumber=&amp;quot; + seqNumber + &amp;quot;, levNumber=&amp;quot; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levNumber;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Added:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (added)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -0,0 +1,53 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import java.io.IOException;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import java.io.OutputStream;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import java.io.UnsupportedEncodingException;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.AFPConstants;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + * The attribute value triplet is used to specify a value for a
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + * attribute.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +public class AttributeValueTriplet extends AbstractTriplet {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;private String attVal;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * Main constructor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; * + &amp;nbsp; &amp;nbsp; * @param attVal an attribute value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public AttributeValueTriplet(String attVal) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(ATTRIBUTE_VALUE);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.attVal = truncate(attVal, MAX_LENGTH - 4);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = super.getData();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[3] = 0x00; // Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// convert name and value to ebcdic
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteValue = null;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; attVal.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (UnsupportedEncodingException usee) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = attVal.getBytes();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw new IllegalArgumentException(attVal + &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encoding failed&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(tleByteValue, 0, data, 4,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tleByteValue.length);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;os.write(data);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public int getDataLength() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 4 + attVal.length();
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;public String toString() {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return attVal;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Added:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ==============================================================================
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (added)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @@ -0,0 +1,66 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.Streamable;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +import org.apache.fop.afp.StructuredData;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +public interface Triplet extends Streamable, StructuredData {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;int MAX_LENGTH = 254;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;+ &amp;nbsp; &amp;nbsp;byte CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;/** Triplet identifiers */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FULLY_QUALIFIED_NAME = 0x02;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MAPPING_OPTION = 0x04;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_CLASSIFICATION = 0x10;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MODCA_INTERCHANGE_SET = 0x18;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_FUNCTION_SET_SPECIFICATION = 0x21;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER = 0x22;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte RESOURCE_LOCAL_IDENTIFIER = 0x24;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte RESOURCE_SECTION_NUMBER = 0x25;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte CHARACTER_ROTATION = 0x26;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_BYTE_OFFSET = 0x2D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte ATTRIBUTE_VALUE = 0x36;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte DESCRIPTOR_POSITION = 0x43;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MEDIA_EJECT_CONTROL = 0x45;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte RESOURCE_USAGE_ATTRIBUTE = 0x47;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MEASUREMENT_UNITS = 0x4B;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_AREA_SIZE = 0x4C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte AREA_DEFINITION = 0x4D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte COLOR_SPECIFICATION = 0x4E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte ENCODING_SCHEME_ID = 0x50;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MEDIUM_MAP_PAGE_NUMBER = 0x56;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_BYTE_EXTENT = 0x57;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_OFFSET = 0x5A;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_COUNT = 0x5E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte OBJECT_DATE_AND_TIMESTAMP = 0x62;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte COMMENT = 0x65;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MEDIUM_ORIENTATION = 0x68;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte RESOURCE_OBJECT_INCLUDE = 0x6C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_SPACE_RESET_MIXING = 0x70;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_SPACE_MIXING_RULE = 0x71;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte TONER_SAVER = 0x74;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte COLOR_FIDELITY = 0x75;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FONT_FIDELITY = 0x78;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte ATTRIBUTE_QUALIFIER = (byte)0x80;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PAGE_POSITION_INFORMATION = (byte)0x81;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PARAMETER_VALUE = (byte)0x82;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_CONTROL = (byte)0x83;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FINISHING_OPERATION = (byte)0x85;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte TEXT_FIDELITY = (byte)0x86;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte MEDIA_FIDELITY = (byte)0x87;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte FINISHING_FIDELITY = (byte)0x88;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte DATA_OBJECT_FONT_DESCRIPTOR = (byte)0x8B;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte LOCALE_SELECTOR = (byte)0x8C;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte UP3I_FINISHING_OPERATION = (byte)0x8E;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte RENDERING_INTENT = (byte)0x95;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte CMR_TAG_FIDELITY = (byte)0x96;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;byte DEVICE_APPEARANCE = (byte)0x97;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; To unsubscribe, e-mail:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-unsubscribe@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; For additional commands, e-mail:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528522&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-help@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; Kind regards,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Adrian Cumiskey.
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-svn-commit%3A-r828678---in--xmlgraphics-fop-trunk-src-java-org-apache-fop-afp%3A-goca--modca--modca-triplets--tp26527587p26528522.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528473</id>
	<title>DO NOT REPLY [Bug 48290] AFP Renderer: AttributeQualifier Triplet occurs before TLE Value</title>
	<published>2009-11-26T04:03:42Z</published>
	<updated>2009-11-26T04:03:42Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&lt;/a&gt;&lt;br&gt;&lt;br&gt;Chris Bowditch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528473&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|FIXED
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48290--New%3A-AFP-Renderer%3A-AttributeQualifier-Triplet-occurs-before-TLE-Value-tp26527650p26528473.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26528115</id>
	<title>Re: svn commit: r828678 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/afp:  goca/ modca/ modca/triplets/</title>
	<published>2009-11-26T03:35:17Z</published>
	<updated>2009-11-26T03:35:17Z</updated>
	<author>
		<name>Adrian Cumiskey</name>
	</author>
	<content type="html">Hi Chris,&lt;br&gt;&lt;br&gt;I agree it might be better if the AttributeQualifier triplet is at the end of the list as it is optional, and FullyQualifiedName and AttributeValue are both manditory.  I would be very surprised if this should cause a problem as I don&amp;#39;t believe there are any ordering rules for triplets.  I&amp;#39;d be interested to hear how bug manifests itself?&lt;br&gt;
&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Adrian.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/26 Chris Bowditch &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528115&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div class=&quot;im&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528115&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acumiskey@...&lt;/a&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Author: acumiskey&lt;br&gt;
Date: Thu Oct 22 13:20:53 2009&lt;br&gt;
New Revision: 828678&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;&lt;/div&gt;
Hi Adrian,&lt;br&gt;
&lt;br&gt;
there is a bug in this commit. AttributeQualifier was moved from end of TLE to be between Attribute Name and Attribute Value.&lt;br&gt;
&lt;br&gt;
I will commit a fix shortly.&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
&lt;br&gt;
Chris&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=828678&amp;amp;view=rev&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=828678&amp;amp;view=rev&lt;/a&gt;&lt;br&gt;
Log:&lt;br&gt;
Fixes &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&lt;/a&gt;&lt;br&gt;
Created Triplet interface.&lt;br&gt;
Created new AttributeValueTriplet and AttributeQualifierTriplet.&lt;br&gt;
Promoted truncate() from GraphicsCharacterString to AbstractAFPObject so it can be reused for AttributeValueTriplet.&lt;br&gt;
&lt;br&gt;
Added:&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java&lt;br&gt;
Modified:&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java&lt;br&gt;
    xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java&lt;br&gt;
&lt;br&gt;
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java (original)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -45,7 +45,7 @@&lt;br&gt;
      */&lt;br&gt;
     public GraphicsCharacterString(String str, int x, int y) {&lt;br&gt;
         super(x, y);&lt;br&gt;
-        this.str = truncate(str);&lt;br&gt;
+        this.str = truncate(str, MAX_STR_LEN);&lt;br&gt;
     }&lt;br&gt;
      /**&lt;br&gt;
@@ -57,7 +57,7 @@&lt;br&gt;
      */&lt;br&gt;
     public GraphicsCharacterString(String str) {&lt;br&gt;
         super(null);&lt;br&gt;
-        this.str = truncate(str);&lt;br&gt;
+        this.str = truncate(str, MAX_STR_LEN);&lt;br&gt;
     }&lt;br&gt;
      /** {@inheritDoc} */&lt;br&gt;
@@ -83,20 +83,6 @@&lt;br&gt;
     }&lt;br&gt;
      /**&lt;br&gt;
-     * Truncates the string as necessary&lt;br&gt;
-     *&lt;br&gt;
-     * @param str a character string&lt;br&gt;
-     * @return a possibly truncated string&lt;br&gt;
-     */&lt;br&gt;
-    private String truncate(String str) {&lt;br&gt;
-        if (str.length() &amp;gt; MAX_STR_LEN) {&lt;br&gt;
-            str = str.substring(0, MAX_STR_LEN);&lt;br&gt;
-            log.warn(&amp;quot;truncated character string, longer than &amp;quot; + MAX_STR_LEN + &amp;quot; chars&amp;quot;);&lt;br&gt;
-        }&lt;br&gt;
-        return str;&lt;br&gt;
-    }&lt;br&gt;
-&lt;br&gt;
-    /**&lt;br&gt;
      * Returns the text string as an encoded byte array&lt;br&gt;
      *&lt;br&gt;
      * @return the text string as an encoded byte array&lt;br&gt;
&lt;br&gt;
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java (original)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -43,7 +43,7 @@&lt;br&gt;
     /** the structured field class id */&lt;br&gt;
     protected static final byte SF_CLASS = (byte)0xD3;&lt;br&gt;
 -    private static final byte[] SF_HEADER = new byte[] {&lt;br&gt;
+    protected static final byte[] SF_HEADER = new byte[] {&lt;br&gt;
         0x5A, // Structured field identifier&lt;br&gt;
         0x00, // Length byte 1&lt;br&gt;
         0x10, // Length byte 2&lt;br&gt;
@@ -177,6 +177,21 @@&lt;br&gt;
         }&lt;br&gt;
     }&lt;br&gt;
 +    /**&lt;br&gt;
+     * Truncates the string as necessary&lt;br&gt;
+     *&lt;br&gt;
+     * @param str a character string&lt;br&gt;
+     * @param maxLength the maximum length allowed for the string&lt;br&gt;
+     * @return a possibly truncated string&lt;br&gt;
+     */&lt;br&gt;
+    protected String truncate(String str, int maxLength) {&lt;br&gt;
+        if (str.length() &amp;gt; maxLength) {&lt;br&gt;
+            str = str.substring(0, maxLength);&lt;br&gt;
+            log.warn(&amp;quot;truncated character string &amp;#39;&amp;quot; + str + &amp;quot;&amp;#39;, longer than &amp;quot; + maxLength + &amp;quot; chars&amp;quot;);&lt;br&gt;
+        }&lt;br&gt;
+        return str;&lt;br&gt;
+    }&lt;br&gt;
+&lt;br&gt;
     /** structured field type codes */&lt;br&gt;
     public interface Type {&lt;br&gt;
 &lt;br&gt;
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java (original)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -27,9 +27,12 @@&lt;br&gt;
  import org.apache.fop.afp.modca.Registry.ObjectType;&lt;br&gt;
 import org.apache.fop.afp.modca.triplets.AbstractTriplet;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;&lt;br&gt;
 import org.apache.fop.afp.modca.triplets.CommentTriplet;&lt;br&gt;
 import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;&lt;br&gt;
 import org.apache.fop.afp.modca.triplets.ObjectClassificationTriplet;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.Triplet;&lt;br&gt;
  /**&lt;br&gt;
  * A MODCA structured object base class providing support for Triplets&lt;br&gt;
@@ -37,7 +40,7 @@&lt;br&gt;
 public class AbstractTripletStructuredObject extends AbstractStructuredObject {&lt;br&gt;
      /** list of object triplets */&lt;br&gt;
-    protected List/*&amp;lt;AbstractTriplet&amp;gt;*/ triplets = new java.util.ArrayList/*&amp;lt;AbstractTriplet&amp;gt;*/();&lt;br&gt;
+    protected List/*&amp;lt;Triplet&amp;gt;*/ triplets = new java.util.ArrayList/*&amp;lt;Triplet&amp;gt;*/();&lt;br&gt;
      /**&lt;br&gt;
      * Returns the triplet data length&lt;br&gt;
@@ -109,7 +112,7 @@&lt;br&gt;
      *&lt;br&gt;
      * @param triplet the triplet to add&lt;br&gt;
      */&lt;br&gt;
-    protected void addTriplet(AbstractTriplet triplet) {&lt;br&gt;
+    protected void addTriplet(Triplet triplet) {&lt;br&gt;
         triplets.add(triplet);&lt;br&gt;
     }&lt;br&gt;
 @@ -130,7 +133,7 @@&lt;br&gt;
     }&lt;br&gt;
      /**&lt;br&gt;
-     * Sets the fully qualified name of this resource&lt;br&gt;
+     * Sets the fully qualified name of this structured field&lt;br&gt;
      *&lt;br&gt;
      * @param fqnType the fully qualified name type of this resource&lt;br&gt;
      * @param fqnFormat the fully qualified name format of this resource&lt;br&gt;
&lt;br&gt;
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java (original)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -21,9 +21,10 @@&lt;br&gt;
  import java.io.IOException;&lt;br&gt;
 import java.io.OutputStream;&lt;br&gt;
-import java.io.UnsupportedEncodingException;&lt;br&gt;
 -import org.apache.fop.afp.AFPConstants;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;&lt;br&gt;
+import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;&lt;br&gt;
 import org.apache.fop.afp.util.BinaryUtils;&lt;br&gt;
  /**&lt;br&gt;
@@ -45,7 +46,7 @@&lt;br&gt;
  * effect on the appearance of a document when it is presented.&lt;br&gt;
  * &amp;lt;p/&amp;gt;&lt;br&gt;
  */&lt;br&gt;
-public class TagLogicalElement extends AbstractAFPObject {&lt;br&gt;
+public class TagLogicalElement extends AbstractTripletStructuredObject {&lt;br&gt;
      /**&lt;br&gt;
      * Name of the key, used within the TLE&lt;br&gt;
@@ -75,77 +76,43 @@&lt;br&gt;
         this.tleID = tleID;&lt;br&gt;
     }&lt;br&gt;
 -    /** {@inheritDoc} */&lt;br&gt;
-    public void writeToStream(OutputStream os) throws IOException {&lt;br&gt;
+    /**&lt;br&gt;
+     * Sets the attribute value of this structured field&lt;br&gt;
+     *&lt;br&gt;
+     * @param value the attribute value&lt;br&gt;
+     */&lt;br&gt;
+    public void setAttributeValue(String value) {&lt;br&gt;
+        addTriplet(new AttributeValueTriplet(value));&lt;br&gt;
+    }&lt;br&gt;
 -        // convert name and value to ebcdic&lt;br&gt;
-        byte[] tleByteName = null;&lt;br&gt;
-        byte[] tleByteValue = null;&lt;br&gt;
-        try {&lt;br&gt;
-            tleByteName = name.getBytes(AFPConstants.EBCIDIC_ENCODING);&lt;br&gt;
-            tleByteValue = value.getBytes(AFPConstants.EBCIDIC_ENCODING);&lt;br&gt;
-        } catch (UnsupportedEncodingException usee) {&lt;br&gt;
-            tleByteName = name.getBytes();&lt;br&gt;
-            tleByteValue = value.getBytes();&lt;br&gt;
-            log.warn(&lt;br&gt;
-                &amp;quot;Constructor:: UnsupportedEncodingException translating the name &amp;quot;&lt;br&gt;
-                + name);&lt;br&gt;
-        }&lt;br&gt;
-&lt;br&gt;
-        byte[] data = new byte[27 + tleByteName.length + tleByteValue.length];&lt;br&gt;
-&lt;br&gt;
-        data[0] = 0x5A;&lt;br&gt;
-        // Set the total record length&lt;br&gt;
-        byte[] rl1&lt;br&gt;
-            = BinaryUtils.convert(26 + tleByteName.length + tleByteValue.length, 2);&lt;br&gt;
-        //Ignore first byte&lt;br&gt;
-        data[1] = rl1[0];&lt;br&gt;
-        data[2] = rl1[1];&lt;br&gt;
-&lt;br&gt;
-        // Structured field ID for a TLE&lt;br&gt;
-        data[3] = (byte) 0xD3;&lt;br&gt;
-        data[4] = (byte) Type.ATTRIBUTE;&lt;br&gt;
-        data[5] = (byte) Category.PROCESS_ELEMENT;&lt;br&gt;
-&lt;br&gt;
-        data[6] = 0x00; // Reserved&lt;br&gt;
-        data[7] = 0x00; // Reserved&lt;br&gt;
-        data[8] = 0x00; // Reserved&lt;br&gt;
-&lt;br&gt;
-        //Use 2 triplets, attribute name and value (the key for indexing)&lt;br&gt;
-&lt;br&gt;
-        byte[] rl2 = BinaryUtils.convert(tleByteName.length + 4, 1);&lt;br&gt;
-        data[9] = rl2[0]; // length of the triplet, including this field&lt;br&gt;
-        data[10] = 0x02; //Identifies it as a FQN triplet&lt;br&gt;
-        data[11] = 0x0B; // GID format&lt;br&gt;
-        data[12] = 0x00;&lt;br&gt;
-&lt;br&gt;
-        // write out TLE name&lt;br&gt;
-        int pos = 13;&lt;br&gt;
-        for (int i = 0; i &amp;lt; tleByteName.length; i++) {&lt;br&gt;
-            data[pos++] = tleByteName[i];&lt;br&gt;
-        }&lt;br&gt;
-&lt;br&gt;
-        byte[] rl3 = BinaryUtils.convert(tleByteValue.length + 4, 1);&lt;br&gt;
-        data[pos++] = rl3[0]; // length of the triplet, including this field&lt;br&gt;
-        data[pos++] = 0x36; //Identifies the triplet, attribute value&lt;br&gt;
-        data[pos++] = 0x00; // Reserved&lt;br&gt;
-        data[pos++] = 0x00; // Reserved&lt;br&gt;
-&lt;br&gt;
-        for (int i = 0; i &amp;lt; tleByteValue.length; i++) {&lt;br&gt;
-            data[pos++] = tleByteValue[i];&lt;br&gt;
-        }&lt;br&gt;
-        // attribute qualifier&lt;br&gt;
-        data[pos++] = 0x0A;&lt;br&gt;
-        data[pos++] = (byte)0x80;&lt;br&gt;
-        byte[] id = BinaryUtils.convert(tleID, 4);&lt;br&gt;
-        for (int i = 0; i &amp;lt; id.length; i++) {&lt;br&gt;
-            data[pos++] = id[i];&lt;br&gt;
-        }&lt;br&gt;
-        byte[] level = BinaryUtils.convert(1, 4);&lt;br&gt;
-        for (int i = 0; i &amp;lt; level.length; i++) {&lt;br&gt;
-            data[pos++] = level[i];&lt;br&gt;
-        }&lt;br&gt;
+    /**&lt;br&gt;
+     * Sets the attribute qualifier of this structured field&lt;br&gt;
+     *&lt;br&gt;
+     * @param seqNumber the attribute sequence number&lt;br&gt;
+     * @param levNumber the attribute level number&lt;br&gt;
+     */&lt;br&gt;
+    public void setAttributeQualifier(int seqNumber, int levNumber) {&lt;br&gt;
+        addTriplet(new AttributeQualifierTriplet(seqNumber, levNumber));&lt;br&gt;
+    }&lt;br&gt;
 +    /** {@inheritDoc} */&lt;br&gt;
+    public void writeToStream(OutputStream os) throws IOException {&lt;br&gt;
+        setFullyQualifiedName(&lt;br&gt;
+                FullyQualifiedNameTriplet.TYPE_ATTRIBUTE_GID,&lt;br&gt;
+                FullyQualifiedNameTriplet.FORMAT_CHARSTR,&lt;br&gt;
+                name);&lt;br&gt;
+        setAttributeQualifier(tleID, 1);&lt;br&gt;
+        setAttributeValue(value);&lt;br&gt;
+        +        byte[] data = new byte[SF_HEADER.length];&lt;br&gt;
+        copySF(data, Type.ATTRIBUTE, Category.PROCESS_ELEMENT);&lt;br&gt;
+        +        int tripletDataLength = getTripletDataLength();&lt;br&gt;
+        byte[] l = BinaryUtils.convert(data.length + tripletDataLength - 1, 2);&lt;br&gt;
+        data[1] = l[0];&lt;br&gt;
+        data[2] = l[1];&lt;br&gt;
         os.write(data);&lt;br&gt;
+&lt;br&gt;
+        writeTriplets(os);&lt;br&gt;
     }&lt;br&gt;
 }&lt;br&gt;
&lt;br&gt;
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;amp;r1=828677&amp;amp;r2=828678&amp;amp;view=diff&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java (original)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -19,70 +19,12 @@&lt;br&gt;
  package org.apache.fop.afp.modca.triplets;&lt;br&gt;
 -import org.apache.fop.afp.Streamable;&lt;br&gt;
-import org.apache.fop.afp.StructuredData;&lt;br&gt;
+import org.apache.fop.afp.modca.AbstractAFPObject;&lt;br&gt;
  /**&lt;br&gt;
  * A simple implementation of a MOD:CA triplet&lt;br&gt;
  */&lt;br&gt;
-public abstract class AbstractTriplet implements Streamable, StructuredData {&lt;br&gt;
-    public static final byte CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;&lt;br&gt;
-&lt;br&gt;
-    /** Triplet identifiers */&lt;br&gt;
-    public static final byte FULLY_QUALIFIED_NAME = 0x02;&lt;br&gt;
-    public static final byte MAPPING_OPTION = 0x04;&lt;br&gt;
-    public static final byte OBJECT_CLASSIFICATION = 0x10;&lt;br&gt;
-    public static final byte MODCA_INTERCHANGE_SET = 0x18;&lt;br&gt;
-    public static final byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;&lt;br&gt;
-    public static final byte OBJECT_FUNCTION_SET_SPECIFICATION = 0x21;&lt;br&gt;
-    public static final byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER = 0x22;&lt;br&gt;
-    public static final byte RESOURCE_LOCAL_IDENTIFIER = 0x24;&lt;br&gt;
-    public static final byte RESOURCE_SECTION_NUMBER = 0x25;&lt;br&gt;
-    public static final byte CHARACTER_ROTATION = 0x26;&lt;br&gt;
-    public static final byte OBJECT_BYTE_OFFSET = 0x2D;&lt;br&gt;
-    public static final byte ATTRIBUTE_VALUE = 0x36;&lt;br&gt;
-    public static final byte DESCRIPTOR_POSITION = 0x43;&lt;br&gt;
-    public static final byte MEDIA_EJECT_CONTROL = 0x45;&lt;br&gt;
-    public static final byte PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;&lt;br&gt;
-    public static final byte RESOURCE_USAGE_ATTRIBUTE = 0x47;&lt;br&gt;
-    public static final byte MEASUREMENT_UNITS = 0x4B;&lt;br&gt;
-    public static final byte OBJECT_AREA_SIZE = 0x4C;&lt;br&gt;
-    public static final byte AREA_DEFINITION = 0x4D;&lt;br&gt;
-    public static final byte COLOR_SPECIFICATION = 0x4E;&lt;br&gt;
-    public static final byte ENCODING_SCHEME_ID = 0x50;&lt;br&gt;
-    public static final byte MEDIUM_MAP_PAGE_NUMBER = 0x56;&lt;br&gt;
-    public static final byte OBJECT_BYTE_EXTENT = 0x57;&lt;br&gt;
-    public static final byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;&lt;br&gt;
-    public static final byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;&lt;br&gt;
-    public static final byte OBJECT_OFFSET = 0x5A;&lt;br&gt;
-    public static final byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;&lt;br&gt;
-    public static final byte OBJECT_COUNT = 0x5E;&lt;br&gt;
-    public static final byte OBJECT_DATE_AND_TIMESTAMP = 0x62;&lt;br&gt;
-    public static final byte COMMENT = 0x65;&lt;br&gt;
-    public static final byte MEDIUM_ORIENTATION = 0x68;&lt;br&gt;
-    public static final byte RESOURCE_OBJECT_INCLUDE = 0x6C;&lt;br&gt;
-    public static final byte PRESENTATION_SPACE_RESET_MIXING = 0x70;&lt;br&gt;
-    public static final byte PRESENTATION_SPACE_MIXING_RULE = 0x71;&lt;br&gt;
-    public static final byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;&lt;br&gt;
-    public static final byte TONER_SAVER = 0x74;&lt;br&gt;
-    public static final byte COLOR_FIDELITY = 0x75;&lt;br&gt;
-    public static final byte FONT_FIDELITY = 0x78;&lt;br&gt;
-    public static final byte ATTRIBUTE_QUALIFIER = (byte)0x80;&lt;br&gt;
-    public static final byte PAGE_POSITION_INFORMATION = (byte)0x81;&lt;br&gt;
-    public static final byte PARAMETER_VALUE = (byte)0x82;&lt;br&gt;
-    public static final byte PRESENTATION_CONTROL = (byte)0x83;&lt;br&gt;
-    public static final byte FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;&lt;br&gt;
-    public static final byte FINISHING_OPERATION = (byte)0x85;&lt;br&gt;
-    public static final byte TEXT_FIDELITY = (byte)0x86;&lt;br&gt;
-    public static final byte MEDIA_FIDELITY = (byte)0x87;&lt;br&gt;
-    public static final byte FINISHING_FIDELITY = (byte)0x88;&lt;br&gt;
-    public static final byte DATA_OBJECT_FONT_DESCRIPTOR = (byte)0x8B;&lt;br&gt;
-    public static final byte LOCALE_SELECTOR = (byte)0x8C;&lt;br&gt;
-    public static final byte UP3I_FINISHING_OPERATION = (byte)0x8E;&lt;br&gt;
-    public static final byte COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;&lt;br&gt;
-    public static final byte RENDERING_INTENT = (byte)0x95;&lt;br&gt;
-    public static final byte CMR_TAG_FIDELITY = (byte)0x96;&lt;br&gt;
-    public static final byte DEVICE_APPEARANCE = (byte)0x97;&lt;br&gt;
+public abstract class AbstractTriplet extends AbstractAFPObject implements Triplet {&lt;br&gt;
      /** the triplet identifier */&lt;br&gt;
     protected final byte id;&lt;br&gt;
&lt;br&gt;
Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;amp;view=auto&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;amp;view=auto&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java (added)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -0,0 +1,48 @@&lt;br&gt;
+package org.apache.fop.afp.modca.triplets;&lt;br&gt;
+&lt;br&gt;
+import java.io.IOException;&lt;br&gt;
+import java.io.OutputStream;&lt;br&gt;
+&lt;br&gt;
+import org.apache.fop.afp.util.BinaryUtils;&lt;br&gt;
+&lt;br&gt;
+/**&lt;br&gt;
+ * The attribute qualifier triplet is used to specify a qualifier for a document&lt;br&gt;
+ * attribute.&lt;br&gt;
+ */&lt;br&gt;
+public class AttributeQualifierTriplet extends AbstractTriplet {&lt;br&gt;
+&lt;br&gt;
+    private int seqNumber;&lt;br&gt;
+    private int levNumber;&lt;br&gt;
+&lt;br&gt;
+    /**&lt;br&gt;
+     * Main constructor&lt;br&gt;
+     * +     * @param seqNumber the attribute qualifier sequence number&lt;br&gt;
+     * @param levNumber the attribute qualifier level number&lt;br&gt;
+     */&lt;br&gt;
+    public AttributeQualifierTriplet(int seqNumber, int levNumber) {&lt;br&gt;
+        super(ATTRIBUTE_QUALIFIER);&lt;br&gt;
+        this.seqNumber = seqNumber;&lt;br&gt;
+        this.levNumber = levNumber;&lt;br&gt;
+    }&lt;br&gt;
+&lt;br&gt;
+    /** {@inheritDoc} */&lt;br&gt;
+    public void writeToStream(OutputStream os) throws IOException {&lt;br&gt;
+        byte[] data = getData();&lt;br&gt;
+        byte[] id = BinaryUtils.convert(seqNumber, 4);&lt;br&gt;
+        System.arraycopy(id, 0, data, 2, id.length);&lt;br&gt;
+        byte[] level = BinaryUtils.convert(levNumber, 4);&lt;br&gt;
+        System.arraycopy(level, 0, data, 6, level.length);&lt;br&gt;
+        os.write(data);&lt;br&gt;
+    }&lt;br&gt;
+&lt;br&gt;
+    /** {@inheritDoc} */&lt;br&gt;
+    public int getDataLength() {&lt;br&gt;
+        return 10;&lt;br&gt;
+    }&lt;br&gt;
+    +    /** {@inheritDoc} */&lt;br&gt;
+    public String toString() {&lt;br&gt;
+        return &amp;quot;seqNumber=&amp;quot; + seqNumber + &amp;quot;, levNumber=&amp;quot; + levNumber;&lt;br&gt;
+    }&lt;br&gt;
+}&lt;br&gt;
&lt;br&gt;
Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;amp;view=auto&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;amp;view=auto&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java (added)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -0,0 +1,53 @@&lt;br&gt;
+package org.apache.fop.afp.modca.triplets;&lt;br&gt;
+&lt;br&gt;
+import java.io.IOException;&lt;br&gt;
+import java.io.OutputStream;&lt;br&gt;
+import java.io.UnsupportedEncodingException;&lt;br&gt;
+&lt;br&gt;
+import org.apache.fop.afp.AFPConstants;&lt;br&gt;
+&lt;br&gt;
+/**&lt;br&gt;
+ * The attribute value triplet is used to specify a value for a document&lt;br&gt;
+ * attribute.&lt;br&gt;
+ */&lt;br&gt;
+public class AttributeValueTriplet extends AbstractTriplet {&lt;br&gt;
+    private String attVal;&lt;br&gt;
+&lt;br&gt;
+    /**&lt;br&gt;
+     * Main constructor&lt;br&gt;
+     * +     * @param attVal an attribute value&lt;br&gt;
+     */&lt;br&gt;
+    public AttributeValueTriplet(String attVal) {&lt;br&gt;
+        super(ATTRIBUTE_VALUE);&lt;br&gt;
+        this.attVal = truncate(attVal, MAX_LENGTH - 4);&lt;br&gt;
+    }&lt;br&gt;
+&lt;br&gt;
+    /** {@inheritDoc} */&lt;br&gt;
+    public void writeToStream(OutputStream os) throws IOException {&lt;br&gt;
+        byte[] data = super.getData();&lt;br&gt;
+        data[2] = 0x00; // Reserved&lt;br&gt;
+        data[3] = 0x00; // Reserved&lt;br&gt;
+&lt;br&gt;
+        // convert name and value to ebcdic&lt;br&gt;
+        byte[] tleByteValue = null;&lt;br&gt;
+        try {&lt;br&gt;
+            tleByteValue = attVal.getBytes(AFPConstants.EBCIDIC_ENCODING);&lt;br&gt;
+        } catch (UnsupportedEncodingException usee) {&lt;br&gt;
+            tleByteValue = attVal.getBytes();&lt;br&gt;
+            throw new IllegalArgumentException(attVal + &amp;quot; encoding failed&amp;quot;);&lt;br&gt;
+        }&lt;br&gt;
+        System.arraycopy(tleByteValue, 0, data, 4, tleByteValue.length);&lt;br&gt;
+        os.write(data);&lt;br&gt;
+    }&lt;br&gt;
+&lt;br&gt;
+    /** {@inheritDoc} */&lt;br&gt;
+    public int getDataLength() {&lt;br&gt;
+        return 4 + attVal.length();&lt;br&gt;
+    }&lt;br&gt;
+    +    /** {@inheritDoc} */&lt;br&gt;
+    public String toString() {&lt;br&gt;
+        return attVal;&lt;br&gt;
+    }&lt;br&gt;
+}&lt;br&gt;
&lt;br&gt;
Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java&lt;br&gt;
URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;amp;view=auto&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;amp;view=auto&lt;/a&gt;&lt;br&gt;

==============================================================================&lt;br&gt;
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java (added)&lt;br&gt;
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java Thu Oct 22 13:20:53 2009&lt;br&gt;
@@ -0,0 +1,66 @@&lt;br&gt;
+package org.apache.fop.afp.modca.triplets;&lt;br&gt;
+&lt;br&gt;
+import org.apache.fop.afp.Streamable;&lt;br&gt;
+import org.apache.fop.afp.StructuredData;&lt;br&gt;
+&lt;br&gt;
+public interface Triplet extends Streamable, StructuredData {&lt;br&gt;
+    int MAX_LENGTH = 254;&lt;br&gt;
+    +    byte CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;&lt;br&gt;
+&lt;br&gt;
+    /** Triplet identifiers */&lt;br&gt;
+    byte FULLY_QUALIFIED_NAME = 0x02;&lt;br&gt;
+    byte MAPPING_OPTION = 0x04;&lt;br&gt;
+    byte OBJECT_CLASSIFICATION = 0x10;&lt;br&gt;
+    byte MODCA_INTERCHANGE_SET = 0x18;&lt;br&gt;
+    byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;&lt;br&gt;
+    byte OBJECT_FUNCTION_SET_SPECIFICATION = 0x21;&lt;br&gt;
+    byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER = 0x22;&lt;br&gt;
+    byte RESOURCE_LOCAL_IDENTIFIER = 0x24;&lt;br&gt;
+    byte RESOURCE_SECTION_NUMBER = 0x25;&lt;br&gt;
+    byte CHARACTER_ROTATION = 0x26;&lt;br&gt;
+    byte OBJECT_BYTE_OFFSET = 0x2D;&lt;br&gt;
+    byte ATTRIBUTE_VALUE = 0x36;&lt;br&gt;
+    byte DESCRIPTOR_POSITION = 0x43;&lt;br&gt;
+    byte MEDIA_EJECT_CONTROL = 0x45;&lt;br&gt;
+    byte PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;&lt;br&gt;
+    byte RESOURCE_USAGE_ATTRIBUTE = 0x47;&lt;br&gt;
+    byte MEASUREMENT_UNITS = 0x4B;&lt;br&gt;
+    byte OBJECT_AREA_SIZE = 0x4C;&lt;br&gt;
+    byte AREA_DEFINITION = 0x4D;&lt;br&gt;
+    byte COLOR_SPECIFICATION = 0x4E;&lt;br&gt;
+    byte ENCODING_SCHEME_ID = 0x50;&lt;br&gt;
+    byte MEDIUM_MAP_PAGE_NUMBER = 0x56;&lt;br&gt;
+    byte OBJECT_BYTE_EXTENT = 0x57;&lt;br&gt;
+    byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;&lt;br&gt;
+    byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;&lt;br&gt;
+    byte OBJECT_OFFSET = 0x5A;&lt;br&gt;
+    byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;&lt;br&gt;
+    byte OBJECT_COUNT = 0x5E;&lt;br&gt;
+    byte OBJECT_DATE_AND_TIMESTAMP = 0x62;&lt;br&gt;
+    byte COMMENT = 0x65;&lt;br&gt;
+    byte MEDIUM_ORIENTATION = 0x68;&lt;br&gt;
+    byte RESOURCE_OBJECT_INCLUDE = 0x6C;&lt;br&gt;
+    byte PRESENTATION_SPACE_RESET_MIXING = 0x70;&lt;br&gt;
+    byte PRESENTATION_SPACE_MIXING_RULE = 0x71;&lt;br&gt;
+    byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;&lt;br&gt;
+    byte TONER_SAVER = 0x74;&lt;br&gt;
+    byte COLOR_FIDELITY = 0x75;&lt;br&gt;
+    byte FONT_FIDELITY = 0x78;&lt;br&gt;
+    byte ATTRIBUTE_QUALIFIER = (byte)0x80;&lt;br&gt;
+    byte PAGE_POSITION_INFORMATION = (byte)0x81;&lt;br&gt;
+    byte PARAMETER_VALUE = (byte)0x82;&lt;br&gt;
+    byte PRESENTATION_CONTROL = (byte)0x83;&lt;br&gt;
+    byte FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;&lt;br&gt;
+    byte FINISHING_OPERATION = (byte)0x85;&lt;br&gt;
+    byte TEXT_FIDELITY = (byte)0x86;&lt;br&gt;
+    byte MEDIA_FIDELITY = (byte)0x87;&lt;br&gt;
+    byte FINISHING_FIDELITY = (byte)0x88;&lt;br&gt;
+    byte DATA_OBJECT_FONT_DESCRIPTOR = (byte)0x8B;&lt;br&gt;
+    byte LOCALE_SELECTOR = (byte)0x8C;&lt;br&gt;
+    byte UP3I_FINISHING_OPERATION = (byte)0x8E;&lt;br&gt;
+    byte COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;&lt;br&gt;
+    byte RENDERING_INTENT = (byte)0x95;&lt;br&gt;
+    byte CMR_TAG_FIDELITY = (byte)0x96;&lt;br&gt;
+    byte DEVICE_APPEARANCE = (byte)0x97;&lt;br&gt;
+}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528115&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26528115&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Kind regards,&lt;br&gt;&lt;br&gt;Adrian Cumiskey.&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-svn-commit%3A-r828678---in--xmlgraphics-fop-trunk-src-java-org-apache-fop-afp%3A-goca--modca--modca-triplets--tp26527587p26528115.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527976</id>
	<title>DO NOT REPLY [Bug 48290] AFP Renderer: AttributeQualifier Triplet occurs before TLE Value</title>
	<published>2009-11-26T03:23:48Z</published>
	<updated>2009-11-26T03:23:48Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #1 from Chris Bowditch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527976&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt; 2009-11-26 03:23:48 UTC ---
&lt;br&gt;bug fix committed in revision 884526
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48290--New%3A-AFP-Renderer%3A-AttributeQualifier-Triplet-occurs-before-TLE-Value-tp26527650p26527976.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527932</id>
	<title>DO NOT REPLY [Bug 48255] [PATCH] Revisited implementation of PDFRectangle and PDFLink (derived from new PDFAnnotation dictionary)</title>
	<published>2009-11-26T03:19:25Z</published>
	<updated>2009-11-26T03:19:25Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&lt;/a&gt;&lt;br&gt;&lt;br&gt;Gerald Buchgraber &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527932&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gerald.buchgraber@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Summary|PDFRectangle &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|[PATCH] Revisited
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|implementation of
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|PDFRectangle and PDFLink
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|(derived from new
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|PDFAnnotation dictionary)
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48255--New%3A-PDFRectangle-tp26451210p26527932.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527730</id>
	<title>DO NOT REPLY [Bug 48255] PDFRectangle</title>
	<published>2009-11-26T03:01:48Z</published>
	<updated>2009-11-26T03:01:48Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #2 from Gerald Buchgraber &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;gerald.buchgraber@...&lt;/a&gt;&amp;gt; 2009-11-26 03:01:47 UTC ---
&lt;br&gt;Created an attachment (id=24622)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24622&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24622&lt;/a&gt;)
&lt;br&gt;[PATCH] Revisited implementation of PDFRectangle and PDFLink
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48255--New%3A-PDFRectangle-tp26451210p26527730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527650</id>
	<title>DO NOT REPLY [Bug 48290] New: AFP Renderer: AttributeQualifier Triplet occurs before TLE Value</title>
	<published>2009-11-26T02:53:54Z</published>
	<updated>2009-11-26T02:53:54Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48290&lt;/a&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Summary: AFP Renderer: AttributeQualifier Triplet occurs before
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TLE Value
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Product: Fop
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Version: 1.0dev
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Platform: PC
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OS/Version: Windows XP
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Status: NEW
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Severity: normal
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: P2
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Component: general
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AssignedTo: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527650&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-dev@...&lt;/a&gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ReportedBy: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527650&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Order of AttributeQualifier and Value Triplet were switched for TLE by
&lt;br&gt;following commit:
&lt;br&gt;&lt;a href=&quot;http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/200910.mbox/%3c20091022132054.A5C7B23888CE@eris.apache.org%3e&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/200910.mbox/%3c20091022132054.A5C7B23888CE@...%3e&lt;/a&gt;&lt;br&gt;&lt;br&gt;This means TLE structure no longer conforms to AFP specification:
&lt;br&gt;&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3M5M00/5.82.2?SHELF=APSBK320&amp;DT=20010307105730&lt;/a&gt;&lt;br&gt;&lt;br&gt;The fix is fairly straight forward and follows shortly.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48290--New%3A-AFP-Renderer%3A-AttributeQualifier-Triplet-occurs-before-TLE-Value-tp26527650p26527650.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26527587</id>
	<title>Re: svn commit: r828678 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop/afp: goca/ modca/ modca/triplets/</title>
	<published>2009-11-26T02:49:58Z</published>
	<updated>2009-11-26T02:49:58Z</updated>
	<author>
		<name>cbowditch</name>
	</author>
	<content type="html">&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527587&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;acumiskey@...&lt;/a&gt; wrote:
&lt;br&gt;&amp;gt; Author: acumiskey
&lt;br&gt;&amp;gt; Date: Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; New Revision: 828678
&lt;br&gt;&lt;br&gt;Hi Adrian,
&lt;br&gt;&lt;br&gt;there is a bug in this commit. AttributeQualifier was moved from end of 
&lt;br&gt;TLE to be between Attribute Name and Attribute Value.
&lt;br&gt;&lt;br&gt;I will commit a fix shortly.
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=828678&amp;view=rev&lt;/a&gt;&lt;br&gt;&amp;gt; Log:
&lt;br&gt;&amp;gt; Fixes &lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47941&lt;/a&gt;&lt;br&gt;&amp;gt; Created Triplet interface.
&lt;br&gt;&amp;gt; Created new AttributeValueTriplet and AttributeQualifierTriplet.
&lt;br&gt;&amp;gt; Promoted truncate() from GraphicsCharacterString to AbstractAFPObject so it can be reused for AttributeValueTriplet.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Added:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; Modified:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java (original)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/goca/GraphicsCharacterString.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -45,7 +45,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public GraphicsCharacterString(String str, int x, int y) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(x, y);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str, MAX_STR_LEN);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; @@ -57,7 +57,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public GraphicsCharacterString(String str) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(null);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.str = truncate(str, MAX_STR_LEN);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; @@ -83,20 +83,6 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; * Truncates the string as necessary
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; * @param str a character string
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; * @return a possibly truncated string
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;private String truncate(String str) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (str.length() &amp;gt; MAX_STR_LEN) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;str = str.substring(0, MAX_STR_LEN);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(&amp;quot;truncated character string, longer than &amp;quot; + MAX_STR_LEN + &amp;quot; chars&amp;quot;);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return str;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Returns the text string as an encoded byte array
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @return the text string as an encoded byte array
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java (original)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractAFPObject.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -43,7 +43,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/** the structured field class id */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected static final byte SF_CLASS = (byte)0xD3;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;private static final byte[] SF_HEADER = new byte[] {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;protected static final byte[] SF_HEADER = new byte[] {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x5A, // Structured field identifier
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x00, // Length byte 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x10, // Length byte 2
&lt;br&gt;&amp;gt; @@ -177,6 +177,21 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Truncates the string as necessary
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param str a character string
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param maxLength the maximum length allowed for the string
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @return a possibly truncated string
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;protected String truncate(String str, int maxLength) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (str.length() &amp;gt; maxLength) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;str = str.substring(0, maxLength);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(&amp;quot;truncated character string '&amp;quot; + str + &amp;quot;', longer than &amp;quot; + maxLength + &amp;quot; chars&amp;quot;);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return str;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/** structured field type codes */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;public interface Type {
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java (original)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/AbstractTripletStructuredObject.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -27,9 +27,12 @@
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.modca.Registry.ObjectType;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.modca.triplets.AbstractTriplet;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.modca.triplets.CommentTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.modca.triplets.ObjectClassificationTriplet;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.Triplet;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; * A MODCA structured object base class providing support for Triplets
&lt;br&gt;&amp;gt; @@ -37,7 +40,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp;public class AbstractTripletStructuredObject extends AbstractStructuredObject {
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/** list of object triplets */
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;protected List/*&amp;lt;AbstractTriplet&amp;gt;*/ triplets = new java.util.ArrayList/*&amp;lt;AbstractTriplet&amp;gt;*/();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;protected List/*&amp;lt;Triplet&amp;gt;*/ triplets = new java.util.ArrayList/*&amp;lt;Triplet&amp;gt;*/();
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Returns the triplet data length
&lt;br&gt;&amp;gt; @@ -109,7 +112,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param triplet the triplet to add
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;protected void addTriplet(AbstractTriplet triplet) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;protected void addTriplet(Triplet triplet) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;triplets.add(triplet);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; @@ -130,7 +133,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; * Sets the fully qualified name of this resource
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Sets the fully qualified name of this structured field
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param fqnType the fully qualified name type of this resource
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * @param fqnFormat the fully qualified name format of this resource
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java (original)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/TagLogicalElement.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -21,9 +21,10 @@
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;import java.io.IOException;
&lt;br&gt;&amp;gt; &amp;nbsp;import java.io.OutputStream;
&lt;br&gt;&amp;gt; -import java.io.UnsupportedEncodingException;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; -import org.apache.fop.afp.AFPConstants;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.AttributeQualifierTriplet;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.AttributeValueTriplet;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.triplets.FullyQualifiedNameTriplet;
&lt;br&gt;&amp;gt; &amp;nbsp;import org.apache.fop.afp.util.BinaryUtils;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;/**
&lt;br&gt;&amp;gt; @@ -45,7 +46,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp; * effect on the appearance of a document when it is presented.
&lt;br&gt;&amp;gt; &amp;nbsp; * &amp;lt;p/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; */
&lt;br&gt;&amp;gt; -public class TagLogicalElement extends AbstractAFPObject {
&lt;br&gt;&amp;gt; +public class TagLogicalElement extends AbstractTripletStructuredObject {
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * Name of the key, used within the TLE
&lt;br&gt;&amp;gt; @@ -75,77 +76,43 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.tleID = tleID;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Sets the attribute value of this structured field
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param value the attribute value
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public void setAttributeValue(String value) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;addTriplet(new AttributeValueTriplet(value));
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// convert name and value to ebcdic
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteName = null;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteValue = null;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteName = name.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = value.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (UnsupportedEncodingException usee) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteName = name.getBytes();
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = value.getBytes();
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;log.warn(
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Constructor:: UnsupportedEncodingException translating the name &amp;quot;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;+ name);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = new byte[27 + tleByteName.length + tleByteValue.length];
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[0] = 0x5A;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Set the total record length
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl1
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= BinaryUtils.convert(26 + tleByteName.length + tleByteValue.length, 2);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Ignore first byte
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[1] = rl1[0];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = rl1[1];
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Structured field ID for a TLE
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[3] = (byte) 0xD3;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[4] = (byte) Type.ATTRIBUTE;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[5] = (byte) Category.PROCESS_ELEMENT;
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[6] = 0x00; // Reserved
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[7] = 0x00; // Reserved
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[8] = 0x00; // Reserved
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Use 2 triplets, attribute name and value (the key for indexing)
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl2 = BinaryUtils.convert(tleByteName.length + 4, 1);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[9] = rl2[0]; // length of the triplet, including this field
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[10] = 0x02; //Identifies it as a FQN triplet
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[11] = 0x0B; // GID format
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[12] = 0x00;
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// write out TLE name
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int pos = 13;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; tleByteName.length; i++) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = tleByteName[i];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] rl3 = BinaryUtils.convert(tleByteValue.length + 4, 1);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = rl3[0]; // length of the triplet, including this field
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x36; //Identifies the triplet, attribute value
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x00; // Reserved
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x00; // Reserved
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; tleByteValue.length; i++) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = tleByteValue[i];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// attribute qualifier
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = 0x0A;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = (byte)0x80;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] id = BinaryUtils.convert(tleID, 4);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; id.length; i++) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = id[i];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] level = BinaryUtils.convert(1, 4);
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; level.length; i++) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[pos++] = level[i];
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Sets the attribute qualifier of this structured field
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; *
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param seqNumber the attribute sequence number
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param levNumber the attribute level number
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public void setAttributeQualifier(int seqNumber, int levNumber) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;addTriplet(new AttributeQualifierTriplet(seqNumber, levNumber));
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setFullyQualifiedName(
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FullyQualifiedNameTriplet.TYPE_ATTRIBUTE_GID,
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FullyQualifiedNameTriplet.FORMAT_CHARSTR,
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setAttributeQualifier(tleID, 1);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;setAttributeValue(value);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = new byte[SF_HEADER.length];
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;copySF(data, Type.ATTRIBUTE, Category.PROCESS_ELEMENT);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;int tripletDataLength = getTripletDataLength();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] l = BinaryUtils.convert(data.length + tripletDataLength - 1, 2);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[1] = l[0];
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = l[1];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;os.write(data);
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;writeTriplets(os);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java?rev=828678&amp;r1=828677&amp;r2=828678&amp;view=diff&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java (original)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AbstractTriplet.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -19,70 +19,12 @@
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; -import org.apache.fop.afp.Streamable;
&lt;br&gt;&amp;gt; -import org.apache.fop.afp.StructuredData;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.modca.AbstractAFPObject;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;/**
&lt;br&gt;&amp;gt; &amp;nbsp; * A simple implementation of a MOD:CA triplet
&lt;br&gt;&amp;gt; &amp;nbsp; */
&lt;br&gt;&amp;gt; -public abstract class AbstractTriplet implements Streamable, StructuredData {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;
&lt;br&gt;&amp;gt; -
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;/** Triplet identifiers */
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FULLY_QUALIFIED_NAME = 0x02;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MAPPING_OPTION = 0x04;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_CLASSIFICATION = 0x10;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MODCA_INTERCHANGE_SET = 0x18;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_FUNCTION_SET_SPECIFICATION = 0x21;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER = 0x22;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_LOCAL_IDENTIFIER = 0x24;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_SECTION_NUMBER = 0x25;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte CHARACTER_ROTATION = 0x26;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_BYTE_OFFSET = 0x2D;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte ATTRIBUTE_VALUE = 0x36;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte DESCRIPTOR_POSITION = 0x43;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MEDIA_EJECT_CONTROL = 0x45;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_USAGE_ATTRIBUTE = 0x47;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MEASUREMENT_UNITS = 0x4B;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_AREA_SIZE = 0x4C;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte AREA_DEFINITION = 0x4D;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte COLOR_SPECIFICATION = 0x4E;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte ENCODING_SCHEME_ID = 0x50;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MEDIUM_MAP_PAGE_NUMBER = 0x56;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_BYTE_EXTENT = 0x57;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_OFFSET = 0x5A;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_COUNT = 0x5E;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte OBJECT_DATE_AND_TIMESTAMP = 0x62;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte COMMENT = 0x65;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MEDIUM_ORIENTATION = 0x68;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte RESOURCE_OBJECT_INCLUDE = 0x6C;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_SPACE_RESET_MIXING = 0x70;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_SPACE_MIXING_RULE = 0x71;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte TONER_SAVER = 0x74;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte COLOR_FIDELITY = 0x75;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FONT_FIDELITY = 0x78;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte ATTRIBUTE_QUALIFIER = (byte)0x80;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PAGE_POSITION_INFORMATION = (byte)0x81;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PARAMETER_VALUE = (byte)0x82;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte PRESENTATION_CONTROL = (byte)0x83;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FINISHING_OPERATION = (byte)0x85;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte TEXT_FIDELITY = (byte)0x86;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte MEDIA_FIDELITY = (byte)0x87;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte FINISHING_FIDELITY = (byte)0x88;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte DATA_OBJECT_FONT_DESCRIPTOR = (byte)0x8B;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte LOCALE_SELECTOR = (byte)0x8C;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte UP3I_FINISHING_OPERATION = (byte)0x8E;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte RENDERING_INTENT = (byte)0x95;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte CMR_TAG_FIDELITY = (byte)0x96;
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp;public static final byte DEVICE_APPEARANCE = (byte)0x97;
&lt;br&gt;&amp;gt; +public abstract class AbstractTriplet extends AbstractAFPObject implements Triplet {
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;/** the triplet identifier */
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;protected final byte id;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java (added)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeQualifierTriplet.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -0,0 +1,48 @@
&lt;br&gt;&amp;gt; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +import java.io.IOException;
&lt;br&gt;&amp;gt; +import java.io.OutputStream;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.util.BinaryUtils;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +/**
&lt;br&gt;&amp;gt; + * The attribute qualifier triplet is used to specify a qualifier for a document
&lt;br&gt;&amp;gt; + * attribute.
&lt;br&gt;&amp;gt; + */
&lt;br&gt;&amp;gt; +public class AttributeQualifierTriplet extends AbstractTriplet {
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;private int seqNumber;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;private int levNumber;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Main constructor
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * 
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param seqNumber the attribute qualifier sequence number
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param levNumber the attribute qualifier level number
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public AttributeQualifierTriplet(int seqNumber, int levNumber) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(ATTRIBUTE_QUALIFIER);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.seqNumber = seqNumber;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.levNumber = levNumber;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = getData();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] id = BinaryUtils.convert(seqNumber, 4);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(id, 0, data, 2, id.length);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] level = BinaryUtils.convert(levNumber, 4);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(level, 0, data, 6, level.length);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;os.write(data);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public int getDataLength() {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 10;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public String toString() {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return &amp;quot;seqNumber=&amp;quot; + seqNumber + &amp;quot;, levNumber=&amp;quot; + levNumber;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java (added)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/AttributeValueTriplet.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -0,0 +1,53 @@
&lt;br&gt;&amp;gt; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +import java.io.IOException;
&lt;br&gt;&amp;gt; +import java.io.OutputStream;
&lt;br&gt;&amp;gt; +import java.io.UnsupportedEncodingException;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.AFPConstants;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +/**
&lt;br&gt;&amp;gt; + * The attribute value triplet is used to specify a value for a document
&lt;br&gt;&amp;gt; + * attribute.
&lt;br&gt;&amp;gt; + */
&lt;br&gt;&amp;gt; +public class AttributeValueTriplet extends AbstractTriplet {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;private String attVal;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/**
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * Main constructor
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * 
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; * @param attVal an attribute value
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public AttributeValueTriplet(String attVal) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;super(ATTRIBUTE_VALUE);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;this.attVal = truncate(attVal, MAX_LENGTH - 4);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public void writeToStream(OutputStream os) throws IOException {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] data = super.getData();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[2] = 0x00; // Reserved
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;data[3] = 0x00; // Reserved
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// convert name and value to ebcdic
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;byte[] tleByteValue = null;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = attVal.getBytes(AFPConstants.EBCIDIC_ENCODING);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;} catch (UnsupportedEncodingException usee) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;tleByteValue = attVal.getBytes();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;throw new IllegalArgumentException(attVal + &amp;quot; encoding failed&amp;quot;);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.arraycopy(tleByteValue, 0, data, 4, tleByteValue.length);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;os.write(data);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public int getDataLength() {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return 4 + attVal.length();
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** {@inheritDoc} */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;public String toString() {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return attVal;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Added: xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java
&lt;br&gt;&amp;gt; URL: &lt;a href=&quot;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java?rev=828678&amp;view=auto&lt;/a&gt;&lt;br&gt;&amp;gt; ==============================================================================
&lt;br&gt;&amp;gt; --- xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java (added)
&lt;br&gt;&amp;gt; +++ xmlgraphics/fop/trunk/src/java/org/apache/fop/afp/modca/triplets/Triplet.java Thu Oct 22 13:20:53 2009
&lt;br&gt;&amp;gt; @@ -0,0 +1,66 @@
&lt;br&gt;&amp;gt; +package org.apache.fop.afp.modca.triplets;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.Streamable;
&lt;br&gt;&amp;gt; +import org.apache.fop.afp.StructuredData;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +public interface Triplet extends Streamable, StructuredData {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;int MAX_LENGTH = 254;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte CODED_GRAPHIC_CHARACTER_SET_GLOBAL_IDENTIFIER = 0x01;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;/** Triplet identifiers */
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FULLY_QUALIFIED_NAME = 0x02;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MAPPING_OPTION = 0x04;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_CLASSIFICATION = 0x10;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MODCA_INTERCHANGE_SET = 0x18;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FONT_DESCRIPTOR_SPECIFICATION = 0x1F;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_FUNCTION_SET_SPECIFICATION = 0x21;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte EXTENDED_RESOURCE_LOCAL_IDENTIFIER = 0x22;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte RESOURCE_LOCAL_IDENTIFIER = 0x24;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte RESOURCE_SECTION_NUMBER = 0x25;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte CHARACTER_ROTATION = 0x26;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_BYTE_OFFSET = 0x2D;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte ATTRIBUTE_VALUE = 0x36;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte DESCRIPTOR_POSITION = 0x43;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MEDIA_EJECT_CONTROL = 0x45;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PAGE_OVERLAY_CONDITIONAL_PROCESSING = 0x46;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte RESOURCE_USAGE_ATTRIBUTE = 0x47;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MEASUREMENT_UNITS = 0x4B;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_AREA_SIZE = 0x4C;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte AREA_DEFINITION = 0x4D;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte COLOR_SPECIFICATION = 0x4E;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte ENCODING_SCHEME_ID = 0x50;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MEDIUM_MAP_PAGE_NUMBER = 0x56;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_BYTE_EXTENT = 0x57;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_STRUCTURED_FIELD_OFFSET = 0x58;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_STRUCTURED_FIELD_EXTENT = 0x59;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_OFFSET = 0x5A;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FONT_HORIZONTAL_SCALE_FACTOR = 0x5D;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_COUNT = 0x5E;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte OBJECT_DATE_AND_TIMESTAMP = 0x62;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte COMMENT = 0x65;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MEDIUM_ORIENTATION = 0x68;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte RESOURCE_OBJECT_INCLUDE = 0x6C;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_SPACE_RESET_MIXING = 0x70;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_SPACE_MIXING_RULE = 0x71;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte UNIVERSAL_DATE_AND_TIMESTAMP = 0x72;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte TONER_SAVER = 0x74;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte COLOR_FIDELITY = 0x75;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FONT_FIDELITY = 0x78;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte ATTRIBUTE_QUALIFIER = (byte)0x80;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PAGE_POSITION_INFORMATION = (byte)0x81;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PARAMETER_VALUE = (byte)0x82;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte PRESENTATION_CONTROL = (byte)0x83;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FONT_RESOLUTION_AND_METRIC_TECHNOLOGY = (byte)0x84;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FINISHING_OPERATION = (byte)0x85;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte TEXT_FIDELITY = (byte)0x86;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte MEDIA_FIDELITY = (byte)0x87;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte FINISHING_FIDELITY = (byte)0x88;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte DATA_OBJECT_FONT_DESCRIPTOR = (byte)0x8B;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte LOCALE_SELECTOR = (byte)0x8C;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte UP3I_FINISHING_OPERATION = (byte)0x8E;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte COLOR_MANAGEMENT_RESOURCE_DESCRIPTOR = (byte)0x91;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte RENDERING_INTENT = (byte)0x95;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte CMR_TAG_FIDELITY = (byte)0x96;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp;byte DEVICE_APPEARANCE = (byte)0x97;
&lt;br&gt;&amp;gt; +}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527587&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26527587&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;fop-commits-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-svn-commit%3A-r828678---in--xmlgraphics-fop-trunk-src-java-org-apache-fop-afp%3A-goca--modca--modca-triplets--tp26527587p26527587.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525917</id>
	<title>DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg</title>
	<published>2009-11-26T00:24:16Z</published>
	<updated>2009-11-26T00:24:16Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #5 from Chris Bowditch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26525917&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bowditch_chris@...&lt;/a&gt;&amp;gt; 2009-11-26 00:24:13 UTC ---
&lt;br&gt;Jeremias,
&lt;br&gt;&lt;br&gt;our local B+W AFP Printer handles this and converts the colour SVG to B+W on
&lt;br&gt;the fly. However, one of our customers with B+W Printers said the AFP failed to
&lt;br&gt;print due to the colour in the GOCA objects. We believe this is a bug and
&lt;br&gt;should be fixed.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Chris
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48237--New%3A-afp-renderer-does-not-respect-image-color-settings-for-svg-tp26427295p26525917.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519733</id>
	<title>Re: Thoughts on Bug 48237</title>
	<published>2009-11-25T12:26:38Z</published>
	<updated>2009-11-25T12:26:38Z</updated>
	<author>
		<name>Jeremias Maerki-2</name>
	</author>
	<content type="html">Hi Peter
&lt;br&gt;&lt;br&gt;See my question I attached to bug 48237. But of course, the ideal case
&lt;br&gt;is to have the color converted properly if possible.
&lt;br&gt;&lt;br&gt;On 24.11.2009 15:30:30 Peter Hancock wrote:
&lt;br&gt;&amp;gt; At present FOP does not respect an image color setting of 'b+w' when
&lt;br&gt;&amp;gt; rendering svg to afp (see Bug 48237)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; According to the AFP spec (
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&lt;/a&gt;)
&lt;br&gt;&amp;gt; it does not seem possible to specify a grayscale color space, and so my
&lt;br&gt;&amp;gt; question is how should colour be controlled?
&lt;br&gt;&lt;br&gt;I think there are two general approached besides just using RGB:
&lt;br&gt;- CMYK with only the K component (that is a clear indication that we
&lt;br&gt;want a fully black color or shades of that)
&lt;br&gt;- using a Highlight color space (assuming black as a highlight/spot
&lt;br&gt;color)
&lt;br&gt;&lt;br&gt;But I have no experience with highlight colors on AFP, so I can't tell
&lt;br&gt;if it would work.
&lt;br&gt;&lt;br&gt;&amp;gt; Since AFPGraphics2D is responsible for setting the color on the MODCA
&lt;br&gt;&amp;gt; GraphicsObject prior to calling drawing &amp;nbsp;methods, &amp;nbsp;would a sensible fix to
&lt;br&gt;&amp;gt; the problem be to convert the awt.Color before calling this setter?
&lt;br&gt;&lt;br&gt;Probably. I have some tentative need to have a general color conversion
&lt;br&gt;facility for FOP (not just AFP). For example, at some point we may want
&lt;br&gt;to have color conversion from sRGB to CMYK. Another use case for a color
&lt;br&gt;converter would be a detector which would convert any grayscale color (R,
&lt;br&gt;G, B or C, M, Y with equal values) to a CMYK value (with only K) which
&lt;br&gt;might in certain situations improve output quality because otherwise a
&lt;br&gt;RIP might be inclined to mix black by mixing CMY. I can imagine that a
&lt;br&gt;general interface could be defined for which there could be multiple
&lt;br&gt;implementations depending on the use case and configuration. For the
&lt;br&gt;present case, one implementation of that interface per color setting
&lt;br&gt;could be written for AFP. Not sure, just brainstorming.
&lt;br&gt;&lt;br&gt;&amp;gt; Any thoughts would be most welcome,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Pete
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-Bug-48237-tp26496881p26519733.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519531</id>
	<title>DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg</title>
	<published>2009-11-25T12:10:43Z</published>
	<updated>2009-11-25T12:10:43Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #4 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 12:10:42 UTC ---
&lt;br&gt;Peter, I understand the bug report (all colors should ideally be transformed to
&lt;br&gt;grayscales when AFP output is configured to 8bit grayscales), but what I'm
&lt;br&gt;curious about is whether the current behaviour actually caused a problem on
&lt;br&gt;your side. So far I have no reports that the colors cause any problems. The
&lt;br&gt;systems seem to be able to handle them correctly, even on a monochrome system.
&lt;br&gt;Only the bitmap images are currently reduced in color depth most of all because
&lt;br&gt;that has a huge impact on file size.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48237--New%3A-afp-renderer-does-not-respect-image-color-settings-for-svg-tp26427295p26519531.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26519366</id>
	<title>DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling</title>
	<published>2009-11-25T12:01:08Z</published>
	<updated>2009-11-25T12:01:08Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #44 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26519366&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 12:01:00 UTC ---
&lt;br&gt;(In reply to comment #43)
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi All,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We have found one issue during testing this new feature.
&lt;br&gt;&amp;gt; The issue lies in PageBoundaries.java in calculating crop/bleed boxes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The offsets &amp;nbsp;order is: [top, right, bottom, left], so to calculate Y size of
&lt;br&gt;&amp;gt; the final box we should use the 'bottom' instead of 'top' offset :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return new Rectangle(originalRect.x - coords[3],
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.y - coords[0],
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.y - coords[2],
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.width + coords[3] + coords[1],
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.height + coords[0] + coords[2]);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Please find in the attachments the fix patch. (Comment#41)
&lt;br&gt;&amp;gt; Also I have attached the full patch for FOP-0.95 version (Comment#42) if
&lt;br&gt;&amp;gt; somebody will have a need to use this feature with previous version.
&lt;/div&gt;&lt;br&gt;I've taken a look at that. Thanks for spotting the problem, Boris, but your
&lt;br&gt;solution was not the right one. But you brought me on the right track. I've
&lt;br&gt;just found out what our mistake is: PDF specifies the boxes as &amp;quot;rectangles&amp;quot;
&lt;br&gt;which are defined as &amp;quot;llx lly urx ury&amp;quot; (i.e. lower left to upper right). But
&lt;br&gt;our/FOP's Rectangle2D objects are actually &amp;quot;upper left to lower right&amp;quot;. In
&lt;br&gt;PageBoundaries we're still in FOP's coordinate system which starts at the upper
&lt;br&gt;left. So we have to calculate the right values for the default PDF coordinate
&lt;br&gt;system. Boris' change would have broken a test case and created a bug on the
&lt;br&gt;bitmap production side. So the right change is to do a transformation from
&lt;br&gt;FOP's internal coordinate system to PDF's default one in PDFDocumentHandler:
&lt;br&gt;&lt;a href=&quot;http://svn.apache.org/viewvc?rev=884241&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=884241&amp;view=rev&lt;/a&gt;&lt;br&gt;&lt;br&gt;Boris, can you please verify that this fix also work for you? Thanks!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-47311--New%3A--PATCH--Support-for-bleed%2C-trim-and-crop-box-and-scaling-tp23856199p26519366.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26515225</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-25T07:55:59Z</published>
	<updated>2009-11-25T07:55:59Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515225&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|FIXED
&lt;br&gt;&lt;br&gt;--- Comment #6 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26515225&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 07:55:58 UTC ---
&lt;br&gt;So the code was basically already there (due to the JPEG CMYK support) and only
&lt;br&gt;had to be enabled. Your patch could actually be further simplified. The check
&lt;br&gt;for the component count is not necessary as that is done inside
&lt;br&gt;ImageEncodingHelper already.
&lt;br&gt;&lt;br&gt;Patch applied: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=884159&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=884159&amp;view=rev&lt;/a&gt;&lt;br&gt;Thanks!
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26515225.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514915</id>
	<title>DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg</title>
	<published>2009-11-25T07:39:34Z</published>
	<updated>2009-11-25T07:39:34Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #3 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514915&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-25 07:39:33 UTC ---
&lt;br&gt;I have checked this bug with FOP 0.95 version initially, but later understood
&lt;br&gt;that FOPTrunk is having this problem instead of FOP 0.95.
&lt;br&gt;&lt;br&gt;The Bitmaps are rendering according the image mode configuration (either b+w or
&lt;br&gt;color) in both FOP 0.95 and FOPTrunk. 
&lt;br&gt;&lt;br&gt;The problem is with SVGs, the image mode is not respected in case of SVGs in
&lt;br&gt;FOPTrunk. 
&lt;br&gt;&lt;br&gt;So, It is a valid bug in FOPTrunk....
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48237--New%3A-afp-renderer-does-not-respect-image-color-settings-for-svg-tp26427295p26514915.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514730</id>
	<title>DO NOT REPLY [Bug 48255] PDFRectangle</title>
	<published>2009-11-25T07:27:58Z</published>
	<updated>2009-11-25T07:27:58Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48255&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #1 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 07:27:58 UTC ---
&lt;br&gt;Patches are welcome to improve FOP. PDFRectangle could be changed to be a
&lt;br&gt;subclass of PDFArray and PDFLink should actually be a PDFDictionary subclass at
&lt;br&gt;some point. Want to give it a try?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48255--New%3A-PDFRectangle-tp26451210p26514730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514670</id>
	<title>DO NOT REPLY [Bug 48227] RenderContext property PDF_CONTEXT is set twice</title>
	<published>2009-11-25T07:23:29Z</published>
	<updated>2009-11-25T07:23:29Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48227&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48227&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514670&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|FIXED
&lt;br&gt;&lt;br&gt;--- Comment #1 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514670&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 07:23:29 UTC ---
&lt;br&gt;Changed: &lt;a href=&quot;http://svn.apache.org/viewvc?rev=884138&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=884138&amp;view=rev&lt;/a&gt;&lt;br&gt;Thanks.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48227--New%3A-RenderContext-property-PDF_CONTEXT-is-set-twice-tp26411360p26514670.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514407</id>
	<title>DO NOT REPLY [Bug 48211] How to change/set 128-bit RC4 encryption level in secured PDF</title>
	<published>2009-11-25T07:12:12Z</published>
	<updated>2009-11-25T07:12:12Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48211&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48211&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514407&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Component|general &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |pdf
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Version|0.95 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|1.0dev
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Severity|major &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |enhancement
&lt;br&gt;&lt;br&gt;--- Comment #1 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514407&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 07:12:11 UTC ---
&lt;br&gt;Support for encryption larger than 40bits has not been implemented, yet.
&lt;br&gt;Patches are welcome.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48211--New%3A-How-to-change-set-128-bit-RC4-encryption-level-in-secured-PDF-tp26387536p26514407.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26514245</id>
	<title>DO NOT REPLY [Bug 48048] [PATCH] AFP renderer outputs incorrect values for GBAR ( Graphics Begin Area )</title>
	<published>2009-11-25T07:05:27Z</published>
	<updated>2009-11-25T07:05:27Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48048&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48048&lt;/a&gt;&lt;br&gt;&lt;br&gt;Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514245&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; changed:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;What &amp;nbsp; &amp;nbsp;|Removed &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |Added
&lt;br&gt;----------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Status|NEW &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |RESOLVED
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Resolution| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|FIXED
&lt;br&gt;&lt;br&gt;--- Comment #1 from Jeremias Maerki &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26514245&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeremias@...&lt;/a&gt;&amp;gt; 2009-11-25 07:05:24 UTC ---
&lt;br&gt;Thanks for spotting this and sending a patch! It is applied now:
&lt;br&gt;&lt;a href=&quot;http://svn.apache.org/viewvc?rev=884129&amp;view=rev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://svn.apache.org/viewvc?rev=884129&amp;view=rev&lt;/a&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48048--New%3A--PATCH--AFP-renderer-outputs-incorrect-values-for-GBAR-%28-Graphics-Begin-Area-%29-tp26041648p26514245.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499904</id>
	<title>RE: Support for Arabic in FOP</title>
	<published>2009-11-24T10:13:15Z</published>
	<updated>2009-11-24T10:13:15Z</updated>
	<author>
		<name>Sérgio Lopes</name>
	</author>
	<content type="html">Hi Prakash, 
&lt;br&gt;&lt;br&gt;I need fop to be able to handle arabic text. I tried to generate a PDF file with the Sebastian fop code, but the arabic text is not correctly shaped. I must be doing something wrong...
&lt;br&gt;Can you please send me an example?
&lt;br&gt;&lt;br&gt;Thanks in advance.
&lt;br&gt;&lt;br&gt;best regards,
&lt;br&gt;Sérgio Lopes
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Prakash sen wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;I am not sure on the licensing part as sebastian did some changes in FOP code and he provided me the jars. And as per what i had checked those jar print arabic correctly. 
&lt;br&gt;Possibly he will only be able to answer and I am nots ure whether the change was made keeping FOP standards. He was planning to do bidi algorithm, no idea whether he worked on it later and whether he contribuited the below change to FOP. 
&lt;br&gt;&lt;br&gt;Below were his comments - 
&lt;br&gt;If I set the writing-mode to rl-tb my text is flipped vertical. This happens 
&lt;br&gt;because the CTM class rotates the transformation matrix for rendering 
&lt;br&gt;according to the writing mode. If I want to write right-to-left this has 
&lt;br&gt;nothing to do with mirroring of cause and I disabled it, because I want to 
&lt;br&gt;print arabic text. So what is the purpose of mirroring in rl-tb 
&lt;br&gt;writing-mode? What errors will appear if I disable the CTM.getWMctm() 
&lt;br&gt;function that does the mirroring according to the writing-mode?
&lt;br&gt;I achived printing (pdf) arabic text after some weeks of work ignoring any 
&lt;br&gt;xsl:fo recommendations. The most things I did in the TextLayoutManager. Now 
&lt;br&gt;I'm thinking about implementing it according to the recommendations and the 
&lt;br&gt;BIDI algorithm.
&lt;br&gt;&lt;br&gt;Hi Prakash,
&lt;br&gt;you can download the version of FOP that I use to print Arabic script from
&lt;br&gt;www.anneundsebp.de/fop/fop.html
&lt;br&gt;&lt;br&gt;I hope it works for you. Unfortunately I don't understand Arabic but I know
&lt;br&gt;that there are still some problems with the type setting. Maybe you can
&lt;br&gt;inform me about bugs you'll find.
&lt;br&gt;I'll add some explanations and the source code in a few days.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Sebastian
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Volunteering-to-work-on-FOP-development-tp25442059p26499904.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499670</id>
	<title>Re: Thoughts on Bug 48237</title>
	<published>2009-11-24T09:05:21Z</published>
	<updated>2009-11-24T09:05:21Z</updated>
	<author>
		<name>Peter Hancock-2</name>
	</author>
	<content type="html">Hi Venkat,&lt;br&gt;&lt;br&gt;The bug is with svg images (embedded and extrernal) - you are correct that it works with bitmaps as demonstrated in the files attached to the bug report.  Were you able to test those?&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Pete&lt;br&gt;
&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Nov 24, 2009 at 4:59 PM, Venkat Reddy &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499670&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Peter,&lt;br&gt;
&lt;br&gt;
There is no bug with this functionality. You can have a look at the FO file that I have used...&lt;br&gt;
&lt;br&gt;
1. Update the configuration file for the image mode (b+w  or  color)&lt;br&gt;
2. Run the following command from the command prompt...&lt;br&gt;
   *C:\mywork\FOP\fop-0.95&amp;gt; fop -c C:\fop.xconf -fo C:\mywork\JavaXSLTSamples\XSLFOSamples\&lt;a href=&quot;http://hello.fo&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;hello.fo&lt;/a&gt; -afp C:\mywork\JavaXSLTSamples\XSLFOSamples\hellotest.afp&lt;br&gt;
*&lt;br&gt;
According to the mode, the image will be rendered with color or black and white...&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Venkat.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Peter Hancock wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;
At present FOP does not respect an image color setting of &amp;#39;b+w&amp;#39; when rendering svg to afp (see Bug 48237)&lt;br&gt;
&lt;br&gt;&lt;/div&gt;
According to the AFP spec (&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&lt;/a&gt; &amp;lt;&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&lt;/a&gt;&amp;gt;) it does not seem possible to specify a grayscale color space, and so my  question is how should colour be controlled?&lt;div class=&quot;im&quot;&gt;
&lt;br&gt;
&lt;br&gt;
Since AFPGraphics2D is responsible for setting the color on the MODCA GraphicsObject prior to calling drawing  methods,  would a sensible fix to the problem be to convert the awt.Color before calling this setter?&lt;br&gt;
&lt;br&gt;
Any thoughts would be most welcome,&lt;br&gt;
&lt;br&gt;
Pete&lt;br&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-Bug-48237-tp26496881p26499670.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499552</id>
	<title>DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg</title>
	<published>2009-11-24T08:59:36Z</published>
	<updated>2009-11-24T08:59:36Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #2 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499552&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-24 08:59:36 UTC ---
&lt;br&gt;Created an attachment (id=24606)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24606&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24606&lt;/a&gt;)
&lt;br&gt;Input FO file
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48237--New%3A-afp-renderer-does-not-respect-image-color-settings-for-svg-tp26427295p26499552.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499527</id>
	<title>Re: Thoughts on Bug 48237</title>
	<published>2009-11-24T08:59:24Z</published>
	<updated>2009-11-24T08:59:24Z</updated>
	<author>
		<name>Venkat Reddy-7</name>
	</author>
	<content type="html">Hi Peter,
&lt;br&gt;&lt;br&gt;There is no bug with this functionality. You can have a look at the FO 
&lt;br&gt;file that I have used...
&lt;br&gt;&lt;br&gt;1. Update the configuration file for the image mode (b+w &amp;nbsp;or &amp;nbsp;color)
&lt;br&gt;2. Run the following command from the command prompt...
&lt;br&gt;&amp;nbsp; &amp;nbsp; *C:\mywork\FOP\fop-0.95&amp;gt; fop -c C:\fop.xconf -fo 
&lt;br&gt;C:\mywork\JavaXSLTSamples\XSLFOSamples\hello.fo -afp 
&lt;br&gt;C:\mywork\JavaXSLTSamples\XSLFOSamples\hellotest.afp
&lt;br&gt;*
&lt;br&gt;According to the mode, the image will be rendered with color or black 
&lt;br&gt;and white...
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Venkat.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Peter Hancock wrote:
&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; At present FOP does not respect an image color setting of 'b+w' when 
&lt;br&gt;&amp;gt; rendering svg to afp (see Bug 48237)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; According to the AFP spec 
&lt;br&gt;&amp;gt; (&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;DT=20001002123303&lt;/a&gt;&amp;gt;) 
&lt;br&gt;&amp;gt; it does not seem possible to specify a grayscale color space, and so 
&lt;br&gt;&amp;gt; my &amp;nbsp;question is how should colour be controlled?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since AFPGraphics2D is responsible for setting the color on the MODCA 
&lt;br&gt;&amp;gt; GraphicsObject prior to calling drawing &amp;nbsp;methods, &amp;nbsp;would a sensible 
&lt;br&gt;&amp;gt; fix to the problem be to convert the awt.Color before calling this setter?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Any thoughts would be most welcome,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Pete
&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;fo:root xmlns:fo=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/XSL/Format&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/1999/XSL/Format&lt;/a&gt;&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:layout-master-set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:simple-page-master master-name=&amp;quot;page&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:region-body 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-right=&amp;quot;0.5in&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-left=&amp;quot;0.5in&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-bottom=&amp;quot;1in&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; margin-top=&amp;quot;0.5in&amp;quot; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; region-name=&amp;quot;body&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fo:simple-page-master&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fo:layout-master-set&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:page-sequence master-reference=&amp;quot;page&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:flow flow-name=&amp;quot;body&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;fo:block break-before=&amp;quot;page&amp;quot; top=&amp;quot;4in&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Testing image &amp;lt;fo:external-graphic src=&amp;quot;C:\mywork\JavaXSLTSamples\XSLFOSamples\blue.png&amp;quot;/&amp;gt; in between words
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fo:block&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fo:flow&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/fo:page-sequence&amp;gt;
&lt;br&gt;&amp;lt;/fo:root&amp;gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-Bug-48237-tp26496881p26499527.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26499531</id>
	<title>DO NOT REPLY [Bug 48237] afp renderer does not respect image color settings for svg</title>
	<published>2009-11-24T08:58:36Z</published>
	<updated>2009-11-24T08:58:36Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48237&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #1 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26499531&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-24 08:58:35 UTC ---
&lt;br&gt;Hi Peter,
&lt;br&gt;&lt;br&gt;There is no bug with this functionality. You can have a look at the FO file
&lt;br&gt;that I have used...
&lt;br&gt;&lt;br&gt;1. Update the configuration file for the image mode (b+w &amp;nbsp;or &amp;nbsp;color)
&lt;br&gt;2. Run the following command from the command prompt...
&lt;br&gt;&amp;nbsp; &amp;nbsp; C:\mywork\FOP\fop-0.95&amp;gt; fop -c C:\fop.xconf -fo
&lt;br&gt;C:\mywork\JavaXSLTSamples\XSLFOSamples\hello.fo -afp
&lt;br&gt;C:\mywork\JavaXSLTSamples\XSLFOSamples\hellotest.afp
&lt;br&gt;&lt;br&gt;According to the mode, the image will be rendered with color or black and
&lt;br&gt;white...
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Venkat.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48237--New%3A-afp-renderer-does-not-respect-image-color-settings-for-svg-tp26427295p26499531.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26496881</id>
	<title>Thoughts on Bug 48237</title>
	<published>2009-11-24T06:30:30Z</published>
	<updated>2009-11-24T06:30:30Z</updated>
	<author>
		<name>Peter Hancock-2</name>
	</author>
	<content type="html">At present FOP does not respect an image color setting of &amp;#39;b+w&amp;#39; when rendering svg to afp (see Bug 48237)&lt;br&gt;&lt;br&gt;According to the AFP spec (&lt;a href=&quot;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/HA3N1M00/7.47.1?SHELF=APSBK320&amp;amp;DT=20001002123303&lt;/a&gt;) it does not seem possible to specify a grayscale color space, and so my  question is how should colour be controlled?&lt;br&gt;
&lt;br&gt;Since AFPGraphics2D is responsible for setting the color on the MODCA GraphicsObject prior to calling drawing  methods,  would a sensible fix to the problem be to convert the awt.Color before calling this setter?&lt;br&gt;&lt;br&gt;
Any thoughts would be most welcome,&lt;br&gt;&lt;br&gt;Pete&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Thoughts-on-Bug-48237-tp26496881p26496881.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491792</id>
	<title>DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling</title>
	<published>2009-11-23T23:54:26Z</published>
	<updated>2009-11-23T23:54:26Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #43 from Boris Y. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491792&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;borisbsu@...&lt;/a&gt;&amp;gt; 2009-11-23 23:54:24 UTC ---
&lt;br&gt;Hi All,
&lt;br&gt;&lt;br&gt;We have found one issue during testing this new feature.
&lt;br&gt;The issue lies in PageBoundaries.java in calculating crop/bleed boxes.
&lt;br&gt;&lt;br&gt;The offsets &amp;nbsp;order is: [top, right, bottom, left], so to calculate Y size of
&lt;br&gt;the final box we should use the 'bottom' instead of 'top' offset :
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return new Rectangle(originalRect.x - coords[3],
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.y - coords[0],
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.y - coords[2],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.width + coords[3] + coords[1],
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;originalRect.height + coords[0] + coords[2]);
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Please find in the attachments the fix patch. (Comment#41)
&lt;br&gt;Also I have attached the full patch for FOP-0.95 version (Comment#42) if
&lt;br&gt;somebody will have a need to use this feature with previous version.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-47311--New%3A--PATCH--Support-for-bleed%2C-trim-and-crop-box-and-scaling-tp23856199p26491792.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491766</id>
	<title>DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling</title>
	<published>2009-11-23T23:52:58Z</published>
	<updated>2009-11-23T23:52:58Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #42 from Boris Y. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491766&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;borisbsu@...&lt;/a&gt;&amp;gt; 2009-11-23 23:52:58 UTC ---
&lt;br&gt;Created an attachment (id=24600)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24600&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24600&lt;/a&gt;)
&lt;br&gt;Full patch for FOP-0.95 version
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-47311--New%3A--PATCH--Support-for-bleed%2C-trim-and-crop-box-and-scaling-tp23856199p26491766.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491757</id>
	<title>DO NOT REPLY [Bug 47311] [PATCH] Support for bleed, trim and crop box and scaling</title>
	<published>2009-11-23T23:52:25Z</published>
	<updated>2009-11-23T23:52:25Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=47311&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #41 from Boris Y. &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26491757&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;borisbsu@...&lt;/a&gt;&amp;gt; 2009-11-23 23:52:14 UTC ---
&lt;br&gt;Created an attachment (id=24599)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24599&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24599&lt;/a&gt;)
&lt;br&gt;Fix for /trunk
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-47311--New%3A--PATCH--Support-for-bleed%2C-trim-and-crop-box-and-scaling-tp23856199p26491757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480824</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-23T08:01:27Z</published>
	<updated>2009-11-23T08:01:27Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #5 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480824&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-23 08:01:26 UTC ---
&lt;br&gt;Created an attachment (id=24595)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24595&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24595&lt;/a&gt;)
&lt;br&gt;Postscript output file after the changes
&lt;br&gt;&lt;br&gt;Please find the CMYK color space with the output file after the patch applied.
&lt;br&gt;&lt;br&gt;like ...
&lt;br&gt;&lt;br&gt;%AXGBeginBitmap: C:\mywork\JavaXSLTSamples\XSLFOSamples\cmykimage.jpg
&lt;br&gt;{{
&lt;br&gt;/RawData currentfile /ASCII85Decode filter def
&lt;br&gt;/Data RawData &amp;lt;&amp;lt; &amp;gt;&amp;gt; /DCTDecode filter def
&lt;br&gt;/DeviceCMYK setcolorspace
&lt;br&gt;&amp;lt;&amp;lt;
&lt;br&gt;&amp;nbsp; /Decode [1 0 1 0 1 0 1 0]
&lt;br&gt;&amp;nbsp; /Width 500
&lt;br&gt;&amp;nbsp; /BitsPerComponent 8
&lt;br&gt;&amp;nbsp; /ImageType 1
&lt;br&gt;&amp;nbsp; /DataSource Data
&lt;br&gt;&amp;nbsp; /ImageMatrix [500 0 0 300 0 0]
&lt;br&gt;&amp;nbsp; /Height 300
&lt;br&gt;&amp;gt;&amp;gt; image
&lt;br&gt;} stopped {handleerror} if
&lt;br&gt;&amp;nbsp; RawData flushfile
&lt;br&gt;} exec
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26480824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480657</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-23T07:52:28Z</published>
	<updated>2009-11-23T07:52:28Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #4 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480657&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-23 07:52:27 UTC ---
&lt;br&gt;Please find that the code changes are in XMLGraphicsCommons project, the patch
&lt;br&gt;should be applied to XMLGraphicsCommons and the
&lt;br&gt;'xmlgraphics-commons-1.4svn.jar' should be placed in FopTrunk/lib to get the
&lt;br&gt;desired output.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26480657.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480518</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-23T07:45:48Z</published>
	<updated>2009-11-23T07:45:48Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #3 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480518&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-23 07:45:48 UTC ---
&lt;br&gt;Created an attachment (id=24594)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24594&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24594&lt;/a&gt;)
&lt;br&gt;CMYK Tiff Image
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26480518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480493</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-23T07:45:02Z</published>
	<updated>2009-11-23T07:45:02Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #2 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480493&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-23 07:45:02 UTC ---
&lt;br&gt;Created an attachment (id=24592)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24592&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24592&lt;/a&gt;)
&lt;br&gt;CMYK JPG image
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26480493.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26480477</id>
	<title>DO NOT REPLY [Bug 48264] [PATCH] PS Renderer failed to process images using CMYK color space</title>
	<published>2009-11-23T07:44:10Z</published>
	<updated>2009-11-23T07:44:10Z</updated>
	<author>
		<name>Bugzilla from bugzilla@apache.org</name>
	</author>
	<content type="html">&lt;a href=&quot;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/show_bug.cgi?id=48264&lt;/a&gt;&lt;br&gt;&lt;br&gt;--- Comment #1 from Venkat Reddy &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26480477&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vanukuri.venkat@...&lt;/a&gt;&amp;gt; 2009-11-23 07:44:10 UTC ---
&lt;br&gt;Created an attachment (id=24591)
&lt;br&gt;&amp;nbsp;--&amp;gt; (&lt;a href=&quot;https://issues.apache.org/bugzilla/attachment.cgi?id=24591&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/attachment.cgi?id=24591&lt;/a&gt;)
&lt;br&gt;Input FO file
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Configure bugmail: &lt;a href=&quot;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/bugzilla/userprefs.cgi?tab=email&lt;/a&gt;&lt;br&gt;------- You are receiving this mail because: -------
&lt;br&gt;You are the assignee for the bug.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/DO-NOT-REPLY--Bug-48264--New%3A--PATCH--PS-Renderer-failed-to-process-images-using-CMYK-color-space-tp26480439p26480477.html" />
</entry>

</feed>
