Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConTeXt #208

Open
lifepillar opened this issue May 15, 2021 · 5 comments
Open

ConTeXt #208

lifepillar opened this issue May 15, 2021 · 5 comments

Comments

@lifepillar
Copy link

Thanks for this app! How hard would it be to support ConTeXt?

@holzschu
Copy link
Owner

Good question. I was not aware that ConTeXt had branched from luaTeX (which we already support).
The main goal with TeX is first to update to texlive 2021 (we're still on texlive 2019), and to make it in a way that will make future upgrades smoother. If ConTeXt is part of TL2021, it will probably be compiled at the same time.

@lifepillar
Copy link
Author

If ConTeXt is part of TL2021

Yes, it is. It is also part of TeX Live 2019, for that matter.

@holzschu
Copy link
Owner

Hi,
I'm currently recompiling the texlive 2021 binaries from their source: https://github.com/teX-Live/texlive-source/
While there are still many issues to consider, there doesn't seem to be anything specific to ConTeXt in the source or the binaries. Unless there is a hidden switch somewhere, it seems that ConTeXt will be running on the standard luatex (and if that's true, then you can have ConTeXt with the standard version of a-Shell, just by copying the relevant files).

Looking again at the documentation you linked on the first post, the status of ConTeXt with respect to texlive is somewhat fuzzy. The web site distributes binaries for many architectures, but I've been unable to find source code.

I will be needing some more help on this issue.

@lifepillar
Copy link
Author

lifepillar commented Jun 27, 2021

ConTeXt will be running on the standard luatex

Yes, that should be the case (actually, the latest version now uses “luametatex”, which is the next iteration on the luatex project).

ConTeXt is constantly evolving. The distributions you find in the page I have linked contain a script that install a self-contained beta (which is considered stable) for the specified architecture using rsync. Such beta is entirely self-contained and can be installed anywhere, e.g., in your home directory.

Once a year, ConTeXt's developers “freeze” the beta and prepare a release for TeX Live.

For the source code, see https://wiki.contextgarden.net/Development.

What is required for an executable to run within a-Shell?

@holzschu
Copy link
Owner

For an executable to run within a-Shell, it needs to be compiled for the Arm64 processor using the iOS SDK. So basically recompiled from scratch (It's not one of the architectures included in their script).

The source code must also be edited to release all memory that was allocated and re-initialize all variables. Finally, if it starts other commands or outputs things to stdout, it must be linked with ios_system. framework. All in all, not impossible, but a bit of work.

Since it's not part of the main texlive distribution, I will finish the work on TL2021 first, then have a look at the source code you linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants