How we ported LaTeX to the iPad
texpadapp.com
texpadapp.com
TeX, while maybe not pretty, has stood the test of time remarkably well. I find it somewhat low of the article to bash the technology it uses (WEB, DVI) just because they are not the newest and hippest.
As far as I know, Apple won't allow GPL software on iPad/iOS, they ban it on the App Store. So it isn't this company trying to get around the GPL, it's Apple.
The VLC example mentioned below in fact supports this: Apple was absolutely fine with it being in the store until Rémi Denis-Courmont filed a copyright violation with Apple asking them to take down the version that had been posted there. Apple didn't take initiative to remove it themselves.
I think "this software is for personal use only" is the main (only?) GPL incompatible parts of the App Store terms. I don't know if it's a possible outcome, but I wonder if there's some way to force iOS to be an OS where you can run any programme (i.e. no App Store needed), if there is GPL software. This is clearly not something Apple want, so they may be trying to nip that problem in the bud by setting things up to stop GPL. I believe some sort of Microsoft app store explicitly bans GPL.
Apple do officially care, and they only officially allow things in that match their rules. If you told Apple that the software was GPL, they would probably care and pull it.
The reason VLC was there for long was because Apple clearly don't check things in the App Store very much (examples like this, and various scammy apps, and pirated software back this up). However once (one of) the copyright holders noticed it, they informed Apple that Apple was distributing copyright infringing software, and Apple promptly acted.
GPL software on the iOS App Store is about as legal as copying DVDs of Hollywood films and selling them yourself, or copying someone else's closed source software and uploading it to the App Store.
Remember, GPL software is often based on other GPL software that someone else wrote, and released to you under certain terms (the GPL). To distribute it via the App Store goes against the spirit and letter of those terms. It should be clear why some developers are annoyed about people who do that.
What if someone sold an iOS app that could be downloaded from the iTunes App Store that "contained" the source code? (Actually, it would detect whichever app started it and would download the source on demand.) Combine this with a free app and service that lets people use on-air provisioning to get modified versions of apps?
Y'know I'm not sure this is something the GPL would care about. I mean if Apple sell GPL software (gcc), but if I modify gcc Apple are unlikely to sell my fork on apple.com, that doesn't mean Apple are breaking the GPL.
That's a common misconception, but actually has nothing to do with the GPL/App Store incompatibility. You can distribute a modified version of the app in source form, and let the users compile it and install it on their own device. You just can't distribute a modified version through the App Store, but that's OK. GPL has no requirement that people who modify GPL code be able to distribute their modified programs through the same channel they obtained the unmodified program.
The GPL/App Store compatibility arises from the App Store terms of service. In order to download from the App Store, you have to agree to things, such as not reverse engineering what you download. GPL prohibits distributing GPL software with additional restrictions, and the App Store terms count as additional restrictions.
A big problem of current projects to port TeX is that most of them rely in the original translation from pascal to C, which is just a hack turned into a maintenance nightmare. I believe a better approach would be to write a better translator that would be easier to integrate with different environments such as iOS.
This comment from the previous post indicates that it might not be such a big deal to fix this:
http://news.ycombinator.com/item?id=3264887
The whole thread on their earlier post is here:
http://news.ycombinator.com/item?id=3264341
Alas, it is not particularly enlightening.
[TeX] This program is copyright (C) 1982 by D. E. Knuth; all rights are reserved. Copying of this file is authorized only if (1) you are D. E. Knuth, or if (2) you make absolutely no changes to your copy. (The WEB system provides for alterations via an auxiliary file; the master file should stay intact.) See Appendix H of the WEB manual for hints on how to install this program. And see Appendix A of the TRIP manual for details about how to validate it. TeX is a trademark of the American Mathematical Society.
I know they are altering the translation not the WEB source but that is still the Tex program.
http://yieldthought.com/post/31857050698/ipad-linode-1-year-...
The major problem in writing TeX on a tablet seems to be the keyboard: It takes away screen space (which is already hard to come by, since ideally you would have the source and the compiled output displayed side-by-side), is much less convenient to use than a physical keyboard, and (usually) makes it more difficult to get to special characters which are really important for TeX: \, {, }, [, ], and so on.
I can see how it could be usable for copy-editing, but for longer writing a notebook beats a tablet any day.
Also the distribution is a bit bulky, it consists of over 30000 files. You can remove many of them but then you also loose a big part of the compatibility. While speaking of compatibility, some formulas look kinda weird, but those are very few
That post is no longer true. I wrote the full story here:
I'm not quite sure why this irks me so much. I'm not likely to mess with tex source, but it'd be nice to share what was shared with you.
It has to do with a very widespread and powerful legacy system (with extreme requirements for backwards-compatability and portability) that happened to be written decades ago in, basically, Pascal.
Furthermore, the people doing this port don't seem to have total command of the tex infrastructure. This has held them back.
For instance, they didn't know what kpathsea was until well after they started their port ("As best we could tell kpathsea is a library to find fonts and scripts in the sprawling TeX distribution...", from http://texpadapp.com/2011/12/10/price-of-amessy-latex-not-fo...).
kpathsea is a basic library that anyone who has tweaked TeX configurations would know about. It has a certain syntax for subdirectory searching that you have to learn, as well as a utility command (kpsewhich) that you run quite a lot to debug "file-not-found" problems.
Since their C code is based on the tangled code, their transformation discards the ENTIRE comments of the original source (and simply not stripping the comments would not help, because in the rearranged order they wouldn't make much sense anymore). Essentially, they are rendering TeX illiterate.
I can't conceive how this could possibly lead to a more maintainable product. TeX has a perfectly workable way of making arbitrary local changes through "Changefiles". The Pascal/C code was never meant to be edited directly.