[NTG-context] How do I write a digital book that can become a physical book without a lot of modifications?

2022-09-10 Thread amano.kenji via ntg-context
A digital book doesn't need to be double-sided.

But, a physical book can be double-sided.

Double-sidedness may require adjusting contents in many places.

How can I write a digital book that doesn't have to be heavily modified in 
order to become a physical book? I want almost no modification at all.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I design a book cover with front cover, back cover, and spine?

2022-09-06 Thread amano.kenji via ntg-context
Is it a good idea to design a book cover with front cover, back cover, and 
spine in ConTeXt? Or, is there a better software for designing book cover?

Do print shops just accept a book cover design as a PDF file which can be 
created by anything including ConTeXt?

Is it a good idea to set left margin and right margin differently for digitally 
distributed PDFs? Digital PDFs don't need different margins on the left and the 
right, but a digital PDF with different margins on the left and the right can 
be used in a physical book.

--- Original Message ---
On Tuesday, September 6th, 2022 at 9:50 AM, Henning Hraban Ramm via ntg-context 
 wrote:


> Am 06.09.22 um 10:20 schrieb amano.kenji via ntg-context:
> 
> > Let's assume that I'm writing an A4 book.
> > 
> > How can I design front cover, spine, and back cover of the book with 
> > ConTeXt?
> > 
> > I've read many PDF files, but none that I can remember actually had book 
> > spine on it. Some had back cover. Most had front cover.
> > 
> > Do printing houses make spine and back cover for authors so that back cover 
> > and spine don't need to be typeset by LaTeX or ConTeXt?
> 
> 
> No, they don’t, you must provide an extra PDF in the right size.
> Often, printshops provide a template.
> 
> If I don’t have a design that goes over the spine, I use a cover.tex
> that imports front and back of my main PDF and just add the spine text.
> Everything placed on a layer.
> This way, my main PDF contains everything except the spine – makes sense
> for proofreading or digital distribution.
> 
> Spine width depends mostly on page number and paper weight (thickness),
> but also on the binding technology used – ask your printshop.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] How can I design a book cover with front cover, back cover, and spine?

2022-09-06 Thread amano.kenji via ntg-context
Let's assume that I'm writing an A4 book.

How can I design front cover, spine, and back cover of the book with ConTeXt?

I've read many PDF files, but none that I can remember actually had book spine 
on it. Some had back cover. Most had front cover.

Do printing houses make spine and back cover for authors so that back cover and 
spine don't need to be typeset by LaTeX or ConTeXt?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-02 Thread amano.kenji via ntg-context
\setupinteraction[state=start,focus=standard] was what I wanted.

Thanks.

--- Original Message ---
On Thursday, September 1st, 2022 at 4:42 PM, Pablo Rodriguez via ntg-context 
 wrote:


> On 9/1/22 14:36, amano.kenji via ntg-context wrote:
> 
> > I just created a reference to a \section with \in.
> > 
> > Clicking the \in reference doesn't go to the \section, but to the
> > page that has the \section.
> > 
> > Does ConTeXt lack the ability to go to an exact point of a numbered
> > element on a page?
> 
> 
> Hi Amano,
> 
> please, provide a minimal sample with your questions.
> 
> Sometimes it is not easy for the rest of the world to figure out what
> each of us may have in mind.
> 
> I hope any of the options might help you:
> 
> \setupinteraction[state=start,focus=standard]
> \starttext
> \chapter[one]{One}
> in \in[two] or \about[two]
> \chapter[two]{Two}
> in \in[one] or \about[one]
> \stoptext
> 
> Just in case it helps,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] How to make a reference go to an exact point of a section on a page?

2022-09-01 Thread amano.kenji via ntg-context
I just created a reference to a \section with \in.

Clicking the \in reference doesn't go to the \section, but to the page that has 
the \section.

Does ConTeXt lack the ability to go to an exact point of a numbered element on 
a page?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-24 Thread amano.kenji via ntg-context
That's great, bro.

--- Original Message ---
On Tuesday, August 23rd, 2022 at 7:13 PM, Aditya Mahajan via ntg-context 
 wrote:


> On Mon, 22 Aug 2022, amano.kenji via ntg-context wrote:
> 
> > Wuh. That's a bit complex.
> 
> 
> If you are packaging any flavor of TeX, you need to understand TDS (TeX 
> Directory Structure):
> 
> https://tug.org/tds/
> 
> ConTeXt distributions are TDS compatible, but simplify certain aspects. 
> Essentially, context LMTX is distributed as a collection of TDS trees (texmf, 
> texmf-context, texmf-linux, etc.) which separate the files according to their 
> role. The purpose of texmfcnf.lua is to tell the binary about the location of 
> the different trees.
> 
> Aditya
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-23 Thread amano.kenji via ntg-context
> https://tug.org/TUGboat/tb34-3/tb108preining-distro.pdf

Somebody needed to update TeX Live on Gentoo Linux. I'm going to read it.

> From a developer perspective, this is essentially just the base ConTeXt 
> files, a modified texmfcnf.lua, and a fairly basic makefile.

I'm going to read https://github.com/vlasakm/context soon. Until then, I would 
feel confused and disoriented.

--- Original Message ---
On Tuesday, August 23rd, 2022 at 1:11 AM, Max Chernoff  wrote:


> Hi Amano,
> 
> > Wuh. That's a bit complex.
> 
> 
> Not really. From a user perspective, all that you need to run is
> 
> make install
> 
> From a developer perspective, this is essentially just the base ConTeXt
> files, a modified texmfcnf.lua, and a fairly basic makefile.
> 
> > For distribution packages that depend on context for generation of PDF
> > documents, having context as a system package is essential.
> 
> 
> I'd say that ConTeXt is available in nearly every package manager, via
> TeX Live. Very very few package managers would have no TeX Live. TeX
> Live only includes MkIV, the "stable" version, but most users won't
> notice many differences from MkXL/LMTX, the "experimental" version.
> 
> By policy, TeX Live only updates its binaries once per year. This would
> be pretty much unworkable with LuaMetaTeX due to its frequent upgrades.
> At some point when LuaMetaTeX is stable, the source will be released and
> almost certainly be incorporated in TeX Live.
> 
> > And, distribution maintainers can make things work if they understand
> > TeX directory structure and texmfcnf.lua.
> 
> 
> Packaging/installing ConTeXt is actually much easier than doing so for
> other TeX systems. With other systems, you need to fiddle around with
> fonts and packages, but with ConTeXt, you can pretty much just unpack a
> few files.
> 
> Here's a short paper that should give you an overview of how hard
> packaging TeX can be:
> 
> https://tug.org/TUGboat/tb34-3/tb108preining-distro.pdf
> 
> > It comes down to care. If they care and they have installation guide,
> > they will make it work.
> 
> 
> I'm not sure who you're talking about here. If you're talking about end-
> users, then yes, it's pretty simple to install ConTeXt. I personally
> find ConTeXt much easier to install than TeX Live.
> 
> If you're talking about packagers, then packaging ConTeXt is no more
> complex than packaging TeX Live (which of course includes ConTeXt MkIV).
> The installer documentation for ConTeXt LMTX certainly isn't as detailed
> as it is for TeX Live, but LMTX is still beta software.
> 
> If you're trying to say that the ConTeXt developers don't care, then you
> may be "right" in a sense, but missing the point entirely. There is no
> one who is paid to work on ConTeXt: all of the developers work on it
> either as volunteers or to support their own business needs. The current
> installer works for them and for many other users. This isn't to say
> that they don't care about the users, but rather that they are unlikely
> to spend much time making a package for a fairly unpopular distro where
> the official installer already works.
> 
> > On Sunday, August 21st, 2022 at 7:13 PM, Michal Vlasák  > gmail.com> wrote:
> 
> 
> Hi Michal,
> 
> > > I prepared a proof of concept, that I am ready to take down immediately
> > > at Hans' request, since I don't handle license information properly, and
> > > texmf-context is stripped down (just so that the downloads are not too
> > > big for proof of concept).
> > > 
> > > https://github.com/vlasakm/context
> 
> 
> That's quite impressive!
> 
> > > There is documentation about how it can be used. I hope its obvious how
> > > I got "texmf" (texmf-context.zip, unzip, delete some files I didn't want
> > > to take up space),
> 
> 
> One suggestion: instead of unpacking and committing "texmf-context.zip",
> I'd recommend adding
> 
> https://github.com/contextgarden/context-mirror/
> 
> as a git submodule. That way, it's easy to keep the files up-to-date, your
> repo will use less space, and there's a clearer separation between your
> package files and ConTeXt itself.
> 
> > > A bit of a disclaimer: I don't really recommend pursuing this further.
> > > Some time ago I was also that foolish to try to package TeX for Linux
> > > distributions. Unfortunately I think that the result will never by
> > > optimal - as demonstrated by the previous discussions, the usual
> > > purposes of packages (to integrate software into the system) don't apply
> > > much to TeX / ConTeXt - there one wants something more or less self
> > > contained (so that updates are under control, no random non-essential
> > > libraries brake things, etc.).
> 
> 
> Well packaging the files into .rpm/.deb isn't really a bad idea; what's
> bad is the weird modifications that distros make, plus the fact that
> nearly every distro delays updates by quite some time. I generally agree
> that installing TeX straight from the source is better, although I can
> see why some 

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-23 Thread amano.kenji via ntg-context
> they are unlikely to spend much time making a package for a fairly unpopular 
> distro where the official installer already works.

If someone adds something like installation.md to the root directory of ConTeXt 
source archive or git commit, anyone can read it and translate it into one's OS 
package. installation.md would be one generalized set of instructions that 
apply to windows, Mac, linux distributions, BSDs, and all other operating 
systems.

--- Original Message ---
On Tuesday, August 23rd, 2022 at 1:11 AM, Max Chernoff  wrote:


> Hi Amano,
> 
> > Wuh. That's a bit complex.
> 
> 
> Not really. From a user perspective, all that you need to run is
> 
> make install
> 
> From a developer perspective, this is essentially just the base ConTeXt
> files, a modified texmfcnf.lua, and a fairly basic makefile.
> 
> > For distribution packages that depend on context for generation of PDF
> > documents, having context as a system package is essential.
> 
> 
> I'd say that ConTeXt is available in nearly every package manager, via
> TeX Live. Very very few package managers would have no TeX Live. TeX
> Live only includes MkIV, the "stable" version, but most users won't
> notice many differences from MkXL/LMTX, the "experimental" version.
> 
> By policy, TeX Live only updates its binaries once per year. This would
> be pretty much unworkable with LuaMetaTeX due to its frequent upgrades.
> At some point when LuaMetaTeX is stable, the source will be released and
> almost certainly be incorporated in TeX Live.
> 
> > And, distribution maintainers can make things work if they understand
> > TeX directory structure and texmfcnf.lua.
> 
> 
> Packaging/installing ConTeXt is actually much easier than doing so for
> other TeX systems. With other systems, you need to fiddle around with
> fonts and packages, but with ConTeXt, you can pretty much just unpack a
> few files.
> 
> Here's a short paper that should give you an overview of how hard
> packaging TeX can be:
> 
> https://tug.org/TUGboat/tb34-3/tb108preining-distro.pdf
> 
> > It comes down to care. If they care and they have installation guide,
> > they will make it work.
> 
> 
> I'm not sure who you're talking about here. If you're talking about end-
> users, then yes, it's pretty simple to install ConTeXt. I personally
> find ConTeXt much easier to install than TeX Live.
> 
> If you're talking about packagers, then packaging ConTeXt is no more
> complex than packaging TeX Live (which of course includes ConTeXt MkIV).
> The installer documentation for ConTeXt LMTX certainly isn't as detailed
> as it is for TeX Live, but LMTX is still beta software.
> 
> If you're trying to say that the ConTeXt developers don't care, then you
> may be "right" in a sense, but missing the point entirely. There is no
> one who is paid to work on ConTeXt: all of the developers work on it
> either as volunteers or to support their own business needs. The current
> installer works for them and for many other users. This isn't to say
> that they don't care about the users, but rather that they are unlikely
> to spend much time making a package for a fairly unpopular distro where
> the official installer already works.
> 
> > On Sunday, August 21st, 2022 at 7:13 PM, Michal Vlasák  > gmail.com> wrote:
> 
> 
> Hi Michal,
> 
> > > I prepared a proof of concept, that I am ready to take down immediately
> > > at Hans' request, since I don't handle license information properly, and
> > > texmf-context is stripped down (just so that the downloads are not too
> > > big for proof of concept).
> > > 
> > > https://github.com/vlasakm/context
> 
> 
> That's quite impressive!
> 
> > > There is documentation about how it can be used. I hope its obvious how
> > > I got "texmf" (texmf-context.zip, unzip, delete some files I didn't want
> > > to take up space),
> 
> 
> One suggestion: instead of unpacking and committing "texmf-context.zip",
> I'd recommend adding
> 
> https://github.com/contextgarden/context-mirror/
> 
> as a git submodule. That way, it's easy to keep the files up-to-date, your
> repo will use less space, and there's a clearer separation between your
> package files and ConTeXt itself.
> 
> > > A bit of a disclaimer: I don't really recommend pursuing this further.
> > > Some time ago I was also that foolish to try to package TeX for Linux
> > > distributions. Unfortunately I think that the result will never by
> > > optimal - as demonstrated by the previous discussions, the usual
> > > purposes of packages (to integrate software into the system) don't apply
> > > much to TeX / ConTeXt - there one wants something more or less self
> > > contained (so that updates are under control, no random non-essential
> > > libraries brake things, etc.).
> 
> 
> Well packaging the files into .rpm/.deb isn't really a bad idea; what's
> bad is the weird modifications that distros make, plus the fact that
> nearly every distro delays updates by quite some time. I generally agree
> that installing 

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-22 Thread amano.kenji via ntg-context
Wuh. That's a bit complex.

