Re: [NTG-context] issue with beta from 2019.11.29 21:47 in Windows

2019-12-03 Thread Hans Hagen

On 12/3/2019 8:37 PM, Pablo Rodriguez wrote:

On 12/2/19 9:45 PM, Wolfgang Schuster wrote:

[...]
LMTX finds the fonts and loads them but nothing appears in the final PDF.

\nopdfcompression

\starttext
\definedfont[file:arialn.ttf*default]Arial Narrow
\stoptext


Many thanks for your reply, Wolfgang.

I’m afraid there is no font there.

Compiling the source above with MkIV generates a PDF document with the
object 1 0 obj, which contains a /Font dictionary including two /Type0
font dictionaries.

Compiling the source above with LMTX the resulting PDF document contains
a /Page dictionary (6 0 obj) with /Font dictionary within. This
dictionary refers to an existing /Type0 font dictionary (1 0 obj) and a
missing "2 0 obj".

I don’t know why "2 0 obj" isn’t generated, but this should be the
missing font.


I don't have that font. The version I have here works ok.


An alternative to Arial Narrow is Arial Nova which has condensed variant
and comes as part of the pan-european font pack in windows 10.


I’m afraid a new font is not an option for me at work.
But there are better (unicode) versions available on windows, why nmot 
use those then (as wolfgang pointed out).


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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-03 Thread Hans Hagen

On 12/3/2019 8:45 PM, Pablo Rodriguez wrote:


I’m afraid I cannot get this working (I get a nil value error).

 \starttext
  \startluacode
 print(lua.getcodepage())
  \stopluacode
 \stoptext

a recent addition so your binary doesn't have it i guess

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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-03 Thread Pablo Rodriguez
On 12/3/19 9:17 AM, Hans Hagen wrote:
> On 12/3/2019 12:07 AM, Akira Kakuto wrote:
>> [...]
>> Thus your example does not work unless a system call GetACP()
>> returns CP_UTF8 or 65001, sorry for the inconvenience.
> in luatex one can check this from lua with
>
> print(lua.getcodepage())

Many thanks for your reply, Hans.

I’m afraid I cannot get this working (I get a nil value error).

\starttext
 \startluacode
print(lua.getcodepage())
 \stopluacode
\stoptext

Which is the right way to check it?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-03 Thread Pablo Rodriguez
On 12/2/19 9:45 PM, Wolfgang Schuster wrote:
> [...]
> LMTX finds the fonts and loads them but nothing appears in the final PDF.
>
> \nopdfcompression
>
> \starttext
> \definedfont[file:arialn.ttf*default]Arial Narrow
> \stoptext

Many thanks for your reply, Wolfgang.

I’m afraid there is no font there.

Compiling the source above with MkIV generates a PDF document with the
object 1 0 obj, which contains a /Font dictionary including two /Type0
font dictionaries.

Compiling the source above with LMTX the resulting PDF document contains
a /Page dictionary (6 0 obj) with /Font dictionary within. This
dictionary refers to an existing /Type0 font dictionary (1 0 obj) and a
missing "2 0 obj".

I don’t know why "2 0 obj" isn’t generated, but this should be the
missing font.

> An alternative to Arial Narrow is Arial Nova which has condensed variant
> and comes as part of the pan-european font pack in windows 10.

I’m afraid a new font is not an option for me at work.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] issue with beta from 2019.11.29 21:47 in Windows

2019-12-03 Thread Hans Hagen

On 12/3/2019 12:07 AM, Akira Kakuto wrote:

Dear Pablo,


\executesystemcommand{contextjit --purgeall
--arguments="OptionThis={\ThisOption},OptionThat={\ThatOption}" 
second.tex}


In my new lua[jit]tex binaries, encoding in a command line
is assumed to be the default code page of a system which depends
on a country or a machine. The code page of arguments in the
command line is changed into utf-8 in the initial stage by using the 
information

of the default code page.
Thus your example does not work unless a system call GetACP()
returns CP_UTF8 or 65001, sorry for the inconvenience.

in luatex one can check this from lua with

print(lua.getcodepage())

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
___