Re: [NTG-context] Old version of luatex for alpine linux (musl)

2018-10-23 Thread Mojca Miklavec
Hi,

On Tue, 23 Oct 2018 at 13:37, Martin Hasoň wrote:
>
> Hi all,
>
> I want to use the last beta version of standalone ConTeXt distribution in 
> alpine linux (musl). The installation was OK, but an error occurred while 
> compiling the file:

Eeeem, my fault, sorry. I did not update LuaTeX for musl as it comes
from another source (at the moment we can build it on Travis, but I
never did that so far myself).

I wanted to somehow automate this. Norbert has set up an automatic
mirror on GitHub and also set up a Travis job, but we would need a
mechanism to push the resulting binary somewhere. Or at least I need
to find a way to trigger a build manually from time to time. At the
moment one needs to create a tag which is a bit strange, but ...
(I wanted to take time and set up my own account on Travis etc., just
never came around to do so.)

If Henri has some suggestion about the most efficient way to achieve
this ... (for the moment it would be ok if I only get the latest
binary from trunk/master).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Homebrew packaging for macOS

2018-10-07 Thread Mojca Miklavec
On Sun, 7 Oct 2018 at 01:24, Andrew Dunning wrote:
>
> Dear list,
>
> Has anyone ever looked into packaging ConTeXt for Homebrew on macOS (see 
> )?

I'm not aware of any such effort so far, but we gladly help you if you
are willing to invest effort into creating one yourself.

> Providing it as an installation option would make it far easier to obtain the 
> latest version.

Obtaining the latest version is already relatively easy, but I fully
understand your point :)

> In looking into it myself, I immediately came across the problem of not being 
> exactly sure where to find a versioned download link. See their guidelines at 
> .

Maybe
https://github.com/contextgarden/context-mirror
comes closest to what you are looking for, but note that ConTeXt
provides several releases per day (or maybe a release every few days
at most) which is more resembling individual commits in other projects
than one release per every few months as would be common with other
projects.

The only thing that comes somewhat closer to a release is a version
that gets released with TeX Live once per year, but that's not in line
with your desire to easily get the latest version. We had the latest
version of ConTeXt in TLContrib repository for a while which could
probably be reinstated if desired, but that means using MacTeX (even
if from HB).

If you want to provide a package for HB, you either need to use "HEAD"
or create a cron job that will update the package definition several
times per day :) :) :)

But note that installing ConTeXt alone is not sufficient. You also
need LuaTeX, a bunch of fonts and other files (I'm not sure which
ones; with the old ConTeXt MKII it was a lot more dependencies than
with the new ConTeXt MKIV). The easiest way would be to install TeX
Live as a dependency, but from what I saw I suspect that HB only
packages MacTeX as a binary installation. You could install ConTeXt on
top of that in a way that doesn't conflict. Alternatively you need to
spend (quite some) effort figuring out what exactly is needed.

I'll probably create another git repository with a standalone
installation, but it's not yet ready and you should not count on it.

I suspect that you'll find a slightly hard time getting this package
into core HomeBrew and that you'll need to provide your own
repository, but I might be wrong. I decided against providing a
package for MacPorts precisely because it's not really practical to
update a package definition every few days.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Apache server down

2018-09-22 Thread Mojca Miklavec
Hi,

I would like to sincerely apologise. I screwed up when trying to
restart Apache on the garden and I'll probably need Taco to fix the
problem, so please be patient. (The wiki works, some other sites are
down.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Using the source han sans fonts fails

2018-09-21 Thread Mojca Miklavec
On Wed, 19 Sep 2018 at 17:47, Ulrike Fischer wrote:
> Am Wed, 19 Sep 2018 13:50:37 +0200 schrieb Ulrike Fischer:
>
> > I guess I should reinstall context here, probably it is too old and
> > never got the 64bit binaries.
>
> I did reinstall context and now a 64bit luatex is used on my pc too
> and the problem is gone.
>
> I also installed a 64bit luatex for texlive and now the font can
> also be used with latex.
>
> The first time for me that a 64bit application makes really a
> difference ;-).

I didn't look at the font itself, but if a font requires more than 3
GB of memory to be able to load it, I would suspect something
suspicious (either inefficient storing of data, semi-recursive
behaviour – that did happen with one basically "empty" font in the
past, memory leak, ... or at least some inefficient design at some
point).

But it makes a strong argument for inclusion of 64-bit binaries into TeX Live :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] HTTPS on wiki.contextgarden.net

2018-09-09 Thread Mojca Miklavec
Dear Henri,

V ned., 9. sep. 2018 09:22 je oseba Henri Menke napisala:

> Could you please enable SSL on the Wiki?
>

We just discussed this two days ago and plan to add SSL support to both
servers (it's not just wiki lacking ssl support). Wiki also needs an update
of mediawiki, so the two might be done at the same time.

Mojca

>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Mojca Miklavec
On Fri, 7 Sep 2018 at 17:18, Hans van der Meer wrote:
>
> Ping gave this:

Ping gives you the correct address and a sign that you can reach the
server. I'm almost certain it's a firewall issue. Please check whether
you can reach, say,
 rsync rsync://rsync.macports.org/

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Mojca Miklavec
On Fri, 7 Sep 2018 at 17:08, Hans van der Meer wrote:
>
> If I connect in the browser to contextgarden.net/minimals/setup/$platform/bin 
> (platform set to my osx-64) it gives an empty page with text as below. 
> Shouldn’t there be something to download?

No, because that's the wrong URL. The correct URL would be
http://minimals.contextgarden.net/setup/osx-64/bin/
if talking about the browser. Apache's and rsync's URLs are not the same.

Can you please check if you can use rsync at all (behind the firewalls
you currently reside)? Do you get any response from, say,
rsync rsync://rsync.macports.org/
?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] contextbeta moved or server down?

2018-09-07 Thread Mojca Miklavec
On Fri, 7 Sep 2018 at 11:11, Hans van der Meer  wrote:
>
> This used to give me the latest contextbeta:
> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>
> Today I get this error
> start download and iinstall of contextbeta
> rsync: failed to connect to contextgarden.net: Operation timed out (60)
>
> Is the garden down or have the sources been moved since my last access this 
> June?
> At least this link is still active at the moment: 
> http://wiki.contextgarden.net

While wiki.contextgarden.net is running on a different server than the
distribution, there hasn't been any change recently and the
installation works for me.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] troubles with standalone install on openbsd6.3-amd64

2018-05-28 Thread Mojca Miklavec
On 27 May 2018 at 16:32, Damien Thiriet wrote:
> Hello,
>
> I tried to install standalone on my OpenBSD 64-bit.
> Looks like something went wrong (or I missed something).

There's a high probability that Hans needs to fix mtxrun and/or
mtx-update.lua to properly support OpenBSD with the version number
included.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Build for Alpine Linux

2018-04-13 Thread Mojca Miklavec
On 11 April 2018 at 22:37, Hans Hagen wrote:
> On 4/11/2018 10:08 PM, Brian Hunt wrote:
>
>> 3. Add texlua (and texluac?) to
>>a. the setup rsync bin/ directories
>>b. the tex/texmf-linuxmusl(|-ppc|-64)
>
> we don't use texluac, don't need texlua on windows and on linux texlua is
> just a symlink

This was entirely my fault which has been fixed in the meantime.

> if musl needs different bin then there should be a different initial
> download i think because basically we're now talking of: windows, osx,
> linux, linuxmusl (a different species)

Exactly. We have that. And most bits and pieces are in place to allow
that, except for the problem with mtxrun not being able to determine
the platform correctly.

>> 4. Update mtxrun
>>
>> Here's code that ought to work for detecting musl in mtxrun.  Around line
>> 3721 of the mtxrun add:
>>
>>  if find(architecture,"x86_64",1,true) then
>>platform="linux-64"
>>  elseif find(architecture,"ppc",1,true) then
>>platform="linux-ppc"
>>  else
>>platform="linux"
>>  end
>> +   if resultof("ldd --version 2>&1"):find("musl") ~= nil then
>> + platform = platform:gsub("linux", "linuxmusl")
>> +   end
>
>
> that's not going to happen, some system call 9each run) in order to
> determine what linux species we run ... (there are a few calls but these are
> never used becasue we use HOSTTYPE (if needed we can set one ourselves on
> these platforms)
>
> isn't there some magic env var that tels if musl is used? do programs and
> scripts really have to jumpo through such loops

Hans, we don't really need this code for the sake of minimals
themselves, it is part of ConTeXt code that needs it and fails.

The problem is that even if I properly detect the platform upfront,
your code (mtx-update) will refuse to respect the setting. When
calling
./bin/mtxrun --script ./bin/mtx-update.lua --force --update --make
--context=beta --platform=linuxmusl-64 --texroot="/some/path"
from musl linux, the mtx-update will insist in always installing and
using linux-64 binaries even if they don't work, no matter what else
we try.

I still believe that a string like "x86_64-linuxmusl" is something
that luatex itself should be able to return when asked about what
platform it is running on (what platform it has been compiled for).
We've discussed this with Taco many years ago, but this has never been
implemented.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Installing fonts in a ConTeXt Docker (texfont tool missing?)

2018-04-13 Thread Mojca Miklavec
Dear Michelle,

On 13 April 2018 at 11:13, Rodzis, Michelle wrote:
> Dear Mojca,
>
> obviously I have forgotten to add an important detail - the fonts I want to
> install are TrueType fonts. My bad and apologies!
>
> For installing ttf I've used
> http://tug.org/pracjourn/2005-2/schmitz/schmitz.pdf (also mentioned in wiki)
> so far, and it worked every time.

You can forget that procedure.
Just copy the fonts, you'll only need a few lines of code for defining
the typescripts (just ask for additional help if you need to get your
fonts working).

TrueType fonts are supported out of the box and should no longer need
that clumsy process.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Installing fonts in a ConTeXt Docker (texfont tool missing?)

2018-04-13 Thread Mojca Miklavec
On 13 April 2018 at 10:16, Rodzis, Michelle wrote:
> Dear list,
>
> currently I work on a customized Docker container based on Ubuntu 16.04
> where I run ConTeXt standalone. To install ConTeXt, I use the approach
> described in the wiki:
>
>
> RUN wget http://minimals.contextgarden.net/setup/first-setup.sh &&\
> sh ./first-setup.sh --modules=all
>
> After setting ConTeXt root everything works fine and as expected. However,
> the texfont tool seems to be missing which means I cannot install new fonts
> in my container.

Nowadays texfont is the wrong tool to use. It doesn't actually install
fonts, it merely converts them from, say, Type 1, to a zillion of
8-bit files (meaning that you won't even be able to use more than a
couple accented characters in that font). This was useful before TeX
supported OpenType fonts, but is a complete waste of time and
resources to go through that painful route nowadays.

You can just copy your own OpenType font files to, say,
texmf-fonts/data (and probably update the font database after that
with mtxrun).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Build for Alpine Linux

2018-04-08 Thread Mojca Miklavec
Dear Brian,

On 8 April 2018 at 16:56, Brian Hunt wrote:
> Hello everyone,
>
> Per this question on tex.StackOverflow, I am having trouble getting ConTeXt
> (LuaTeX specifically) to run on Alpine Linux:
>
> https://tex.stackexchange.com/questions/425463
>
> Specifically, the build from ConTeXt standalone has a LuaTeX that seems not
> to run against the musl libc6 library.

We have a "nearly working" one. At least all the binaries should be
there, see for example:
http://distribution.contextgarden.net/setup/linuxmusl-64/

There are two to three remaining problems:

1.) I disabled automatic musl recognition (short after enabling it)
after this bug report:
https://mailman.ntg.nl/pipermail/ntg-context/2018/091094.html
I need to finish "parsing"
https://mailman.ntg.nl/pipermail/ntg-context/2018/091123.html
and a few other posts in that thread and maybe make some additional
testing. There was some "oh no, it has to be the other way around"
discussion where I no longer followed and I need some more time to
read everything more carefully (no time for that right now).

2.) Most likely a patch in mtxrun is still needed (but I admit that I
didn't check) for proper platform recognition. The fact that we are
struggling in shell doesn't really help doing this part either :)

3.) Ideally we need to set up some automated LuaTeX builds to be able
to get the latest LuaTeX binaries in the future.

> Has anyone run ConTeXt on Alpine?

At the moment it should work if you install TeX Live 2018 pretest with
the ConTeXt scheme or if you fiddle a bit with the installation (you
need to hardcode the platform name in first-setup.sh and then still
some minor things might still go wrong, not sure). But in fact very
little is required to fix the remaining issues.

Can you please remind us to pick this up again in a couple of days?

In the meantime, if you are willing to do some more extensive testing
of patches (see full thread linked above) on both musl & non-musl
linuxes, in various shells etc., as well as perhaps come up with a
patch for mtxrun, that might help.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Mojca Miklavec
On 24 March 2018 at 18:36, luigi scarso  wrote:
> On Sat, Mar 24, 2018 at 5:51 PM, Mojca Miklavec wrote:
>> I reverted the change for now until someone can come up with a working 
>> command.
> can you send me offlist  the relevant *lua *sh script ?
> I cannot reproduce the error now  with linux/zsh.

echo "Henri's test:"
if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
then
echo "This is musl"
else
echo "This is libc"
fi

