Re: [NTG-context] two nested \mathbin command changes spacing

2018-05-17 Thread Hans Hagen

On 4/30/2018 6:50 PM, Ulrike Fischer wrote:

In the following document the second a is much nearer placed to the
V:

\starttext
$V \mathbin{a} W \qquad V \mathbin{\mathbin{a}} W $
\stoptext

(in the second case an italic kern seems to be missing)

Can one avoid this side effect of nested \math-command? When
building symbols it is not always easy to avoid such nestings.

this is again a side effect of bad glyph boundingboxes

anyway, the tex engine collapses nested ord nodes so i generalized that 
in the upcoming engine


\mathflattenmode \numexpr
0  % off
 +  1  % ord
 +  2  % bin
 +  4  % rel
 +  8  % punct
 + 16  % inner
\relax

so you can get rid of nested same-class (actually this is only done when 
no super or subscript) .. as a side effect you get a sequence of math 
char nodes and that will then listen to the other italics enforcing flag 
(for fonts with weird character boundingboxes)


i didn't test side effects but at least we can influence it (the default 
is of course 1 which is what tex naturally does)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] roadmap

2018-05-17 Thread Hans Hagen

On 5/17/2018 5:47 PM, Otared Kavian wrote:

Hi Mohammad Hossein,

Thanks for your work regarding the RawSteps!
However I tried just now the examples you have on github, but it seems that it 
does not work out of the box: ConTeXt reports an error at line 114 of 
p-rsteps.tex, complaining about an « Undefined control sequence » which points 
to
\catcode`\^^M=\active

Maybe you have fixed the issue now, but regarding the feature request put 
forward by Fabrice, I agree with him that such a stepping feature would be nice 
to have in mkiv, since the steps commands which exist now cannot be used in all 
circumstances.

Best regards: OK


On 17 May 2018, at 16:24, Mohammad Hossein Bateni  wrote:

Fabrice,

Accepting the caveats Hans pointed out for problematic spacing and some issues 
with references, you might find [https://github.com/bateni/rawsteps-mkiv] 
useful.  I ported RawSteps to MkIV and have used it in a few presentations.  
The version on github might be buggy, but a good start if you really insist on 
using RawSteps.

I've added

  s-present-steps.mkiv

  examples/present-steps-001.tex

to the beta, a quick hack assuming sane coding.

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] roadmap

2018-05-17 Thread Otared Kavian
Hi Mohammad Hossein,

Thanks for your work regarding the RawSteps! 
However I tried just now the examples you have on github, but it seems that it 
does not work out of the box: ConTeXt reports an error at line 114 of 
p-rsteps.tex, complaining about an « Undefined control sequence » which points 
to
\catcode`\^^M=\active

Maybe you have fixed the issue now, but regarding the feature request put 
forward by Fabrice, I agree with him that such a stepping feature would be nice 
to have in mkiv, since the steps commands which exist now cannot be used in all 
circumstances.

Best regards: OK

> On 17 May 2018, at 16:24, Mohammad Hossein Bateni  wrote:
> 
> Fabrice,
> 
> Accepting the caveats Hans pointed out for problematic spacing and some 
> issues with references, you might find 
> [https://github.com/bateni/rawsteps-mkiv] useful.  I ported RawSteps to MkIV 
> and have used it in a few presentations.  The version on github might be 
> buggy, but a good start if you really insist on using RawSteps.

___
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] roadmap

2018-05-17 Thread Mohammad Hossein Bateni
Fabrice,

