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 2016/02/10 22:49:13 UTC

[Bug 58992] New: failed to extract the correct paragraph direction

https://bz.apache.org/bugzilla/show_bug.cgi?id=58992

            Bug ID: 58992
           Summary: failed to extract the correct paragraph direction
           Product: POI
           Version: 3.13-FINAL
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: HWPF
          Assignee: dev@poi.apache.org
          Reporter: yunan05404@gmail.com

Created attachment 33545
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33545&action=edit
The Word document contains RTL content

I use paragraph.cloneProperties().getFBiDi to get the directional information
for paragraphs. When HWPFDocument reads Arabic/Hebrew documents, I would expect
that getFBiDi returns TRUE for the RTL paragraphs. However, it returns FALSE
that represents "LTR" direction.

-- 
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


[Bug 58992] failed to extract the correct paragraph direction

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Also reported at
http://stackoverflow.com/questions/35326966/extract-wrong-paragraph-direction-in-word-using-apache-poi-library

-- 
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


[Bug 58992] failed to extract the correct paragraph direction

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

--- Comment #2 from Tim Allison <ta...@mitre.org> ---
File the following as not exceedingly useful.

Y, I'd want the same behavior that you expected.

With a test doc with one paragraph of Arabic and one paragraph of English, I
was not able to see any difference in the paragraph properties or in the run
properties between those two paragraphs and their runs.

In the MS-DOC spec, p. 275, there should be a specification for LtrPara/RtlPara
or LtrRun/Rtl run in the FCI enumeration, which is stored in the CidFci.  I
don't think we're currently extracting these command fields...could be wrong
though.

-- 
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