[prev in list] [next in list] [prev in thread] [next in thread]
List: poi-dev
Subject: [Bug 54049] New: [PATCH] XWPFWordExtractor does not extract footnote references
From: bugzilla () apache ! org
Date: 2012-10-24 19:31:32
Message-ID: bug-54049-47293 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]
https://issues.apache.org/bugzilla/show_bug.cgi?id=54049
Priority: P2
Bug ID: 54049
Assignee: dev@poi.apache.org
Summary: [PATCH] XWPFWordExtractor does not extract footnote
references
Severity: normal
Classification: Unclassified
OS: Linux
Reporter: akhikhl@gmail.com
Hardware: PC
Status: NEW
Version: 3.9-dev
Component: XWPF
Product: POI
Created attachment 29508
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29508&action=edit
svn patch
Problem:
Say, source docx file contains a text with a footnote. XWPFWordExtractor
extracts the footnote just fine, but location of the footnote reference is
lost.
Example:
extractor.getText() on "test-data/document/footnotes.docx" returns:
"Eto ochen prostoy text so snoskoy
[1: snoska]"
The position just after the word "prostoy" contains footnote reference, but the
returned text does not contain such reference.
Suggested improvement:
Let's insert a footnote reference into output text, for example, like this:
"Eto ochen prostoy[fnote:1] text so snoskoy
[1: snoska]"
The footnotes marked such way could be used for accurate rendering in HTML (or
any other relevant format).
Solution: attached patch contains change for "XWPFRun.java" and relevant test
in "TestXWPFWordExtractor.java".
--
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic