similar to: Draft port of lucene highlighter to ferret

Displaying 20 results from an estimated 400 matches similar to: "Draft port of lucene highlighter to ferret"

2006 Jun 14
3
In memory IndexReader bug?
Hi All, Hope all is going well. I''m having trouble with the following code creating an in memory index reader - it seems to be attempting to read from a file regardless. Here''s the simple code: require ''rubygems'' require ''ferret'' a = Ferret::Index::Index.new r = Ferret::Index::IndexReader.new(nil) Running the code on my OS X machine
2006 Jun 13
5
Grep style output?
Hi All, Hope all is going well. Was just wondering if anyone has implemented a grep style output page of hits using Ferret as the index/query engine? Any thoughts about how best to implement it? The previous thread discussess highlighting - would that be the best approach to follow or is there a better way? Cheers, Marcus -- Posted via http://www.ruby-forum.com/.
2007 Jul 16
4
Accessing content_for html in view specs?
Hi All, Hope all is going well. I''ve got a few views that create some content using ''content_for'' blocks <% content_for :blah do %> ..... <% end %> Has anyone worked out a way to be able to access the html that''s generated inside those blocks? Since they''re not part of the view, have_tag('''') seems to miss them,
2007 May 04
11
spec template for CRUD?
Hello, Has anyone already come up with a set of shared behaviours that someone could leverage when adhering to a CRUD concept, with respect to controllers? Relatedly, it would be nice if there were a way to share generalized behaviour specs. -Chris
2007 Oct 24
1
Problems with creating my own syntax highlighter
Well, I wanted to make my own syntax highlighter using Wx::StyledTextCtrl. The easiest way to do it seemed to parse the text contents in a content-changed-event. But it doesn''t seem to work.. I tried to edit the scintilla sample and added this event(@sci is the StyledTextCtrl): @sci.evt_stc_change(@sci.get_id) do @sci.clear_document_style @sci.start_styling(1,31)
2007 May 28
0
external highlighter/excerpter
Has anyone seen an implementation or example of an highlighter/excerpter that works on external (non-stored) fields? Thanks.
2011 Feb 23
0
Custom highlighter/match vector access?
Hi everyone, I know from the archives things have kinda slowed down on ferret and there''s an effort ongoing with lucy, but I was wondering if anyone had discovered a way to enumerate the matches of a particular field in the document and get the offsets? With what I''m trying to do, ferret will be indexing large portions of structured information, but I really don''t want
2010 Apr 22
0
Community help: creating Syntax-Highlighter-brush for R and WordPress.com
Hello dear R community, *Background:* Since I see more and more R users who blog about R opening their blogs in WordPress.com, I contacted one of their workers asking if they could add Syntax highlight support for R. He replied to me saying that if there was a "Brush" for R, according to the format given here:
2005 Mar 17
0
Ruby Syntax Highlighter v2
Hi all, The original release of my ruby syntax highlighter generated a fair bit of interest, so I thought I''d let everyone know that I''ve updated it. You can now save the code on the server, so you can show it to other people if you''re a bit of an exhibitionist. If you do so, it generates a unique URL for your code to pass around. It also uses my tinyurl/rubyurl
2007 Jul 06
1
Edge, link_to and mocks
Hi All, Anyone noticed that using the newer link_to syntax in edge currently fails with mocked objects in view specs or helpers. eg. if you have something like the following in your view (or equivalent in a helper): <%= link_to @dog.name, @dog %> as opposed to the current 1.2 syntax: <%= link_to @dog.name, dog_path(@dog) %> Using a mock_model as the ''dog''
2007 Jul 26
2
rspec_resource error
First of all hi, I''m new to the list, and rather new to rspec as will probably show in myquestion. I have tried installing rspec and rspec_on_rails as plugs both using "script/install" and "piston import" commands using the "current release install instructions" here [1]. However, there doesn''t seem to be any mention of the rspec_resource
2005 Mar 15
15
Web-based Ruby Syntax Highlighter
Hi all, Last night, I wrote a web-based syntax highlighter that takes Ruby and produces nice HTML of the code, ready for including on web pages, or in blog posts, or whatever. I don''t know how useful it will be for other people, but feel free to use it. Anyway, the URL is : http://syntax.carldr.com/ Any comments/suggestions would be gratefully received. Enjoy!
2007 Jan 20
0
Markdown friendly synatx highlighting
Hello everyone! I am using markdown on my blog (Markdown Extra actually, thank you Michel!). I use code snippets heavily and I really appreciate that I shouldn't escape '<' and '>' manually. However I always wanted to use syntax highlighting for code snippets and it's a bit hard with markdown because most highlighters require some indication of a code language
2007 Jun 06
1
highlight and pagination
I made a search-field which shows all hits and highlights the all words searched for: def suche if params[:link][:suchfeld] == "description" @description = "show" @highlight = params[:suche] end @link_pages, @links = paginate :link, :order_by => ''url'', :conditions =>
2011 Jun 28
3
PEG Markdown Highlight
Dear fellow Markdown enthusiasts, As you all might know, Markdown is a highly context sensitive language that the (often regex-based) syntax highlighting mechanisms in existing editors struggle to keep up with. I have taken John MacFarlane's excellent peg-markdown compiler and modified its parser to function as an interpreter for syntax highlighting purposes. The end result is a
2009 Mar 16
2
R-code in html help pages: syntax highlighting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, A follow up to my previous post. It'd be good to have syntax highlighting in the html help pages. There is highlight (http://www.andre-simon.de/) which seems to be open source. Since code is delimited in the help file format, it should not be too difficult to run a highlighting program (actually, vim and emacs do this too) recursively and
2005 Jul 20
0
Syntax Highlighting library
Hi, first of all let this message serve as presentation and to stop lurking. I have a current project, which I am not sure that it fits the script.aculo.us library, so I thought that before anything else I''d ask here. The project is a client-side syntax highlighter, to bring some life to those <pre> and <code> blocks, so that no matter which server-side technology you are
2010 Oct 24
2
Synatx highlighting in Ruby
Hello people, I was going thru Geshi http://qbnz.com/highlighter/ , I am wondering if any one has a Ruby syntax highlighting library so that I can use it in one of my projects. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Nov 24
0
Getting a Lucene.net index readable by Ferret
Hi, What would it take to get the a Lucene.net index readable by Ferret? I know that there has been discussion on this before but I am trying to figure the actual amount of work (cost) would be required to get this done. Any help would be greatly appreciated. Benjamin
2007 Oct 09
1
Ferret against Java Lucene index
Hi, I am working on a project which has a large Lucene index in place. Can (any version of) Ferret be used against an index built using Java Lucene? Thanks, Eric