# not sure about the exact form
echo "Arthur's test:"
if command -v ldd --version 2>&1 | fgrep -q '^musl'
then
echo "This is musl"
else
echo "This is libc"
fi

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Mojca Miklavec
I reverted the change for now until someone can come up with a working command.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Mojca Miklavec
On 24 March 2018 at 13:30, Thomas A. Schmitz wrote:
> On 03/24/2018 12:14 PM, luigi scarso wrote:
>
>> hm, what does
>> command -v ldd >/dev/null && ldd --version 2>&1
>> say ?
>
> ldd (GNU libc) 2.26
> Copyright (C) 2017 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> Written by Roland McGrath and Ulrich Drepper.

So you don't have musl.

This means that we have a bug in first-setup.sh and setuptex then. I'm sorry.

>> it's a "long term", ie until  it's in texlive .
>> If not in texlive, it can be dropped, but not necessarily.
>
> Sorry, I don't understand, this sounds contradictory to me.

Well, we just dropped i386-darwin and powerpc-darwin from the
minimals, we dropped powerpc-linux some time before that which shows
that there's no super strong promise to keep the binaries there
forever (oh, and we also had i386-linuxmusl for a couple of days which
I deleted a few days after adding it because Karl removed it from TeX
Live). Whether that's considered "long term" is left as an exercise to
the reader. If getting the binaries gets difficult and there are no
users requiring support, the binaries will go.

> On 03/24/2018 12:15 PM, Hans Hagen wrote:
>> i have no clue what drives this but i suppose than a specific linux only
>> has one of these two libs
>>
>> (no sign of musl in my scripts here)
>
> I see this tex/setuptex:
>
> if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q
> ^musl
> then
> libc=musl
> else
> libc=glibc
> fi
>
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .
>>
>> it looks like that one has changed
>
>
> Even with the new first-setup.sh: when I run it, there are no new binaries
> in context/tex/texmf-linuxmusl-64/bin, so for the time being, context
> minimals are broken on arch linux (and its derivatives, I guess).

I was aware that until Hans implements support in mtxrun the first
installation on musl would be broken (I never liked this strange
dependency with mtxrun trying to guess the platform). But that should
not happen on a libc system, that's a bug.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] linux binaries split?

2018-03-24 Thread Mojca Miklavec
On 24 March 2018 at 11:59, Thomas A. Schmitz wrote:
> Hi,
>
> I wanted to use my minimal installation on arch linux this morning and
> received this error:
>
> Binaries for platform 'linuxmusl-64' are missing.
> (There is no folder "/mnt/shared/context/tex/texmf-linuxmusl-64/bin")
> provide a proper tex root (like '. setuptex /something/tex')
>
> Looking into setuptex, I see indeed a test for "libc=musl" or "libc=glibc,"
> so it appears that we now have two sets of binaries for linux-64? Is this
> supposed to be a long-term thing or just in the preparation for texlive
> 2018? (I share my minimal directory between several linux installations, so
> I assume I would need both sets?)

The binaries were requested (and provided) by Henri Menke:
   https://mailman.ntg.nl/pipermail/ntg-context/2018/090611.html

From what I understood (maybe I misunderstood) the regular linux
binaries would not even work on machines with musl, but maybe you have
both libc and musl installed?

It was not meant to be a short-term thing (unless/until we figure out
that there are too many problems with it and nobody uses it), but it
was probably never even tested properly and Hans did not yet implement
support in mtxrun, so maybe installing out-of-the-box would not yet
work, I don't have a machine to test it.

All the required binaries should be there though.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-22 Thread Mojca Miklavec
On 22 March 2018 at 10:51, Taco Hoekwater wrote:
>> On 22 Mar 2018, at 10:06, Mojca Miklavec wrote:
>>
>> I'm lost in those files and I'm not too eager to spend too much time
>> learning all that stuff from scratch.
>>
>> If there are any web technologies experts willing to take a look, I
>> can provide some source snippets offline.
>
> Same comment and offer from me. And I am possibly even more lost than Mojca …

If nothing else helps, we can of course always just put that simple
script that google suggests on the website and not bother about the
results ending up on a different-looking design.

It's still better to have an ugly result page than an error page.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] decomposed u umlaut

2018-03-22 Thread Mojca Miklavec
On 20 March 2018 at 08:42, Henning Hraban Ramm wrote:
> Ahoi,
>
> I’ve one annoying problem with ConTeXt: all üs (small u umlauts) seem to be 
> encoded as decomposed unicode or something like that, at least every ü breaks 
> into u + garbage if I copy some text from a ConTeXt PDF to an app that 
> doesn’t really support Unicode.

You are on macOS, right?

In my experience it was usually Apple's technology to blame. Perfectly
valid PDFs with proper accented characters would always end up with
decomposed characters when copy-pasting. Even pdftotext did a better
job.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Google Search in ConTeXt Garden

2018-03-22 Thread Mojca Miklavec
Hi,

On 18 March 2018 at 13:13, Pablo Rodriguez wrote:
> Dear list,
>
> when I use Google to search the wiki, such as in:
>
>   http://wiki.contextgarden.net/google/new2.html?q=xmldoifelseempty
>
> I get the following error message:
>
>   Unauthorized access to internal API. Please refer to
>   https://support.google.com/customsearch/answer/4542055
>
> Can anyone confirm this?

I hope that Taco will be able to check this.

The token is correct, but apparently the API changed in the meantime.
Google offers some code to copy-paste that can be used directly, but
our wiki uses some strange combination of php, our own skin (written
by Siep), standalone javascript files, some html pages with results to
avoid ending up on google directly etc.

I'm lost in those files and I'm not too eager to spend too much time
learning all that stuff from scratch.

If there are any web technologies experts willing to take a look, I
can provide some source snippets offline.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Support for musl

2018-03-21 Thread Mojca Miklavec
On 19 January 2018 at 11:40, Henri Menke wrote:
> Dear list,
>
> I'd like to support Linux platforms which use musl 
> (https://www.musl-libc.org/) instead of glibc, like for instance Alpine Linux.

I have added the TeX Live binaries. So in principle this could work now:

rsync -ptv rsync://contextgarden.net/standalone/setup/first-setup.sh .
./first-setup.sh

but I suspect that some changes in mtxrun might be needed for this to
work properly.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Support for musl

2018-01-31 Thread Mojca Miklavec
On 30 January 2018 at 00:23, Henri wrote:
> It looks like we are going to get upstream support for musl from TeX live.
>
> There is this extremely long thread on the tlbuild mailing list.
> https://tug.org/pipermail/tlbuild/2018q1/003972.html

Thanks a lot. This *enormously* simplifies things. (After your initial
reply to the tlbuild I nearly lost hope, please don't repeat such
attempts ... :)

> An automated build on Alpine Linux has been included in the TeX live 
> continuous
> integration on GitHub.
> https://github.com/TeX-Live/texlive-source/blob/master/.travis.yml
>
> What would I have to do in order to get an automated build for ConTeXt
> standalone for musl?

- We need "the latest" luatex. (It's not yet clear to me what "the
latest" means at this moment as it's still totally confusing to me and
we didn't configure the other builders yet either. Luigi sent me a
relatively confusing message about which branch should be used.)
- It would help to have a simple patch for
  http://distribution.contextgarden.net/setup/first-setup.sh
  to correctly detect the platform
- I would copy the TL binaries from you for now and later take them
from the subversion repository (I assume that would happen once the
updates are frozen).

> Hans might be interested in detecting musl libc automatically, which I have
> recently merged into GNU autotools:
> https://git.savannah.gnu.org/cgit/config.git/commit/?id=3d00f60242f1726fc6eaa38e09435a969ee7ebe5
> It uses ldd to detect whether musl is used because ldd prints "musl libc" to
> stderr.
> https://git.musl-libc.org/cgit/musl/tree/ldso/dynlink.c#n1538

That's something which I still believe should be somehow "hardcoded"
into LuaTeX itself, so that LuaTeX itself would be aware of which
platform it was compiled for. At the moment part of detection happens
in mtxrun, but that's somewhat strange.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Support for musl

2018-01-19 Thread Mojca Miklavec
On 19 January 2018 at 11:40, Henri Menke wrote:
> Dear list,
>
> I'd like to support Linux platforms which use musl 
> (https://www.musl-libc.org/) instead of glibc, like for instance Alpine Linux.
>
> How would I go about this?  Can you share existing build scripts for, e.g. 
> Linux-64?  Do I have to provide build infrastructure?

Can you please raise that question on the TeX Live mailing list?

If TL team is not willing to support it, we can still do it ourselves,
but let's first see if there's an "official" way to support it, also
with respect to naming.
We would need to set up a VM running that version of Linux + some
other stuff (at the moment we are experiencing some technical issues
with network and the build infrastructure and we need to fix the
existing issues first, but then we could look into it).

(Would you expect any other use besides you?)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] luatex binary is too old

2018-01-15 Thread Mojca Miklavec
On 15 January 2018 at 20:54, luigi scarso  wrote:
> Il 15 gen 2018 20:52, "Mojca Miklavec" ha scritto:
> On 15 January 2018 at 15:26, Mojca Miklavec wrote:
>> On 15 January 2018 at 14:56, Hans Hagen wrote:
>>> On 1/15/2018 2:47 PM, Roger Mason wrote:
>>>>
>>>> : Your luatex binary is too old, you need at least version 1.05!
>>>>
>>>> Where do I get the updated luatex binary?
>>>>
>>>> I'm running on FreeBSD 10.3, 32 bit.
>>>
>>> Does that binary come from the garden too?
>>
>> I can take a look.
>>
>> It's quite possible that FreeBSD didn't get updated after the problems
>> with firewalls and networks being shifted around at both ends.
>
> I tried to compile it, but it fails with
>
> In file included from
> ../../../source/libs/poppler/poppler-src/poppler/Annot.cc:62:
> In file included from
> ../../../source/libs/poppler/poppler-src/poppler/PDFDoc.h:53:
> ../../../source/libs/poppler/poppler-src/poppler/Form.h:271:79: error:
> unknown type name 'time_t'
>   SignatureInfo *validateSignature(bool doVerifyCert, bool
> forceRevalidation, time_t validationTime);
>
> ^
> ../../../source/libs/poppler/poppler-src/poppler/Form.h:534:79: error:
> unknown type name 'time_t'
>   SignatureInfo *validateSignature(bool doVerifyCert, bool
> forceRevalidation, time_t validationTime);
>
> ^
> 2 errors generated.
>
> Hm, trunk ?

Are you suggesting to distribute LuaTeX trunk for everyone?

Anyway, the same problem happens with the latest TeX Live sources as well.

I added
   #include 
to poppler-src/poppler/Form.h after which the build proceeds, but
later fails again building ICU.

../../../libs/icu/icu-src/source/i18n/coll.cpp:157:28: error: pasting
formed 'u"Collator"', an invalid preprocessing token
: ICULocaleService(UNICODE_STRING_SIMPLE("Collator"))
   ^

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] luatex binary is too old

2018-01-15 Thread Mojca Miklavec
On 15 January 2018 at 15:26, Mojca Miklavec wrote:
> On 15 January 2018 at 14:56, Hans Hagen wrote:
>> On 1/15/2018 2:47 PM, Roger Mason wrote:
>>>
>>> : Your luatex binary is too old, you need at least version 1.05!
>>>
>>> Where do I get the updated luatex binary?
>>>
>>> I'm running on FreeBSD 10.3, 32 bit.
>>
>> Does that binary come from the garden too?
>
> I can take a look.
>
> It's quite possible that FreeBSD didn't get updated after the problems
> with firewalls and networks being shifted around at both ends.

I tried to compile it, but it fails with

In file included from
../../../source/libs/poppler/poppler-src/poppler/Annot.cc:62:
In file included from
../../../source/libs/poppler/poppler-src/poppler/PDFDoc.h:53:
../../../source/libs/poppler/poppler-src/poppler/Form.h:271:79: error:
unknown type name 'time_t'
  SignatureInfo *validateSignature(bool doVerifyCert, bool
forceRevalidation, time_t validationTime);
  ^
../../../source/libs/poppler/poppler-src/poppler/Form.h:534:79: error:
unknown type name 'time_t'
  SignatureInfo *validateSignature(bool doVerifyCert, bool
forceRevalidation, time_t validationTime);
  ^
2 errors generated.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] luatex binary is too old

2018-01-15 Thread Mojca Miklavec
On 15 January 2018 at 14:56, Hans Hagen wrote:
> On 1/15/2018 2:47 PM, Roger Mason wrote:
>>
>> : Your luatex binary is too old, you need at least version 1.05!
>>
>> Where do I get the updated luatex binary?
>>
>> I'm running on FreeBSD 10.3, 32 bit.
>
> Does that binary come from the garden too?

I can take a look.

It's quite possible that FreeBSD didn't get updated after the problems
with firewalls and networks being shifted around at both ends.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Context minimals on linux armhf

2017-12-16 Thread Mojca Miklavec
On 15 December 2017 at 16:06, Lutz Haseloff wrote:
> Hi all,
>
> since some days, everytime I want to run first-setup.sh I get following
> error message.
>
> @ERROR: chroot failed
> rsync error: error starting client-server protocol (code 5) at main.c(1653)
> [Receiver=3.1.1]
>
> Is there something wrong with the rsync server?

Can you please retry?

I would say that it's weird that nobody reported it earlier, but it's
probably because if one runs the update on top of existing
distribution, the error skips by.

It looks as if the sysadmin was changing some paths on the system and
accidentally made one search-and-replace replacement too much.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] TikZ modules are missing \startmodule

2017-12-08 Thread Mojca Miklavec
Dear Christoph,

