tex2id 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tex2id/converter/constants.rb +1 -0
- data/lib/tex2id/converter.rb +1 -1
- data/lib/tex2id/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8e2ba33a9d7a967957e6c3ebbf824b42a2875e79445c3ffee8f16b2860a868b
|
4
|
+
data.tar.gz: f84f1ae53e549228c14fd08fcfcae3227dbb50fdad57f0c5d9ea096ef2c3f949
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:>',
|
data/lib/tex2id/converter.rb
CHANGED
@@ -58,7 +58,7 @@ class Tex2id::Converter
|
|
58
58
|
# do nothing
|
59
59
|
else
|
60
60
|
inline_commands = []
|
61
|
-
line.gsub!(/<CharStyle
|
61
|
+
line.gsub!(/<CharStyle:(?:コマンド|コード(文字単位))>[^<]+<CharStyle:>/) do |matched|
|
62
62
|
id = inline_commands.length
|
63
63
|
inline_commands << matched
|
64
64
|
"<tex2id_inline_commands[#{id}]>"
|
data/lib/tex2id/version.rb
CHANGED