Make first real commit: copy of CaRMetal 4.2.8

This commit is contained in:
Glen Whitney 2018-09-04 22:51:42 -04:00
parent 002acfc88e
commit c312811084
1120 changed files with 226843 additions and 1 deletions

BIN
atp/Des10.gif Normal file

Binary file not shown.

BIN
atp/Des12.gif Normal file

Binary file not shown.

BIN
atp/Des14.gif Normal file

Binary file not shown.

BIN
atp/Des18.gif Normal file

Binary file not shown.

BIN
atp/Des8.gif Normal file

Binary file not shown.

BIN
atp/Fonts10.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5 KiB

BIN
atp/Fonts12.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
atp/Fonts14.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

BIN
atp/Fonts18.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
atp/Fonts8.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

60
atp/a.java Normal file
View file

@ -0,0 +1,60 @@
/*****************************************************************************
* *
* HotEqn Equation Viewer Basic Applet *
* *
******************************************************************************
* Java Applet to view mathematical Equations provided in the LaTeX language *
******************************************************************************
Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann
This file is part of the HotEqn package.
HotEqn is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;
HotEqn is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package atp;
import java.awt.Color;
import java.awt.image.RGBImageFilter;
class a extends RGBImageFilter {
Color a;
boolean _fldif;
a(final Color color) {
_fldif = false;
a = color;
_fldif = false;
super.canFilterIndexColorModel = true;
}
a(final Color color, final boolean flag) {
_fldif = false;
a = color;
_fldif = flag;
super.canFilterIndexColorModel = true;
}
@Override
public int filterRGB(final int i, final int j, final int k) {
if (_fldif) {
return 0x1fff0000;
}
final int l = k & 0xffffff;
if (l == 0xffffff) {
return l;
} else {
return 0xff000000 | a.getRGB();
}
}
}

1129
atp/b.java Normal file

File diff suppressed because it is too large Load diff

43
atp/c.java Normal file
View file

@ -0,0 +1,43 @@
/*****************************************************************************
* *
* HotEqn Equation Viewer Basic Applet *
* *
******************************************************************************
* Java Applet to view mathematical Equations provided in the LaTeX language *
******************************************************************************
Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann
This file is part of the HotEqn package.
HotEqn is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;
HotEqn is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package atp;
class c {
public int _flddo;
public int _fldif;
public int a;
public c(final int i, final int j, final int k) {
_flddo = i;
_fldif = j;
a = k;
}
public c() {
_flddo = 0;
_fldif = 0;
a = 0;
}
}

176
atp/d.java Normal file
View file

@ -0,0 +1,176 @@
/*****************************************************************************
* *
* HotEqn Equation Viewer Basic Applet *
* *
******************************************************************************
* Java Applet to view mathematical Equations provided in the LaTeX language *
******************************************************************************
Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann
This file is part of the HotEqn package.
HotEqn is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;
HotEqn is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package atp;
import java.applet.Applet;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
import java.awt.image.ImageProducer;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.net.URL;
import java.util.Hashtable;
import java.util.StringTokenizer;
// Referenced classes of package atp:
// a
class d {
private final ImageProducer _flddo[] = { null, null, null, null, null };
private final String _fldif[] = { "8", "10", "12", "14", "18" };
private final Hashtable _fldfor;
private static boolean a = true;
public d() {
_fldfor = new Hashtable(189);
}
public Image a(final boolean flag, final boolean flag1, final String s,
final Graphics2D g, final Applet applet) {
final StringTokenizer stringtokenizer = new StringTokenizer(s, "/");
String s1 = stringtokenizer.nextToken();
s1 = stringtokenizer.nextToken().substring(5);
final String s2 = stringtokenizer.nextToken();
int i = -1;
boolean flag2 = true;
while (flag2) {
if (_fldif[++i].equals(s1)) {
flag2 = false;
}
if (i == 4) {
flag2 = false;
}
}
if (_flddo[i] == null) {
_flddo[i] = a(flag, flag1, "Fonts" + s1 + ".gif", applet);
final String s3 = "Des" + s1 + ".gif";
BufferedInputStream bufferedinputstream = null;
try {
if (a) {
getClass().getResourceAsStream(s3);
bufferedinputstream = new BufferedInputStream(getClass()
.getResourceAsStream(s3));
} else if ((!flag) & (!flag1)) {
bufferedinputstream = new BufferedInputStream((new URL(s3))
.openStream());
} else if (flag) {
bufferedinputstream = new BufferedInputStream((new URL(
applet.getCodeBase(), s3)).openStream());
} else {
try {
bufferedinputstream = new BufferedInputStream(
getClass().getResource(s3).openStream());
} catch (final Exception exception) {
}
}
final ObjectInputStream objectinputstream = new ObjectInputStream(
bufferedinputstream);
final int j = objectinputstream.readInt();
for (int k = 0; k < j; k++) {
final String s4 = (String) objectinputstream.readObject();
_fldfor.put(s1 + s4, new Rectangle(
(Rectangle) objectinputstream.readObject()));
}
bufferedinputstream.close();
} catch (final Exception exception1) {
// System.out.println(exception1.toString());
_flddo[i] = null;
}
}
Image image = null;
if (_flddo[i] != null) {
final Rectangle rectangle = (Rectangle) _fldfor.get(s1 + s2);
image = Toolkit.getDefaultToolkit().createImage(
new FilteredImageSource(new FilteredImageSource(_flddo[i],
new CropImageFilter(rectangle.x, rectangle.y,
rectangle.width, rectangle.height)), new a(
g.getColor())));
}
return image;
}
public ImageProducer a(final boolean flag, final boolean flag1,
final String s, final Applet applet) {
ImageProducer imageproducer = null;
if (a) {
imageproducer = a(s);
}
if (imageproducer == null) {
a = false;
if ((!flag) & (!flag1)) {
imageproducer = Toolkit.getDefaultToolkit().getImage(s)
.getSource();
} else if (flag) {
imageproducer = applet.getImage(applet.getCodeBase(), s)
.getSource();
} else {
try {
final URL url = getClass().getResource(s);
imageproducer = (ImageProducer) url.getContent();
} catch (final Exception exception) {
}
}
}
return imageproducer;
}
ImageProducer a(final String s) {
ImageProducer imageproducer = null;
try {
final InputStream inputstream = getClass().getResourceAsStream(s);
int i = inputstream.available();
byte abyte0[] = new byte[i];
int j = 0;
for (int k = 0; k != -1;) {
k = inputstream.read(abyte0, j, i);
if (k != -1) {
j += k;
i = inputstream.available();
final int l = j + i;
if (l > abyte0.length) {
final byte abyte1[] = (byte[]) abyte0.clone();
abyte0 = new byte[l];
System.arraycopy(abyte1, 0, abyte0, 0, j);
}
}
if (i == 0) {
break;
}
}
imageproducer = Toolkit.getDefaultToolkit().createImage(abyte0)
.getSource();
} catch (final Exception exception) {
}
return imageproducer;
}
}

64
atp/e.java Normal file
View file

@ -0,0 +1,64 @@
package atp;
class e {
public int y;
public String w;
public static final int k = 0;
public static final int _fldbyte = 1;
public static final int o = 2;
public static final int r = 3;
public static final int _fldlong = 4;
public static final int j = 5;
public static final int _fldelse = 7;
public static final int _fldfor = 8;
public static final int q = 9;
public static final int s = 10;
public static final int B = 11;
public static final int _fldvoid = 12;
public static final int _flddo = 13;
public static final int t = 14;
public static final int _fldchar = 15;
public static final int i = 16;
public static final int A = 17;
public static final int u = 18;
public static final int _fldcase = 19;
public static final int C = 20;
public static final int d = 22;
public static final int m = 24;
public static final int g = 25;
public static final int f = 50;
public static final int v = 51;
public static final int _fldint = 99;
public static final int p = 100;
public static final int _fldif = 108;
public static final int n = 109;
public static final int _fldnull = 110;
public static final int a = 113;
public static final int b = 114;
public static final int c = 115;
public static final int D = 116;
public static final int l = 117;
public static final int h = 118;
public static final int z = 119;
public static final int x = 120;
public static final int _fldnew = 121;
public static final int _fldtry = 122;
public static final int e = 123;
public static final int _fldgoto = 124;
public e(final int i1, final String s1) {
y = i1;
w = s1;
}
public e(final int i1) {
y = i1;
w = "";
}
public e() {
y = 0;
w = "";
}
}

134
atp/f.java Normal file
View file

@ -0,0 +1,134 @@
/*****************************************************************************
* *
* HotEqn Equation Viewer Basic Applet *
* *
******************************************************************************
* Java Applet to view mathematical Equations provided in the LaTeX language *
******************************************************************************
Copyright 2006 Stefan Müller and Christian Schmid, modified by Rene Grothmann
This file is part of the HotEqn package.
HotEqn is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation;
HotEqn is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package atp;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Rectangle;
import java.awt.Toolkit;
import java.awt.image.CropImageFilter;
import java.awt.image.FilteredImageSource;
import java.awt.image.ImageProducer;
import java.io.BufferedInputStream;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.util.Hashtable;
import java.util.StringTokenizer;
// Referenced classes of package atp:
// a
class f {
private final ImageProducer _flddo[] = { null, null, null, null, null };
private final String _fldif[] = { "8", "10", "12", "14", "18" };
private final Hashtable _fldfor;
public f() {
_fldfor = new Hashtable(189);
}
@SuppressWarnings("unchecked")
public Image a(final String s, final Graphics2D g) {
final StringTokenizer stringtokenizer = new StringTokenizer(s, "/");
String s1 = stringtokenizer.nextToken();
s1 = stringtokenizer.nextToken().substring(5);
final String s2 = stringtokenizer.nextToken();
int i = -1;
boolean flag2 = true;
while (flag2) {
if (_fldif[++i].equals(s1)) {
flag2 = false;
}
if (i == 4) {
flag2 = false;
}
}
if (_flddo[i] == null) {
_flddo[i] = a("Fonts" + s1 + ".gif");
final String s3 = "Des" + s1 + ".gif";
BufferedInputStream bufferedinputstream = null;
try {
getClass().getResourceAsStream(s3);
bufferedinputstream = new BufferedInputStream(getClass()
.getResourceAsStream(s3));
final ObjectInputStream objectinputstream = new ObjectInputStream(
bufferedinputstream);
final int j = objectinputstream.readInt();
for (int k = 0; k < j; k++) {
final String s4 = (String) objectinputstream.readObject();
_fldfor.put(s1 + s4, new Rectangle(
(Rectangle) objectinputstream.readObject()));
}
bufferedinputstream.close();
} catch (final Exception exception1) {
// System.out.println(exception1.toString());
_flddo[i] = null;
}
}
Image image = null;
if (_flddo[i] != null) {
final Rectangle rectangle = (Rectangle) _fldfor.get(s1 + s2);
image = Toolkit.getDefaultToolkit().createImage(
new FilteredImageSource(new FilteredImageSource(_flddo[i],
new CropImageFilter(rectangle.x, rectangle.y,
rectangle.width, rectangle.height)), new a(
g.getColor())));
}
return image;
}
ImageProducer a(final String s) {
ImageProducer imageproducer = null;
try {
final InputStream inputstream = getClass().getResourceAsStream(s);
int i = inputstream.available();
byte abyte0[] = new byte[i];
int j = 0;
for (int k = 0; k != -1;) {
k = inputstream.read(abyte0, j, i);
if (k != -1) {
j += k;
i = inputstream.available();
final int l = j + i;
if (l > abyte0.length) {
final byte abyte1[] = (byte[]) abyte0.clone();
abyte0 = new byte[l];
System.arraycopy(abyte1, 0, abyte0, 0, j);
}
}
if (i == 0) {
break;
}
}
imageproducer = Toolkit.getDefaultToolkit().createImage(abyte0)
.getSource();
} catch (final Exception exception) {
}
return imageproducer;
}
}

2027
atp/sHotEqn.java Normal file

File diff suppressed because it is too large Load diff