On 8 December 2017 at 08:38, Christoph Reller wrote:
> Hi,
>
> Since a module nesting check has been introduced in file-mod.mkvi, the TikZ
> modules provoke "module wrapping error" messages in the log file. May I
> kindly ask the maintainer of the TikZ modules to insert the missing
> \startmodule command in the following files:
>
> \tex\texmf-modules\tex\context\pgf\basiclayer\t-pgf.tex
> \tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfbim.tex
> \tex\texmf-modules\tex\context\pgf\basiclayer\t-pgfcor.tex
> \tex\texmf-modules\tex\context\pgf\frontendlayer\t-tikz.tex
> \tex\texmf-modules\tex\context\pgf\math\t-pgfmat.tex
> \tex\texmf-modules\tex\context\pgf\systemlayer\t-pgfsys.tex
> \tex\texmf-modules\tex\context\pgf\utilities\t-pgfcal.tex
> \tex\texmf-modules\tex\context\pgf\utilities\t-pgffor.tex
> \tex\texmf-modules\tex\context\pgf\utilities\t-pgfkey.tex
> \tex\texmf-modules\tex\context\pgf\utilities\t-pgfmod.tex
> \tex\texmf-modules\tex\context\pgf\utilities\t-pgfrcs.tex
>
> Kind regards,
> Christoph

Thanks for the report. I suspect that the maintainer of TikZ might not
be reading this mailing list (and is certainly not a ConTeXt user
himself).

I'm CC-ing him. The issue tracker is here:
https://sourceforge.net/p/pgf/bugs/

In the past Hans and Aditya wrote a number of patches for TikZ
(potentially even fixing this particular issues, I'm not sure), but
not all of them were included.

So ... we need some more persistence in making sure that things get
fixed. This list might be the best place to get the patches, but then
you need to make sure that the patches are actually included upstream.
(This reminds me that I probably need to check if TikZ is still
properly synchronized with upstream in our distribution. As far as I
know SF is dropping support for CVS and I need to check how we sync
the sources now.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new module seeking approval: handlecsv

2017-11-12 Thread Mojca Miklavec
On 11 November 2017 at 21:32, Pablo Rodriguez wrote:
> On 11/11/2017 08:01 PM, Mojca Miklavec wrote:
>> On 8 November 2017 at 20:46, Pablo Rodriguez wrote:
>>> [...]
>>> It can handle different .csv files to data merging for document
>>> automatic generation.
>>
>> It would be helpful to figure out what exactly is missing in the
>> built-in module written by Hans. Maybe that module could be upgraded
>> as well?
>
> If the module is
> tex/texmf-context/tex/context/modules/mkiv/m-database.mkiv, I think this
> is only intended for typesetting the database contents.

Well, it parses CSV files and typesets them in an arbitrary way.

> handlecsv enables document merging. With the first (stupid) sample that
> comes to my mind:
>
> \starttext
> \startbuffer
> \Name\ has completed the course {\em\Course}, achieving the
> following grade: \Grade.\page
> \stopbuffer
> \doloopforall{\getbuffer}
> \stoptext

Which is exactly what the other module supports. See page 4 of
http://dl.contextgarden.net/myway/csv.pdf

> Having to do that with before and after options would be a pain (in my
> opinion).
>
> You may page through
> https://github.com/ousia/handlecsv/blob/context-suite/doc/context/third/handlecsv/handlecsv.pdf
> to see the features.

The old module doesn't support invoking columns by title and doesn't
do any special filters. Another limitation might be that it uses #1,
#2, ... which reaches it limits pretty soon, but I'm sure that could
(should?) be fixed anyway.

And certainly the documentation by Jaroslav is much much better
written than my poor mock-up.

> I wonder whether it makes sense to extend the built-in module by Hans.
> If this wasn’t needed before, it may be not needed now.

This is an oxymoron. If the functionality is not needed: then why do
we need that new module in the first place? :)

What I want to encourage is one well-written and fully functional
module rather than ending up with ten solution, each one of them with
its own set of bugs. The MKII version of the database module
admittedly has a number of issues, in particular when it comes to
non-ascii. There might be issues with MKIV as well, I haven't used it
for a while because I now usually start with lua tables. But all in
all it would be much better to have some "perfectly working" built-in
functionality to parse CSV files in my opinion.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] new module seeking approval: handlecsv

2017-11-11 Thread Mojca Miklavec
On 8 November 2017 at 20:46, Pablo Rodriguez wrote:
> Dear Mojca,
>
> I have submitted the handlecsv module to
> https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=86.

Thank you. I believe we would need to have it accessible as an
extracted folder called t-handlecvs under

https://modules.contextgarden.net/dl/

Taco should probably figure out how to fix that.

> It can handle different .csv files to data merging for document
> automatic generation.

It would be helpful to figure out what exactly is missing in the
built-in module written by Hans. Maybe that module could be upgraded
as well?

> Would it be possible that it could be included in the ConTeXt Suite?

It would be helpful if Taco could fix another issue, see above.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ASCII input - non ASCII output

2017-11-08 Thread Mojca Miklavec
On 8 November 2017 at 15:36, Thomas A. Schmitz wrote:
> On 11/08/2017 11:34 AM, Mojca Miklavec wrote:
>>
>> I'm still not arguing that this is the most brilliant idea, but I can
>> totally imagine a Serbian professor wanting to "auto-generate" a
>> Cyrillic version of his book on top of the Latin edition with
>> close-to-zero extra effort.
>
> Ok, I can see that this may be a convenient way of producing different
> output from the same source; I wasn't aware of this (and I was somewhat
> provocative about Latex, of course :-) From a conceptional point of view, it
> still feels a bit hackish to do these things on the font level, because they
> are not/should not be tied to specific fonts - you'd have to rewrite your
> features or goodies or whatever they are called now for every font you want
> to use (and you may run into a number of funny inconsistencies in character
> names or even unicode slots).

Now for a bit of off-topic-ness.

Trivia. (Ignoring the attempts to make our own national keyboard) we
are using "Croatian" keyboard (which is probably the same as Serbian
layout) which has all the relevant-for-TeX keys ({}[]\) on the third
plane (alt-gr+), but I learnt computer programming on an US
keyboard and preferred using US layout to those strange keys in the
third plane. In computer programming there's basically never the need
to use non-ascii characters. And in writing texts in native language
there's no need to use those strange backslashes, so life was mostly
good until I started using TeX in UTF-8. Back then I was basically
switching the keyboard a couple of times per sentence (if not per
word) and somewhat hated typing any TeX in native language for that
reason. Then I switched to Dvorak and made myself a special layout.
Now I have all the special keys from US keyboard easily accessible and
all those strange non-ascii character on the third plane (alt-gr-C to
get "Č"). That works much better for me now. So at least I know the
pain of constant need of switching the layouts. Nevertheless I would
still say that it makes more sense to put some effort to get nice
UTF-8 documents. (Except, again, giving Serbian a bit of an exception
due to the fact that the document would still be valid and perfectly
readable in its Latin form.)

One could argue in the other direction as well. It should be pretty
straightforward to "transliterate" all ConTeXt commands into Cyrillic
(ok, I have no clue what people usually do with q, x, y, w, ... but
I'm sure there's a solution for that as well) and simply use English
commands in Cyrillic script to simplify typing :) :) :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ASCII input - non ASCII output

2017-11-08 Thread Mojca Miklavec
On 7 November 2017 at 20:38, Thomas A. Schmitz wrote:
>
> When mkiv was in its infancy, Hans helped me in writing something like this
> for my Greek module. It basically applies a Lua string.gsub to the input to
> produce and typeset utf8 output.

This would be done with font features now. So it would in fact not be
applied at input (which is more dangerous), but rather before the
characters end up in PDF which makes a lot more sense anyway.

The documentation is here, but there should be plenty more examples:
http://pragma-ade.com/general/manuals/fonts-mkiv.pdf

> I can send you the relevant code if you want, and you could adapt it
> to your case.

I'm pretty sure it's outdated if it was written at the infancy stage of mkiv.

> But I would advise against it. In the long run, changing
> keyboards is less hassle than this sort of semi-solution to an obsolete
> problem.

One reason why I would not abandon it *immediately* for Serbian is
that Serbian can actually be written in both scripts and there are
straightforward rules for transliteration (it's not exactly one-to-one
character, but those "dj"s should be easy enough to handle, in
particular because there are also all the required digraphs in Unicode
- or maybe more difficult exactly because of that). The fun part is
that they cannot decide which script to use themselves :), so you end
up with schoolmates using different scripts for their lecture notes.

I'm still not arguing that this is the most brilliant idea, but I can
totally imagine a Serbian professor wanting to "auto-generate" a
Cyrillic version of his book on top of the Latin edition with
close-to-zero extra effort.

Greek, in contrast, hardly makes any sense when written in Latin alphabet.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ASCII input - non ASCII output

2017-11-07 Thread Mojca Miklavec
Dear Sava,

On 7 November 2017 at 13:48, Sava Maksimović wrote:
> Hi,
>
> Is there a way in context, that for some text ascii input (in source .tex
> file) define mapping in internal tex system ?
>
> For example, if i put two ascii characters "dj" in .tex file, can i  get
> cyrillic character "ђ" in .pdf ?
> And so on, for input b, v, g, d, ... to get output б, в, г, д, ...
>
> Or more general, for every letter/string in unicode to define the way that
> it should be read.

ConTeXt can do that with some additional tricks (font features) in lua
(I don't know the code by heart, but I assume someone else will answer
that).

But you'll have to wrap all the code that you want transliterated in
blocks, so instead of having to switch the keyboard, you'll likely
have to type additional commands.

(Maybe it would work satisfactory without having to change too often,
but I would probably not want to do that and would prefer to go for
Unicode.)

> It's benefit for non ascii language users, because in that case they don't
> need to switch keyboard layout all the time between command, math input and
> text input.

Keep in mind that you could in principle also translate the command
names, so that you could use (excuse me, it's probably grammatically
incorrect):

\почнитекст
a, б, в, г, д, ђ, е, ж, з
\завршитекст

> In Latex, package fontenc(precisely OT2 encoding) do that things.
>
> Minimal example:
>
> \starttext
>
> a, b, v, g, d, dj, e, zh, z
>
> \stoptext
>
> should produce
>
> a, б, в, г, д, ђ, е, ж, з

Just curious: why do you use "zh" instead of "ž"?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] bug updating the ConTeXt Suite?

2017-11-06 Thread Mojca Miklavec
On 6 November 2017 at 20:07, Pablo Rodriguez  wrote:
> On 11/06/2017 07:04 PM, Floris van Manen wrote:
>> so is the error related to an incompatible luatex?
>
> Florian,
>
> I know that correlation isn’t causation, so I can only guess ;-).
>
> It might be that ConTeXt Standalone should have the binaries updated in
> all platforms.

I manually updated linux, but all other platforms are still outdated
from trunk. The tagged version doesn't compile at all (maybe it
requires C++11?).

There were some architectural changes and I'm not able to access some
build machines, including an old Mac VM (I can create a new one
locally, just not today).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Asymptote with Context

2017-11-02 Thread Mojca Miklavec
On 2 November 2017 at 09:54, Fabrice Couvreur wrote:
> Hi Aditya
>>
>> Are you using context minimals or texlive?
>
>  With Emacs, I work with context minimals and command 'ConTeXt Full' but I
> also tried with texlive  2017.

A more relevant question would be: where does your asymptote binary
come from and which OS are you using?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Asymptote with Context

2017-11-01 Thread Mojca Miklavec
On 1 November 2017 at 16:29, Ulrike Fischer wrote:
> Am Wed, 1 Nov 2017 09:50:47 -0400 (EDT) schrieb Aditya Mahajan:
>
>> The only reason that I can think of is that "import solids;" is
>> calling an external program and there are some settings in your
>> texmfcnf file that is restricting that program to run.
>
> I don't know much about asymptote but as I just tried to debug an
> error message in miktex: Imho the "solids" library calls the three
> library which tries to use the OpenGL-renderer.
>
> In miktex this fails (https://github.com/MiKTeX/miktex/issues/26)
> and the "solution" is to set the output format to pdf:
>
> https://tex.stackexchange.com/questions/398421/miktex-how-to-install-glut-library-on-windows/398674#398674
>
> Perhaps the problem here is due to a similar issue.

If this has something to do with OpenGL, a properly built asymptote
might solve the problem. Which OS and which distribution are you
using?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] installing ConTeXt on ARM linux

2017-10-06 Thread Mojca Miklavec
On 5 October 2017 at 22:52, Floris van Manen wrote:
> trying to install ConTeXt on an ARM (ubuntu) linux hos, then get this
> message with the request to report is on the mailing list:
>
> $ sh ./first-setup.sh --engine=luatex
> Error: your system "Linux aarch64" is not supported yet.
> Please report to the ConTeXt mailing-list (ntg-context@ntg.nl)
>
> is there a (beta) working version somewhere?

We didn't yet attempt to set up 64-bit binaries, even though I admit a
crime of having Pine64 [1] in a drawer since the end of the
Kickstarted campaign (which was more than a year ago). I even
considered bringing it to the ConTeXt meeting and setting it up there,
but I only set up the Raspberry (there was enough of other things to
do and an unique opportunity to talk to other developers, so too much
hacking would not be desirable).

I can try to set it up (the only problem is that I will be away for
nearly a month and might not manage to set it up before I leave) in
which case you would get all the binaries working automatically. The
other alternative is that someone else builds both TeX Live binaries
and LuaTeX for now and we add a new machine to our buildfarm later. In
any case we need to manually add that architecture to the list to
start syncing the necessary binaries.

