Redmine OSS @vegashrine @nobu_toyofuku 2012 1 21
Redmine
Redmine Redmine OSS ITIL
ITIL Redmine ITIL
...... Redmine
Redmine... redmine.jp DMSF Xapian Hyper Estraier DMSF DMSF
... DMSF...
DMSF
... MS-Office Linux OSS Windows OOS
OpenOffice OpenOfiice...
OS r-labs wiki http://www.r-labs.org/projects/r-labs/wiki/ CentOS 5.6
... Hyper Estraier DMSF cron
PDF GNU PDF GNOME GNOME Office OS PowerPoint xlhtml
Paco /usr/local PKG_CONFIG_PATH LD_LIBRARY_PATH --disable-xxx
Paco Wiki...
Paco
OS r-labs Wiki CentOS 5.6 CentOS 5.6 GTK+ http://www.gtk.org/download/linux.php GTK+ 3.02.x
GTK+ 2.x OS... GTK+ 2.14 $ cat /etc/redhat-release CentOS release 4.7 (Final) $ pwd /usr/local/src/gtk+-2.24.8 $./configure --prefix=/usr/local configure: error: Package requirements (glib-2.0 >= 2.27.3 atk >= 1.29.2 pango >= 1.20 cairo >= 1.6 gdk-pixbuf-2.0 >= 2.21.0) were not met: Requested 'glib-2.0 >= 2.27.3' but version of GLib is 2.4.7 Requested 'atk >= 1.29.2' but version of Atk is 1.8.0 Requested 'pango >= 1.20' but version of Pango is 1.6.0 No package 'cairo' found Requested 'gdk-pixbuf-2.0 >= 2.21.0' but version of GdkPixbuf is 2.4.13 $ $ /lib/libc.so* GNU C Library stable release version 2.3.4, by Roland McGrath et al. Copyright (C) 2005 Free Software Foundation, Inc.
GNOME yum *-devel cairo pango $ find /usr/local/src -name pangocairo.h -print /usr/local/src/pango-1.17.5/pango/pangocairo.h configure http://developer.gnome.org/gtk3/stable/gtk-building.html $ grep --disable configure $./configure --prefix=/usr/local --disable-jpeg $ grep /usr/lib /usr/local/lib/*.la grep dependency_libs
CentOS 4.7 1/2 CAIRO_BACKEND_CFLAGS=/usr/local/include/cairo CAIRO_BACKEND_LIBS=/usr/local/lib FREETYPE_CONFIG=/usr/local/bin/freetype-config bash goffice /usr/local/bin/bash-3.1 AbiWord ev_unixkeyboard.cpp #include <X11/Xkeysym.h> gdk-pixbuf-csource gnumeric-1.10.16/src/pixmaps/gnumeric-stock-pixbufs.h gdk-pixbuf //
CentOS 4.7 2/E...
1/2 #! /bin/sh case "$1" in *.pdf ) pdftotext "$1" "$2" ;; *.xls) tmpdir=`mktemp -d /tmp/estfilter.xxxxxxxx` ssconvert -S --export-type Gnumeric_stf:stf_csv "$1" $tmpdir/%n 2>&1 egrep -v '(^$ ^MISSING anchor for obj : EXCEL: unhandled excel object of type MS Drawing )' cat $tmpdir/* > "$2" /bin/rm -rf $tmpdir ;; *.doc) # wvware --charset=utf-8 --nographics $1 > $2 esac abiword --to txt --to-name $2 $1 ;;
2/E #! /bin/sh case "$1" in *.ppt)! ppthtml $1 > $2! ;; esac Hyper Estraier HTML #! /bin/sh echo date /usr/local/bin/estcmd gather -il ja -fx.pdf,.xls,.doc T@estfiltert.sh -fx.ppt H@estfilterh.sh -pc utf-8 -lf -1 -lt -1 $*
DMSF Xapian search plugin DMSF
Redmine REDMINE_ROOT vnedor/plugins/redmine_dmsf files init.rb config app dmsf_index dmsf locales models views ja.yml dmsf_file.rb settings _dmsf_settings.erb
config/locales/ja.yml Xapian Estraier
init.rb í áš
app/views/settings/_dmsf_settings.erb require xapian estraier
app/models/dmsf_file.rb database.nil unless database.nil? # create a search condition object cond = Estraier::Condition::new # set the search phrase to the search condition object querystring = tokens.join(options[:all_words]? ' AND ': ' OR ') cond.set_phrase(querystring ) # get the result of search result = database.search(cond) if result # for each document in the result dnum = result.doc_num for i in 0...dnum # retrieve the document object doc = database.get_doc(result.get_doc_id(i), 0) next unless doc # display attributes uri = doc.attr("@uri") if uri filename = uri.sub(/.*\//, '')
Xapian search plugin r-labs
Redmine REDMINE_ROOT vnedor/plugins/redmine_xapian files_index files lib config app init.rb locales controllers views xapian_search.rb acts_as_searchable.rb ja.yml search_controller.rb search index.rhtml
config/locales/ja.yml label_enable_redmine_xapian: "hyper estraier " label_index_database: "hyper estraier " label_document: " " label_stemming_lang: "Stemming Language estraier" label_enable_xapian_on_search: " hyper estraier " label_database_error: " Hyper Estraier"
init.rb xapian estraier @ -7,10 +7,10 @@ begin - require 'xapian' + require 'estraier' $xapian_bindings_available = true rescue LoadError - Rails.logger.info "REDMAIN_XAPIAN ERROR: No Ruby bindings for Xapian installed!!. PLEASE install Xapian search engine interface for Ruby." + Rails.logger.info "REDMAIN_XAPIAN ERROR: No Ruby bindings for Hyper Estraier installed!!. PLEASE install Hyper Estraier search engine interface for Ruby." - version '1.2.1' + version '1.2.1-JP'
app/controllers/search_controller.rb estraier @@ -96,6 +96,7 @@ end end + flash[:warning] = "warning: #{l(:label_database_error)}" unless @titles_only $xapian_bindings_available @results = @results.sort { a,b b.event_datetime <=> a.event_datetime} if params[:previous].nil? @pagination_previous_date = @results[0].event_datetime if offset && @results[0]
app/views/search/index.rhtml Stem xapian @@ -16,6 +16,7 @@ <% end %> </p> <% logger.debug "DEBUG: object_types from search: " + Redmine::Search.available_search_types.inspect %> +<% if false then %> <% Setting.plugin_redmine_xapian['stem_langs'].push(Setting.plugin_redmine_xapian['stemming_lang']) unless Setting.plugin_redmine_xapian['stem_langs'].include?(Setting.plugin_redmine_xapian ['stemming_lang']) %> <p> @@ -31,6 +32,7 @@ <%end%> +<%end%> <p><%= submit_tag l(:button_submit), :name => 'submit' %></p> <% end %> </div>
lib/acts_as_searchable.rb estraier wiki Redmine 1.3 REDMINE_ROOT/vendor/plugins/acts_as_searchable r-labs
lib/xapian_search.rb xapian estraier @@ -11,69 +11,56 @@ Rails.logger.debug "DEBUG: user_stem_lang: " + user_stem_lang.inspect Rails.logger.debug "DEBUG: user_stem_strategy: " + user_stem_strategy.inspect Rails.logger.debug "DEBUG: databasepath: " + getdatabasepath(user_stem_lang) - databasepath = getdatabasepath(user_stem_lang) + databasepath = getdatabasepath('') begin - database = Xapian::Database.new(databasepath) + database = Estraier::Database::new + unless database.open(databasepath, Estraier::Database::DBREADER) + return [xpattachments,0] + end rescue => error raise databasepath - return [xpattachments,0] end # Start an enquire session. - enquire = Xapian::Enquire.new(database) + enquire = Estraier::Condition::new +
m( ;)m Lotus Notes Redmine Mac OS X Spotlight Mac OS X Redmine... Android