Accepting the caveats Hans pointed out for problematic spacing and some
issues with references, you might find [
https://github.com/bateni/rawsteps-mkiv] useful.  I ported RawSteps to MkIV
and have used it in a few presentations.  The version on github might be
buggy, but a good start if you really insist on using RawSteps.

On Thu, May 17, 2018 at 9:07 AM Hans Hagen  wrote:

> On 5/16/2018 9:14 PM, Fabrice L wrote:
> > Dear all,
> >
> >  > - Check what additional features users want (miss) and decide to what
> > extent and with what priority we will put effort in this.
> >
> > As asked, I add a wish to the list...
> >
> > One feature which I depend a lot on is to be able to do animations: I
> > actually use the Raw Steps module, by David Munger (dated from 2006),
> > which still worked, but in MKII only. This is essential for me for my
> > teaching and talks. During teaching, I have designed courses notes in
> > ConText using a lot modes of context: the notes are different for
> > the teacher, are available in two formats for the students (paper and
> > for completion on tablets), and there is a last version for use in the
> > class by me. In class, this is essential for me that the material is
> > presented by steps, otherwise students have a tendency to not listen, or
> > to not try to solve a problem is the solution is already on the screen.
> > I can not use the animation tools available in ConTexT using javascript,
> > since I use to show notes in class an iPad, and I use the stylus to fill
> > blanks present in the notes (which work great by the way !).
> > The facility to use modes in the courses notes like this have convinced
> > several of my colleagues to use ConTeXt for their teaching needs.
> >
> > Following threads on this list on animations, my understanding is that
> > Hans is not a great supporter of the method of animations in the Raw
> > Steps module, for technical reasons.
> >
> > I have switch to MKIV for others documents, but I'm still on MKII for
> > this reason for my courses notes, which are 90% one my needs in TeX.
> > Fabrice.
> A few remarks:
>
> (1) The mkiv approach uses not that much javascript actually, it uses
> layers that get turned on and off and it has a simplicity that i like,
> also because there is no interference with repetition (e.g. of
> references) cq. are no side effects (like bad spacing). Unfortunately
> layers are hardly supported and the trivial javascript to control some
> aspects of viewing neither. (Luigi and I have been thinking of adding
> lua to a mupdf based viewer ... maybe we should pick up that thread.)
>
> (2) Steps i.e. repetitive content has the problem that one then needs to
> make sure references get flushes only ones which also demands care by
> the user, and spacing not be influenced too badly by redoing chunks.
> This is why I made some explicit steppers (there are some in the mkiv
> part as s-present* files).
>
> I can give it some thought but it's not that trivial to do it right
> (according to my specs).
>
> Hans
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 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
>
> ___
___
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] roadmap

2018-05-17 Thread Hans Hagen

On 5/16/2018 9:14 PM, Fabrice L wrote:

Dear all,

 > - Check what additional features users want (miss) and decide to what 
extent and with what priority we will put effort in this.


As asked, I add a wish to the list...

One feature which I depend a lot on is to be able to do animations: I 
actually use the Raw Steps module, by David Munger (dated from 2006), 
which still worked, but in MKII only. This is essential for me for my 
teaching and talks. During teaching, I have designed courses notes in 
ConText using a lot modes of context: the notes are different for 
the teacher, are available in two formats for the students (paper and 
for completion on tablets), and there is a last version for use in the 
class by me. In class, this is essential for me that the material is 
presented by steps, otherwise students have a tendency to not listen, or 
to not try to solve a problem is the solution is already on the screen. 
I can not use the animation tools available in ConTexT using javascript, 
since I use to show notes in class an iPad, and I use the stylus to fill 
blanks present in the notes (which work great by the way !). 
The facility to use modes in the courses notes like this have convinced 
several of my colleagues to use ConTeXt for their teaching needs.


Following threads on this list on animations, my understanding is that 
Hans is not a great supporter of the method of animations in the Raw 
Steps module, for technical reasons.


I have switch to MKIV for others documents, but I'm still on MKII for 
this reason for my courses notes, which are 90% one my needs in TeX.

Fabrice.

A few remarks:

(1) The mkiv approach uses not that much javascript actually, it uses 
layers that get turned on and off and it has a simplicity that i like, 
also because there is no interference with repetition (e.g. of 
references) cq. are no side effects (like bad spacing). Unfortunately 
layers are hardly supported and the trivial javascript to control some 
aspects of viewing neither. (Luigi and I have been thinking of adding 
lua to a mupdf based viewer ... maybe we should pick up that thread.)