Johannes was thinking of adding binaries to TeX Live.

Mojca

[1] 
https://www.kickstarter.com/projects/pine64/pine-a64-first-15-64-bit-single-board-super-comput
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Who is maintaining the modules website?

2017-09-14 Thread Mojca Miklavec
Hi,

On 13 September 2017 at 15:06, Christoph Reller wrote:
>
> I am unsure whether this mailing list is the correct one to ask this
> question. So please excuse the noise.

It is.

> I tried to send an email to modu...@contextgarden.net and got the below
> reply. On https://modules.contextgarden.net/help.html, this email address is
> mentioned as the primary contact point to the maintainer of the
> modules.contextgarden.net website. Who can I contact if I have a problem
> with this website?

Taco Hoekwater, currently busy at the ConTeXt meeting:
http://meeting.contextgarden.net/

But if the above email is not working, we'll fix it. I suspect that
Taco asked me to create a mailing list and I forgot.

Anyway, reporting infrastructure problems on this mailing list is also
perfectly fine.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-28 Thread Mojca Miklavec
On 28 August 2017 at 07:53, Pablo Rodriguez wrote:
> On 08/27/2017 10:30 PM, Mojca Miklavec wrote:
>> Dear Pablo,
>>
>> On 27 August 2017 at 22:23, Pablo Rodriguez wrote:
>>> how can I add the *.icc files into
>>> tex/texmf-context/colors/icc/? Is this allowed for a module?
>>
>> They would end up in $wherever/texmf-modules rather than in
>> $wherever/texmf-context, but that should not matter.
>
> Sorry for asking the most basic questions, Mojca. I never made a module
> in ConTeXt and the task isn’t obvious to me.
>
> I have to include the profiles in $context/tex/texmf-modules/colors/icc
> and documentation in
> $context/tex/texmf-modules/doc/context/third/icc-profiles/.

No. In case you want the mentioned paths you would probably use
colors/icc/
doc/context/third/t-

> Is there any documentation on how to create a module?
>
> I read something in the wiki, but it was all about namespaces and I
> think they aren’t required here.

I leave that to others.

>> If you prepare the module, you might want to include some simple docs
>> about using the profiles :)
>
> With the documentation, I may write a simple README.md file and include
> a directory with examples (from the wiki ;-)).

It's often helpful to have a tex document with the generated pdf, so
that users can also see the effect (picture is worth thousand words)
and have a working tex source they can modify, but a plain text (or
markdown) should be acceptable.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-27 Thread Mojca Miklavec
Dear Pablo,

On 27 August 2017 at 22:23, Pablo Rodriguez wrote:
> how can I add the *.icc files into
> tex/texmf-context/colors/icc/? Is this allowed for a module?

They would end up in $wherever/texmf-modules rather than in
$wherever/texmf-context, but that should not matter.

If you prepare the module, you might want to include some simple docs
about using the profiles :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] ICC profiles in the ConTeXt Suite?

2017-08-27 Thread Mojca Miklavec
Hi,

On 27 August 2017 at 19:24, Pablo Rodriguez wrote:
> Dear Mojca,
>
> [I beg your pardon, if you aren’t the maintainer of the ConTeXt Suite
> distribution. In that case I address this message to whom it might
> concern :-).]
>
> After reading some messages about PDF/A and PDF/X, I remembered that all
> my work documents should be PDF/A.
>
> Since we have ICC profiles in the ConTeXt Garden
> (http://wiki.contextgarden.net/PDFX#ICC_profiles,
> http://dl.contextgarden.net/misc/iccprofiles/complete_ICC_profiles.zip),
> I wonder why they aren’t part of the ConTeXt Suite.

I see various reasons:
- I don't remember anyone explicitly asking for them.
- I suspect that Hans is not allowed to put them into his zip due to
various licencing issues, but it also increases the size.
- It's a bit inconvenient to fetch the files from a random place. The
easiest way to handle that would be by creating a proper ConTeXt
third-party module and then we would only add another module to the
list.

> This would make things easier to create some kinds of PDF documents.
>
> In my personal case, I cannot update the ConTeXt Suite at work. I have
> to download it at home and replace the directory. Having to add the ICC
> profiles each time is something I’d rather avoid.
>
> If there is something I can do to add those files to the ConTeXt Suite,
> please tell me and I will do it.

It would help if other people provide more feedback, but probably the
best way would be to create a module and upload it to
modules.contextgarden.net. Maybe best get some feedback about the most
suitable location of the files before creating the module?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-07-27 Thread Mojca Miklavec
On 27 July 2017 at 10:49, Hans Hagen wrote:
> On 7/27/2017 3:52 AM, Mojca Miklavec wrote:
>>
>> Hi,
>>
>> I just wanted to say that I found a more reliable way to go from
>> metapost to dxf.
>>
>> First run "context something.mp" and then
>>
>> pstoedit -dt -f dxf:-polyaslines\ -mm something.1 something.dxf
>>
>> For some reason the SVG files from metapost get wrong dimensions when
>> converted via inkscape, but pstoedit works super reliably.
>
>
> in that case you can consider:
>
> mp -> pdf -> mudraw/mutool -> svg

The thing is: I don't need svg at all. All I need is dxf and now I
finally have a reliable way to get it from metapost via pstoedit. SVG
was just a workaround since converting from PDF was slightly more
difficult (latest versions of expensive tools provide that conversion
too, but OpenSource is more limited).

I could check if there's any difference in SVG code as generated by
metapost vs. the one generated by mudraw. But SVG images made by
CorelDraw were misconverted by Inkscape as well.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-07-26 Thread Mojca Miklavec
Hi,

I just wanted to say that I found a more reliable way to go from
metapost to dxf.

First run "context something.mp" and then

pstoedit -dt -f dxf:-polyaslines\ -mm something.1 something.dxf

For some reason the SVG files from metapost get wrong dimensions when
converted via inkscape, but pstoedit works super reliably.

Mojca

On 29 June 2016 at 12:31, Mojca Miklavec wrote:
> Hi,
>
> I want to play with CNC and don't yet have any experience with CAD
> software (nor the licence for the expensive ones) other than perhaps
> some Blender, so I decided to try to use the super ugly route with
> metapost -> svg -> dxf -> g-code
> for the first time.
>
> I have a few questions.

/.../

> (3) Is there any way to convince the SVG output mode to generate something 
> like
> 
> rather than
> 
> because the program I use to convert SVG to DXF has troubles
> interpreting "points" properly. I read somewhere that they assume 90
> points per inch because that's Inkskape's default.
>
> (4) Does anyone have a better proposal for conversion into DXF (or
> G-code)? I'm currently playing with FreeCAD and I've seen some
> tutorials showing that AutoCAD can open PDF directly, but I don't want
> to buy AudoCAD just for the sake of converting files.
>
> Thank you,
> Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-16 Thread Mojca Miklavec
On 15 June 2017 at 15:08, Mathias Schickel wrote:
>
> Okay. Does that mean that there is not yet a version for MacOS? If I am right 
> I cannot find files for MacOS at your link above. Then I will wait and 
> typeset my files on Windows until the new version is released.

Please try to update the ConTeXt distribution now.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-15 Thread Mojca Miklavec
On 15 June 2017 at 13:39, Hans Hagen wrote:
> On 6/15/2017 12:05 PM, Mathias Schickel wrote:
>>
>>> So I am simply asking: How can I use older betas or how can I get the
>>> source of LuaTeX 1.05 on a Mac and compile it?
>
> Mojca is setting up the build bots so one of these days there will be
> binaries.

You can fetch it from here:
http://dl.contextgarden.net/build/luatex/
(those binaries should end up in minimals very soon).

But on Mac we are currently experiencing some build problems on
existing machines, most likely due to some problems with outdated
timestamps of generated files. I'm waiting for Luigi to fix the
problem.

But aside from that. If you (developers, not users) want to call one
version of LuaTeX 1.05, you should tag a version 1.05.

Increasing the version numbers in trunk and skipping any official
releases is a pretty bad development practice.

Usually you would put experimental features to trunk and whatever you
want to end up at users to tags or potentially stable maintained
branches that get bugfixes.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-05 Thread Mojca Miklavec
On 5 May 2017 at 21:54, Aditya Mahajan wrote:
> On Thu, 4 May 2017, Mojca Miklavec wrote:
>
>> There's a really nice module for processing markdown:
>> https://github.com/Witiko/markdown
>> that has been presented during the TUG meeting and is included in TeX
>> Live.
>
> This is a fork of luamark (by the author of pandoc). Wouldn't it be better
> to provide an interface around that? Is it simply providing a tex interface
> around luamark or are there any changes in the parser as well.
>
> Any idea how it compares with the markdown parser in m-markdown already
> included in ConTeXt?

I'm CC-ing the author since I don't know answers to these questions,
but it would indeed be nice to end up with one single good module
rather than having two slightly different incompatible ones with the
same name.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Module for Markdown: any volunteer to make a ConTeXt interface?

2017-05-04 Thread Mojca Miklavec
Hi,

There's a really nice module for processing markdown:
 https://github.com/Witiko/markdown
that has been presented during the TUG meeting and is included in TeX Live.

It theoretically works for ConTeXt (the output is perfectly usable),
but it needs a cleanup of the user interface to turn the options on
and off.

For example, it would be nice to use something like

\setupmarkdown
[fencedCode=true]

rather than

\def\markdownOptionFencedCode{true}

Is anyone willing to look into the code and help the author fix the interface?

(I can add it to our distribution if needed.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] include google maps in context document

2017-05-04 Thread Mojca Miklavec
On 4 May 2017 at 15:59, Henning Hraban Ramm wrote:
> Am 2017-05-04 um 13:46 schrieb Mojca Miklavec:
>> On 4 May 2017 at 13:30, DesdeChaves wrote:
>>>
>>> Can you provide me a example (or a link) for use OpenStreet Maps in context?
>>>
>>> Perhaps I can track my displacements with my phone and superimpose those
>>> tracks with the OpenStreet Maps.
>>
>> See the attachment (you need to extract the osm file before running context).
>
> Wow, that looks like something I need, thank you so much!
> Why didn’t anyone publish this as a module or on the wiki?

Blame me :(

Hans wrote most of the code and told me to document it.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] include google maps in context document

2017-05-04 Thread Mojca Miklavec
On 4 May 2017 at 15:20, Ulrike Fischer  wrote:
> Am Wed, 3 May 2017 22:12:54 +0100 schrieb DesdeChaves:
>
>> For this I must include in my report a
>> gloogle maps image with the path and the distance covered.
>
> [...]
>
>> Anybody know a simply way to make this work or this is a too hard task for
>> now.
>
> There is a LaTeX-Package called getmap.
> http://www.ctan.org/pkg/getmap
> It's documentation contains also some remark about how to get
> routing. Perhaps you find something useful in it.

Thank you.

This looks like something worth porting to ConTeXt :)
Even if implemented from scratch, the package could be used to borrow
the hacks. The syntax is pretty clean (and already relatively
"ConTeXt"-ish):

\getmap[file=berlin, mode=gm, language=de, scale=2, 8 xsize=400, ysize=600,...]

To Jorge: I would probably use LaTeX to fetch the maps and then
include the images into ConTeXt as the first workaround if you need
the maps in a ConTeXt document and need a fast solution.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] include google maps in context document

2017-05-04 Thread Mojca Miklavec
On 4 May 2017 at 13:30, DesdeChaves wrote:
>
> Can you provide me a example (or a link) for use OpenStreet Maps in context?
>
> Perhaps I can track my displacements with my phone and superimpose those
> tracks with the OpenStreet Maps.

See the attachment (you need to extract the osm file before running context).

Mojca


bachotex.tex
Description: TeX document


bachotex.osm.gz
Description: GNU Zip compressed data


bachotex.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] include google maps in context document

2017-05-04 Thread Mojca Miklavec
Hi,

On 3 May 2017 at 23:12, DesdeChaves wrote:
> Dear Sirs
>
> I need to justify my displacements from my school to the various companies
> where I have students in training. For this I must include in my report a
> gloogle maps image with the path and the distance covered.
>
> In the browse o found all the information that I need. For example, with an
> url address like:
>
> http://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=San+Francisco&mode=driving&sensor=false
>
> i get a json response, but not the google map image.
>
> If I try an address like this
> "https://www.google.pt/maps/dir/Chaves/Valpaços/"; I found all information in
> the browser, but I need to include it in my context document report.
>
> Anybody know a simply way to make this work or this is a too hard task for
> now.

This is not really a ConTeXt-related question, but ConTeXt can include
any image you can feed to it, and potentially fetch images from URL on
the fly. So you first need to figure out how to get the image you
want.

See:
https://developers.google.com/maps/documentation/static-maps/intro

You first need your own API_KEY.

If you have problems with the interface, ask on stackexchange or
elsewhere. If you have problems with making as automatic workflow as
possible (once you know how to get your PNGs exactly), you may ask
here. But have the rest of the details ready.

ConTeXt supports "natively" drawing OpenStreet Maps, but I doubt it
would work in your case.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] The Wiki is down

2017-05-01 Thread Mojca Miklavec
On 2 May 2017 at 01:41, Henri Menke wrote:
> No it is not just me:
>
> http://www.isup.me/http://wiki.contextgarden.net

The machine doesn't even seem to ping for me.

Taco is at TUG / BachoTeX meeting at the moment with close-to-no
internet access, so it might be tricky to fix this before Thursday.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Wrong redirection in contextgarden.net

