incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1166593 - /incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext
Date Thu, 08 Sep 2011 09:55:35 GMT
Author: devinhan
Date: Thu Sep  8 09:55:35 2011
New Revision: 1166593

URL: http://svn.apache.org/viewvc?rev=1166593&view=rev
Log:
clear tags

Modified:
    incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext

Modified: incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext?rev=1166593&r1=1166592&r2=1166593&view=diff
==============================================================================
--- incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext (original)
+++ incubator/odf/site/trunk/content/odftoolkit/odfdom/FrequentQuestions.mdtext Thu Sep  8
09:55:35 2011
@@ -1,13 +1,18 @@
-=Frequently asked questions=
+Frequently asked questions
+--------------------------   
 
-#'''Question''': How to extracte featured text from a document, for example: extract all
bold, italicized or underlined text from a document and any other layout evidence of emphasis
like the text font size and so on?
- '''Answer''': The model of ODF is for there to be "blocks" of text and each run can have
an associated style 
- reference. These style references then have definitions of exactly what text attributes
they correspond
- to. There are two methods you can refer to.
- (1) First identify which styles have the bold (or italics) attribute.  The document might
have more than 
- one style that defines bold text. Find which text blocks reference that style. You can download
a sample 
- code [http://langintro.com/odfdom_tutorials/search_by_style_09_07_22.zip here].
- (2) For each text block, identify the style. For the style, resolve the underlying text
attributes.  
- If it is bold (or italics or whatever) then extract it. You can download a sample code [http://odftoolkit.org/attachments/lists/odftoolkit/users/2009-07/6/collect-font-size.zip
here].
+***Question:*** How to extracte featured text from a document, for example: extract all bold,
italicized or underlined text from a document and any other layout evidence of emphasis like
the text font size and so on?  
 
+***Answer:*** The model of ODF is for there to be "blocks" of text and each run can have
an associated style reference. These style references then have definitions of exactly what
text attributes they correspond to. There are two methods you can refer to.  
 
+ 1. First identify which styles have the bold (or italics) attribute.
+    The document might have more than one style that defines bold text.
+    Find which text blocks reference that style. You can download a
+    sample code [here][1].  
+
+ 1. For each text block, identify the style. For the style, resolve the
+    underlying text attributes. If it is bold (or italics or whatever)
+    then extract it. You can download a sample code [here][2].
+
+  [1]: http://langintro.com/odfdom_tutorials/search_by_style_09_07_22.zip
+  [2]: http://odftoolkit.org/attachments/lists/odftoolkit/users/2009-07/6/collect-font-size.zip
\ No newline at end of file



Mime
View raw message