(2) Steps i.e. repetitive content has the problem that one then needs to 
make sure references get flushes only ones which also demands care by 
the user, and spacing not be influenced too badly by redoing chunks. 
This is why I made some explicit steppers (there are some in the mkiv 
part as s-present* files).


I can give it some thought but it's not that trivial to do it right 
(according to my specs).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] libcurl via FFI

2018-05-17 Thread Henri Menke
Dear list,

As announced in another thread, here a better annotated example of using
libcurl via FFI in ConTeXt, see attached.  On my old laptop:

context:  3.482 seconds
context --jit:2.742 seconds
context --jiton:  2.693 seconds

Cheers, Henri

\startluacode
local ffi = assert(require("ffi"))

-- Definition copied straight from curl.h
ffi.cdef[[
typedef struct Curl_easy CURL;
typedef int CURLcode;
typedef int CURLoption;
typedef int CURLINFO;
typedef size_t(*callback)(void *buffer, size_t size, size_t nmemb, void *userp);

CURLcode curl_global_init(long flags);
CURL *curl_easy_init(void);
CURLcode curl_easy_setopt(CURL *curl, CURLoption option, ...);
CURLcode curl_easy_perform(CURL *curl);
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
void curl_easy_cleanup(CURL *curl);
void curl_global_cleanup(void);
]]

-- Magic numbers
-- for more complex applications one should copy the full enums
-- CURLcode, CURLoption, and CURLINFO into ffi.cdef
local CURLE_OK = 0
local CURL_GLOBAL_DEFAULT = 3
local CURLOPT_URL = 10002
local CURLOPT_NOBODY = 44
local CURLOPT_HEADER = 42
local CURLOPT_WRITEFUNCTION = 20011
local CURLINFO_RESPONSE_CODE = 0x20 + 2

local lcurl = assert(ffi.load("curl"))

-- Callback function for data received by the request
local function discard(buffer, size, nmemb, userp)
return size * nmemb
end

-- Initialize the curl session
lcurl.curl_global_init(CURL_GLOBAL_DEFAULT)
-- Make the cleanup function available globally so we can call it when
-- ConTeXt is done
curl_global_cleanup = lcurl.curl_global_cleanup

function curl_check_status(url)
-- Start a libcurl easy session
local curl = assert(lcurl.curl_easy_init())

-- URL to work on
assert(CURLE_OK == lcurl.curl_easy_setopt(curl, CURLOPT_URL, url))
-- Do not get the body contents
assert(CURLE_OK == lcurl.curl_easy_setopt(curl, CURLOPT_NOBODY, ffi.cast("long",1)))
-- Include the header in the body output
assert(CURLE_OK == lcurl.curl_easy_setopt(curl, CURLOPT_HEADER, ffi.cast("long",1)))
-- Callback for writing data
assert(CURLE_OK == lcurl.curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ffi.cast("callback",discard)))

-- perform a blocking file transfer
assert(CURLE_OK == lcurl.curl_easy_perform(curl))

-- extract last received response code from a curl handle
local c_http_code = ffi.new("long[1]")
assert(CURLE_OK == lcurl.curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, c_http_code))

-- End a libcurl easy handle
lcurl.curl_easy_cleanup(curl)

-- Convert C long* to Lua number
return tonumber(c_http_code[0])
end
\stopluacode

\appendtoks
\ctxlua{curl_global_cleanup()}
\to \everystoptext

\starttext