2017-04-29 Thread Mojca Miklavec
On 29 April 2017 at 20:25, Nicola  wrote:
> On 29/04/2017 18:05, Mojca Miklavec wrote:
>>
>> On 29 April 2017 at 09:47, Nicola wrote:
>>>
>>> For a while now, when I connect to contextgarden.net, I get redirected
>>> to wiki.contextgarden.net// (note the double slash). Is it just me, or
>>> something to be fixed in the web site?
>>
>>
>> The server uses
>> RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1
>>
>> I'm looking for a better suggestion.
>
> Wouldn't just
>
>   Redirect permanent / http://wiki.contextgarden.net/
>
> do? (It may be recursive if the virtual host is the same.)
>
> If not, how about:
>
> RedirectMatch permanent ^/(.*)$ http://wiki.contextgarden.net/$1
>
> As a last resource, mod_rewrite should work:
>
> RewriteEngine on
> RewriteCond %{HTTP_HOST} ^contextgarden\.net$ [NC]
> RewriteRule ^(.*)$ http://wiki.contextgarden.net/$1 [R=301,L]

Thank you for suggestions, I'll do some testing.

In case I forget, please remind me about this after the 4th May. We
currently have as good as no internet connectivity and I would hate to
break the server while experimenting and then being unable to do
anything afterwards.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Wrong redirection in contextgarden.net

2017-04-29 Thread Mojca Miklavec
On 29 April 2017 at 09:47, Nicola wrote:
> For a while now, when I connect to contextgarden.net, I get redirected
> to wiki.contextgarden.net// (note the double slash). Is it just me, or
> something to be fixed in the web site?

The server uses
RedirectMatch permanent ^(.*)$ http://wiki.contextgarden.net/$1

I'm looking for a better suggestion.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] a question on setuptex

2017-02-17 Thread Mojca Miklavec
On 17 February 2017 at 23:38, Pablo Rodriguez wrote:
> Hans,
>
> would it be possible that a 32bit ConTeXt Suite can be used with a 64bit
> architecture in Linux?
>
> Sorry, but yesterday I was surprised to see that setuptex isn’t able to
> find any binaries in Linux if they are 32bit and the processor is 64bit.
>
> Of course, it makes sense in that case that a ConTeXt Suite with 64bit
> binaries is preferred. But as a fallback, 32bit binaries should be fine.

It should work in principle. Just set "platform=linux" before calling
mtx-update.lua and disable '--make'. (You could in principle also call
rsync manually.) And then all you need to do is set the PATH to
binaries.

The problem is that unless something changed, mtxrun will most likely
be causing you some troubles and will insist in fetching x86_64 (I'm
not sure how to completely avoid that).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2017-02-16 Thread Mojca Miklavec
On 16 February 2017 at 21:07, William Adams wrote:
> Another option here would be to use a tool which directly accepts SVGs ---
> one free/opensource tool for that is PartKAM/MakerCAM.
>
> My apologies for the late response --- investigating this sort of thing
> myself, though I'll likely be using a proprietary tool, Carbide Create to
> drive either a Nomad or a Shapeoko.

Now that you brought this topic out of the dead ...

I managed to convert the SVG to DXF somehow back then (I'm not 100%
sure how exactly, perhaps I was using Inkscape), but it turned out
that the conversion was faulty and useless (it converted circles into
octagons, proper scaling was lost, etc.), but I only realized that
once I got to the machine with a limited time slot.

The software that was installed next to the CNC did not accept PDFs,
but eventually the "operator" pulled out his laptop with a newer
version of (commercial) software and eventually imported my PDFs to
get the models for the CNC (annoyed for the fact that I didn't bring
"ready-to-use" files). He earlier explained that we should avoid PDFs
(as they could be bitmap etc.), but of course the vector PDFs
generated by ConTeXt were fine.

(It will probably be a while until I will go there next.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Text editors

2016-10-25 Thread Mojca Miklavec
On 25 October 2016 at 10:17, Taco Hoekwater wrote:
>> On 24 Oct 2016, at 13:41, Henning Hraban Ramm wrote:
>>
>> Hi all,
>>
>> I just edited http://wiki.contextgarden.net/Text_Editors,
>> reordered, updated, killed some discontinued programs etc.
>>
>> I didn’t delete wiki pages of outdated apps, though.
>
> I use textmate, and so does Mojca, I think. I also do not think it
> is outdated, but the link to Patricks bundle was. It is available from
> here: http://dl.contextgarden.net/support/textmate/context-tmbundle.dmg

I added it back. It's one of the best editors around, even if not a
TeX-centric one.

A better link to the bundle might be
https://github.com/pgundlach/context.tmbundle/

It's old, but it still works. At some point it might make sense to
update it with the latest list of commands that Wolfgang assembled.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Deleted modules (fixme, games, lilypond, sgf)

2016-10-12 Thread Mojca Miklavec
Hi,

The following modules disappeared from Taco's server:

- t-fixme
- t-games
- t-lilypond
- t-sgf

Can you please confirm that all four modules should be removed from
CTAN & TeX Live as well as from the ConTeXt distribution?

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-11 Thread Mojca Miklavec
On 11 October 2016 at 15:33, Henri Menke wrote:
> On 10/10/2016 03:59 PM, Mojca Miklavec wrote:
>> On 10 October 2016 at 15:31, Henri Menke wrote:
>>> I have found another thread reporting the same problem
>>>
>>> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>>>
>>> However, Hans only replied with »has been fixed already«.
>>>
>>> Does anyone know how to find the fix?
>>
>> Unless Hans remembers what he fixed exactly, my only idea is doing a
>> bisection over
>> https://bitbucket.org/phg/context-mirror/commits/all
>
> Okay.  This does not make *any* sense!  I started merging files until the bug 
> disappeared and it happened when I merged cont-new.mkiv.  The diff is
>
> -\newcontextversion{2016.05.17 10:06}
> +\newcontextversion{2016.07.01 16:28}
>
> So this is basically the version number.  Can someone enlighten me what is 
> going on?

I would suspect that changing the version number triggers regenerating
the formats. Most likely one of the other files fixed the problem, but
the problem only disappeared once you regenerated the format. That's
pure guesswork though.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Paranormal bug in TL 2016

2016-10-10 Thread Mojca Miklavec
On 10 October 2016 at 15:31, Henri Menke wrote:
> I have found another thread reporting the same problem
>
> https://www.mail-archive.com/ntg-context@ntg.nl/msg82349.html
>
> However, Hans only replied with »has been fixed already«.
>
> Does anyone know how to find the fix?

Unless Hans remembers what he fixed exactly, my only idea is doing a
bisection over
https://bitbucket.org/phg/context-mirror/commits/all

In case you find the fix, I can "backport" it to TL's repository and
users doing regular upgrades with tlmgr will get it at least.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Unable to use Martin Vogels Symbols

2016-10-10 Thread Mojca Miklavec
On 7 October 2016 at 22:53, Jonas Baggett wrote:
> Hello,
>
> I am using debian testing and I am trying to use Martin Vogels Symbols with
> no success so far. I have compiled a file containing the following :
> \usesymbols[mvs]
> \setupsymbolset [martinvogel 2]
> \starttext
> Telephone : \symbol[Telephone]
> \stoptext
>
> But it failed to show the telephone symbole in the pdf, unless compiled with
> texexec instead of context. I have the following lines in the log file (in
> attachement) :
> fonts   > defining > forced type 'ttf' of 'marvosym' not found
> fonts   > defining > font with asked name 'marvosym' is not found
> using lookup 'file'
> fonts   > defining > unknown font 'marvosym', loading aborted
> fonts   > defining > unable to define 'marvosym.ttf' as
> 'currentsymbolfont--0'
>
> marvosym.ttf is located here :
> /usr/share/fonts/truetype/ttf-marvosym/marvosym.ttf. Then I tried to reload
> manually the fonts like this :
> $ export OSFONTDIR="/usr/share/fonts"
> $ mtxrun --script fonts --reload
> $ context --generate
>
> Normally marvosym.ttf should be found but it isn't the case as showed by the
> following command :
> $ mtxrun --script fonts --list --all --pattern=marvosym*
> marvosym   marvosym   marvosym.afm
> marvosymwithtexsupport marvosym   marvosym.afm
> marvosymwithtexsupportnormal   marvosym   marvosym.afm

I would suspect that OSFONTDIR or something else in the process
doesn't work correctly.

ConTeXt will only be able to typeset the document if it can find the font.

All the Debian developer can do is add the font to the equivalent of

/usr/local/texlive/2016/texmf-dist/fonts/truetype/public/marvosym/marvosym.ttf
(not sure where exactly that is), but it might be that their policy is
not to duplicate fonts, who knows.

So independent of whether or not this gets resolved in Debian, you
should figure out why the font isn't found by ConTeXt. It might also
be that ConTeXt only finds the Type1 fonts and then stops searching
any further.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Communative diagrams with TikZ & ConTeXt

2016-10-06 Thread Mojca Miklavec
(was: MacOS system wide installation)

On 6 October 2016 at 15:31, Hans Åberg wrote:
>> On 6 Oct 2016, at 15:19, Mojca Miklavec wrote:
>>
>> On 6 October 2016 at 15:13, Hans Åberg wrote:
>>> For the MacOS system wide installation [1], the command 'sudo sh 
>>> ./first-setup.sh' does not have arguments for modules and engine, as for 
>>> the local installation. Is that correct?
>>
>> No, it is not. "sudo sh" just means that you are running the same
>> command as root. You can/should just as well use --modules=t-tikz or
>> --modules=all
>
> I did run the latter, but still get an error [1]. The example is from [2].
>
> 1. Package tikz Error: I did not find the tikz library 'commute'. I looked 
> for files named tikzlibrarycommute.code.tex and pgflibrarycommute.code.tex, 
> but neither could be found in the current texmf trees.
>
> 2. https://mailman.ntg.nl/pipermail/ntg-context/2013/073368.html

Sorry, I couldn't resist, but post a link to:
http://xkcd.com/1742/

This goes to the
Anything that "requires only minimal configuration and tweaking"
part :)

I don't have the file tikzlibrarycommute.code.tex on my machine
either. Anywhere. Not in the ConTeXt distribution nor in TeX Live.
That file was only posted to the mailing list by Idris and apparently
nobody ever looked at it or added it anywhere.

(It usually helps to provide a minimal example or a bit more context.
Just saying that something doesn't work is a bit more difficult to
debug.)

If you want to get this work out of the box, it would be super useful
to coordinate with the original author of tikz-cd to add support for
ConTeXt. And if any other patches are needed, we should try to
coordinate with upstream TikZ authors as well. I'm not sure what to do
with "&" though. We could theoretically add that file to the ConTeXt
distribution, but we'll then end up with other people asking why it
doesn't work in TeX Live and I certainly cannot afford to do
unauthorized changes to other TikZ files without getting a formal
approval that something is broken and without at least getting some
patch scheduled for approval by TikZ developers.

So if you want to get that working temporarily, it's probably best to
follow instructions in that email. If you want to get it fixed
properly, we should convince the authors to add support upstream. I
didn't look at the file(s) yet.

Mojca

PS: I have to add that I'm recently experiencing problems syncing with
upstream TikZ sources - CVS (this has been a problem for perhaps two
months or so).
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] MacOS system wide installation

2016-10-06 Thread Mojca Miklavec
On 6 October 2016 at 15:13, Hans Åberg wrote:
> For the MacOS system wide installation [1], the command 'sudo sh 
> ./first-setup.sh' does not have arguments for modules and engine, as for the 
> local installation. Is that correct?

No, it is not. "sudo sh" just means that you are running the same
command as root. You can/should just as well use --modules=t-tikz or
--modules=all

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Recommendations on presentations

2016-10-06 Thread Mojca Miklavec
On 6 October 2016 at 08:37, Jan U. Hasecke wrote:
> Am 05.10.2016 um 11:15 schrieb Nicola:
>> On 2016-10-05 08:25:03 +, Otared Kavian said:
>
 Is it better to simply define the layout from scratch?
>>
>> For me, yes. I have found this step-by-step guide good to start with:
>>
>> https://github.com/adityam/context-slides-example
>
> From a quick glance I'd say that this is a better start for me too. At
> least I find my way through the code.
>
>> I may send you my current template, adapted from the above, if you want
>> (some things there are a bit outdated, if I remember correctly).
>
> That would be really nice.
>
> My design requirements are very simple but very different to the styles
> I saw so far.

If you will come (or have come) up with a nice style, it could be
added to the module for others.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Mailing list search software

2016-10-03 Thread Mojca Miklavec
On 3 October 2016 at 15:44, Jan U. Hasecke wrote:
> Am 03.10.2016 um 15:03 schrieb Taco Hoekwater:
>
>> Surely there must be something better out there? Or maybe we should not
>> care at all and use Google indexing only like we do now on the wiki?
>
> Recently I saw people using
> https://www.sympa.org
>
> From my point of view this is a solution for big mailinglists, but maybe
> you will find someone running an installation free for open source projects.

Having a free installation is not an issue. Sympa *is* opensource. But
it serves as a replacement for the whole Mailman installation rather
than just an interface for accessing the archives.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Looking for wiki master(s)

2016-09-28 Thread Mojca Miklavec
Hi,

While discussing the state of the wiki during the ConTeXt conference,
we came up with proposal to find a person (or a small group of people)
whose task would be to:

- extract the list of all existing wiki pages (you can get help with that)
- group them in reasonable blocks (fonts, graphics, installation, ...)
- push/remind the community to look into individual blocks at scheduled times

