itextomml 1.3.25 → 1.3.26
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/ext/itex2MML.h +3 -3
- data/ext/lex.yy.c +3 -3
- data/lib/itex_stringsupport.rb +10 -5
- metadata +4 -4
data/ext/itex2MML.h
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
/* itex2MML 1.3.
|
2
|
-
* itex2MML.h last modified
|
1
|
+
/* itex2MML 1.3.26
|
2
|
+
* itex2MML.h last modified 7/20/2010
|
3
3
|
*/
|
4
4
|
|
5
5
|
#ifndef ITEX2MML_H
|
6
6
|
#define ITEX2MML_H
|
7
7
|
|
8
|
-
#define ITEX2MML_VERSION "1.3.
|
8
|
+
#define ITEX2MML_VERSION "1.3.26"
|
9
9
|
|
10
10
|
#ifdef __cplusplus
|
11
11
|
extern "C" {
|
data/ext/lex.yy.c
CHANGED
@@ -2211,8 +2211,8 @@ static int yy_more_len = 0;
|
|
2211
2211
|
#define YY_RESTORE_YY_MORE_OFFSET
|
2212
2212
|
char *itex2MML_yytext;
|
2213
2213
|
#line 1 "itex2MML.l"
|
2214
|
-
/* itex2MML 1.3.
|
2215
|
-
* itex2MML.l last modified
|
2214
|
+
/* itex2MML 1.3.26
|
2215
|
+
* itex2MML.l last modified 7/20/2010
|
2216
2216
|
*/
|
2217
2217
|
#line 6 "itex2MML.l"
|
2218
2218
|
|
@@ -2775,7 +2775,7 @@ YY_RULE_SETUP
|
|
2775
2775
|
case 59:
|
2776
2776
|
YY_RULE_SETUP
|
2777
2777
|
#line 119 "itex2MML.l"
|
2778
|
-
{yylval=itex2MML_copy_string("
|
2778
|
+
{yylval=itex2MML_copy_string("⫽"); return MO;}
|
2779
2779
|
YY_BREAK
|
2780
2780
|
case 60:
|
2781
2781
|
#line 122 "itex2MML.l"
|
data/lib/itex_stringsupport.rb
CHANGED
@@ -2308,12 +2308,17 @@ end
|
|
2308
2308
|
|
2309
2309
|
#:stopdoc:
|
2310
2310
|
|
2311
|
+
TO_ESCAPE = {
|
2312
|
+
'&' => '&',
|
2313
|
+
'<' => '<',
|
2314
|
+
'>' => '>',
|
2315
|
+
"'" => ''',
|
2316
|
+
'"' => '"',
|
2317
|
+
}
|
2318
|
+
TO_ESCAPE_PATTERN = Regexp.union(TO_ESCAPE.keys)
|
2319
|
+
|
2311
2320
|
def escapeHTML
|
2312
|
-
|
2313
|
-
gsub( /</, "<" ).
|
2314
|
-
gsub( />/, ">" ).
|
2315
|
-
gsub(/'/, "'" ).
|
2316
|
-
gsub(/"/, """ )
|
2321
|
+
self.gsub(TO_ESCAPE_PATTERN){|m| TO_ESCAPE[m]}
|
2317
2322
|
end
|
2318
2323
|
|
2319
2324
|
def unescapeHTML
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itextomml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 26
|
10
|
+
version: 1.3.26
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jacques Distler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-07-20 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|