For distribution packages that depend on context for generation of PDF 
documents, having context as a system package is essential.

And, distribution maintainers can make things work if they understand TeX 
directory structure and texmfcnf.lua.

It comes down to care. If they care and they have installation guide, they will 
make it work.

--- Original Message ---
On Sunday, August 21st, 2022 at 7:13 PM, Michal Vlasák  
wrote:


> On Mon Aug 15, 2022 at 2:03 PM CEST, amano.kenji via ntg-context wrote:
> 
> > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > installed by linux distributions.
> > 
> > Arch Linux has its own patched version of texmfcnf.lua.
> > 
> > It seems I'd be better off with a linux package for ConTeXt LMTX.
> > 
> > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > distribution?
> > 
> > I wish it was as simple as ./configure, make, and make install.
> 
> 
> Some of the problems were mentioned in previous discussions. Like:
> 
> - you would need to maintain your own "snapshots" of the current
> ConTeXt (or make use of the public git mirror)
> - you currently can't build luametatex binary from source, you would
> have to download it prebuilt (and also keep snapshots of it)
> - different directory structure expected by Linux distributions (FHS,
> "file hierarchy standard") vs TeX (TDS, "TeX directory structure")
> 
> In addition, there are still many uncertain things, like how you want to
> handle fonts:
> 
> - install some with ConTeXt? (In that case you might distribute fonts
> already available in your Linux distribution)
> - use system ones? (Then your documents may be subject to breakages
> from uncoordinated updates - ConTeXt has goodie files tuned to
> particular versions of fonts)
> 
> Also, AFAIK, packages are diligent with keeping license information and
> documentation, you would have to decide how that information would be
> kept (this is mostly the directory structure problem).
> 
> With that said, taking Hans' instructions as a start:
> 
> On Fri Aug 19, 2022 at 3:11 PM CEST, Hans Hagen via ntg-context wrote:
> 
> > Not sure what you mean here but basically a (future) installation is:
> > 
> > - unzip the main zip file
> > - goto the source subtree
> > - run build.sh (assumes compiler and cmake installed)
> > - move the binary file to the relevant bin location
> > - set symlinks from luametatex to mtsrun and context
> > - copy mtxrun.lua and context.lue there too
> > - adapt your path
> > - maybe add texmf-fonts and texmf-projects
> > - and you're done
> 
> 
> You need two things from ConTeXt: texmf directories (there are two
> provided by ConTeXt "texmf-context" - what you really need, "texmf" -
> mostly fonts) and the luametatex binary.
> 
> For simplicity let's only include "texmf-context":
> 
> In that case you need to extract "mtxrun" (rename to "luametatex") from
> http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip and download
> the "texmf-context" texmf tree from
> http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip.
> 
> This is how you get luametatex to execute script like mtxrun or context:
> 
> - luametatex binary gets executed with name (argv[0]) 

[NTG-context] ConTeXt Mark IV mtxrun: If selfautoloc is /usr/bin and selfautodir is /usr, selfautoparent becomes "." instead of "/".

2022-08-22 Thread amano.kenji via ntg-context
I think it's a bug.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] A few questions about texmfcnf.lua and mtxrun in TexLive.

2022-08-20 Thread amano.kenji via ntg-context
I'm currently using TexLive 2021 from Gentoo Linux. TexLive 2022 may behave 
with slight differences.

* How does /usr/share/texmf-local/web2c/texmfcnf.lua override 
/usr/share/texmf-dist/web2c/texmfcnf.lua? According to mtxrun --configurations, 
/usr/share/texmf-dist comes later than /usr/share/texmf-local. It seems to me 
that texmf-dist should override texmf-local.

* mtxrun --resolve-path '$SELFAUTOPARENT' resolves selfautoparent to '.' which 
is the current working directory if selfautodir is /usr. I think mtxrun refuses 
to accept '/' as selfautoparent and assigns the current working directory to 
selfautoparent. Is this a bug?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread amano.kenji via ntg-context
Okay. An installation guide for package distributors may appear in the future. 
But, it's not going to appear anytime soon.

For now, I'm going to fix up texmfcnf.lua in Gentoo Linux texlive package for 
using stable releases of ConTeXt and use install.sh for testing the latest 
changes.

--- Original Message ---
On Friday, August 19th, 2022 at 1:11 PM, Hans Hagen  wrote:


> On 8/19/2022 3:03 PM, amano.kenji wrote:
> 
> > Wait. Are you actually saying that no one who has write access to ConTeXt 
> > source is going to write documentation that describes manual offline 
> > installation for package distributors?
> 
> Not sure what you mean here but basically a (future) installation is:
> 
> - unzip the main zip file
> - goto the source subtree
> - run build.sh (assumes compiler and cmake installed)
> - move the binary file to the relevant bin location
> - set symlinks from luametatex to mtsrun and context
> - copy mtxrun.lua and context.lue there too
> - adapt your path
> - maybe add texmf-fonts and texmf-projects
> - and you're done
> 
> so, something like that, or ... use the online installer instead.
> 
> And how a packager then use that is upto the packager .. we don't
> prescript something at all.
> 
> Hans
> 
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread amano.kenji via ntg-context
Wait. Are you actually saying that no one who has write access to ConTeXt 
source is going to write documentation that describes manual offline 
installation for package distributors?

--- Original Message ---
On Thursday, August 18th, 2022 at 5:16 PM, Hans Hagen  
wrote:


> On 8/18/2022 4:08 PM, amano.kenji wrote:
> 
> > Sorry for spamming the list a little bit.
> > 
> > If there was something like 
> > https://www.linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html for 
> > ConTeXt and luametatex (binary), then distribution maintainers can make 
> > packages for ConTeXt easily.
> > 
> > I don't know TeX/TeXLive/kpathsea/ConTeXt directory structure conventions. 
> > Linux package maintainers don't know, either. I have packaged hundreds of 
> > programs, and TeX derivatives are monsters.
> > 
> > Most users just install texlive OS package, use TexLive upstream installer, 
> > or use ConTeXt upstream install.sh.
> 
> The problem with something context is that there are basically only two
> components:
> 
> - a tex tree with fonts and macros
> - a few binaries (just one for lmtx)
> 
> while in texlive one has quite some choices. We made these minimals
> actually in order to not end up with complex system dependent
> installations, also because most users just install context this way (it
> is fast too).
> 
> So, as Alan explained, anyone can wrap differently based on that. And if
> something is needed, we can provide it. But I'm not going to install
> something else than what i have for testing it. My develop and work
> machine is windows pro + linux sub system, the servers run opensuse. On
> all I just install under /data/context and that makes it system wide. I
> don't need to set up something apart from adding a binary to the path
> (or when I run from e.g. a web service I just use a fully quialified
> path to mtxrun) .. it cannot be simpler than that.
> 
> Hans
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-19 Thread amano.kenji via ntg-context
You don't have to install anything.