We could for example have special "focus weeks" such as "installation
week" where a list of all pages related to installation would be
posted on the mailing list with the goal to clean those chapters up or
to write the missing content. We need someone who will post reminders
and push people.

It would also be very helpful to have someone who would come up with a
list of missing topics and some proposals to restructure and better
organize the pages.

(We realized that it might be easy to find people to go over one
single page at a time, but no one has stepped forward to actively
organize this work.)

Looking forward to hear from new volunteers,
Mojca (in the name of the brainstorming group at the ConTeXt meeting)
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] OT: The joy of Unicode @ xkcd

2016-08-29 Thread Mojca Miklavec
Amazing one:
http://xkcd.com/1726/

Don't forget that this topic will be also be covered at the ConTeXt
meeting (Monday at 2 pm) along with another "XKCD made a reality", so
make sure to join us at the ConTeXt meeting next month if you are
curious:
http://meeting.contextgarden.net/2016/pr2016.pdf
http://meeting.contextgarden.net/2016/register.shtml

Mojca


Spoiler:
- http://www.explainxkcd.com/wiki/index.php/1726
- http://unicode.org/L2/L2016/16072-jurassic-emoji.pdf
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 13:36, Procházka Lukáš Ing. wrote:
> Hello Mojca,
>
> I tried this:
>
> mtxrun --script scite --tree --numbers --source=Attach.mkiv
> --target=Attach.txt
> mtxrun --script scite --tree --numbers
> --source=d:/Lukas/ConTeXt/Test/Attach.mkiv --target=Attach.txt
> mtxrun --script scite --tree --numbers
> --source=d:\Lukas\ConTeXt\Test\Attach.mkiv --target=Attach.txt
> mtxrun --script scite --tree --numbers
> "--source=d:\Lukas\ConTeXt\Test\Attach.mkiv" --target=Attach.txt
>
> all above in the situation when being in
> d:\Lukas\ConTeXt\Test (current directory)
> and with existing file
> d:\Lukas\ConTeXt\Test\Attach.mkiv (source file to test
> pretty-printing).
>
> In all situations I received
>
> "
> mtx-scite   | you need to pass a valid source path with --source
> "
>
> Any idea what's wrong?

I suspect that the script wants folders.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 11:24, Procházka Lukáš Ing. wrote:
> Hello Mojca,
>
>> I'm sure Hans knows the invocation by heart, but I can look it up as well.
>> This is how the output looks like:
>> http://source2.contextgarden.net/tex/context/sample/sample-tex.html
>
> yes, that's the look I'd like to achieve.

These pages have been generated with

mtxrun --script scite --tree --numbers \
--source= \
--target=

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-24 Thread Mojca Miklavec
On 24 August 2016 at 09:05, Procházka Lukáš Ing. wrote:
> Hello Mojca,
>
> thanks for the answer.
>
> I need a COMMAND LINE solution for Windows - my intention is to process many
> (tens-hundreds) ConTeXt files into HTML - just to make their code
> better-readable.

Vim *is* command-line, isn't it?
(And if you ask me, it is a lot more user-friendly on Windows than it
is on Linux/Mac :)

> And - as e.g. Ctx wiki has pretty-printing Ctx source - I believe there is
> such tool...

That must be some php plugin.

But you just reminded me that ConTeXt in fact has a lua script build
in already that generates a "pretty-printed" HTML that's basically the
same as what you see in Scite.

I'm sure Hans knows the invocation by heart, but I can look it up as well.
This is how the output looks like:
http://source2.contextgarden.net/tex/context/sample/sample-tex.html

Mojca

> On Wed, 24 Aug 2016 08:13:06 +0200, Mojca Miklavec wrote:
>
>> On 24 August 2016 at 07:15, Lukáš Procházka wrote:
>>>
>>> Hello,
>>>
>>> does anybody know about a tool (maybe ConTeXt has something like this
>>> built-in) which would convert ConTeXt code into pretty-printed HTML code?
>>>
>>> E.g.:
>>>
>>>  t.mkiv
>>> \starttext
>>>   \foo[bar] baz
>>> \stoptext
>>> 
>>>
>>> to be rewritten into e.g.:
>>>
>>>  t.html
>>> \starttext
>>>   \foo[bar>> class="bracet">] baz
>>> \stoptext
>>> 
>>
>>
>> I used vim and TextMate (text editors) in the past to achieve that.
>>
>> In theory ConTeXt has XML/HTML output and can parse text either using
>> the vim module or the built-in lua-based lexers, so it's probably
>> doable, but it might be far easier to go through some text editor. I'm
>> sure Scite (with syntax highlighting definitions written by Hans) can
>> do that as well.
>>
>> http://superuser.com/a/565102
>>
>> Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Pretty print Ctx code into HTML

2016-08-23 Thread Mojca Miklavec
On 24 August 2016 at 07:15, Lukáš Procházka wrote:
> Hello,
>
> does anybody know about a tool (maybe ConTeXt has something like this
> built-in) which would convert ConTeXt code into pretty-printed HTML code?
>
> E.g.:
>
>  t.mkiv
> \starttext
>   \foo[bar] baz
> \stoptext
> 
>
> to be rewritten into e.g.:
>
>  t.html
> \starttext
>   \foo[bar class="bracet">] baz
> \stoptext
> 

I used vim and TextMate (text editors) in the past to achieve that.

In theory ConTeXt has XML/HTML output and can parse text either using
the vim module or the built-in lua-based lexers, so it's probably
doable, but it might be far easier to go through some text editor. I'm
sure Scite (with syntax highlighting definitions written by Hans) can
do that as well.

http://superuser.com/a/565102

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Mojca Miklavec
On 23 August 2016 at 12:03, Mojca Miklavec wrote:
> On 23 August 2016 at 11:15, Mojca Miklavec wrote:
>>
>> I'll apply the patch. Now, setuptex is not problematic, the same patch
>> goes there. But mtxrun doing its own guesswork on top of this might
>> be. Let's see.
>
> Can you please try to fetch first-setup.sh again and try to reinstall
> ConTeXt? You should get LuaTeX beta-0.90.0 r5889 which is a bit old,
> but just to check whether things work at all. If Luigi plans to make a
> new release today, it makes no sense to rebuild the binary now
> (building might take longer than waiting for a new release :)

OK, so Hans' RPi returns (among others):

$ readelf -A /proc/self/exe
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers

and the Android by Lutz returns:

$ readelf -A /proc/self/exe
  Tag_CPU_name: "7-A"
  Tag_CPU_arch: v7
  Tag_THUMB_ISA_use: Thumb-2
  Tag_FP_arch: VFPv3-D16
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers

So his platform gets recognised as armhf and uses the binaries
compiled on RPi, but it gives strange results.

Lutz, I suggest you come to the ConTeXt Meeting (train ticket to
Zwolle costs just 29-39 EUR) and don't let Luigi & Philipp away from
their keybords until your problem gets fixed :) :) :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Mojca Miklavec
On 23 August 2016 at 11:15, Mojca Miklavec wrote:
> On 23 August 2016 at 10:44, Hans Hagen wrote:
>> On 8/23/2016 7:46 AM, Philipp Gesang wrote:
>>>
>>> Hi,
>>>
>>> when setting up Context for my phone, I noticed the ARM binaries
>>> that come with the Standalone don’t work because the system is
>>> armv7l soft-float:
>>>
>>> Since I’m supplying my own Luatex binary that’s no problem per
>>> se, I just had to modify setuptex a bit.
>>>
>>> Could we add a couple lines like the attached patch to the
>>> script?
>>
>> i'll let mojca decide that ... (i just ship what she patches in setuptex)
>
> I'll apply the patch. Now, setuptex is not problematic, the same patch
> goes there. But mtxrun doing its own guesswork on top of this might
> be. Let's see.

Can you please try to fetch first-setup.sh again and try to reinstall
ConTeXt? You should get LuaTeX beta-0.90.0 r5889 which is a bit old,
but just to check whether things work at all. If Luigi plans to make a
new release today, it makes no sense to rebuild the binary now
(building might take longer than waiting for a new release :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Mojca Miklavec
On 23 August 2016 at 11:15, Mojca Miklavec wrote:
>
> Just for the reference, here is the code (I put "armhf" to the "else" part):

... which was of course a bad idea :)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] standalone / setuptex on ARM

2016-08-23 Thread Mojca Miklavec
Hi,

(I'm adding a few people to CC in case they are interested in the
topic. Feel free to ignore if you aren't :)

On 23 August 2016 at 10:44, Hans Hagen wrote:
> On 8/23/2016 7:46 AM, Philipp Gesang wrote:
>>
>> Hi,
>>
>> when setting up Context for my phone, I noticed the ARM binaries
>> that come with the Standalone don’t work because the system is
>> armv7l soft-float:
>>
>> $ gcc -v
>> Using built-in specs.
>> COLLECT_GCC=gcc
>> COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabi/4.6/lto-wrapper
>> Target: arm-linux-gnueabi
>> Configured with: ../src/configure -v --with-pkgversion='Debian
>> 4.6.3-14' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
>> --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>> --program-suffix=-4.6 --enable-shared --enable-linker-build-id
>> --with-system-zlib --libexecdir=/usr/lib --without-included-gettext
>> --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
>> --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
>> --enable-libstdcxx-debug --enable-libstdcxx-time=yes
>> --enable-gnu-unique-object --enable-plugin --enable-objc-gc
>> --disable-sjlj-exceptions --with-arch=armv4t --with-float=soft
>> --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi
>> --target=arm-linux-gnueabi
>> Thread model: posix
>> gcc version 4.6.3 (Debian 4.6.3-14)
>>
>> Since I’m supplying my own Luatex binary that’s no problem per
>> se, I just had to modify setuptex a bit.
>>
>> Could we add a couple lines like the attached patch to the
>> script? I’m under the impression that “armel” is a Debian
>> specific term so feel free to change it. Though it might be
>> better in general to use the “arm-linux-gnueabi” and
>> “arm-linux-gnueabihf” triplets to separate the platforms.

I don't want to use significantly different names from what TeX Live
uses, so I would prefer to stick with "armel" and "armhf", but the
main point is to be able to differentiate between the two platforms
and so far I wasn't able to without the use of config.guess (which
triggers the compiler etc) or without users manually setting their
platform.

Thanks a lof for the patch.

Just for the reference, here is the code (I put "armhf" to the "else" part):

armv7l)
  # machine id output by uname(1) is
  # insufficent to determine whether this
  # is a soft or hard float system so we
  # check ourselves.
  # a) binutils, this should work almost
  #everywhere
  if $(which readelf >/dev/null 2>&1); then
readelf -A /proc/self/exe | grep -q '^ \+Tag_ABI_VFP_args'
if [ ! $? ]; then
  platform="linux-armel"
fi
  # b) debian-specific fallback
  elif $(which dpkg >/dev/null 2>&1); then
if [ "$(dpkg --print-architecture)" = armel ]; then
platform="linux-armel"
fi
  # else go with hard fp
  else
platform="linux-armhf"
  fi
  ;;

The Raspberry PI returns:

$ readelf -A /proc/self/exe
Attribute Section: aeabi
File Attributes
  Tag_CPU_name: "6"
  Tag_CPU_arch: v6
  Tag_ARM_ISA_use: Yes
  Tag_THUMB_ISA_use: Thumb-1
  Tag_FP_arch: VFPv2
  Tag_ABI_PCS_wchar_t: 4
  Tag_ABI_FP_rounding: Needed
  Tag_ABI_FP_denormal: Needed
  Tag_ABI_FP_exceptions: Needed
  Tag_ABI_FP_number_model: IEEE 754
  Tag_ABI_align_needed: 8-byte
  Tag_ABI_align_preserved: 8-byte, except leaf SP
  Tag_ABI_enum_size: int
  Tag_ABI_HardFP_use: SP and DP
  Tag_ABI_VFP_args: VFP registers
  Tag_CPU_unaligned_access: v6

and both tests fail (like they are supposed to). That's great, I'll
patch the scripts, thank you very much. I was a bit frustrated by the
inability to support both platforms properly.

I'm now waiting for the code for the 64-bit arm binaries :)
I have one in my drawer that I still need to set up.

> i'll let mojca decide that ... (i just ship what she patches in setuptex)

I'll apply the patch. Now, setuptex is not problematic, the same patch
goes there. But mtxrun doing its own guesswork on top of this might
be. Let's see.

And then there's the next question: what hardware/software do we need
if we want to add an additional unit to our (new) build farm? At the
moment Boris is kindly providing the binaries, but it would be nice to
add some small piece of hardware into the cellar that just waits and
starts building automatically whenever there's a need to do so.

Taco, Philipp just volunteered for a presentation (with workshop) at
the ConTeXt Meeting.
Title: Running ConTeXt (and compiling binaries) on my phone.

Mojca

PS: Now looking for the next volunteer to answer a similar problem for
mips (ok, we no longer ship the binaries in ConTeXt, so it's not
really an issue until the next user passes by):

http://stackoverflow.com/questions/7101038/how-to-distinguish-between-mips-cpu-types-on-linux-when-dpkg-architecture-is-abs
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.n

Re: [NTG-context] armhf luatex binary from the context minimals

2016-08-23 Thread Mojca Miklavec
On 23 August 2016 at 10:17, Hans Hagen wrote:
> On 8/23/2016 8:37 AM, Lutz Haseloff wrote:
>>
>> Hi all,
>>
>> i finally got the context minimals working on my phone.
>> I use GNURoot (Debian Jessie).
>> first-setup.sh works as expected.
>> Only one problem remains. The luatex binary:
>>
>>
>> http://minimals.contextgarden.net/current/bin/luatex/linux-armhf/bin/luatex
>> This is LuaTex, Version 0.98.1 (TeX Live 2017/dev)
>
>
> can you try 0.98.3 ?

