latex-decode 0.0.12-java → 0.1.0-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +2 -0
- data/.travis.yml +22 -0
- data/Gemfile +2 -1
- data/README.md +5 -3
- data/Rakefile +41 -0
- data/cucumber.yml +1 -0
- data/latex-decode.gemspec +0 -2
- data/lib/latex/decode/compatibility.rb +4 -2
- data/lib/latex/decode/version.rb +1 -1
- metadata +124 -130
    
        data/.gitignore
    CHANGED
    
    
    
        data/.travis.yml
    ADDED
    
    | @@ -0,0 +1,22 @@ | |
| 1 | 
            +
            language: ruby
         | 
| 2 | 
            +
            rvm:
         | 
| 3 | 
            +
              - 1.9.3
         | 
| 4 | 
            +
              - 1.9.2
         | 
| 5 | 
            +
              - 2.0.0
         | 
| 6 | 
            +
              - jruby-18mode
         | 
| 7 | 
            +
              - jruby-19mode
         | 
| 8 | 
            +
              - rbx-18mode
         | 
| 9 | 
            +
              - rbx-19mode
         | 
| 10 | 
            +
              - ruby-head
         | 
| 11 | 
            +
              - jruby-head
         | 
| 12 | 
            +
              - 1.8.7
         | 
| 13 | 
            +
              - ree
         | 
| 14 | 
            +
            notifications:
         | 
| 15 | 
            +
              email:
         | 
| 16 | 
            +
                - sk@semicolon.at
         | 
| 17 | 
            +
              on_success: change
         | 
| 18 | 
            +
              on_failure: always
         | 
| 19 | 
            +
            matrix:
         | 
| 20 | 
            +
              allow_failures:
         | 
| 21 | 
            +
                rvm:
         | 
| 22 | 
            +
                  - rbx-18mode
         | 
    
        data/Gemfile
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            source  | 
| 1 | 
            +
            source 'https://rubygems.org'
         | 
| 2 2 | 
             
            gemspec
         | 
| 3 3 |  | 
| 4 4 | 
             
            group :development do
         | 
| @@ -6,5 +6,6 @@ group :development do | |
| 6 6 | 
             
            	gem 'ruby-debug', :platforms => [:mri_18]
         | 
| 7 7 | 
             
            end
         | 
| 8 8 |  | 
| 9 | 
            +
            gem 'rake', :groups => [:test, :development]
         | 
| 9 10 |  | 
| 10 11 | 
             
            gem 'unicode', '~> 0.4', :platforms => [:mri, :rbx, :mswin, :mingw]
         | 
    
        data/README.md
    CHANGED
    
    | @@ -1,6 +1,8 @@ | |
| 1 1 | 
             
            LaTeX::Decode
         | 
| 2 2 | 
             
            =============
         | 
