You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2011/07/19 16:04:05 UTC

DO NOT REPLY [Bug 51530] New: [PATCH] AFP double byte fonts

https://issues.apache.org/bugzilla/show_bug.cgi?id=51530

             Bug #: 51530
           Summary: [PATCH] AFP double byte fonts
           Product: Fop
           Version: 1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: fonts
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: med1985@gmail.com
    Classification: Unclassified


Created attachment 27298
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27298
[PATCH] the fix

Some double byte characters aren't being written correctly to an AFP document.
These are specifically EBCDIC encoded double byte fonts, as the
java.nio.CharsetEncoder prepends and appends the "Shift Out Shift In" operators
(0x0E and 0x0F respectively) to the byte array. 

These are line data commands used for shifting between single and double byte
encodings and not necessary in AFP. The result being that the characters aren't
encoded correctly. 

These need to be removed, however, there's no "fool proof" way of
distinguishing between an EBCDIC DBCS (double byte character set) and other
DBCSs. Thus I have implemented an optional attribute "ebcdic-dbcs" to remove
these 0x0E and 0x0F operators.

I've tested this here, but can't provide an EBCDIC encoded DBCS due to
licensing issues.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51530] [PATCH] AFP double byte fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51530

Mehdi Houshmand <me...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27298|0                           |1
        is obsolete|                            |

--- Comment #1 from Mehdi Houshmand <me...@gmail.com> 2011-09-05 08:58:53 UTC ---
Created attachment 27458
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27458
AFP dbcs patch

I failed to include a file in the patch

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51530] [PATCH] AFP double byte fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51530

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #2 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:19:14 UTC ---
batch transition to closed; if someone wishes to restore one of these to
resolved in order to perform a verification step, then feel free to do so

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 51530] [PATCH] AFP double byte fonts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51530

Peter Hancock <pe...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.