You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2011/06/17 09:28:37 UTC

DO NOT REPLY [Bug 51389] New: Add support for sprmPJc paragraph SPRM

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

             Bug #: 51389
           Summary: Add support for sprmPJc paragraph SPRM
           Product: POI
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: HWPF
        AssignedTo: dev@poi.apache.org
        ReportedBy: vlsergey@gmail.com
    Classification: Unclassified


Add support for sprmPJc paragraph SPRM, including support for logical
justification. See Bug49820.doc (header 8 and header 9) for example.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

--- Comment #2 from Sergey Vladimirov <vl...@gmail.com> 2011-06-17 07:33:06 UTC ---
Created attachment 27167
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27167
scratchpad 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

--- Comment #1 from Sergey Vladimirov <vl...@gmail.com> 2011-06-17 07:29:45 UTC ---
Created attachment 27166
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27166
pap_type.xml patch

Update pap_type.xml with sorting from specification, optional descriptions and
fBiDi field definition.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

Sergey Vladimirov <vl...@gmail.com> changed:

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

--- Comment #5 from Sergey Vladimirov <vl...@gmail.com> 2011-06-20 06:14:05 UTC ---
Yegor,

One change to ParagraphSprmUncompressor.java lost

Index: ParagraphSprmUncompressor.java
===================================================================
--- ParagraphSprmUncompressor.java    (revision 1137143)
+++ ParagraphSprmUncompressor.java    (working copy)
@@ -346,7 +346,8 @@
         }
         break;
       case 0x41:
-        // sprmPFBiDi 
+        // sprmPFBiDi
+        newPAP.setFBiDi((byte) sprm.getOperand());
         break;
       case 0x43:

It is required for correct processing of logical left-right justification.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

Yegor Kozlov <ye...@dinom.ru> changed:

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

--- Comment #6 from Yegor Kozlov <ye...@dinom.ru> 2011-06-20 08:09:44 UTC ---
Should be fixed in r1137538

The missing line wasn't in the patch.  Below are the changes for
ParagraphSprmUncompressor from the scratchpad patch:

--- src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java    (revision
1135282)
+++ src/org/apache/poi/hwpf/sprm/ParagraphSprmUncompressor.java    (working
copy)
@@ -346,8 +346,7 @@
         }
         break;
       case 0x41:
-
-        // undocumented
+        // sprmPFBiDi 
         break;
       case 0x43:

@@ -387,7 +386,8 @@
         newPAP.setFTtpEmbedded((byte)sprm.getOperand());
         break;
       case 0x61:
-        // Logicial justification of the paragraph, eg left, centre, right
+        // sprmPJc 
+        newPAP.setJustificationLogical((byte) sprm.getOperand());
         break;
       default:
         break;


Regards,
Yegor

(In reply to comment #5)
> Yegor,
> 
> One change to ParagraphSprmUncompressor.java lost
> 
> Index: ParagraphSprmUncompressor.java
> ===================================================================
> --- ParagraphSprmUncompressor.java    (revision 1137143)
> +++ ParagraphSprmUncompressor.java    (working copy)
> @@ -346,7 +346,8 @@
>          }
>          break;
>        case 0x41:
> -        // sprmPFBiDi 
> +        // sprmPFBiDi
> +        newPAP.setFBiDi((byte) sprm.getOperand());
>          break;
>        case 0x43:
> 
> It is required for correct processing of logical left-right justification.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

--- Comment #4 from Sergey Vladimirov <vl...@gmail.com> 2011-06-18 19:22:23 UTC ---
Created attachment 27174
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=27174
test case

test case

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


DO NOT REPLY [Bug 51389] Add support for sprmPJc paragraph SPRM

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

Yegor Kozlov <ye...@dinom.ru> changed:

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

--- Comment #3 from Yegor Kozlov <ye...@dinom.ru> 2011-06-18 08:59:05 UTC ---
Applied in r1137143

Thanks,
Yegor

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org