incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r795485 - /websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/FrequentQuestions.html
Date Thu, 08 Sep 2011 09:55:47 GMT
Author: buildbot
Date: Thu Sep  8 09:55:47 2011
New Revision: 795485

Log:
Staging update by buildbot

Modified:
    websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/FrequentQuestions.html

Modified: websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/FrequentQuestions.html
==============================================================================
--- websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/FrequentQuestions.html (original)
+++ websites/staging/odftoolkit/trunk/content/odftoolkit/odfdom/FrequentQuestions.html Thu
Sep  8 09:55:47 2011
@@ -78,16 +78,25 @@
   <div id="contenta">
   
     
-    <p>=Frequently asked questions=</p>
-<h1 id="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">'''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?</h1>
-<p>'''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.<br />
- 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].</p>
+    <h2 id="frequently-asked-questions">Frequently asked questions</h2>
+<p><strong><em>Question:</em></strong> 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?<br
/>
+</p>
+<p><strong><em>Answer:</em></strong> 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.<br />
+</p>
+<ol>
+<li>
+<p>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 <a href="http://langintro.com/odfdom_tutorials/search_by_style_09_07_22.zip">here</a>.<br
/>
+</p>
+</li>
+<li>
+<p>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 <a href="http://odftoolkit.org/attachments/lists/odftoolkit/users/2009-07/6/collect-font-size.zip">here</a>.</p>
+</li>
+</ol>
   </div>
 
   <div id="footera">



Mime
View raw message