Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 5:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Search capabilities
PostPosted: June 5th, 2007, 4:20 pm 
Offline

Joined: November 3rd, 2004, 12:58 pm
Posts: 230
Location: Australia
Hello, I am producing a very long pub which will require the search function. That is ok, my question is how do I make the search to highlight the word when is found in the text.
Do I make any sense? I hope so.
Any help will be appreciated.
German

_________________
German Silva
Senior Web & Multimedia Developer
E-solutions Inc
Pro version 8.10 user


Top
 Profile  
 
 Post subject:
PostPosted: June 5th, 2007, 4:48 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Koala,

On my website, under iZones / Opus features is a plexus publication that shows and example of highlight specific words if you click on them. This could easily be adapted to highlight specific words when found.

Mack

http://www.interaktiv.co.uk/izones/func ... ctions.htm

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: how is it done?
PostPosted: June 5th, 2007, 10:10 pm 
Offline

Joined: November 3rd, 2004, 12:58 pm
Posts: 230
Location: Australia
mackavi wrote:
Hi Koala,

On my website, under iZones / Opus features is a plexus publication that shows and example of highlight specific words if you click on them. This could easily be adapted to highlight specific words when found.


Mack, thank you for pointing to this example but:
1-How this is done?
2-How to incorporate this into a search, so when people click on the chapter or page containing the word the are searching for, this word or phrase will be highlited in the text on the respective page.

Back to square one...any more takers???
Any help will be appreciated.

German

_________________
German Silva
Senior Web & Multimedia Developer
E-solutions Inc
Pro version 8.10 user


Top
 Profile  
 
 Post subject:
PostPosted: June 6th, 2007, 10:20 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Koala,

Thinking out loud... (more imagination than experience)
If you skip the Launch Search and do it all in script, then it becomes "phases".

Create a function to do a OpenSearch()... and then related "firstkeyword" and "firstpage".... "next keyword" etc. [am uncertain here how much has to be indexed... but I think it's req'd].

Then once on a Page, either User would have to click a button for "Highlight", or you'd have to have set a flag somehow (that searching was active) and use that as a trigger for highlighting script/action.
1) this would be achieved as FindText(XXXXX) type functions. Pick-up the keyword parameter from above.
2) to point the FindText to a textobject, I guess you'd have to go through certain NextChild() gyrations on each particular page.
3) then get into SetSelection.... Set__selection__Style, and the ShadowColour to do the highlighting. Of course, you have to release or reset the styling when moving on to 'next'.

Whew!! I don't envy you.

Then there's the Blonde solution. Send them a Neon-Yellow highlighter pen with each download of the Pub. :idea:

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject: I need a drink!
PostPosted: June 7th, 2007, 1:29 am 
Offline

Joined: November 3rd, 2004, 12:58 pm
Posts: 230
Location: Australia
Lar_123 wrote:
Koala,

Thinking out loud... (more imagination than experience)
If you skip the Launch Search and do it all in script, then it becomes "phases".

Create a function to do a OpenSearch()... and then related "firstkeyword" and "firstpage".... "next keyword" etc. [am uncertain here how much has to be indexed... but I think it's req'd].

Then once on a Page, either User would have to click a button for "Highlight", or you'd have to have set a flag somehow (that searching was active) and use that as a trigger for highlighting script/action.
1) this would be achieved as FindText(XXXXX) type functions. Pick-up the keyword parameter from above.
2) to point the FindText to a textobject, I guess you'd have to go through certain NextChild() gyrations on each particular page.
3) then get into SetSelection.... Set__selection__Style, and the ShadowColour to do the highlighting. Of course, you have to release or reset the styling when moving on to 'next'.

Whew!! I don't envy you.

Then there's the Blonde solution. Send them a Neon-Yellow highlighter pen with each download of the Pub. :idea:


Lar, after that explanation, I think I need a couple of beers!
I had this feeling this will not be easy task!
Thank you very much!
Any more takers with some other suggestions?
The best solutions wins a bottle of the most prestigious Australian Wine:
German

_________________
German Silva
Senior Web & Multimedia Developer
E-solutions Inc
Pro version 8.10 user


Top
 Profile  
 
 Post subject:
PostPosted: June 7th, 2007, 3:22 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Koala,
If you get in the neighborhood, I'll buy you those beers.

I know an Opus pub would be worth a million words, but that depth of scripting is not something I could hope to tackle. Good luck. Maybe you'll find an option check-box in Opus that will just turn that on.

>>>somebody please take Koala's wine prize!

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: June 7th, 2007, 12:41 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Koala,

The last page of the functions example contains a download link for the publication for anybody to explore as they wish.

If it was me, I'd probably store the search term in the variable and then run the find and highlight script as each page is shown.

Mack

Edit. I'm also pretty sure that there is a new script command called findword (or something similar that might be a better option for you. I'll have a look this afternoon.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 7th, 2007, 2:15 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Koala,

Had a closer look at this and the solution isn't all that complicated.

I've attached an example. Enter your search term and browse through the following pages - the term will be highlighted on each page. It basically works like this.

Enter the search term and store this to a variable
load a page containing a text box
call highlight function on load.
read though the text box looking for the search term
check for whole word - can be removed!
if term is found, select word and use backgroundcolour to highlight.

Mack


You do not have the required permissions to view the files attached to this post.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Oops...
PostPosted: June 9th, 2007, 6:00 pm 
Offline

Joined: November 3rd, 2004, 12:58 pm
Posts: 230
Location: Australia
Hi guys, I just login in and found out your replies. I'll test your suggestions tomorrow.
Family day today you know....PC FREE ZONE! my wife said!
German

_________________
German Silva
Senior Web & Multimedia Developer
E-solutions Inc
Pro version 8.10 user


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group