<div dir="ltr">That's unfortunate.<div><br></div><div>Hopefully someone will update that as an app so that it's readily available.</div><div><br></div><div>William</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 25, 2019 at 9:32 AM Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com">murrayeisenberg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Alas, that old Java Geometry Applet with this edition of Euclid’s Elements is in Java, and at least with security defaults of the current versions of macOS and Safari, it’s absolute torture to try to get the Java applet to be allowed to run.<br><div><br><blockquote type="cite"><div>On 25 Jun2019, at 9:26 AM, William Adams <<a href="mailto:will.adams@frycomm.com" target="_blank">will.adams@frycomm.com</a>> wrote:</div><br class="gmail-m_-6736214913367213201Apple-interchange-newline"><div><div dir="ltr">At last! A worthy successor to: <a href="https://mathcs.clarku.edu/~djoyce/java/elements/elements.html" target="_blank">https://mathcs.clarku.edu/~djoyce/java/elements/elements.html</a><div><br></div><div>Really looking forward to your presentation!</div><div><br></div><div>William<br><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 24, 2019 at 8:47 PM Doug McKenna <<a href="mailto:doug@mathemaesthetics.com" target="_blank">doug@mathemaesthetics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, what a long and strange trip (test) it's been!<br>
<br>
After many years of both concentrated and sporadic efforts on a variety of fronts, my combined application and/or electronic book ("Hilbert Curves" and/or "Outside-In and Inside-Gone") is now available (for $8) in Apple's App Store for Apple's iPad (and iPhone, but more screen real estate is better).<br>
<br>
Of interest to readers of this list, this app/book is, I believe, a first: it is self-typesetting on the user's device from TeX source code. See <<a href="http://www.mathemaesthetics.com/HilbertCurves.html" rel="noreferrer" target="_blank">http://www.mathemaesthetics.com/HilbertCurves.html</a>> for a few screen shots. The typeset math of course looks great, though it is not very complicated (high-school level).<br>
<br>
The app contains its own high-performance TeX-language interpreter, which I've been calling JSBox. The TUGboat article I wrote a while back on how it traces itself is here:<br>
<br>
<<a href="https://tug.org/TUGboat/tb35-2/tb110mckenna.pdf" rel="noreferrer" target="_blank">https://tug.org/TUGboat/tb35-2/tb110mckenna.pdf</a>><br>
<br>
(although in this dedicated eBook's case, none of the tracing code is ever needed, so all the tracing code is conditionally compiled out to save quite a lot of space).<br>
<br>
JSBox is a from-the-ground-up rewrite of TeX/e-TeX's engine, but (currently) without any of the back-end primitives for various types of import/export of PDF data. JSBox is not open source (maybe some day). It is a static library written in C that is designed to be incorporated into any other piece of software, such as an iOS or Mac or other GUI application that simulates a document of pages with illustrations.<br>
<br>
Lots of work still to be done on it, but I had to get this proof-of-concept eBook/app done before continuing. With respect to this TeX language interpreter's development, I'm still in what's technically called the "eating your own dog food" phase. Sales of my app/eBook will help support further work on JSBox, especially getting LaTeX and the TDS working with it.<br>
<br>
Under the hood, each time this iOS application launches, the 160-page simulated book (pages are logically 8.5" by 18"), with its 135+ non-file-based illustrations, is typeset anew, in under a half-second. The book's TeX source code starts by reading and executing a copy of the "plain.tex" macros, followed by the "opmac.tex" (Olsak's Plain Macros) lightweight markup library (with some added override hacks), and another related file of math symbol definitions. There is no format initialization relied upon, needed, or desired. The glyphs and metrics used are from Computer Modern. And when the job is done, all the TeX layout data structures remain in memory for every page, for later use by the app.<br>
<br>
The point of it all, over and above the intellectual exercise, was to do an end-run around all static illustration files, most of which are inadequate for my eBook's topic of interest: space-filling curve illustrations each comprising self-avoiding paths of literally (numerically?) tens of millions of tiny line segments in each picture. Every illustration is resolution-independent and zoom-able up to about 300x. There are no accompanying EPSF, PDF, SVG, or MOV illustration files. The app's code is in charge of drawing (and in some cases, animating) each illustration into its anointed reserved box space on a page.<br>
<br>
Most illustrations have a set of interactive controls to allow the user/reader to play with various graphic or other parameters. One particular illustration comprises over 77,000 sub-illustrations (a complete enumeration of all possibilities from which the user/reader chooses). Another illustration animates an actual backtrack search as the algorithm runs, to find all solutions to the problem at hand. The reader/user can change pruning strategies as it searches.<br>
<br>
All the illustrations are dynamically built by compiled code and drawn at read-time, not at typesetting time. The book's TeX source code thinks it is incorporating PDF files, but the PDF file names are mapped into objects compiled into the client app. Each such illustration object reports back what its bounding box is on any page, and the the JSBox interpreter reserves the space and continues typesetting away in its usual TeX way. The illustrations and all their attendant interactive controls are built and drawn later in the reserved area when the user first turns to that page. Each illustration is zoom-able independently of the simulated page it is on, which nicety PDF doesn't do.<br>
<br>
This design allows my app to be distributed as a (mere!) 7MB download in size (and 2MB of that was added by Apple), whereas an equivalent eBook app with PDF or SVG illustrations and MOV animations (for my particular purposes), would otherwise be many, many gigabytes of data.<br>
<br>
The idea is to allow a GUI app, coded to draw anything on the device screen in some view, and having any kind of user interface controls and gestures with respect to that interface, to simultaneously surround itself with a set of book (or manual) pages having TeX-quality layout and math.<br>
<br>
I've signed up to give a demo of this self-typesetting app/book, and talk about some interesting TeX-related issues, at the upcoming 2019 TUG conference in August.<br>
<br>
Onward, into the fog ...<br>
<br>
<br>
- Doug McKenna<br>
Mathemaesthetics, Inc.<br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" rel="noreferrer" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" rel="noreferrer" target="_blank">https://sites.esm.psu.edu/~gray/tex/</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br>
<a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" rel="noreferrer" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
</blockquote></div>
----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" target="_blank">https://sites.esm.psu.edu/~gray/tex/</a><br>List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br> <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></div></blockquote></div><br><div>
---<br>Murray Eisenberg<span class="gmail-m_-6736214913367213201Apple-tab-span" style="white-space:pre-wrap"> </span><a href="mailto:murrayeisenberg@gmail.com" target="_blank">murrayeisenberg@gmail.com</a><br>503 King Farm Blvd #101<span class="gmail-m_-6736214913367213201Apple-tab-span" style="white-space:pre-wrap"> </span>Home (240)-246-7240<br>Rockville, MD 20850-6667<span class="gmail-m_-6736214913367213201Apple-tab-span" style="white-space:pre-wrap"> </span>Mobile (413)-427-5334<br><br>
</div>
<br></div>----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" rel="noreferrer" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/tex/" rel="noreferrer" target="_blank">https://sites.esm.psu.edu/~gray/tex/</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br>
<a href="https://email.esm.psu.edu/pipermail/macosx-tex/" rel="noreferrer" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" rel="noreferrer" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
</blockquote></div>