What I'm asking is documentation of offline installation instructions. Offline 
installation means downloading all required archives in advance and then 
installing them without internet access.

Translation of what install.sh roughly does into a documentation that any OS 
package maintainer can read and adapt to one's operating system.

What would you tell a system admin to do if instructions contained in 
install.sh have to be done manually by hand?

For example, you can add a plain text file called INSTALL that has a list of 
commands that build or install ConTeXt into any directory structure. If you 
provide instructions for installing ConTeXt into an arbitrary directory 
structure and how to adjust contextcnf.lua to the new directory structure, 
package maintainers can adapt.

--- Original Message ---
On Thursday, August 18th, 2022 at 5:16 PM, Hans Hagen  
wrote:


> On 8/18/2022 4:08 PM, amano.kenji wrote:
> 
> > Sorry for spamming the list a little bit.
> > 
> > If there was something like 
> > https://www.linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html for 
> > ConTeXt and luametatex (binary), then distribution maintainers can make 
> > packages for ConTeXt easily.
> > 
> > I don't know TeX/TeXLive/kpathsea/ConTeXt directory structure conventions. 
> > Linux package maintainers don't know, either. I have packaged hundreds of 
> > programs, and TeX derivatives are monsters.
> > 
> > Most users just install texlive OS package, use TexLive upstream installer, 
> > or use ConTeXt upstream install.sh.
> 
> The problem with something context is that there are basically only two
> components:
> 
> - a tex tree with fonts and macros
> - a few binaries (just one for lmtx)
> 
> while in texlive one has quite some choices. We made these minimals
> actually in order to not end up with complex system dependent
> installations, also because most users just install context this way (it
> is fast too).
> 
> So, as Alan explained, anyone can wrap differently based on that. And if
> something is needed, we can provide it. But I'm not going to install
> something else than what i have for testing it. My develop and work
> machine is windows pro + linux sub system, the servers run opensuse. On
> all I just install under /data/context and that makes it system wide. I
> don't need to set up something apart from adding a binary to the path
> (or when I run from e.g. a web service I just use a fully quialified
> path to mtxrun) .. it cannot be simpler than that.
> 
> Hans
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
Sorry for spamming the list a little bit.

If there was something like 
https://www.linuxfromscratch.org/lfs/view/stable/chapter06/ncurses.html for 
ConTeXt and luametatex (binary), then distribution maintainers can make 
packages for ConTeXt easily.

I don't know TeX/TeXLive/kpathsea/ConTeXt directory structure conventions. 
Linux package maintainers don't know, either. I have packaged hundreds of 
programs, and TeX derivatives are monsters.

Most users just install texlive OS package, use TexLive upstream installer, or 
use ConTeXt upstream install.sh.

--- Original Message ---
On Thursday, August 18th, 2022 at 1:16 PM, Alan  
wrote:


> On Wed, 17 Aug 2022 17:42:18 +0200
> Hans Hagen via ntg-context ntg-context@ntg.nl wrote:
> 
> > sorry, i just can't spent time on all the possible variant ways of
> > installation .. that is up to volunteers
> 
> 
> OS distribution packages are the responsibility of maintainers.
> "Upstream" developers can, and do, respond to requests for changes that
> might make packaging for a particular OS easier, but this is not
> directly the responsibility of developers.
> 
> Most OS packages require patches for particularities of that OS
> environment. LMTX Context, being minimal and fully portable, should be
> very easy to package as most paths, fonts, etc. are determined
> dynamically. The Context distribution follows the TeX directory tree
> structure, and this might not be the practice of some OS, which, for
> example, might locate different resources on different branches of the
> system directory structure. Some OS distributions are very particular
> about this.
> 
> I cannot understand the thrust of this thread.
> 
> It appears that the only issue for now concerns the distribution of the
> luametatex source tree. This is not yet the case as luametatex has been
> undergoing much experimentation. A classic opensource depository
> would disrupt this experimentation as more people get involved in
> wanting to make modifications. I believe the intention is to make a
> release once luametatex development settles into a normal state.
> 
> Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
Imagine installation instructions given by linux from scratch.

install.sh is like `apt-get install ConTeXt`.

Linux from scratch would document the following commands.

```
tar xf luametatex-2022.06.tar.xz
cd /path/to/luametatex-2022.06
make
cp luametatex /usr/bin

tar xf context-2022.06.tar.xz
cd /path/to/context-2022.06
cp -r font /path/to/usr/share/texmf-dist
...
```

I want something like this.

--- Original Message ---
On Thursday, August 18th, 2022 at 1:16 PM, Alan  
wrote:


> On Wed, 17 Aug 2022 17:42:18 +0200
> Hans Hagen via ntg-context ntg-context@ntg.nl wrote:
> 
> > sorry, i just can't spent time on all the possible variant ways of
> > installation .. that is up to volunteers
> 
> 
> OS distribution packages are the responsibility of maintainers.
> "Upstream" developers can, and do, respond to requests for changes that
> might make packaging for a particular OS easier, but this is not
> directly the responsibility of developers.
> 
> Most OS packages require patches for particularities of that OS
> environment. LMTX Context, being minimal and fully portable, should be
> very easy to package as most paths, fonts, etc. are determined
> dynamically. The Context distribution follows the TeX directory tree
> structure, and this might not be the practice of some OS, which, for
> example, might locate different resources on different branches of the
> system directory structure. Some OS distributions are very particular
> about this.
> 
> I cannot understand the thrust of this thread.
> 
> It appears that the only issue for now concerns the distribution of the
> luametatex source tree. This is not yet the case as luametatex has been
> undergoing much experimentation. A classic opensource depository
> would disrupt this experimentation as more people get involved in
> wanting to make modifications. I believe the intention is to make a
> release once luametatex development settles into a normal state.
> 
> Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
I really don't understand how TexLive is installed. On Gentoo Linux, the code 
that handles TexLive installation is complex. I can't reuse code that I don't 
understand.

