mathtype 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mathtype/version.rb +1 -1
- data/lib/records/char.rb +10 -4
- data/lib/records/tmpl.rb +74 -28
- data/spec/fixtures/expected/299.xml +1082 -0
- data/spec/fixtures/expected/arrows.xml +404 -34
- data/spec/fixtures/expected/embellishments.xml +63 -0
- data/spec/fixtures/expected/equation1.xml +16 -0
- data/spec/fixtures/expected/equation10.xml +4 -0
- data/spec/fixtures/expected/equation11.xml +6 -0
- data/spec/fixtures/expected/equation12.xml +12 -0
- data/spec/fixtures/expected/equation13.xml +39 -0
- data/spec/fixtures/expected/equation2.xml +8 -0
- data/spec/fixtures/expected/equation3.xml +64 -1
- data/spec/fixtures/expected/equation4.xml +0 -1
- data/spec/fixtures/expected/equation5.xml +6 -1
- data/spec/fixtures/expected/equation6.xml +5 -3
- data/spec/fixtures/expected/equation7.xml +4 -0
- data/spec/fixtures/expected/equation8.xml +3 -0
- data/spec/fixtures/expected/equation9.xml +2 -0
- data/spec/fixtures/expected/fences.xml +1538 -0
- data/spec/fixtures/expected/integrals.xml +1751 -0
- data/spec/fixtures/expected/sizes.xml +7 -0
- data/spec/fixtures/input/299.bin +0 -0
- data/spec/fixtures/input/fences.bin +0 -0
- data/spec/fixtures/input/integrals.bin +0 -0
- data/spec/spec_helper.rb +0 -5
- metadata +14 -2
@@ -331,6 +331,7 @@
|
|
331
331
|
<typeface>3</typeface>
|
332
332
|
<mt_code_value>0x0063</mt_code_value>
|
333
333
|
<options>0</options>
|
334
|
+
<variation>mathmode</variation>
|
334
335
|
</char>
|
335
336
|
<end/>
|
336
337
|
</slot>
|
@@ -341,6 +342,7 @@
|
|
341
342
|
<typeface>3</typeface>
|
342
343
|
<mt_code_value>0x0062</mt_code_value>
|
343
344
|
<options>0</options>
|
345
|
+
<variation>mathmode</variation>
|
344
346
|
</char>
|
345
347
|
<end/>
|
346
348
|
</slot>
|
@@ -350,6 +352,7 @@
|
|
350
352
|
<typeface>3</typeface>
|
351
353
|
<mt_code_value>0x0061</mt_code_value>
|
352
354
|
<options>0</options>
|
355
|
+
<variation>mathmode</variation>
|
353
356
|
</char>
|
354
357
|
<end/>
|
355
358
|
</slot>
|
@@ -359,6 +362,7 @@
|
|
359
362
|
<mt_code_value>0x222A</mt_code_value>
|
360
363
|
<options>4</options>
|
361
364
|
<font_position>85</font_position>
|
365
|
+
<variation>mathmode</variation>
|
362
366
|
</char>
|
363
367
|
<end/>
|
364
368
|
</tmpl>
|
@@ -323,27 +323,32 @@
|
|
323
323
|
<typeface>2</typeface>
|
324
324
|
<mt_code_value>0x0028</mt_code_value>
|
325
325
|
<options>0</options>
|
326
|
+
<variation>mathmode</variation>
|
326
327
|
</char>
|
327
328
|
<char>
|
328
329
|
<typeface>3</typeface>
|
329
330
|
<mt_code_value>0x0061</mt_code_value>
|
330
331
|
<options>0</options>
|
332
|
+
<variation>mathmode</variation>
|
331
333
|
</char>
|
332
334
|
<char>
|
333
335
|
<typeface>6</typeface>
|
334
336
|
<mt_code_value>0x2212</mt_code_value>
|
335
337
|
<options>4</options>
|
336
338
|
<font_position>45</font_position>
|
339
|
+
<variation>mathmode</variation>
|
337
340
|
</char>
|
338
341
|
<char>
|
339
342
|
<typeface>3</typeface>
|
340
343
|
<mt_code_value>0x0062</mt_code_value>
|
341
344
|
<options>0</options>
|
345
|
+
<variation>mathmode</variation>
|
342
346
|
</char>
|
343
347
|
<char>
|
344
348
|
<typeface>2</typeface>
|
345
349
|
<mt_code_value>0x0029</mt_code_value>
|
346
350
|
<options>0</options>
|
351
|
+
<variation>mathmode</variation>
|
347
352
|
</char>
|
348
353
|
<tmpl>
|
349
354
|
<selector>tmSUP</selector>
|
@@ -358,6 +363,7 @@
|
|
358
363
|
<typeface>3</typeface>
|
359
364
|
<mt_code_value>0x0063</mt_code_value>
|
360
365
|
<options>0</options>
|
366
|
+
<variation>mathmode</variation>
|
361
367
|
</char>
|
362
368
|
<end/>
|
363
369
|
</slot>
|
@@ -323,27 +323,32 @@
|
|
323
323
|
<typeface>2</typeface>
|
324
324
|
<mt_code_value>0x0028</mt_code_value>
|
325
325
|
<options>0</options>
|
326
|
+
<variation>mathmode</variation>
|
326
327
|
</char>
|
327
328
|
<char>
|
328
329
|
<typeface>3</typeface>
|
329
330
|
<mt_code_value>0x0061</mt_code_value>
|
330
331
|
<options>0</options>
|
332
|
+
<variation>mathmode</variation>
|
331
333
|
</char>
|
332
334
|
<char>
|
333
335
|
<typeface>6</typeface>
|
334
336
|
<mt_code_value>0x2212</mt_code_value>
|
335
337
|
<options>4</options>
|
336
338
|
<font_position>45</font_position>
|
339
|
+
<variation>mathmode</variation>
|
337
340
|
</char>
|
338
341
|
<char>
|
339
342
|
<typeface>3</typeface>
|
340
343
|
<mt_code_value>0x0062</mt_code_value>
|
341
344
|
<options>0</options>
|
345
|
+
<variation>mathmode</variation>
|
342
346
|
</char>
|
343
347
|
<char>
|
344
348
|
<typeface>2</typeface>
|
345
349
|
<mt_code_value>0x0029</mt_code_value>
|
346
350
|
<options>0</options>
|
351
|
+
<variation>mathmode</variation>
|
347
352
|
</char>
|
348
353
|
<tmpl>
|
349
354
|
<selector>tmSUP</selector>
|
@@ -358,6 +363,7 @@
|
|
358
363
|
<typeface>3</typeface>
|
359
364
|
<mt_code_value>0x0063</mt_code_value>
|
360
365
|
<options>0</options>
|
366
|
+
<variation>mathmode</variation>
|
361
367
|
</char>
|
362
368
|
<end/>
|
363
369
|
</slot>
|
@@ -369,6 +375,7 @@
|
|
369
375
|
<mt_code_value>0x002B</mt_code_value>
|
370
376
|
<options>4</options>
|
371
377
|
<font_position>43</font_position>
|
378
|
+
<variation>mathmode</variation>
|
372
379
|
</char>
|
373
380
|
<tmpl>
|
374
381
|
<selector>tmPAREN</selector>
|
@@ -381,17 +388,20 @@
|
|
381
388
|
<typeface>3</typeface>
|
382
389
|
<mt_code_value>0x0062</mt_code_value>
|
383
390
|
<options>0</options>
|
391
|
+
<variation>mathmode</variation>
|
384
392
|
</char>
|
385
393
|
<char>
|
386
394
|
<typeface>6</typeface>
|
387
395
|
<mt_code_value>0x002B</mt_code_value>
|
388
396
|
<options>4</options>
|
389
397
|
<font_position>43</font_position>
|
398
|
+
<variation>mathmode</variation>
|
390
399
|
</char>
|
391
400
|
<char>
|
392
401
|
<typeface>3</typeface>
|
393
402
|
<mt_code_value>0x0063</mt_code_value>
|
394
403
|
<options>0</options>
|
404
|
+
<variation>mathmode</variation>
|
395
405
|
</char>
|
396
406
|
<end/>
|
397
407
|
</slot>
|
@@ -399,11 +409,13 @@
|
|
399
409
|
<typeface>22</typeface>
|
400
410
|
<mt_code_value>0x0028</mt_code_value>
|
401
411
|
<options>0</options>
|
412
|
+
<variation>mathmode</variation>
|
402
413
|
</char>
|
403
414
|
<char>
|
404
415
|
<typeface>22</typeface>
|
405
416
|
<mt_code_value>0x0029</mt_code_value>
|
406
417
|
<options>0</options>
|
418
|
+
<variation>mathmode</variation>
|
407
419
|
</char>
|
408
420
|
<end/>
|
409
421
|
</tmpl>
|
@@ -323,27 +323,32 @@
|
|
323
323
|
<typeface>2</typeface>
|
324
324
|
<mt_code_value>0x0028</mt_code_value>
|
325
325
|
<options>0</options>
|
326
|
+
<variation>mathmode</variation>
|
326
327
|
</char>
|
327
328
|
<char>
|
328
329
|
<typeface>3</typeface>
|
329
330
|
<mt_code_value>0x0061</mt_code_value>
|
330
331
|
<options>0</options>
|
332
|
+
<variation>mathmode</variation>
|
331
333
|
</char>
|
332
334
|
<char>
|
333
335
|
<typeface>6</typeface>
|
334
336
|
<mt_code_value>0x002B</mt_code_value>
|
335
337
|
<options>4</options>
|
336
338
|
<font_position>43</font_position>
|
339
|
+
<variation>mathmode</variation>
|
337
340
|
</char>
|
338
341
|
<char>
|
339
342
|
<typeface>3</typeface>
|
340
343
|
<mt_code_value>0x0062</mt_code_value>
|
341
344
|
<options>0</options>
|
345
|
+
<variation>mathmode</variation>
|
342
346
|
</char>
|
343
347
|
<char>
|
344
348
|
<typeface>2</typeface>
|
345
349
|
<mt_code_value>0x0029</mt_code_value>
|
346
350
|
<options>0</options>
|
351
|
+
<variation>mathmode</variation>
|
347
352
|
</char>
|
348
353
|
<tmpl>
|
349
354
|
<selector>tmSUP</selector>
|
@@ -358,6 +363,7 @@
|
|
358
363
|
<typeface>3</typeface>
|
359
364
|
<mt_code_value>0x0063</mt_code_value>
|
360
365
|
<options>0</options>
|
366
|
+
<variation>mathmode</variation>
|
361
367
|
</char>
|
362
368
|
<end/>
|
363
369
|
</slot>
|
@@ -369,32 +375,38 @@
|
|
369
375
|
<mt_code_value>0x002B</mt_code_value>
|
370
376
|
<options>4</options>
|
371
377
|
<font_position>43</font_position>
|
378
|
+
<variation>mathmode</variation>
|
372
379
|
</char>
|
373
380
|
<char>
|
374
381
|
<typeface>2</typeface>
|
375
382
|
<mt_code_value>0x005B</mt_code_value>
|
376
383
|
<options>0</options>
|
384
|
+
<variation>mathmode</variation>
|
377
385
|
</char>
|
378
386
|
<char>
|
379
387
|
<typeface>3</typeface>
|
380
388
|
<mt_code_value>0x0064</mt_code_value>
|
381
389
|
<options>0</options>
|
390
|
+
<variation>mathmode</variation>
|
382
391
|
</char>
|
383
392
|
<char>
|
384
393
|
<typeface>6</typeface>
|
385
394
|
<mt_code_value>0x002B</mt_code_value>
|
386
395
|
<options>4</options>
|
387
396
|
<font_position>43</font_position>
|
397
|
+
<variation>mathmode</variation>
|
388
398
|
</char>
|
389
399
|
<char>
|
390
400
|
<typeface>3</typeface>
|
391
401
|
<mt_code_value>0x0066</mt_code_value>
|
392
402
|
<options>0</options>
|
403
|
+
<variation>mathmode</variation>
|
393
404
|
</char>
|
394
405
|
<char>
|
395
406
|
<typeface>2</typeface>
|
396
407
|
<mt_code_value>0x005D</mt_code_value>
|
397
408
|
<options>0</options>
|
409
|
+
<variation>mathmode</variation>
|
398
410
|
</char>
|
399
411
|
<tmpl>
|
400
412
|
<selector>tmSUP</selector>
|
@@ -421,6 +433,7 @@
|
|
421
433
|
<mt_code_value>0x002B</mt_code_value>
|
422
434
|
<options>4</options>
|
423
435
|
<font_position>43</font_position>
|
436
|
+
<variation>mathmode</variation>
|
424
437
|
</char>
|
425
438
|
<tmpl>
|
426
439
|
<selector>tmSUBSUP</selector>
|
@@ -433,6 +446,7 @@
|
|
433
446
|
<typeface>3</typeface>
|
434
447
|
<mt_code_value>0x0062</mt_code_value>
|
435
448
|
<options>0</options>
|
449
|
+
<variation>mathmode</variation>
|
436
450
|
</char>
|
437
451
|
<end/>
|
438
452
|
</slot>
|
@@ -442,6 +456,7 @@
|
|
442
456
|
<typeface>3</typeface>
|
443
457
|
<mt_code_value>0x0061</mt_code_value>
|
444
458
|
<options>0</options>
|
459
|
+
<variation>mathmode</variation>
|
445
460
|
</char>
|
446
461
|
<end/>
|
447
462
|
</slot>
|
@@ -452,12 +467,14 @@
|
|
452
467
|
<typeface>3</typeface>
|
453
468
|
<mt_code_value>0x0063</mt_code_value>
|
454
469
|
<options>0</options>
|
470
|
+
<variation>mathmode</variation>
|
455
471
|
</char>
|
456
472
|
<char>
|
457
473
|
<typeface>6</typeface>
|
458
474
|
<mt_code_value>0x002B</mt_code_value>
|
459
475
|
<options>4</options>
|
460
476
|
<font_position>43</font_position>
|
477
|
+
<variation>mathmode</variation>
|
461
478
|
</char>
|
462
479
|
<tmpl>
|
463
480
|
<selector>tmSUBSUP</selector>
|
@@ -470,6 +487,7 @@
|
|
470
487
|
<typeface>3</typeface>
|
471
488
|
<mt_code_value>0x0065</mt_code_value>
|
472
489
|
<options>0</options>
|
490
|
+
<variation>mathmode</variation>
|
473
491
|
</char>
|
474
492
|
<end/>
|
475
493
|
</slot>
|
@@ -479,6 +497,7 @@
|
|
479
497
|
<typeface>3</typeface>
|
480
498
|
<mt_code_value>0x0064</mt_code_value>
|
481
499
|
<options>0</options>
|
500
|
+
<variation>mathmode</variation>
|
482
501
|
</char>
|
483
502
|
<end/>
|
484
503
|
</slot>
|
@@ -489,12 +508,14 @@
|
|
489
508
|
<typeface>3</typeface>
|
490
509
|
<mt_code_value>0x0066</mt_code_value>
|
491
510
|
<options>0</options>
|
511
|
+
<variation>mathmode</variation>
|
492
512
|
</char>
|
493
513
|
<char>
|
494
514
|
<typeface>6</typeface>
|
495
515
|
<mt_code_value>0x002B</mt_code_value>
|
496
516
|
<options>4</options>
|
497
517
|
<font_position>43</font_position>
|
518
|
+
<variation>mathmode</variation>
|
498
519
|
</char>
|
499
520
|
<tmpl>
|
500
521
|
<selector>tmPAREN</selector>
|
@@ -507,17 +528,20 @@
|
|
507
528
|
<typeface>3</typeface>
|
508
529
|
<mt_code_value>0x0067</mt_code_value>
|
509
530
|
<options>0</options>
|
531
|
+
<variation>mathmode</variation>
|
510
532
|
</char>
|
511
533
|
<char>
|
512
534
|
<typeface>6</typeface>
|
513
535
|
<mt_code_value>0x2212</mt_code_value>
|
514
536
|
<options>4</options>
|
515
537
|
<font_position>45</font_position>
|
538
|
+
<variation>mathmode</variation>
|
516
539
|
</char>
|
517
540
|
<char>
|
518
541
|
<typeface>3</typeface>
|
519
542
|
<mt_code_value>0x0068</mt_code_value>
|
520
543
|
<options>0</options>
|
544
|
+
<variation>mathmode</variation>
|
521
545
|
</char>
|
522
546
|
<end/>
|
523
547
|
</slot>
|
@@ -525,11 +549,13 @@
|
|
525
549
|
<typeface>22</typeface>
|
526
550
|
<mt_code_value>0x0028</mt_code_value>
|
527
551
|
<options>0</options>
|
552
|
+
<variation>mathmode</variation>
|
528
553
|
</char>
|
529
554
|
<char>
|
530
555
|
<typeface>22</typeface>
|
531
556
|
<mt_code_value>0x0029</mt_code_value>
|
532
557
|
<options>0</options>
|
558
|
+
<variation>mathmode</variation>
|
533
559
|
</char>
|
534
560
|
<end/>
|
535
561
|
</tmpl>
|
@@ -546,6 +572,7 @@
|
|
546
572
|
<typeface>3</typeface>
|
547
573
|
<mt_code_value>0x0069</mt_code_value>
|
548
574
|
<options>0</options>
|
575
|
+
<variation>mathmode</variation>
|
549
576
|
</char>
|
550
577
|
<end/>
|
551
578
|
</slot>
|
@@ -557,11 +584,13 @@
|
|
557
584
|
<mt_code_value>0x002B</mt_code_value>
|
558
585
|
<options>4</options>
|
559
586
|
<font_position>43</font_position>
|
587
|
+
<variation>mathmode</variation>
|
560
588
|
</char>
|
561
589
|
<char>
|
562
590
|
<typeface>3</typeface>
|
563
591
|
<mt_code_value>0x006A</mt_code_value>
|
564
592
|
<options>0</options>
|
593
|
+
<variation>mathmode</variation>
|
565
594
|
</char>
|
566
595
|
<tmpl>
|
567
596
|
<selector>tmSUB</selector>
|
@@ -573,6 +602,7 @@
|
|
573
602
|
<typeface>3</typeface>
|
574
603
|
<mt_code_value>0x006B</mt_code_value>
|
575
604
|
<options>0</options>
|
605
|
+
<variation>mathmode</variation>
|
576
606
|
</char>
|
577
607
|
<end/>
|
578
608
|
</slot>
|
@@ -587,6 +617,7 @@
|
|
587
617
|
<mt_code_value>0x002B</mt_code_value>
|
588
618
|
<options>4</options>
|
589
619
|
<font_position>43</font_position>
|
620
|
+
<variation>mathmode</variation>
|
590
621
|
</char>
|
591
622
|
<tmpl>
|
592
623
|
<selector>tmSUB</selector>
|
@@ -599,6 +630,7 @@
|
|
599
630
|
<typeface>3</typeface>
|
600
631
|
<mt_code_value>0x006C</mt_code_value>
|
601
632
|
<options>0</options>
|
633
|
+
<variation>mathmode</variation>
|
602
634
|
</char>
|
603
635
|
<end/>
|
604
636
|
</slot>
|
@@ -612,12 +644,14 @@
|
|
612
644
|
<typeface>3</typeface>
|
613
645
|
<mt_code_value>0x006D</mt_code_value>
|
614
646
|
<options>0</options>
|
647
|
+
<variation>mathmode</variation>
|
615
648
|
</char>
|
616
649
|
<char>
|
617
650
|
<typeface>6</typeface>
|
618
651
|
<mt_code_value>0x002B</mt_code_value>
|
619
652
|
<options>4</options>
|
620
653
|
<font_position>43</font_position>
|
654
|
+
<variation>mathmode</variation>
|
621
655
|
</char>
|
622
656
|
<tmpl>
|
623
657
|
<selector>tmSUP</selector>
|
@@ -633,6 +667,7 @@
|
|
633
667
|
<typeface>3</typeface>
|
634
668
|
<mt_code_value>0x006E</mt_code_value>
|
635
669
|
<options>0</options>
|
670
|
+
<variation>mathmode</variation>
|
636
671
|
</char>
|
637
672
|
<end/>
|
638
673
|
</slot>
|
@@ -643,17 +678,20 @@
|
|
643
678
|
<typeface>3</typeface>
|
644
679
|
<mt_code_value>0x006F</mt_code_value>
|
645
680
|
<options>0</options>
|
681
|
+
<variation>mathmode</variation>
|
646
682
|
</char>
|
647
683
|
<char>
|
648
684
|
<typeface>6</typeface>
|
649
685
|
<mt_code_value>0x002B</mt_code_value>
|
650
686
|
<options>4</options>
|
651
687
|
<font_position>43</font_position>
|
688
|
+
<variation>mathmode</variation>
|
652
689
|
</char>
|
653
690
|
<char>
|
654
691
|
<typeface>3</typeface>
|
655
692
|
<mt_code_value>0x0070</mt_code_value>
|
656
693
|
<options>0</options>
|
694
|
+
<variation>mathmode</variation>
|
657
695
|
</char>
|
658
696
|
<tmpl>
|
659
697
|
<selector>tmSUP</selector>
|
@@ -668,6 +706,7 @@
|
|
668
706
|
<typeface>3</typeface>
|
669
707
|
<mt_code_value>0x0072</mt_code_value>
|
670
708
|
<options>0</options>
|
709
|
+
<variation>mathmode</variation>
|
671
710
|
</char>
|
672
711
|
<end/>
|
673
712
|
</slot>
|
@@ -329,17 +329,20 @@
|
|
329
329
|
<mt_code_value>0x2212</mt_code_value>
|
330
330
|
<options>4</options>
|
331
331
|
<font_position>45</font_position>
|
332
|
+
<variation>mathmode</variation>
|
332
333
|
</char>
|
333
334
|
<char>
|
334
335
|
<typeface>3</typeface>
|
335
336
|
<mt_code_value>0x0062</mt_code_value>
|
336
337
|
<options>0</options>
|
338
|
+
<variation>mathmode</variation>
|
337
339
|
</char>
|
338
340
|
<char>
|
339
341
|
<typeface>6</typeface>
|
340
342
|
<mt_code_value>0x00B1</mt_code_value>
|
341
343
|
<options>4</options>
|
342
344
|
<font_position>177</font_position>
|
345
|
+
<variation>mathmode</variation>
|
343
346
|
</char>
|
344
347
|
<tmpl>
|
345
348
|
<selector>tmROOT</selector>
|
@@ -351,6 +354,7 @@
|
|
351
354
|
<typeface>3</typeface>
|
352
355
|
<mt_code_value>0x0062</mt_code_value>
|
353
356
|
<options>0</options>
|
357
|
+
<variation>mathmode</variation>
|
354
358
|
</char>
|
355
359
|
<tmpl>
|
356
360
|
<selector>tmSUP</selector>
|
@@ -377,6 +381,7 @@
|
|
377
381
|
<mt_code_value>0x2212</mt_code_value>
|
378
382
|
<options>4</options>
|
379
383
|
<font_position>45</font_position>
|
384
|
+
<variation>mathmode</variation>
|
380
385
|
</char>
|
381
386
|
<char>
|
382
387
|
<typeface>8</typeface>
|
@@ -388,11 +393,13 @@
|
|
388
393
|
<typeface>3</typeface>
|
389
394
|
<mt_code_value>0x0061</mt_code_value>
|
390
395
|
<options>0</options>
|
396
|
+
<variation>mathmode</variation>
|
391
397
|
</char>
|
392
398
|
<char>
|
393
399
|
<typeface>3</typeface>
|
394
400
|
<mt_code_value>0x0063</mt_code_value>
|
395
401
|
<options>0</options>
|
402
|
+
<variation>mathmode</variation>
|
396
403
|
</char>
|
397
404
|
<end/>
|
398
405
|
</slot>
|
@@ -417,6 +424,7 @@
|
|
417
424
|
<typeface>3</typeface>
|
418
425
|
<mt_code_value>0x0061</mt_code_value>
|
419
426
|
<options>0</options>
|
427
|
+
<variation>mathmode</variation>
|
420
428
|
</char>
|
421
429
|
<end/>
|
422
430
|
</slot>
|