to_ascii_latex 0.0.2 → 0.0.3

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.
@@ -1,3 +1,3 @@
1
1
  module ToAsciiLatex
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -2,6 +2,7 @@ require "to_ascii_latex/version"
2
2
  require 'to_latex'
3
3
 
4
4
  module ToAsciiLatex
5
+ # http://www.fileformat.info/info/unicode/char/fb01/index.htm
5
6
  MAPPING = { "\u2014" => "--",
6
7
  "\u2018" => "`",
7
8
  "\u2019" => "'",
@@ -30,7 +31,7 @@ module ToAsciiLatex
30
31
  # Define this new method
31
32
  def self.new_escape(s)
32
33
  x = old_escape(s).gsub(MAPPING_RE){|c| MAPPING[c]}
33
- warn "Unicode in #{txt.inspect}" if x.delete("^\u{0000}-\u{007F}") != x
34
+ warn "Unicode in #{x.inspect}" if x.delete("^\u{0000}-\u{007F}") != x
34
35
  return x
35
36
  end
36
37
 
data/publish.sh CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/bin/sh
2
- #git tag `ruby -e 'require "./lib/to_ascii_latex/version.rb"; puts ToAsciiLatex::VERSION'`
2
+ git tag `ruby -e 'require "./lib/to_ascii_latex/version.rb"; puts ToAsciiLatex::VERSION'`
3
3
  rake install
4
4
  for f in pkg/*.gem; do
5
5
  gem push $f
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_ascii_latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: -101865169
93
+ hash: 458976045
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: -101865169
102
+ hash: 458976045
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.24