[logaling-commit] logaling/logaling-command [add-itil-glossary] Remove parsing of abbreviation glossary part

Back to archive index

null+****@clear***** null+****@clear*****
Fri Jul 27 15:01:56 JST 2012


SUZUKI Miho	2012-07-27 15:01:56 +0900 (Fri, 27 Jul 2012)

  New Revision: 4a7d372780528e3c156ad9de1fb9bc565fcef50c
  https://github.com/logaling/logaling-command/commit/4a7d372780528e3c156ad9de1fb9bc565fcef50c

  Log:
    Remove parsing of abbreviation glossary part
    
    it's dupplicate of (normal)glossary part

  Modified files:
    lib/logaling/external_glossaries/itil_japanese.rb

  Modified: lib/logaling/external_glossaries/itil_japanese.rb (+3 -5)
===================================================================
--- lib/logaling/external_glossaries/itil_japanese.rb    2012-07-26 20:58:41 +0900 (1a132f3)
+++ lib/logaling/external_glossaries/itil_japanese.rb    2012-07-27 15:01:56 +0900 (522a8ae)
@@ -37,13 +37,11 @@ module Logaling
           next
         end
 
-        source_term = format_text(tr.children[0].text)
-        if abbreviation
-          target_term = sprintf("%s %s", format_text(tr.children[4].text), format_text(tr.children[6].text))
-        else
+        unless abbreviation
+          source_term = format_text(tr.children[0].text)
           target_term = format_text(tr.children[2].text)
+          csv << [source_term, target_term]
         end
-        csv << [source_term, target_term]
       end
     end
 
-------------- next part --------------
An HTML attachment was scrubbed...
Télécharger 



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