[Groonga-commit] ranguba/chupa-text-decomposer-pdf at e132706 [master] Set source data

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 2 10:44:27 JST 2017


Kouhei Sutou	2017-05-02 10:44:27 +0900 (Tue, 02 May 2017)

  New Revision: e13270677d77b78a4a68944dafb2a1a5de6117a2
  https://github.com/ranguba/chupa-text-decomposer-pdf/commit/e13270677d77b78a4a68944dafb2a1a5de6117a2

  Message:
    Set source data

  Modified files:
    lib/chupa-text/decomposers/pdf.rb

  Modified: lib/chupa-text/decomposers/pdf.rb (+1 -2)
===================================================================
--- lib/chupa-text/decomposers/pdf.rb    2017-05-02 10:43:14 +0900 (f394483)
+++ lib/chupa-text/decomposers/pdf.rb    2017-05-02 10:44:27 +0900 (aa6746e)
@@ -38,8 +38,7 @@ module ChupaText
           text << page_text
           text << "\n" unless page_text.end_with?("\n")
         end
-        text_data = TextData.new(text)
-        text_data.uri = data.uri
+        text_data = TextData.new(text, :source_data => data)
         add_attribute(text_data, document, :title)
         add_attribute(text_data, document, :author)
         add_attribute(text_data, document, :subject)
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index