I came from LaTeX background. I got sick of handling incompatible modules in 
LaTeX and decided to try ConTeXt. I had used texlive OS package. I just started 
learning ConTeXt.

In the vast majority of cases, `make install` installs everything.

In case of ConTeXt, there is no `make install`. So, there needs to be a 
document that teaches me which directories I can just copy each source 
directory of ConTeXt to. Copying luametatex to /usr/bin is going to be easy.

I never had to understand TexLive/ConTeXt directory structure because I just 
used TexLive OS package. Now, I'm stuck reverse-engineering a black box.

Am I supposed to execute the following commands in 
https://github.com/contextgarden/context-mirror?

```
cp fonts /path/to/usr/share/texmf-dist
cp context /path/to/usr/share/texmf-dist
...
```

If you teach package maintainers where directories can be installed, then the 
maintainers can adapt the instructions to their own linux distributions.

Example installation commands can help a lot.

install.sh handles the magic behind complex lua functions I don't understand.

--- Original Message ---
On Thursday, August 18th, 2022 at 1:16 PM, Alan  
wrote:


> On Wed, 17 Aug 2022 17:42:18 +0200
> Hans Hagen via ntg-context ntg-context@ntg.nl wrote:
> 
> > sorry, i just can't spent time on all the possible variant ways of
> > installation .. that is up to volunteers
> 
> 
> OS distribution packages are the responsibility of maintainers.
> "Upstream" developers can, and do, respond to requests for changes that
> might make packaging for a particular OS easier, but this is not
> directly the responsibility of developers.
> 
> Most OS packages require patches for particularities of that OS
> environment. LMTX Context, being minimal and fully portable, should be
> very easy to package as most paths, fonts, etc. are determined
> dynamically. The Context distribution follows the TeX directory tree
> structure, and this might not be the practice of some OS, which, for
> example, might locate different resources on different branches of the
> system directory structure. Some OS distributions are very particular
> about this.
> 
> I cannot understand the thrust of this thread.
> 
> It appears that the only issue for now concerns the distribution of the
> luametatex source tree. This is not yet the case as luametatex has been
> undergoing much experimentation. A classic opensource depository
> would disrupt this experimentation as more people get involved in
> wanting to make modifications. I believe the intention is to make a
> release once luametatex development settles into a normal state.
> 
> Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
By the way, all POSIX-like opearting systems including BSDs and linux 
distributions share one way of making system packages.

For all POSIX-like operating systems, a simple Makefile can build LuaMetaTex. 
Since each linux distribution may have a slightly different directory 
structure, it would be beneficial for ConTeXt to document contextcnf.lua and 
where each ConTeXt directory can be installed.

I don't know much about Mac OS, but my guess is that if we take care of 
POSIX-like operating systems, we take care of Mac, too.

As far as I know, there is no packaging standard for windows.

Thus, you should only worry about the POSIX way in theory.

--- Original Message ---
On Wednesday, August 17th, 2022 at 3:42 PM, Hans Hagen  
wrote:


