hwp_script_to_latex 1.1.2 → 1.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7883d96181486dcfb0e2530ab4184179630092dc0a8e87e70ac95deb790b5f20
4
- data.tar.gz: 0742a008b5170a00761deb6c65ffe9e1ff229b289d1992fb88627673ad83ce97
3
+ metadata.gz: 6d5cbd40f7bf1c103f0f63edd7628312d8056887095987517557f2fd122e7ccb
4
+ data.tar.gz: 353f524bd7ea6ff1dec5f06e806253d76e00a3dfd8f1ab1ca828288b39671507
5
5
  SHA512:
6
- metadata.gz: 44a4f9c83ae3000380c123ad30b7a121343d82283d997f4d587f28c57ab5c98b36d30d65f3ab4fff67edabd05fe09dfc10887b5dcc93e3b0a59125fddb94a377
7
- data.tar.gz: 2f8e91de2684fdcf98cf463be8a4436debaf651480fa380bb49f1a2cfc6aa3b17d0983925bd114555847914d937d907e2ac7e7270c2a6c29ca078c273bb0f6e1
6
+ metadata.gz: 62f63bc802e1b135719b666b6b988648580fbfe6e90972fb52b98801c2ed94542fd2930383b533fb9e6ad5cc076b467588323672f04fe2acc41e669efe720a2e
7
+ data.tar.gz: 407fa86923b2e40093b2487288a5ea87f5f41b5e63fb36ae6858469d770418241a07a451139a000d44cf5e56b85382743d750fd8a1a41bfaa860627c0c5830b8
@@ -94,7 +94,7 @@ module HwpScriptToLatex
94
94
  right_term_group_name = "rt"
95
95
  left_term = LEFT_TERM_REGEX % [left_term_group_name, left_term_group_name]
96
96
  right_term = RIGHT_TERM_REGEX % [right_term_group_name, right_term_group_name]
97
- fraction_regex = %r(#{left_term}\s*(?<!\\)(?:over|atop)\s*#{right_term})
97
+ fraction_regex = %r(#{left_term}\s*(?<!\\)(?i:over|atop)\s*#{right_term})
98
98
 
99
99
  match_data = script.match(fraction_regex)
100
100
  while match_data
@@ -113,7 +113,7 @@ module HwpScriptToLatex
113
113
  end
114
114
 
115
115
  def replace_matrix(script)
116
- matrix_regex = %r((?:dmatrix)\s*(?<matrix_content>{(?>[^{}]+|(?:\\g<matrix_content>))*}))
116
+ matrix_regex = %r((?i:dmatrix)\s*(?<matrix_content>{(?>[^{}]+|(?:\\g<matrix_content>))*}))
117
117
 
118
118
  match_data = script.match(matrix_regex)
119
119
  while match_data
@@ -135,7 +135,7 @@ module HwpScriptToLatex
135
135
  right_term2_name = 'rt2'
136
136
  right_term1 = RIGHT_TERM_REGEX % [right_term1_name, right_term1_name]
137
137
  right_term2 = RIGHT_TERM_REGEX % [right_term2_name, right_term2_name]
138
- sqrt_regex = %r((?<!\\)(?:sqrt|root)\s*#{right_term1}(\s*of\s*#{right_term2})?)
138
+ sqrt_regex = %r((?<!\\)(?i:sqrt|root)\s*#{right_term1}(\s*(?i:of)\s*#{right_term2})?)
139
139
 
140
140
  match_data = script.match(sqrt_regex)
141
141
  while match_data
@@ -1,3 +1,3 @@
1
1
  module HwpScriptToLatex
2
- VERSION = "1.1.2"
2
+ VERSION = "1.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hwp_script_to_latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bluesh55