Make Word .docx format translation templates from JPO (Japan Patent Office) office actions.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.rspec
.ruby-gemset
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
oat.gemspec

README.md

OA Templater

  • Build Status
  • Gem Version

Pulls out relevant data from an Office Action from the Japanese Patent Office.

  oa = Oat::OA.new(tempfile, casenumber)

    Oat.configure do |c|
    c.reasonsfile = File.join(Rails.root, "config", "templates", "reasons.yml")

  #keeping this out of github in case it violates a non-spoken NDA
    c.templates =  {
  kyozetsuriyu: File.join(Rails.root, "config", "templates", "kyozetsuriyu.docx"),
                shinpankyozetsuriyu: File.join(Rails.root, "config", "templates", "shinpankzry.docx"),
                kyozetsusatei: File.join(Rails.root, "config", "templates", "kyozetsusatei.docx"),
                shireisho: File.join(Rails.root, "config", "templates", "shireisho.docx"),
                rejectamendments: File.join(Rails.root, "config", "templates", "rejectamendments.docx"),
                shinnen: File.join(Rails.root, "config", "templates", "shinnen.docx")
    }
  end

  oa.scan

  oa.finish

The templates are .docx files that have various "Mail Merge fields" embedded in them. These fields are replaced by "translations" of data scraped from the digital version of a patent office OA. The mail merge fields are replaced using the sablon gem.

Email me if you need an example .docx file.