<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thank you very much for your help! Although some questions persist...<div><br></div><div>I looked through the links you provided me with - River-Valley seems to be the most promising - </div><div>however it seems suprising to me that the WinCE developers didn't release their source code.</div><div>Would have been very helpful to see how they compiled TeX in detail.</div><div><br></div><div>As far as the compilation of C/C++ on the Android target is concerned, you'd better refer to the</div><div>official documentation, as the process has simplified greatly over the past couple of years (your</div><div>link describes an outdated procedure)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">     </span><a href="http://developer.android.com/sdk/ndk/overview.html#docs">http://developer.android.com/sdk/ndk/overview.html#docs</a></div><div><br></div><div>as well as a really helpful blog entry</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">   </span><a href="http://vilimpoc.org/blog/2010/09/26/straightforward-android-native-executables/">http://vilimpoc.org/blog/2010/09/26/straightforward-android-native-executables/</a></div><div><br></div><div>If I could only get somebody to unravel the mysteries of the build system for pdfTeX, then</div><div>I could at least make some re-evaluations. From my combing through the source code it's</div><div>very clear that the entire pdfTeX source (from the TeXLive distribution) is written in C/C++;</div><div>nothing else. Of course I'm fully aware that this is a tough nut to crack. But I like the challenge.</div><div><br></div><div>I'd be very thankful if you could provide me with a contact from the pdfTeX developer team,</div><div>it's always easier to talk to someone who has built the system in consideration at least </div><div>once before.</div><div><br></div><div>With kind regards,</div><div>Kevin</div><div><pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); position: static; z-index: auto; "></pre><blockquote type="cite"></blockquote><div><br></div><div><pre style="white-space: pre-wrap; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); position: static; z-index: auto; "><blockquote type="cite">  But that should not be much of an impediment. Kaveh Bazarghan and 
Jonathan Kew have managed to compile XeTeX for the iPhone

    <a href="http://river-valley.tv/tex-as-an-ebook-reader/">http://river-valley.tv/tex-as-an-ebook-reader/</a>

and the work for the iPad and Android should be of similar magnitude.

The biggest impediment would be dealing with file system - which is very 
different, in the iOS case, and not as much so on Android.

It is easy to compile C for Android target, and that should be the 
preferred path here

    <a href="http://www.pocketmagic.net/?p=682">http://www.pocketmagic.net/?p=682</a>

I have used TeX in both WindowsCE and Sharp Zaurus which were way more 
difficult to deal with ... here at the pointers to those compilations:

    
<a href="http://web.archive.org/web/20091017212151/http://www.rainer-keuchel.de/wince/texce.html">http://web.archive.org/web/20091017212151/http://www.rainer-keuchel.de/wince/texce.html</a>

     <a href="http://www.snowelm.com/~t/doc/tips/20031120.en.html">http://www.snowelm.com/~t/doc/tips/20031120.en.html</a>

The lack of a Android distribution is the sole reason why I pack 3 
devices to go these days, I would be really nice to see it included in 
TeXLive one day ... :)

Paulo Ney


On 10/30/2011 4:09 PM, john Culleton wrote:
><i> On Sat, 29 Oct 2011 23:45:04 +0200
</i>><i> Kevin Jonas Young<<a href="http://tug.org/mailman/listinfo/pdftex">youngkevinjonas at gmail.com</a>>  wrote:
</i>><i>
</i>>><i> Hi support team of pdftex,
</i>>><i>
</i>>><i> I tried contacting the pdftex developers with my question, however I
</i>>><i> received no answer.
</i>>><i>
</i>>><i> First of all, thank you infinitely for writing and maintaining such a
</i>>><i> great piece of software, which pdftex is!
</i>>><i> I hope I can provide my share of service to the TEX community with
</i>>><i> what follows.
</i>>><i>
</i>>><i> My wish is to cross compile pdftex against the Android-ARM target
</i>>><i> (using NDK), because I can't stand the fact that for
</i>>><i> tablets there exists simply no good typesetting software. I had a look
</i>>><i> at your build system, but for a layman
</i>>><i> it's easy to get confused.
</i>>><i>
</i>>><i> Therefore I'd be thankful if some of you developers could provide me
</i>>><i> with a rundown on your build system and its
</i>>><i> complexity - for in order to compile pdftex with the Android SDK, I
</i>>><i> need to replicate the steps of your build system
</i>>><i> using the NDK build system (simplified makefiles).
</i>>><i>
</i>>><i> Or do you have better suggestions?
</i>>><i>
</i>>><i> Thanks a bunch!
</i>>><i> Kevin
</i>><i> TeX was not designed to work on, or produce output for, online devices
</i>><i> like tablets.
</i>><i>
</i>><i> Operational pdftex creates dvi or pdf files only. Either format
</i>><i> converts easily to Postscript. To get to operational pdftex for an OS
</i>><i> not falling in the MSWIN, OS X Linux or BSD families a compiler may
</i>><i> need to be written.
</i>><i>
</i>><i>
</i>><i> The original programming for TeX was done in a special language
</i>><i> invented by Donald Knuth. I don't know what it is written in now. I
</i>><i> suspect C.
</i>><i>
</i>><i> Specialized online devices tend to use variants of the html language,
</i>><i> such as moibus, kindle or ePub.
</i>><i>
</i>><i> Is it doable? of course. But the Great Wall of China was a doable
</i>><i> project also. When your tablet will support pdf then pdftex (or Context
</i>><i> etc.) will produce files for that device.
</i>><i>
</i>><i>
</i>

-- 
Paulo Ney de Souza
University of California, Berkeley</blockquote></pre><div><br></div></div></div></body></html>