> On 8/17/2022 3:09 PM, amano.kenji wrote:
> 
> > * Will TexLive replace its own ConTeXt Mark IV with ConTeXt LMTX?
> 
> 
> at some point we will switch to lmtx and mkiv is than just there and can
> be used but basically it is frozen (already for a while, apart from fixes).
> 
> > * context lmtx binary installer archive is not versioned. I can't use 
> > unversioned archives in OS packages.
> 
> 
> at some point (all depends on time and effort and ...) the source wil be
> part of the context distribution so then one can compile
> 
> > * Is it actually possible to present a separate override file for 
> > contextcnf.lua? If not, I would need to patch contextcnf.lua, or 
> > contextcnf.lua should support both portable installation and OS-level 
> > installation.
> 
> 
> you can put one in texmf-local (as the mtxrun --generate i posted trace
> shows)
> 
> > * Can you make it easier to make an OS package for ConTeXt LMTX by 
> > releasing versioned (source) archives, including BUILD/INSTALL instructions 
> > in the versioned archives, and so on? I wish I could just extract a 
> > versioned binary archive into certain locations or use GNU autotools or use 
> > meson build system which is far better than GNU autotools.
> 
> 
> there is a github repository for the tex stuff and have no experience
> with all that versioning / release / os packaging stuff (couldn't test
> it anyway and continuously adapt to teh subtle differences in
> distributions and os's) ... we just post zips (already for decades) but
> anyone is free to come up with such instructions (e.g. aditya did some
> for arch)
> 
> anyway, lmtx is still kind of experimental and at some point
> installation will move to the garden (not much is needed, just a web
> server) and the packaging scripts are / will be in the distribution ..
> there are no dependencies (and we keep it that way: self contained bins)
> 
> sorry, i just can't spent time on all the possible variant ways of
> installation .. that is up to volunteers
> 
> > While portable installations can be great for testing bleeding edge 
> > features and keeping up with latest development, most of the time, I prefer 
> > OS package releases.
> 
> I never use an os tex release .. who knows whaty has been done with it
> .. esp when one has a long term workflow (e.g. fonts can change)
> 
> Hans
> 
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-18 Thread amano.kenji via ntg-context
Okay, TexLive will get ConTeXt LMTX.

If TexLive was the official way to ship stable versions of ConTeXt, I am okay 
with having TexLive ConTeXt as a system package and using ConTeXt LMTX portable 
installer for testing bleeding edge features.

Still, there are a few ways to ship latest changes in ConTeXt LMTX as a linux 
package.

1. If I could just download a few binary archives and extract/unzip them into 
certain directories and modify contextcnf.lua in my package build script and be 
done, I can publish linux packages.
2. If https://github.com/contextgarden/context-mirror/ contains build 
instructions as a document, then I can make linux packages against recent git 
commits. This is better than 1 because linux distribution maintainers can build 
packages for each CPU architecture.

app-text/context would not be able to exist together with 
app-texlive/texlive-context because both are OS packages.

--- Original Message ---
On Wednesday, August 17th, 2022 at 3:42 PM, Hans Hagen  
wrote:


> On 8/17/2022 3:09 PM, amano.kenji wrote:
> 
> > * Will TexLive replace its own ConTeXt Mark IV with ConTeXt LMTX?
> 
> 
> at some point we will switch to lmtx and mkiv is than just there and can
> be used but basically it is frozen (already for a while, apart from fixes).
> 
> > * context lmtx binary installer archive is not versioned. I can't use 
> > unversioned archives in OS packages.
> 
> 
> at some point (all depends on time and effort and ...) the source wil be
> part of the context distribution so then one can compile
> 
> > * Is it actually possible to present a separate override file for 
> > contextcnf.lua? If not, I would need to patch contextcnf.lua, or 
> > contextcnf.lua should support both portable installation and OS-level 
> > installation.
> 
> 
> you can put one in texmf-local (as the mtxrun --generate i posted trace
> shows)
> 
> > * Can you make it easier to make an OS package for ConTeXt LMTX by 
> > releasing versioned (source) archives, including BUILD/INSTALL instructions 
> > in the versioned archives, and so on? I wish I could just extract a 
> > versioned binary archive into certain locations or use GNU autotools or use 
> > meson build system which is far better than GNU autotools.
> 
> 
> there is a github repository for the tex stuff and have no experience
> with all that versioning / release / os packaging stuff (couldn't test
> it anyway and continuously adapt to teh subtle differences in
> distributions and os's) ... we just post zips (already for decades) but
> anyone is free to come up with such instructions (e.g. aditya did some
> for arch)
> 
> anyway, lmtx is still kind of experimental and at some point
> installation will move to the garden (not much is needed, just a web
> server) and the packaging scripts are / will be in the distribution ..
> there are no dependencies (and we keep it that way: self contained bins)
> 
> sorry, i just can't spent time on all the possible variant ways of
> installation .. that is up to volunteers
> 
> > While portable installations can be great for testing bleeding edge 
> > features and keeping up with latest development, most of the time, I prefer 
> > OS package releases.
> 
> I never use an os tex release .. who knows whaty has been done with it
> .. esp when one has a long term workflow (e.g. fonts can change)
> 
> Hans
> 
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-17 Thread amano.kenji via ntg-context
* Will TexLive replace its own ConTeXt Mark IV with ConTeXt LMTX?
* context lmtx binary installer archive is not versioned. I can't use 
unversioned archives in OS packages.
* Is it actually possible to present a separate override file for 
contextcnf.lua? If not, I would need to patch contextcnf.lua, or contextcnf.lua 
should support both portable installation and OS-level installation.
* Can you make it easier to make an OS package for ConTeXt LMTX by releasing 
versioned (source) archives, including BUILD/INSTALL instructions in the 
versioned archives, and so on? I wish I could just extract a versioned binary 
archive into certain locations or use GNU autotools or use meson build system 
which is far better than GNU autotools.

While portable installations can be great for testing bleeding edge features 
and keeping up with latest development, most of the time, I prefer OS package 
releases.

--- Original Message ---
On Tuesday, August 16th, 2022 at 4:02 PM, Hans Hagen via ntg-context 
 wrote:


> On 8/16/2022 1:43 PM, amano.kenji via ntg-context wrote:
> 
> > Even if I put the installation in an archive and make a linux package that 
> > installs the archive, I still have to modify contextcnf.lua which isn't 
> > intended to handle differing system-wide installation paths of various 
> > POSIX-like operating systems.
> > 
> > And, I don't really know
> > 
> > * what the variables in contextcnf.lua mean and do.
> > * whether there is a way to override certain variables in contextcnf.lua 
> > with another file. A separate override file is going to make it easy for 
> > linux distributions to override certain variables in contextcnf.lua.
> 
> mtxrun --generate
> 
> reports all kind of locations where configurations files are looked for
> 
> one can also set environment variables and see what is used
> 
> mtxrun --variables
> mtxrun --expansions
> 
> so there are plenty ways to configure and you can run
> 
> > mtxrun --configurations
> 
> 
> which on my machine gives
> 
> system | resolved | file :
> c:/data/develop/tex-context/tex/texmf-local/web2c/texmfcnf.lua
> system | resolved | file :
> c:/data/develop/tex-context/tex/texmf/web2c/texmfcnf.lua
> 
> indicating that i use an additional configuration file
> 
> there are some boundary conditions:
> 
> - we use mtxrun as runner and that one used luatex as lua engine
> - this means that mtxrun[.lua] has to be in the same path as the binary
> 
> in lmtx we even go a bit further:
> 
> - in lmtx there is mtxrun.lua
> - as well as context.lua
> - there are 'mtxrun' and 'context' binaries that are either copies or
> symlinks to luametatex in the same path
> - this is the same on unix and windows
> 
> in lmtx luametatex is also used as runner for mkiv when installed
> 
> on unix i normally just install the minimal tree and then either add the
> bin path to the path or just run mtxrun fully qualified (actually always
> for the whole system under /data/context)
> 
> Hans
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-16 Thread amano.kenji via ntg-context
Even if I put the installation in an archive and make a linux package that 
installs the archive, I still have to modify contextcnf.lua which isn't 
intended to handle differing system-wide installation paths of various 
POSIX-like operating systems.

And, I don't really know

* what the variables in contextcnf.lua mean and do.
* whether there is a way to override certain variables in contextcnf.lua with 
another file. A separate override file is going to make it easy for linux 
distributions to override certain variables in contextcnf.lua.

--- Original Message ---
On Monday, August 15th, 2022 at 5:00 PM, Bruce Horrocks  
wrote:


> > On 15 Aug 2022, at 13:19, amano.kenji amano.ke...@proton.me wrote:
> >
> > I was trying to translate instructions in install.sh and dependencies of 
> > install.sh into shell commands in a Gentoo Linux package.
> >
> > Gentoo Linux downloads all dependencies and builds a package in a network 
> > namespace where there is no internet access.
>
>
> If you must use a Linux that makes life hard... ;-)
>
> I'm guessing you're trying to prepare ConTeXt for use in a private repository 
> on a LAN so that your users can install it without needing Internet access?
>
> ConTeXt only depends on glibc (iirc) - and it assumes it is present already. 
> So do an install on a machine that does have Internet access and everything 
> you need will then be self-contained in the directory you chose to install 
> into. Zip up that directory and use it for subsequent installs as many times 
> as you want just by unzipping it - no further Internet access required.
>
> You'll need to set up the PATH for where you unzipped the file - but the 
> install.sh file has the necessary information towards the end.
>
> Try it and see - it's not like typical modern bloatware that pulls down 100's 
> of Gbytes of dependencies willy-nilly.
>
> > Thus, install.sh cannot be directly used in a gentoo linux package. I have 
> > to translate instructions used in install.sh into shell commands.
> >
> > How can I do that? Can I somehow execute mtx-install.lua, mtxrun.lua, or 
> > mtxrun in a way that doesn't require internet access?
> >
> > --- Original Message ---
> > On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks n...@scorecrow.com 
> > wrote:
> >
> > > > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context 
> > > > ntg-context@ntg.nl wrote:
> > > >
> > > > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > > > installed by linux distributions.
> > > >
> > > > Arch Linux has its own patched version of texmfcnf.lua.
> > > >
> > > > It seems I'd be better off with a linux package for ConTeXt LMTX.
> > > >
> > > > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > > > distribution?
> > > >
> > > > I wish it was as simple as ./configure, make, and make install.
> > >
> > > Install instructions for LMTX on Linux are here:
> > > https://wiki.contextgarden.net/Installation
> > >
> > > It's pre-built so there are no make steps.
> > >
> > > Try it and ask again if you have problems. :-)
> > >
> > > —
> > > Bruce Horrocks
> > > Hampshire, UK
>
>
> —
> Bruce Horrocks
> Hampshire, UK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-16 Thread amano.kenji via ntg-context
The problem is that I read that ConTeXt Mark IV will be phased out in favor of 
ConTeXt LMTX.