We only ship 0.98.1 r6083.

In order to build 0.98.3 Luigi should apply the necessary changes to
the repository.

But it's quite likely that the binaries are indeed incompatible, I
have no clue. See also the other post about arm from today.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Strange behavior with context standalone (pgfplots)

2016-08-16 Thread Mojca Miklavec
On 16 August 2016 at 16:26, Fabrice Couvreur wrote:
>
> Hello,
> With context in distribution TeXLive 2016,no problem but with standalone 
> context, I get the "0.01pt" text in the left corner of the graph.

I'm also getting
,0.100pt
at the beginning of one of the documents, even though I still didn't
figure out what exactly triggers that.

Plus an error at

close source> 5 > 65 >
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.code.tex

tex error   > tex error on line 570 in file
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex:
! Illegal unit of measure (pt inserted)


,
 0.000,
  0.100
\pgfutil@emu@@unpack ...pt\pgf@xb =#2pt\pgf@xc =#3
  pt
\pgfutil@emu@mix ... \string \color@ #1\endcsname
  \pgf@ya =\pgf@xa \pgf@yb =...
\pgfutil@colorlet ...ix \pgf@marshal !white!\@nil
  \xdef \pgf@marshal {\noexp...
l.570 ...l@colorlet{tikz@axis@middle}{gray!50!white}


560 \def\tikz@shade@angle{0}
561
562 
\pgfdeclareverticalshading[tikz@axis@top,tikz@axis@middle,tikz@axis@bottom]{axis}{100bp}{%
563   color(0bp)=(tikz@axis@bottom);
564   color(25bp)=(tikz@axis@bottom);
565   color(50bp)=(tikz@axis@middle);
566   color(75bp)=(tikz@axis@top);
567   color(100bp)=(tikz@axis@top)}
568
569 \pgfutil@colorlet{tikz@axis@top}{gray}
570 >>  \pgfutil@colorlet{tikz@axis@middle}{gray!50!white}
571 \pgfutil@colorlet{tikz@axis@bottom}{white}
572
573 \pgfdeclareradialshading[tikz@ball]{ball}{\pgfqpoint{-10bp}{10bp}}{%
574  color(0bp)=(tikz@ball!15!white);
575  color(9bp)=(tikz@ball!75!white);
576  color(18bp)=(tikz@ball!70!black);
577  color(25bp)=(tikz@ball!50!black);
578  color(50bp)=(black)}
579
580 \pgfutil@colorlet{tikz@ball}{blue}


?
open source > 5 > 66 >
/usr/local/texlive/2016/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex


But I didn't yet have time to fully investigate (I started noticing
this problem recently in an old document).

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConteXt and Slackware

2016-08-10 Thread Mojca Miklavec
On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> Hi luigi,
> No, the issue appears when i try to install ConTeXt, specifically after the
> following line:
>
> $ sh ./first-setup.sh --modules=all --engine=luatex
> receiving incremental file list
>
> sent 29 bytes  received 155 bytes  40.89 bytes/sec
> total size is 8,567,988  speedup is 46,565.15
> /usr/bin/env: 'texlua': No such file or directory

What does

ls -l $HOME/context/bin

return?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConteXt and Slackware

2016-08-10 Thread Mojca Miklavec
On 10 August 2016 at 09:46, Jose Luis Arellano wrote:
> Hi luigi,
> No, the issue appears when i try to install ConTeXt, specifically after the
> following line:
>
> $ sh ./first-setup.sh --modules=all --engine=luatex
> receiving incremental file list
>
> sent 29 bytes  received 155 bytes  40.89 bytes/sec
> total size is 8,567,988  speedup is 46,565.15
> /usr/bin/env: 'texlua': No such file or directory

It could be a problem with the shell you are using (or maybe there are
some bashisms used).

What exactly is "sh" on your machine? Can you try to run this with bash?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt on linux-armhf

2016-08-08 Thread Mojca Miklavec
On 8 August 2016 at 21:16, Jose Luis Arellano wrote:
> Well, if i use the binary from
> http://tug.org/svn/texlive/trunk/Master/bin/armel-linux/ (Revision 41089) i
> get "Segmentation fault".

This is more or less expected.

> However, the binary from
> http://tug.org/svn/texlive/trunk/Master/bin/armhf-linux/ (Revision 41117)
> seems to work perfectly fine.

In that case we should be able to find a solution. According to
https://www.tug.org/texlive/build.html
that binary was built on RPi as well, so there's no reason why we
couldn't reproduce a working binary. There are two possible
explanations:
- different hardware and/or software ("fixable")
- some bug in a recent version of LuaTeX

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt on linux-armhf

2016-08-08 Thread Mojca Miklavec
On 8 August 2016 at 06:53, Jose Luis Arellano wrote:
> Hi Mojca,
>
> The binaries comes from armhf (your build), as you can see in logs attached.
> While the version of Tex Live installed is texlive-bin-2016.41290-5-armv7h.

armv7h looks like "armhf".

But I checked the logs and you are most likely using the binaries that
were compiled for Arch Linux and your machine (CPU) specifically
rather than the ones that are compiled by the TeX Live team.

Can you try replacing the luatex binary in ConTeXt distribution with
the binaries from
http://tug.org/svn/texlive/trunk/Master/bin/
please try once with armel-linux/luatex and once with
armhf-linux/luatex. (You can fetch the binary via SVN or via viewvc,
but make sure that the downloaded file will be executable.)

I'm curious whether that binary works for you (try with armhf-linux first).

> Maybe the problem is related to architecture of cpu, the latest raspbian use
> ARMv8.

The exact architecture depends on hardware rather than software. I
guess we have RPi2 B (Hans must know). For some reason I cannot access
the machine at the moment, but I guess that RPi2+ is also armv7 (ARM
Cortex-A7). I'm not 100% sure though.

The question is whether an older version of OS would help in any way.

In any case you should be able to just copy the luatex from your
distro to the minimals and get a working PDF.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] luatex-0.98.0 for linux?

2016-08-07 Thread Mojca Miklavec
On 7 August 2016 at 10:44, Pablo Rodriguez wrote:
> Dear ConTeXt maintainers,
>
> would it be possible that ConTeXt Standalone for the linux platform had
> the latest LuaTeX binaries?
>
> Besides the update, I think it is important to confirm whether English
> hyphenation is fixed in the latest binary.
>
> The following sample:
>
> \starttext
> \hyphenatedword{schematic}
> \stoptext
>
> outputs "sc-he-matic" with luatex-0.95.0.
>
> Many thanks for your help,

I can probably come up with link to an up-to-date binary (I'm in the
process of setting up automatic builds on regular basis; just
side-tracked by my job and a few other hobbies).

But it would be wise to push Luigi to make an official release or at
least to backport the fix.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt on linux-armhf

2016-08-07 Thread Mojca Miklavec
On 7 August 2016 at 05:31, Jose Luis Arellano wrote:
> Hi all,
> I want to report that ConTeXt from texlive-core ARM package seems to works
> correctly on chroot Linux in Android. Current version is 2016.05.17 19:20
> I don't really know what am missing here

The binaries should have been updated some time yesterday.

There are only two things that come to my mind.

- either you fetched the binaries for armhf and your computer requeres armel
- or there are some subtle differences between the two armhf platforms
(I compile the binaries on the latest raspbian)

What is the PATH of TeX Live, do the binaries come from armel or armhf?

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt on linux-armhf

2016-08-05 Thread Mojca Miklavec
On 6 August 2016 at 00:19, Jose Luis Arellano wrote:
> Hi guys, i need some help. I have installed the linux-armhf version of
> ConTeXt on my android phone via android deploy, the installation was smooth
> but when i try to create any document, it compile fine, but the resulting
> document seems to be corrupted. You can see the result in the attached file.
> Thanks in advance.

This might be a bit tricky to debug.

I can try to update the binaries to the very latest version (you
should be able to get them in a few hours), but the binaries are
currently compiled on Raspberry PI and if Android happens to be
incompatible to some extent, then I have no clue where to start
looking.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] gmane might go off-line soon

2016-08-01 Thread Mojca Miklavec
On 30 July 2016 at 12:27, Schmitz Thomas A. wrote:
> Hi all (especially the gardeners),
>
> have you seen this post? 
> https://lars.ingebrigtsen.no/2016/07/28/the-end-of-gmane/
>
> Long story short: the sole maintainer of gmane is getting fed up with ddos 
> attacks and is thinking about terminating the service.

Sad :(

Do you have any suggestions for some software with a nice interface to
run the archive?

(Ideally someone would adapt the software used by gmane, but
apparently that's a non-trivial task.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] A short contextgarden.net maintenance dowtime

2016-07-08 Thread Mojca Miklavec
Hi,

The contextgarden.net (excluding the wiki which should continue to
work as usual on another server) will undergo some downtime now for
some additional maintenance and git setup. It should be back
relatively soon.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \mainlanguage[pe]

2016-07-06 Thread Mojca Miklavec
On 6 July 2016 at 20:02, Mohammad Hossein Bateni wrote:
> Hello,
>
> This was lost in the other thread, so I'm starting a fresh one dedicated to
> the question.
>
> 1) \showinstalledlanguages does not show pe/persian/fa or anything like that
> but it has several arabic variants.  was this dropped in MkIV or was there
> never a persian language environment even in MkII?

MkII (read: ConTeXt with pdfTeX) doesn't support typesetting in Arabic
script at all.

And support for XeTeX has always been limited in ConTeXt. So it's not
really strange if the language support is still missing. It can only
work in MkIV (and potentially in XeTeX, but I'm not sure how much
effort would be needed to make it work properly in XeTeX).

So feel free to contribute the translations as Wolfgang suggested.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Update server appears to be down

2016-07-06 Thread Mojca Miklavec
On 4 July 2016 at 17:38, Marco Patzer wrote:
> Hi (Mojca?)
>
> The contextgarden update server appears to be down:
>
>   rsync rsync://contextgarden.net
>   rsync: failed to connect to contextgarden.net (193.2.4.200): Connection 
> refused (111)
>   rsync: failed to connect to contextgarden.net (2001:1470:ff80:88::80:c): 
> Network is unreachable (101)
>   rsync error: error in socket IO (code 10) at clientserver.c(128) 
> [Receiver=3.1.1]
>
> Just notifying in case you're not aware. If the URL changed please
> let me know so I can correct my update scripts.

As already explained in another email, the admin did an OS upgrade on
Monday on a short notice and I wasn't online to send a notice to
others. But I believe the outage was short enough and hopefully all
should be back to normal.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] web site

2016-07-05 Thread Mojca Miklavec
On 5 July 2016 at 10:39, Mohammad Hossein Bateni wrote:
> is the server down?
>
> i can't connect to pragma-ade.nl or contextgarden.net or
> minimals.contextgarden.net.  all refuse my connection.

I was on holidays until today.

The admin sent me a notice about a shorter (planned) downtime of
contextgarden.net some time yesterday. After you sent me the email I
checked and it seems as if Apache wasn't running, so I restarted it
and also replaced the Pragma's .com domain names with .nl (I might
have missed some).

If you spot any other problems, please let me know.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
On 29 June 2016 at 14:12, Hans Hagen wrote:
> On 6/29/2016 12:31 PM, Mojca Miklavec wrote:
>>
>> Hi,
>>
>> I want to play with CNC and don't yet have any experience with CAD
>> software (nor the licence for the expensive ones) other than perhaps
>> some Blender, so I decided to try to use the super ugly route with
>> metapost -> svg -> dxf -> g-code
>> for the first time.
>>
>> I have a few questions.
>>
>> (1) I love Hans' shortcuts in metafun, but I seem to remember that things
>> like
>> input metafun;
>> or perhaps
>> input mp-tool;
>> used to work, so that I don't have to remember to use
>> mpost -mem=metafun my-drawings.mp
>> when compiling the graphics.
>>
>> Did the method with "input" ever work (or is it supposed to work)? Now
>> I'm getting a bunch of weird errors.
>> I would love to specify everything in the source file and then just
>> call mpost. If that doesn't work, that's fine, I can still add
>> "-mem=metafun", but ...
>
>
> input metafun.mpiv ;

How should one properly compile that file then to get the SVG?

Using just "mpost something.mp" doesn't work that way.

>> (2) I guess that using "raw metapost" is the only sane way to generate
>> SVG. If I use metapost inside ConTeXt that's probably not going to
>> work, right?
>>
>> (3) Is there any way to convince the SVG output mode to generate something
>> like
>> 
>> rather than
>> 
>> because the program I use to convert SVG to DXF has troubles
>> interpreting "points" properly. I read somewhere that they assume 90
>> points per inch because that's Inkskape's default.
>
> why not just
>
> \startMPpage
>   whatever you want
> \stopMPpage
>
> and then use mudraw (mutools) to go from pdf to svg (that's what i do when i
> need svg)

Given that metapost supports SVG natively I imagined that it would
produce a simpler/cleaner output. Thanks a lot for the suggestion,
I'll test it.

It turned out that the (opensource) tools I used for converting SVG
into DXF gives very weird result, so I have to change the other parts
of the "toolchain" as well.

Nevertheless, the question about whether one could convince MP to
output true units in cm/mm/in.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Creating SVG: using MetaFun, exporting proper units, conversion to DXF

