view · edit · sidebar · attach · print · history

Yasu.20120712-add-french-support-to-ydocx-fiparsed

<< | Index | >>


Summary

  • Adde French chapter support
    • ydocx
    • fiparsed

Commits

oddb.org
ydocx

Index


Update ydocx fachinfo template

Added --lang option.

Usage: docx2html file [options]
  -f, --format    Format of style and chapter {(fi|fachinfo)|(pi|patinfo)|(pl|plain)|none}, default fachinfo.
  -h, --help      Display this help message.
  -l, --lang      Language option for templates {(de|fr)}
  -v, --version   Show version.

Update fiparsed for french fachinfo

Added fr fachinfo parsing to fiparsed.

commit
NOTE

replaced unexpected ´ in swissmedic numbers.

z.B.

  • "62´069"
  • ", 61´848 (Swissmedic)"

(sometimes, Word has as separated text.)

in ext/fiparsed/src/fiparse.rb

    def optional_escape(text)
      if text =~ /^([,\s]*)\d{2}(.*)\d{3}\s*(\(\s*Swissmedic\s*\)\s*|$)/ or
         parse_code(text)
        text = text.gsub(@@figure_pattern, '') 
      end 
      text
    end

Debug textinfo updater Jobs

  • update_company_textinfos
$ ruby jobs/update_company_textinfos 'UCB-PHARMA'
view · edit · sidebar · attach · print · history
Page last modified on July 12, 2012, at 10:30 AM