tex2id 1.4.1 → 1.5.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: f56bc5e09157b4915d2f458de3d2dedd59717308cd162fbebee5137477ede8cd
4
- data.tar.gz: b529dfa019139b2f245a2c7b8321e158d8ebd5f5f53315711a8bfaa51ffd98a9
3
+ metadata.gz: d8e2ba33a9d7a967957e6c3ebbf824b42a2875e79445c3ffee8f16b2860a868b
4
+ data.tar.gz: f84f1ae53e549228c14fd08fcfcae3227dbb50fdad57f0c5d9ea096ef2c3f949
5
5
  SHA512:
6
- metadata.gz: e598ad2e760a8c736b87b5bc8d12d506dabd241452af42cf8da555da5c1e83db741f98dc6b31942fe4a91d6869562a911febb63af0a0d4db49eb3724a0e28c49
7
- data.tar.gz: ec6085ee4b184999f1179a49144b8126af8014122da99b2fd2aa43c120163d0e1d2e7740702e5442c6e2757bed08fc5bad9686c01ca73ead6c8bde05e71f904a
6
+ metadata.gz: 0c13010485f43c21bbc85c320db52181e55778c1782531a7bf506190def3328b7e9849391c9cb80e288264e2d38f951756c1dbbc3dd78d0a642b70e0cfb08aeb
7
+ data.tar.gz: ea533c2347afc3d53d31e927ff14ab6dfb772b4dde289e969f7bc80a4257d215bb58f815bd8821679d84df42ac11143c13a0483b7fc895e839526a060a9fb5bf
@@ -45,6 +45,7 @@ module Tex2id::Converter::Constants
45
45
  'dots' => '<cstyle:数式>...<cstyle:>',
46
46
  'cdots' => '<cstyle:数式><22EF><cstyle:>',
47
47
  'times' => '<cstyle:数式>×<cstyle:>',
48
+ 'div' => '<cstyle:数式>÷<cstyle:>',
48
49
  'quad' => '<cstyle:数式> <cstyle:>',
49
50
  'qquad' => '<cstyle:数式>  <cstyle:>',
50
51
  'alpha' => '<cstyle:数式><03B1><cstyle:>',
@@ -58,7 +58,7 @@ class Tex2id::Converter
58
58
  # do nothing
59
59
  else
60
60
  inline_commands = []
61
- line.gsub!(/<CharStyle:コマンド>[^<]+<CharStyle:>/) do |matched|
61
+ line.gsub!(/<CharStyle:(?:コマンド|コード(文字単位))>[^<]+<CharStyle:>/) do |matched|
62
62
  id = inline_commands.length
63
63
  inline_commands << matched
64
64
  "<tex2id_inline_commands[#{id}]>"
@@ -1,3 +1,3 @@
1
1
  module Tex2id
2
- VERSION = "1.4.1"
2
+ VERSION = "1.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tex2id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kenta Murata