Changes between Initial Version and Version 1 of SEARCH_COMMONS_R0


Ignore:
Timestamp:
01/22/09 16:42:16 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SEARCH_COMMONS_R0

    v1 v1  
     1[[BackLinksMenu]] 
     2 
     3[[TicketQuery(summary=SEARCH_COMMONS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|)]] 
     4 
     5= Analysis = 
     6 
     7== Overview == 
     8Provide text search functionality in Sophie 2. 
     9 
     10== Task requirements == 
     11The Tools tab has a Search palette. It lets the user search a Sophie document. 
     12 
     13A text field is available at the top of the palette where a user can enter a word or phrase he wants to find in current book. 
     14 
     15The searching palette in the Tools tab provides a list of results with context (some words before and after the match; also the page number). 
     16 
     17Text is typed in the field at the top of the palette and Enter is hit. A list of all occurrences in text are provided in the palette; to go 
     18to one of them, it is clicked in the list. Clicking on a result displays the page of the book with the match.  
     19The caret is positioned at the beginning of the match. The match is highlighted. 
     20 
     21Below the text field there should be a combo box for selecting search scope: 
     22 * Current Book 
     23 * All Books in Workspace 
     24 * Server Search ([wiki:SERVER_SEARCH_R0], search into the current server connection) 
     25 
     26Search palette can be invoked by pressing Ctrl+F. 
     27 
     28When the book that is being searched has embedded books, the embedded books are added to the 
     29search itinerary after all flows in the parent book have been searched. After all flows in all of the embedded 
     30books have been searched, the search loops back to the original flow that was being searched. If the 
     31embedded books have embedded books in them, the process is iterated. All books in the document are 
     32searched. 
     33 
     34When searching from within a book that is embedded in a parent book, first the embedded book is 
     35searched, then the parent book is searched, and finally other embedded books in the parent book are 
     36searched. 
     37 
     38If there are reader annotations, reader annotations are also searched. These are searched after all the 
     39embedded books have been searched; they are searched in the order in which they appear in the document. 
     40 
     41== Task result == 
     42Source code. 
     43 
     44== Implementation idea == 
     45Searching should be done in a new thread; otherwise, the GUI will hang when searching in large books. 
     46 
     47== Related == 
     48^(Add links to related tasks that could be useful or helpful.)^ 
     49 
     50== How to demo == 
     51 * Run Sophie 2 
     52 * Create a new book 
     53 * Insert a text frame and write something like "dfjkfds abc jfkdjfslk-abc-fdjfslkdfs" 
     54 * Press Ctrl+F 
     55 * Search for "abc" 
     56 
     57= Design = 
     58^(Describe your design here.)^ 
     59 
     60= Implementation = 
     61^(Describe and link the implementation results here (from the wiki or the repository).)^ 
     62 
     63= Testing = 
     64^(Place the testing results here.)^ 
     65 
     66= Comments = 
     67^(Write comments for this or later revisions here.)