2016-06-29 Thread Mojca Miklavec
Hi,

I want to play with CNC and don't yet have any experience with CAD
software (nor the licence for the expensive ones) other than perhaps
some Blender, so I decided to try to use the super ugly route with
metapost -> svg -> dxf -> g-code
for the first time.

I have a few questions.

(1) I love Hans' shortcuts in metafun, but I seem to remember that things like
input metafun;
or perhaps
input mp-tool;
used to work, so that I don't have to remember to use
mpost -mem=metafun my-drawings.mp
when compiling the graphics.

Did the method with "input" ever work (or is it supposed to work)? Now
I'm getting a bunch of weird errors.
I would love to specify everything in the source file and then just
call mpost. If that doesn't work, that's fine, I can still add
"-mem=metafun", but ...

(2) I guess that using "raw metapost" is the only sane way to generate
SVG. If I use metapost inside ConTeXt that's probably not going to
work, right?

(3) Is there any way to convince the SVG output mode to generate something like

rather than

because the program I use to convert SVG to DXF has troubles
interpreting "points" properly. I read somewhere that they assume 90
points per inch because that's Inkskape's default.

(4) Does anyone have a better proposal for conversion into DXF (or
G-code)? I'm currently playing with FreeCAD and I've seen some
tutorials showing that AutoCAD can open PDF directly, but I don't want
to buy AudoCAD just for the sake of converting files.

(Not to mention that FreeCAD's SVG importer crashes when reading
output from MetaPost unless I manually remove parts of the SVG, but
that's an unrelated problem that I'm somehow able to overcome.)

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] ConTeXt and LilyPond problem

2016-06-27 Thread Mojca Miklavec
On 27 June 2016 at 16:11, Robert Blackstone wrote:
> Dear All,
>
> I am trying to get the combination of ConTeXt and LilyPond working.
> I copied the example that I found on http://wiki.contextgarden.net/LilyPond
> , changing the setups a little (I don't have the font  Adobe Jenson Pro).
>
> Processing it with mkiv from april this year and earlier produces a pdf with
> both zapf texts and in between the text: [[output file missing.
>
> The log-file says:
> -
> t-filter  . cached output file
> 'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' missing.
> Rerunning filter
> sh: lilypond: command not found
> t-filter  > file
> 'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' cannot be
> found
> -
> Indeed there is no file
> lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf .
>
> With LilyPond.app itself, using TeXShop as the editor, I have no problems.
> (But I have never been able to get it working from Terminal, generating only
> messages like "cannot execute binary file" and "Permission denied" even
> after running sudo chmod u+x .)
>
> What can I do about it?

You first need to get lilypond working from Terminal, otherwise asking
any other question on the ConTeXt mailing list won't really help much.

I created a shell script "lilypond" somewhere in PATH, containing

#!/bin/bash
exec /Applications/LilyPond.app/Contents/Resources/bin/lilypond "$@"

but I don't remember if that ever worked properly.

At the moment I get

> lilypond test.ly
GNU LilyPond 2.18.2

and then it just consumes processor forever without producing any
result. I'm not eager to start debugging right now, but just to let
you know that getting lilypond to work from terminal is a prerequisite
for getting the module to work.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Expansion of date inside \section

2016-06-19 Thread Mojca Miklavec
On 19 June 2016 at 22:17, Mojca Miklavec wrote:
> Hi,
>
> I'm trying to generate daily reports and wanted to include the date in
> bookmarks, but there is some weird (non)expansion going on.
>
> I might just as well switch to lua for certain parts of the document
> (like cycling through dates), but I suspect that there must be some
> trivial hack to prevent me from getting my sections labeled
> date[y={2016},m={06},d={25}]

... other than using \section{#1-#2-#3} (which might also do the job for now).

> \setupinteraction
> [state=start]
> \placebookmarks
> [chapter,section,subsection]
> [chapter,section]
> \setupinteractionscreen
> [option=bookmark]
>
> \def\generatesection#1#2#3{%
> \edef\dt{\date[y={#1},m={#2},d={#3}][year,-,mm,-,dd]}
> \setupheadertexts[{\dt}][pagenumber]
> \section{\dt}
> % \externalfigure[#1#2#3.pdf]
> }
>
> \starttext
> \chapter{Daily files}
> \generatesection{2016}{06}{25}
> \generatesection{2016}{06}{26}
> \stoptext
>
> Thank you,
> Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Expansion of date inside \section

2016-06-19 Thread Mojca Miklavec
Hi,

I'm trying to generate daily reports and wanted to include the date in
bookmarks, but there is some weird (non)expansion going on.

I might just as well switch to lua for certain parts of the document
(like cycling through dates), but I suspect that there must be some
trivial hack to prevent me from getting my sections labeled
date[y={2016},m={06},d={25}]

\setupinteraction
[state=start]
\placebookmarks
[chapter,section,subsection]
[chapter,section]
\setupinteractionscreen
[option=bookmark]

\def\generatesection#1#2#3{%
\edef\dt{\date[y={#1},m={#2},d={#3}][year,-,mm,-,dd]}
\setupheadertexts[{\dt}][pagenumber]
\section{\dt}
% \externalfigure[#1#2#3.pdf]
}

\starttext
\chapter{Daily files}
\generatesection{2016}{06}{25}
\generatesection{2016}{06}{26}
\stoptext

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] SOLVED: too many open files

2016-06-19 Thread Mojca Miklavec
Hi,

I found an old thread while fighting with the problem of
luatex I/O Error: Couldn't open file 'foo.pdf': Too many open files.

On 15 August 2013 at 17:48, Henning Hraban Ramm wrote:
> Hi again,
>
> in my current songbook project I use t-filter with LilyPond as shown in 
> http://wiki.contextgarden.net/LilyPond with latest beta MkIV on OSX.
>
> Every line (system) of notes is included as its own PDF to leave the page 
> breaking to ConTeXt. But since I have some hundred songs with each a few 
> lines, it sums up...
>
> I guess ConTeXt keeps every externalfigure open, since I get this error:
>
> pages   > flushing realpage 70, userpage 70
> (c_helpmesee.tex
> structure   > sectioning > TitelKlein @ level 2 : 0.83 -> Help Me See
> GNU LilyPond 2.16.2
> ERROR: In procedure open-file:
> ERROR: Too many open files: 
> "/Applications/music/LilyPond.app/Contents/Resources/bin/../share/guile/1.8/ice-9/r4rs.scm"
> LILYPOND> name='lilytemp/prd_alle-temp-lilypond-c_helpmesee.pdf'
> LILYPOND> including system no.1
> LILYPOND> including system no.2
> LILYPOND> including system no.3
> LILYPOND> including system no.4
> LILYPOND> including system no.5
> ) (c_hochaufdem.tex 
> 
>  
> 
>  
> 
>  
>   Error: Couldn't open file 
> '/Users/hraban/workspace/liederheft/lilytemp/prd_alle-temp-lilypond-c_helpmesee-4.pdf':
>  Too many open files.
>
> !LuaTeX error: xpdf: reading PDF image failed
>  ==> Fatal error occurred, no output PDF file produced!
>
>
> It works with songbook excerpts (some 30 songs). I don't understand if the 
> error is really from LilyPond or from LuaTeX (I guess the former), and how I 
> would be able to increase the number of possible files (in bash on OSX 
> 10.8.4). So probably it's more a general Unix question than a ConTeXt one, 
> but anyway...
>
> ANALYSIS:
> $ ulimit -n
> 256
> $ sysctl kern.maxfiles
> kern.maxfiles: 12288
> $ sysctl kern.maxfilesperproc
> kern.maxfilesperproc: 10240
>
> SOLUTION:
> $ ulimit -S -n 2048
>
> (Properly describing a problem often helps to solve it. I send this for the 
> records, in case someone runs into the same.)

Running "ulimit -S -n 2048" in fact solved the problem for me, but I
wonder if there is any better solution. (I might even have more than
256 files open in my text editor and that one doesn't complain.)

Is it possible to politely ask LuaTeX to close the files after reading them?

(It's fine if that's impossible, I can still use Hraban's workaround.)

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Invoking ConTeXt from inside php web appliction

2016-06-17 Thread Mojca Miklavec
On 17 June 2016 at 14:16, Pavneet Arora wrote:
> I am stuggling with getting ConTeXt to run from inside a php script
> under Apache.  First off, let me say that the installation works fine
> from the command line as a logged in user.
>
> Initially, I tried to do it inline:
>
>   cmd = ". /opt/context/tex/setuptex /opt/context/tex/setuptex; cd 
> $spool_dir; context $full_input_filename";
>   system($cmd);

Unrelated to the problem, but ...

Instead of sourcing setuptex you should just add
/opt/context/tex/texm-linux64 (or whawever folder that is) to the
environmental variable PATH.

The setuptex script doesn't do anything else and is just a convenience
script for users. In scripting you should better set PATH. You can
also manually set TEXMFCACHE if you want. Not that it matters much,
but I don't know why one would want the overhead of running an
additional script each time.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] How to start the demo in modules

2016-05-30 Thread Mojca Miklavec
Hi,

MKII uses
\doifnotmode{demo}{\endinput}
to enter the demo mode in modules.

I see that MKIV now switched to
\continueifinputfile{s-something.mkiv}


The question arises: What should I suggest to a module writer for a
relatively simple file that doesn't use any MKIV features and provides
just the module file t-something.tex?

Is it OK to keep using "\doifnotmode{demo}{\endinput}" also in MKIV?

Thank you,
Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Underbar offset

2016-05-26 Thread Mojca Miklavec
On 26 May 2016 at 18:17, Hans Hagen wrote:
> On 5/26/2016 2:48 PM, Mojca Miklavec wrote:
>>
>> Nevertheless this doesn't entirely solve the problem. I now have a
>> problem with the following:
>>
>> \catcode`č=\active
>> \defč{\buildtextaccent\textcaron c}
>
>
> doesn't the compose=yes feature work?

I'm sorry, compose=yes works as expected (I was copy pasting some old
code and forgot about the later improvements in ConTeXt: shame on me).

> so let's give you another piece
>
> \startluacode
> fonts.handlers.otf.addfeature {
> name = "mojca",
> type = "multiple",
> prepend = true,
> data = {
> ["č"] = { 0x30C, "c" },
> }
> }
> fonts.handlers.otf.addfeature {
> name = "kern",
> type = "pair",
> data = {
> [0x30C] = { c = { { 500, 0, 0, 0 }, false } },
> }
> }
> \stopluacode
>
> \definefontfeature[default][default][mojca=yes]
>
> \showframe
>
> \starttext
>
> mojča miklave\utfchar{"30C}c
>
> \stoptext
>
> (actually it uncovered a buglet but i suppose the č never is the first char
> so ...)

But the code above doesn't seem to work (I don't get the letter "č"
printed out at all). I would prefer the approach with more fine-tuning
though because "č" is always misaligned. And I seem to remember that
this functionality has been in the core for a long time already, I
just again forgot about it because most fonts include the full charset
nowadays.

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Underbar offset

2016-05-26 Thread Mojca Miklavec
On 25 May 2016 at 17:35, Wolfgang Schuster wrote:
>
> With \shiftup the line under the raised text stays at the same position.
>
> \starttext
> \underbar{Test this \shiftup{®}}
> \stoptext

When has \shiftup been implemented?

It doesn't work in TeX Live (or maybe I forgot to update TL to the
latest version), but works with the latest version of ConTeXt.

Nevertheless this doesn't entirely solve the problem. I now have a
problem with the following:

\catcode`č=\active
\defč{\buildtextaccent\textcaron c}

\underbar{Test this č}

I will try to remember how to fix the font on the fly with lua (or
perhaps figure out how to edit the font; it's a commercial font
though, so fixing it "on the fly" would probably be better).

I will also test some other piece of code that Hans sent me off-list.
(I seem to remember that there must be some tens of ways to underline
text. Every now and then Hans sends a new demo.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] win64 : luatex is not recognize as an internal command

2016-05-25 Thread Mojca Miklavec
On 25 May 2016 at 00:48, L.S.-Soc&Gam wrote:
>
> There are three things which I don't fully understand either:
>
> 1. Why are there three files on " http://standalone.contextgarden.net/setup/ 
> " which is reachable via the " Download ConTeXt " link?
> There are
>
> context-setup-mswin.zip 2016-05-23 22:36 21M
> context-setup-win32.zip 2016-05-23 22:36 21M
> context-setup-win64.zip 2016-05-23 22:36 21M
>
> Wouldn't *win32* and *win64* files alone suffice? I am wondering what the 
> *mswin* files is for. It is a little bit confusing.

I don't like mswin and would like to switch to win32 to make it
consistent with win64, but I need the blessing from Hans first.

> Especially because there is also another folder  " [...] 
> contextgarden.net/setup2/ ".
> Again with
>
> context-setup-win32.zip 2016-05-23 22:36 21M
> context-setup-win64.zip 2016-05-23 22:37 21M
>
> 2. Is the " setup2 " folder really necessary?

No.

Long time ago Hans asked me if we could switch to rsync from the MinGW
project rather than the one based on cygwin's dll. (Then we probably
both forgot about this.)

The "setup2" is experimental setup bundling rsync from MinGW, the idea
was to provide testing setup that would replace the old one.

As soon as I get a green light, I could remove "setup", rename
"setup2" to "setup" and only leave the new binaries there. (I can also
remove "setup2" in principle.)

Mojca
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

<    1   2   3   4   5   6   7   8   9   10   >