| 3 3 |  | 
| 4 | 
            +
            [](https://travis-ci.org/inukshuk/latex-decode)
         | 
| 5 | 
            +
             | 
| 4 6 | 
             
            LaTeX::Decode is a Ruby gem to convert LaTeX input to Unicode. Its original
         | 
| 5 7 | 
             
            use was as an input filter for [BibTeX-Ruby](http://rubygems.org/gems/bibtex-ruby)
         | 
| 6 8 | 
             
            but can be used independently to decode LaTeX. Many of the patterns used by
         | 
| @@ -10,7 +12,7 @@ this Ruby gem are based on François Charette's equivalent Perl module | |
| 10 12 | 
             
            Quickstart
         | 
| 11 13 | 
             
            ----------
         | 
| 12 14 |  | 
| 13 | 
            -
                $ [sudo] gem install  | 
| 15 | 
            +
                $ [sudo] gem install latex-decode
         | 
| 14 16 | 
             
                $ irb
         | 
| 15 17 | 
             
                >> require 'latex/decode'
         | 
| 16 18 | 
             
                >> LaTeX.decode "dipl\\^{o}me d'\\'{e}tudes sup\\'erieures"
         | 
| @@ -26,7 +28,7 @@ Issues | |
| 26 28 | 
             
            ------
         | 
| 27 29 |  | 
| 28 30 | 
             
            Please use the tracker of the project's
         | 
| 29 | 
            -
            [ | 
| 31 | 
            +
            [GitHub repository](https://github.com/inukshuk/latex-decode) to report any
         | 
| 30 32 | 
             
            issues. When describing intended behaviour, please use the extremely simple
         | 
| 31 33 | 
             
            syntax of the Cucumber features used by LaTeX::Decode; for instance, you could
         | 
| 32 34 | 
             
            describe the example above as:
         | 
| @@ -45,7 +47,7 @@ Credits | |
| 45 47 | 
             
            Kudos and thanks to all [contributors](https://github.com/inukshuk/latex-decode/contributors)
         | 
| 46 48 | 
             
            who have made LaTeX::Decode possible!
         | 
| 47 49 |  | 
| 48 | 
            -
            Copyright (C) 2011 [Sylvester Keil](sylvester.keil.or.at)
         | 
| 50 | 
            +
            Copyright (C) 2011-2013 [Sylvester Keil](sylvester.keil.or.at)
         | 
| 49 51 |  | 
| 50 52 | 
             
            Copyright (C) 2010 François Charette
         | 
| 51 53 |  | 
    
        data/Rakefile
    ADDED
    
    | @@ -0,0 +1,41 @@ | |
| 1 | 
            +
            # encoding: utf-8
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require 'bundler'
         | 
| 4 | 
            +
            begin
         | 
| 5 | 
            +
              Bundler.setup
         | 
| 6 | 
            +
            rescue Bundler::BundlerError => e
         | 
| 7 | 
            +
              $stderr.puts e.message
         | 
| 8 | 
            +
              $stderr.puts "Run `bundle install` to install missing gems"
         | 
| 9 | 
            +
              exit e.status_code
         | 
| 10 | 
            +
            end
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            $:.unshift(File.join(File.dirname(__FILE__), './lib'))
         | 
| 13 | 
            +
            require 'latex/decode/version'
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 16 | 
            +
            desc 'Run an IRB session with LaTeX-Decode loaded'
         | 
| 17 | 
            +
            task :console, [:script] do |t,args|
         | 
| 18 | 
            +
              ARGV.clear
         | 
| 19 | 
            +
             | 
| 20 | 
            +
              require 'irb'
         | 
| 21 | 
            +
              require 'latex/decode'
         | 
| 22 | 
            +
              
         | 
| 23 | 
            +
              IRB.conf[:SCRIPT] = args.script
         | 
| 24 | 
            +
              IRB.start
         | 
| 25 | 
            +
            end
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            require 'cucumber/rake/task'
         | 
| 28 | 
            +
            Cucumber::Rake::Task.new(:cucumber)
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            task :release do |t|
         | 
| 31 | 
            +
              system "gem build latex-decode.gemspec"
         | 
| 32 | 
            +
              system "git tag #{LaTeX::Decode::VERSION}"
         | 
| 33 | 
            +
              system "git push --tags"
         | 
| 34 | 
            +
              system "gem push latex-decode-#{LaTeX::Decode::VERSION}.gem"
         | 
| 35 | 
            +
              system "rm latex-decode-#{LaTeX::Decode::VERSION}.gem"
         | 
| 36 | 
            +
              system "jgem build latex-decode.gemspec"
         | 
| 37 | 
            +
              system "jgem push latex-decode-#{LaTeX::Decode::VERSION}.gem"
         | 
| 38 | 
            +
              system "rm latex-decode-#{LaTeX::Decode::VERSION}-java.gem"
         | 
| 39 | 
            +
            end
         | 
| 40 | 
            +
             | 
| 41 | 
            +
            task :default => :cucumber
         | 
    
        data/cucumber.yml
    ADDED
    
    | @@ -0,0 +1 @@ | |
| 1 | 
            +
            default: --format progress --require features --color
         | 
    
        data/latex-decode.gemspec
    CHANGED
    
    | @@ -21,9 +21,7 @@ Gem::Specification.new do |s| | |
| 21 21 | 
             
                s.platform    = 'ruby'
         | 
| 22 22 | 
             
              end
         | 
| 23 23 |  | 
| 24 | 
            -
              s.add_development_dependency('rake', '~> 0.8')
         | 
| 25 24 | 
             
              s.add_development_dependency('bundler', '~> 1.0')
         | 
| 26 | 
            -
              s.add_development_dependency('rdoc', '~> 3.6')
         | 
| 27 25 | 
             
              s.add_development_dependency('rspec', '~> 2.6')
         | 
| 28 26 | 
             
              s.add_development_dependency('cucumber', "~> 1.0")
         | 
| 29 27 |  | 
| @@ -3,7 +3,7 @@ if RUBY_VERSION < "1.9" | |
| 3 3 | 
             
              $KCODE = 'U'
         | 
| 4 4 |  | 
| 5 5 | 
             
              module LaTeX
         | 
| 6 | 
            -
                def self.to_unicode | 
| 6 | 
            +
                def self.to_unicode(string)
         | 
| 7 7 | 
             
                  string.gsub(/\\?u([\da-f]{4})/i) { |m| [$1.to_i(16)].pack('U') }
         | 
| 8 8 | 
             
                end
         | 
| 9 9 | 
             
              end
         | 
| @@ -13,7 +13,9 @@ if RUBY_VERSION < "1.9" | |
| 13 13 | 
             
            else  
         | 
| 14 14 |  | 
| 15 15 | 
             
              module LaTeX
         | 
| 16 | 
            -
                def self.to_unicode | 
| 16 | 
            +
                def self.to_unicode(string)
         | 
| 17 | 
            +
            			string
         | 
| 18 | 
            +
            		end
         | 
| 17 19 | 
             
              end
         | 
| 18 20 |  | 
| 19 21 | 
             
              def ruby_18; false; end
         | 
    
        data/lib/latex/decode/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,143 +1,137 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: latex-decode
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 5 | 
            -
               | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.1.0
         | 
| 5 | 
            +
              prerelease:
         | 
| 6 6 | 
             
            platform: java
         | 
| 7 | 
            -
            authors: | 
| 8 | 
            -
             | 
| 9 | 
            -
            autorequire: | 
| 7 | 
            +
            authors:
         | 
| 8 | 
            +
            - Sylvester Keil
         | 
| 9 | 
            +
            autorequire:
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
             | 
| 15 | 
            -
               | 
| 16 | 
            -
             | 
| 17 | 
            -
                 | 
| 18 | 
            -
                 | 
| 19 | 
            -
                   | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
                 | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 | 
            -
                 | 
| 28 | 
            -
             | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 32 | 
            -
             | 
| 33 | 
            -
             | 
| 34 | 
            -
             | 
| 35 | 
            -
             | 
| 36 | 
            -
             | 
| 37 | 
            -
             | 
| 38 | 
            -
             | 
| 39 | 
            -
                 | 
| 40 | 
            -
                 | 
| 41 | 
            -
                   | 
| 42 | 
            -
             | 
| 43 | 
            -
             | 
| 44 | 
            -
             | 
| 45 | 
            -
             | 
| 46 | 
            -
             | 
| 47 | 
            -
             | 
| 48 | 
            -
               | 
| 49 | 
            -
                 | 
| 50 | 
            -
                 | 
| 51 | 
            -
             | 
| 52 | 
            -
             | 
| 53 | 
            -
             | 
| 54 | 
            -
             | 
| 55 | 
            -
             | 
| 56 | 
            -
             | 
| 57 | 
            -
             | 
| 58 | 
            -
             | 
| 59 | 
            -
             | 
| 60 | 
            -
             | 
| 61 | 
            -
             | 
| 62 | 
            -
                requirement: &id005 !ruby/object:Gem::Requirement 
         | 
| 63 | 
            -
                  none: false
         | 
| 64 | 
            -
                  requirements: 
         | 
| 65 | 
            -
                    - - ~>
         | 
| 66 | 
            -
                      - !ruby/object:Gem::Version 
         | 
| 67 | 
            -
                        version: "1.0"
         | 
| 68 | 
            -
                type: :development
         | 
| 69 | 
            -
                version_requirements: *id005
         | 
| 12 | 
            +
            date: 2013-02-26 00:00:00.000000000 Z
         | 
| 13 | 
            +
            dependencies:
         | 
| 14 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 15 | 
            +
              name: bundler
         | 
| 16 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 17 | 
            +
                requirements:
         | 
| 18 | 
            +
                - - "~>"
         | 
| 19 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 20 | 
            +
                    version: '1.0'
         | 
| 21 | 
            +
                none: false
         | 
| 22 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - "~>"
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '1.0'
         | 
| 27 | 
            +
                none: false
         | 
| 28 | 
            +
              prerelease: false
         | 
| 29 | 
            +
              type: :development
         | 
| 30 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 31 | 
            +
              name: rspec
         | 
| 32 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 33 | 
            +
                requirements:
         | 
| 34 | 
            +
                - - "~>"
         | 
| 35 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 36 | 
            +
                    version: '2.6'
         | 
| 37 | 
            +
                none: false
         | 
| 38 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 39 | 
            +
                requirements:
         | 
| 40 | 
            +
                - - "~>"
         | 
| 41 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 42 | 
            +
                    version: '2.6'
         | 
| 43 | 
            +
                none: false
         | 
| 44 | 
            +
              prerelease: false
         | 
| 45 | 
            +
              type: :development
         | 
| 46 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 47 | 
            +
              name: cucumber
         | 
| 48 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 49 | 
            +
                requirements:
         | 
| 50 | 
            +
                - - "~>"
         | 
| 51 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 52 | 
            +
                    version: '1.0'
         | 
| 53 | 
            +
                none: false
         | 
| 54 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 55 | 
            +
                requirements:
         | 
| 56 | 
            +
                - - "~>"
         | 
| 57 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 58 | 
            +
                    version: '1.0'
         | 
| 59 | 
            +
                none: false
         | 
| 60 | 
            +
              prerelease: false
         | 
| 61 | 
            +
              type: :development
         | 
| 70 62 | 
             
            description: Decodes strings formatted in LaTeX to equivalent Unicode strings.
         | 
| 71 | 
            -
            email: | 
| 72 | 
            -
             | 
| 63 | 
            +
            email:
         | 
| 64 | 
            +
            - http://sylvester.keil.or.at
         | 
| 73 65 | 
             
            executables: []
         | 
| 74 | 
            -
             | 
| 75 66 | 
             
            extensions: []
         | 
| 76 | 
            -
             | 
| 77 | 
            -
             | 
| 78 | 
            -
             | 
| 79 | 
            -
             | 
| 80 | 
            -
             | 
| 81 | 
            -
             | 
| 82 | 
            -
             | 
| 83 | 
            -
             | 
| 84 | 
            -
             | 
| 85 | 
            -
             | 
| 86 | 
            -
             | 
| 87 | 
            -
             | 
| 88 | 
            -
             | 
| 89 | 
            -
             | 
| 90 | 
            -
             | 
| 91 | 
            -
             | 
| 92 | 
            -
             | 
| 93 | 
            -
             | 
| 94 | 
            -
             | 
| 95 | 
            -
             | 
| 96 | 
            -
             | 
| 97 | 
            -
             | 
| 98 | 
            -
             | 
| 99 | 
            -
             | 
| 100 | 
            -
             | 
| 101 | 
            -
             | 
| 67 | 
            +
            extra_rdoc_files:
         | 
| 68 | 
            +
            - README.md
         | 
| 69 | 
            +
            - LICENSE
         | 
| 70 | 
            +
            files:
         | 
| 71 | 
            +
            - ".gitignore"
         | 
| 72 | 
            +
            - ".travis.yml"
         | 
| 73 | 
            +
            - Gemfile
         | 
| 74 | 
            +
            - LICENSE
         | 
| 75 | 
            +
            - README.md
         | 
| 76 | 
            +
            - Rakefile
         | 
| 77 | 
            +
            - cucumber.yml
         | 
| 78 | 
            +
            - features/brackets.feature
         | 
| 79 | 
            +
            - features/diacritics.feature
         | 
| 80 | 
            +
            - features/non-latex.feature
         | 
| 81 | 
            +
            - features/punctuation.feature
         | 
| 82 | 
            +
            - features/special_characters.feature
         | 
| 83 | 
            +
            - features/step_definitions/latex.rb
         | 
| 84 | 
            +
            - features/support/env.rb
         | 
| 85 | 
            +
            - features/umlauts.feature
         | 
| 86 | 
            +
            - latex-decode.gemspec
         | 
| 87 | 
            +
            - lib/latex/decode.rb
         | 
| 88 | 
            +
            - lib/latex/decode/accents.rb
         | 
| 89 | 
            +
            - lib/latex/decode/base.rb
         | 
| 90 | 
            +
            - lib/latex/decode/compatibility.rb
         | 
| 91 | 
            +
            - lib/latex/decode/diacritics.rb
         | 
| 92 | 
            +
            - lib/latex/decode/punctuation.rb
         | 
| 93 | 
            +
            - lib/latex/decode/symbols.rb
         | 
| 94 | 
            +
            - lib/latex/decode/version.rb
         | 
| 102 95 | 
             
            homepage: http://github.com/inukshuk/latex-decode
         | 
| 103 | 
            -
            licenses: | 
| 104 | 
            -
             | 
| 105 | 
            -
            post_install_message: | 
| 106 | 
            -
            rdoc_options: | 
| 107 | 
            -
             | 
| 108 | 
            -
             | 
| 109 | 
            -
             | 
| 110 | 
            -
             | 
| 111 | 
            -
             | 
| 112 | 
            -
             | 
| 113 | 
            -
             | 
| 114 | 
            -
            require_paths: | 
| 115 | 
            -
             | 
| 116 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 96 | 
            +
            licenses:
         | 
| 97 | 
            +
            - GPL-3
         | 
| 98 | 
            +
            post_install_message:
         | 
| 99 | 
            +
            rdoc_options:
         | 
| 100 | 
            +
            - "--line-numbers"
         | 
| 101 | 
            +
            - "--inline-source"
         | 
| 102 | 
            +
            - "--title"
         | 
| 103 | 
            +
            - "\"LaTeX-Decode Documentation\""
         | 
| 104 | 
            +
            - "--main"
         | 
| 105 | 
            +
            - README.md
         | 
| 106 | 
            +
            - "--webcvs=http://github.com/inukshuk/latex-decode/tree/master/"
         | 
| 107 | 
            +
            require_paths:
         | 
| 108 | 
            +
            - lib
         | 
| 109 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 110 | 
            +
              requirements:
         | 
| 111 | 
            +
              - - ">="
         | 
| 112 | 
            +
                - !ruby/object:Gem::Version
         | 
| 113 | 
            +
                  version: !binary |-
         | 
| 114 | 
            +
                    MA==
         | 
| 117 115 | 
             
              none: false
         | 
| 118 | 
            -
             | 
| 119 | 
            -
             | 
| 120 | 
            -
             | 
| 121 | 
            -
             | 
| 122 | 
            -
             | 
| 116 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 117 | 
            +
              requirements:
         | 
| 118 | 
            +
              - - ">="
         | 
| 119 | 
            +
                - !ruby/object:Gem::Version
         | 
| 120 | 
            +
                  version: !binary |-
         | 
| 121 | 
            +
                    MA==
         | 
| 123 122 | 
             
              none: false
         | 
| 124 | 
            -
              requirements: 
         | 
| 125 | 
            -
                - - ">="
         | 
| 126 | 
            -
                  - !ruby/object:Gem::Version 
         | 
| 127 | 
            -
                    version: "0"
         | 
| 128 123 | 
             
            requirements: []
         | 
| 129 | 
            -
             | 
| 130 | 
            -
             | 
| 131 | 
            -
             | 
| 132 | 
            -
            signing_key: 
         | 
| 124 | 
            +
            rubyforge_project:
         | 
| 125 | 
            +
            rubygems_version: 1.8.24
         | 
| 126 | 
            +
            signing_key:
         | 
| 133 127 | 
             
            specification_version: 3
         | 
| 134 128 | 
             
            summary: Decodes LaTeX to Unicode.
         | 
| 135 | 
            -
            test_files: | 
| 136 | 
            -
             | 
| 137 | 
            -
             | 
| 138 | 
            -
             | 
| 139 | 
            -
             | 
| 140 | 
            -
             | 
| 141 | 
            -
             | 
| 142 | 
            -
             | 
| 143 | 
            -
             | 
| 129 | 
            +
            test_files:
         | 
| 130 | 
            +
            - features/brackets.feature
         | 
| 131 | 
            +
            - features/diacritics.feature
         | 
| 132 | 
            +
            - features/non-latex.feature
         | 
| 133 | 
            +
            - features/punctuation.feature
         | 
| 134 | 
            +
            - features/special_characters.feature
         | 
| 135 | 
            +
            - features/step_definitions/latex.rb
         | 
| 136 | 
            +
            - features/support/env.rb
         | 
| 137 | 
            +
            - features/umlauts.feature
         |