HTTP: \ctxlua{context(curl_check_status("http://example.com/;))}

HTTPS: \ctxlua{context(curl_check_status("https://example.com/;))}

404: \ctxlua{context(curl_check_status("https://example.com/xyz;))}

\stoptext
___
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] Files on a server

2018-05-17 Thread Henri Menke
On 05/17/2018 09:03 PM, Taco Hoekwater wrote:
> 
> 
>> On 17 May 2018, at 10:31, Taco Hoekwater  wrote:
>>
>> Anyway, perhaps someone can answer me this? I tried the ffi/curl code,
>> and the network stuff works, but only when I comment out the write
>> callback:
>>
>>  lcurl.curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, 
>> ffi.cast("callback",discard));
>>
>> If I dont, I get an error message from ffi that is:
>>
>>  unable to convert argument 3 from cdata> unsigned long long, unsigned long long, void*)> to cdata
>>  stack traceback:
>>  [C]: in function 'curl_easy_setopt'
>>  [ctxlua]:42: in function 'check_status'
>>  [ctxlua]:1: in main chunk
>>
>> And I have no idea what that actually means or how to fix it?
> 
> FYI: fixed by updating luatex.

Hi Taco,

Actually you don't really need to set the WRITEFUNCTION callback of
libcurl.  I only set it to the "discard" function which simply return
the number of bytes it got, such that libcurl doesn't print the header
information to stdout.  You could also plug a different function in
there if you wanted to process the headers.  I will soon post an
annotated version of the code with more proper error-checking on the list.

Cheers, Henri

> 
> Best wishes,
> Taco
> 
> ___
> 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
> ___
> 

___
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] Files on a server

2018-05-17 Thread Taco Hoekwater


> On 17 May 2018, at 10:31, Taco Hoekwater  wrote:
> 
> Anyway, perhaps someone can answer me this? I tried the ffi/curl code,
> and the network stuff works, but only when I comment out the write
> callback:
> 
>  lcurl.curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, 
> ffi.cast("callback",discard));
> 
> If I dont, I get an error message from ffi that is:
> 
>  unable to convert argument 3 from cdata unsigned long long, unsigned long long, void*)> to cdata
>  stack traceback:
>   [C]: in function 'curl_easy_setopt'
>   [ctxlua]:42: in function 'check_status'
>   [ctxlua]:1: in main chunk
> 
> And I have no idea what that actually means or how to fix it?

FYI: fixed by updating luatex.

Best wishes,
Taco

___
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] Files on a server

2018-05-17 Thread luigi scarso
On Thu, May 17, 2018 at 9:54 AM, Taco Hoekwater  wrote:

>
>
Doing https would need openssl support, which is unlikely to
> ever be built into luatex.
>
>  We could  provide a ffi wrapper (once ffi is stable)
or a swiglib wrapper  as module.
Something to discuss at meeting.

-- 
luigi
___
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] Files on a server

2018-05-17 Thread Hans Hagen

On 5/17/2018 9:54 AM, Taco Hoekwater wrote:




On 17 May 2018, at 09:39, Taco Hoekwater  wrote:




On 17 May 2018, at 09:32, Ulrike Fischer  wrote:

Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:


Or use luasocket, which is included in the luatex binary:


But I'm right that this works only with http and not with https?


Works ok for me. Did you test?


Oh, sorry. It seems it is sneakily rewriting the https:// to http://,
and so does not _actually_ work. Which makes sense, now that I think
about it.  Doing https would need openssl support, which is unlikely to
ever be built into luatex.

Sorry for being misleading,
i have (among a few others such experiments) a util-crl.lua file that 
uses libcurl (using ffi) because it's one of the things we used to test 
ffi support in luatex


i didn't add that to the distribution because i'm not sure what libname 
on windows to use (mojca and i discussed the option to ship some libs 
with the garden distribition at some time) and i don't want to end up in 
endless discussions about lib names on systems


some day i might add this one (if the right lib is found it works ok .. 
performance on my old laptop is is 5000 https://tug.org pages in 100 
sec, 5000 pragma website main pages in 70 sec)


(fwiw: i do use curl but just call the binary which in practice is just 
as efficient because one seldom does a lot in a run)


(and i use the socket lib for other things)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] Files on a server

2018-05-17 Thread Taco Hoekwater


> On 17 May 2018, at 10:20, Ulrike Fischer  wrote:
> 
> Am Thu, 17 May 2018 09:39:47 +0200 schrieb Taco Hoekwater:
> 
 Or use luasocket, which is included in the luatex binary:
> 
>>> But I'm right that this works only with http and not with https?
> 
>> Works ok for me. Did you test?
> 
> I tried a few links and always got 301 back regardless if they exist
> or not and thought due to the discussion two month ago on the luatex
> list about https content that it doesn't work at all. 
> 
> I know found https://httpbin.org/ and with it the tests worked:
> https://httpbin.org/html gave 200 and https://httpbin.org/html
> gave 404.

It only works because it silently discards the https: and replaces
it with http: . Actually, it disregards what is in front of // 
completely, whatever it is.  Even:

  url= "foobar://www.ntg.nl/watistex.html"

works just 'fine'.


Anyway, perhaps someone can answer me this? I tried the ffi/curl code,
and the network stuff works, but only when I comment out the write
callback:

  lcurl.curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, 
ffi.cast("callback",discard));

If I dont, I get an error message from ffi that is:

  unable to convert argument 3 from cdata to cdata
  stack traceback:
[C]: in function 'curl_easy_setopt'
[ctxlua]:42: in function 'check_status'
[ctxlua]:1: in main chunk


And I have no idea what that actually means or how to fix it?

Best wishes,
Taco
___
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] Files on a server

2018-05-17 Thread Ulrike Fischer
Am Thu, 17 May 2018 09:54:25 +0200 schrieb Taco Hoekwater:

>> Works ok for me. Did you test?
> 
> Oh, sorry. It seems it is sneakily rewriting the https:// to http://,
> and so does not _actually_ work.

Ah. This explains why it seemed to work for
https://httpbin.org/html, http://httpbin.org/html exists and why I
get a lot of redirection answers. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Files on a server

2018-05-17 Thread Ulrike Fischer
Am Thu, 17 May 2018 09:39:47 +0200 schrieb Taco Hoekwater:

>>> Or use luasocket, which is included in the luatex binary:

>> But I'm right that this works only with http and not with https?

> Works ok for me. Did you test?

I tried a few links and always got 301 back regardless if they exist
or not and thought due to the discussion two month ago on the luatex
list about https content that it doesn't work at all. 

I know found https://httpbin.org/ and with it the tests worked:
https://httpbin.org/html gave 200 and https://httpbin.org/html
gave 404.

But the answers from "real" websites are so varied and so often
don't say the truth that I would't describe it as "works ok" ;-). 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] Files on a server

2018-05-17 Thread Taco Hoekwater


> On 17 May 2018, at 09:39, Taco Hoekwater  wrote:
> 
> 
> 
>> On 17 May 2018, at 09:32, Ulrike Fischer  wrote:
>> 
>> Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:
>> 
>>> Or use luasocket, which is included in the luatex binary:
>> 
>> But I'm right that this works only with http and not with https?
> 
> Works ok for me. Did you test?

Oh, sorry. It seems it is sneakily rewriting the https:// to http://,
and so does not _actually_ work. Which makes sense, now that I think
about it.  Doing https would need openssl support, which is unlikely to 
ever be built into luatex. 

Sorry for being misleading,

Taco



___
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] Files on a server

2018-05-17 Thread Hans van der Meer
I too have the impression it is working for both.

Hans van der Meer

> On 17 May 2018, at 09:39, Taco Hoekwater  wrote:
> 
> 
> 
>> On 17 May 2018, at 09:32, Ulrike Fischer  wrote:
>> 
>> Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:
>> 
>>> Or use luasocket, which is included in the luatex binary:
>> 
>> But I'm right that this works only with http and not with https?
> 
> Works ok for me. Did you test?
> 
> Taco
> 
> ___
> 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
> ___

___
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] Files on a server

2018-05-17 Thread Taco Hoekwater


> On 17 May 2018, at 09:32, Ulrike Fischer  wrote:
> 
> Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:
> 
>> Or use luasocket, which is included in the luatex binary:
> 
> But I'm right that this works only with http and not with https?

Works ok for me. Did you test?

Taco

___
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] Files on a server

2018-05-17 Thread Ulrike Fischer
Am Wed, 16 May 2018 14:23:42 +0200 schrieb Taco Hoekwater:

> Or use luasocket, which is included in the luatex binary:

But I'm right that this works only with http and not with https?

 
-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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
___