If TexLive ConTeXt is outdated, I will want to use ConTeXt LMTX.

I want ConTeXt installed as a linux distribution package.

I think LMTX should accommodate linux distributions as well as portable 
installation.

--- Original Message ---
On Monday, August 15th, 2022 at 6:46 PM, Alan Braslau 
 wrote:


> I believe that you are missing the point of LMTX.
>
> LMTX Context is intended to be a self-contained AND PORTABLE directory
> tree. It does not need system installation paths and such and is
> designed to happily co-exist with system installed TeX (using packages)
> or TeXlive or others, without interference. The LMTX directory tree is
> very light-weight and indeed many production users might keep a separate
> copy with EACH major TeX project, thus ensuring that the project will
> continue to compile without changes as LMTX evolves. This strategy can
> be a successful insurance that very old projects will continue to
> compile yielding the same results many years later.
>
> Not that you need to go that far.
>
> Many users install LMTX for a system-wide use in some commonly
> accessible location. This is totally portable: only the PATH needs to be
> set to find the correct context executable.
>
> LMTX does not go the route of system packages as this relies on package
> maintainers. ConTeXt mkiv with luatex continues to be made available and
> updated with TeXlive, so any system packages that provide TeXlive can
> provide ConTeXt.
>
> Alan
>
>
>
> On 15/08/2022 07:54, amano.kenji via ntg-context wrote:
>
> > From my perspective, a few optimizations for system installation need to 
> > happen for ConTeXt.
> >
> > contextcnf.lua needs to support system installation paths.
> >
> > Arch Linux texlive-core packages has its own patched version of 
> > texmfcnf.lua that sets TEXMFSYSVAR=/var/lib/texmf, TEXMFOS=/usr/share, 
> > TEXMFDIST=/usr/share/texmf-dist, and TEXMFSYSCONFIG=/etc/texmf.
> >
> > TexLive's own version of texmfcnf.lua is not suitable for system-wide 
> > installation.
> >
> > contexcnf.lua assumes all paths are relative to /path/to/extracted-archive 
> > which is definitely not a system-wide installation.
> >
> > A system-wide installation is installed to absolute paths.
> >
> > On top of that, there needs to be a document called INSTALLATION or BUILD 
> > that offers a simplified version of build/installation instructions 
> > contained in install.sh, mtx-install.lua, and mtxrun.lua. It seems mtxrun 
> > can be used to build and install ConTeXt without internet access as long as 
> > all dependencies are already present.
> >
> > If ConTeXt is optimized for system-wide installation by modifying 
> > contextcnf.lua and adding INSTALL or BUILD, then all POSIX-like operating 
> > systems will be able to easily make packages for ConTeXt. Not just Gentoo 
> > Linux.
> >
> > Can anyone help me with optimizing ConTeXt for system-wide installation?
> >
> > --- Original Message ---
> > On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks n...@scorecrow.com 
> > wrote:
> >
> > > > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context 
> > > > ntg-context@ntg.nl wrote:
> > > >
> > > > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > > > installed by linux distributions.
> > > >
> > > > Arch Linux has its own patched version of texmfcnf.lua.
> > > >
> > > > It seems I'd be better off with a linux package for ConTeXt LMTX.
> > > >
> > > > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > > > distribution?
> > > >
> > > > I wish it was as simple as ./configure, make, and make install.
> > >
> > > Install instructions for LMTX on Linux are here:
> > > https://wiki.contextgarden.net/Installation
> > >
> > > It's pre-built so there are no make steps.
> > >
> > > Try it and ask again if you have problems. :-)
> > >
> > > —
> > > Bruce Horrocks
> > > Hampshire, UK
> > > ___
> > > If your question is of interest to others as well, please add an entry to 
> > > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> > ___
>
>
>
> --
> --
> Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-16 Thread amano.kenji via ntg-context
At least, furigana seems covered.

How do I know which document to consult? There are many PDF files that come 
with ConTeXt.

--- Original Message ---
On Monday, August 15th, 2022 at 3:39 PM, Wolfgang Schuster via ntg-context 
 wrote:


> amano.kenji via ntg-context schrieb am 15.08.2022 um 14:00:
>
> > Is there any documentation about \ruby?
>
>
> You can see all available parameters in setup-en.pdf, the example below
> shows a few of them:
>
>  begin example
> \setupinterlinespace[line=4ex]
>
> \setuptype[style=\ttx]
>
> \starttext
>
> \start
> x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[location=left]
> \type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[location=right]
> \type{\setupruby[location=right]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[location=right,left={[},right={]}]
> \type{\setupruby[left={[},right={]}]}\quad x \ruby{aaa}{bbb}
> x
> \stop
>
> \start \setupruby[align=flushleft]
> \type{\setupruby[align=flushleft]}\quad x \ruby{aa}{bbb}
> x
> \stop
>
> \start \setupruby[align=flushright]
> \type{\setupruby[align=flushright]}\quad x \ruby{aa}{bbb}
> x
> \stop
>
> \start \setupruby[style=\itxx]
> \type{\setupruby[style=\itxx]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[color=blue]
> \type{\setupruby[color=blue]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \start \setupruby[voffset=-1.2ex]
> \type{\setupruby[voffset=-1.2ex]}\quad x \ruby{aaa}{bbb} x
> \stop
>
> \stoptext
>  end example
>
> > What about vertical text?
>
>
> ConTeXt has a mechanism to produce vertical text but there is nothing
> yet which can
> be used out of the box to produce a complete document with vertical
> paragraphs.
>
> Wolfgang
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-16 Thread amano.kenji via ntg-context
http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip is not versioned.

If the file changes later, linux distributions refuse to use the file.

I wish ConTeXt and LuaMetaTex were versioned and provided `offline` build 
instructions. The vast majority of programs are versioned and can be built 
easily offline. Even if they were distributed as binary files, if they are 
versioned, I can still make linux packages out of them.

--- Original Message ---
On Monday, August 15th, 2022 at 9:56 PM, Max Chernoff  wrote:


> Okay, I'm seeing a few separate issues here.
>
> 1. Gentoo expects to compile everything from source.
>
> This isn't an option here since LuaMetaTeX doesn't have any source
> available (yet). So for the time being, you'll need to use the provided
> binaries. These support pretty much every architecture, so this
> shouldn't really be a problem.
>
> 2. You want to install ConTeXt LMTX system-wide.
>
> This is doable with the standard Linux installer script. Just make sure
> to run the script as root and install the files in /opt/context. This is
> what I've done on my system, and it works quite well.
>
> $ ls -l $(type -p context)
> lrwxrwxrwx. 1 root root 10 Jul 28 00:33 
> /opt/context/tex/texmf-linux-64/bin/context -> luametatex*
>
>
> 3. You want to install ConTeXt without any network access.
>
> The easiest way to do this would be to install on a system with
> internet, then just copy over the files.
>
> If you want to use the "original" installer files, it shouldn't be
> impossible, but probably not too easy either. (All steps below are
> untested)
>
> The platform-independent stuff is all in one big zip, located at:
>
> http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip
>
> Unzip this file as "/tex/texmf-context/".
>
>
> Then you also need to download all of the binaries. You will need to
> download all of the paths listed in this file:
>
> http://lmtx.pragma-ade.nl/install-lmtx/tex/texmf-linux-64.tma
>
> All of those files need to be placed in "/tex/texmf-linux-
>
> 64/bin".
>
> Then to finish installing you'll need to run "mtxrun --generate" and
> "context --make". There are probably a bunch of other steps that I'm
> missing, but this should get you close.
>
> Again, probably easier to just use the regular installer.
>
> 4. ConTeXt is really picky about texmfcnf stuff.
>
> This is an issue that I've had too:
>
> https://github.com/latex3/l3build/issues/232
>
> Pretty much any modification of anything texmfcnf-related with ConTeXt
> will completely prevent it from running. There's a thread discussing the
> problem (but with no real solutions) here:
>
> https://tug.org/pipermail/tex-live/2020-September/046099.html
>
> And a Wiki page here:
>
> https://wiki.contextgarden.net/Custom_Configuration
>
> I agree that this texmfcnf stuff makes it really difficult to install or
> use ConTeXt with any kind of custom paths. Does anyone know how to
> properly configure a texmfcnf with custom paths?
>
> Hopefully this is of some help.
> -- Max
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-15 Thread amano.kenji via ntg-context
From my perspective, a few optimizations for system installation need to happen 
for ConTeXt.

contextcnf.lua needs to support system installation paths.

Arch Linux texlive-core packages has its own patched version of texmfcnf.lua 
that sets TEXMFSYSVAR=/var/lib/texmf, TEXMFOS=/usr/share, 
TEXMFDIST=/usr/share/texmf-dist, and TEXMFSYSCONFIG=/etc/texmf.

TexLive's own version of texmfcnf.lua is not suitable for system-wide 
installation.

contexcnf.lua assumes all paths are relative to /path/to/extracted-archive 
which is definitely not a system-wide installation.

A system-wide installation is installed to absolute paths.

On top of that, there needs to be a document called INSTALLATION or BUILD that 
offers a simplified version of build/installation instructions contained in 
install.sh, mtx-install.lua, and mtxrun.lua. It seems mtxrun can be used to 
build and install ConTeXt without internet access as long as all dependencies 
are already present.

If ConTeXt is optimized for system-wide installation by modifying 
contextcnf.lua and adding INSTALL or BUILD, then all POSIX-like operating 
systems will be able to easily make packages for ConTeXt. Not just Gentoo Linux.

Can anyone help me with optimizing ConTeXt for system-wide installation?

--- Original Message ---
On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks  
wrote:


> > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context ntg-context@ntg.nl 
> > wrote:
> >
> > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > installed by linux distributions.
> >
> > Arch Linux has its own patched version of texmfcnf.lua.
> >
> > It seems I'd be better off with a linux package for ConTeXt LMTX.
> >
> > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > distribution?
> >
> > I wish it was as simple as ./configure, make, and make install.
>
>
> Install instructions for LMTX on Linux are here:
> https://wiki.contextgarden.net/Installation
>
>
> It's pre-built so there are no make steps.
>
> Try it and ask again if you have problems. :-)
>
> —
> Bruce Horrocks
> Hampshire, UK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-15 Thread amano.kenji via ntg-context
I was trying to translate instructions in install.sh and dependencies of 
install.sh into shell commands in a Gentoo Linux package.

Gentoo Linux downloads all dependencies and builds a package in a network 
namespace where there is no internet access.

Thus, install.sh cannot be directly used in a gentoo linux package. I have to 
translate instructions used in install.sh into shell commands.

How can I do that? Can I somehow execute mtx-install.lua, mtxrun.lua, or mtxrun 
in a way that doesn't require internet access?

--- Original Message ---
On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks  
wrote:


> > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context ntg-context@ntg.nl 
> > wrote:
> >
> > TexLive has texmfcnf.lua that doesn't really work with texlive-context 
> > installed by linux distributions.
> >
> > Arch Linux has its own patched version of texmfcnf.lua.
> >
> > It seems I'd be better off with a linux package for ConTeXt LMTX.
> >
> > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
> > distribution?
> >
> > I wish it was as simple as ./configure, make, and make install.
>
>
> Install instructions for LMTX on Linux are here:
> https://wiki.contextgarden.net/Installation
>
>
> It's pre-built so there are no make steps.
>
> Try it and ask again if you have problems. :-)
>
> —
> Bruce Horrocks
> Hampshire, UK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-15 Thread amano.kenji via ntg-context
TexLive has texmfcnf.lua that doesn't really work with texlive-context 
installed by linux distributions.

Arch Linux has its own patched version of texmfcnf.lua.

It seems I'd be better off with a linux package for ConTeXt LMTX.

How can I build and install ConTeXt LMTX on Gentoo Linux or any linux 
distribution?

I wish it was as simple as ./configure, make, and make install.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-15 Thread amano.kenji via ntg-context
Is there any documentation about \ruby? What about vertical text?

--- Original Message ---
On Monday, August 15th, 2022 at 11:43 AM, Taco Hoekwater  
wrote:


> > On 15 Aug 2022, at 13:02, amano.kenji via ntg-context ntg-context@ntg.nl 
> > wrote:
> >
> > Typesetting furigana over kanji characters is common for japanese 
> > educational materials.
>
>
> Yes, using the \ruby command. That used to require a module, but is now in 
> the core.
>
> The wiki page on CJK fonts should probably be updated (new fonts, broken ftp 
> links, etc.)
> but at least it mentions this:
>
> https://wiki.contextgarden.net/CJK_fonts
>
> Best wishes,
> Taco
>
> —
> Taco Hoekwater E: t...@bittext.nl
> genderfluid (all pronouns)
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?

2022-08-15 Thread amano.kenji via ntg-context
Typesetting furigana over kanji characters is common for japanese educational 
materials.

Is this doable in ConTeXt?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___