On 2014-07-01 18:08, Hans Hagen wrote:
On 7/1/2014 11:52 PM, Rik Kabel wrote:
The jit engine complains

lua error > error on line 12 in file
C:/Users/rik/Desktop/junicode_bold.tex:
C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:192:
invalid value (nil) at index 1 in table for 'concat'

only luajittex?

are there more trace lines?

and produces an incorrect document (no bold or bold italic fonts used)
for the following document, while the standard engine produces a correct
document without complaint:

\starttypescript [serif] [junicode]
\definefontsynonym [Serif] [file:junicode]
\definefontsynonym [SerifItalic] [file:junicode-italic]
\definefontsynonym [SerifBold] [file:junicode-bold]
\definefontsynonym [SerifBoldItalic] [file:junicode-bolditalic]
\stoptypescript
\starttypescript [junicode]
\definetypeface [junicode] [rm] [serif] [junicode] [default]
\stoptypescript
\setupbodyfont[junicode]
\starttext
\fontalternative{\it\fontalternative}{\bf\fontalternative}{\bi\fontalternative}
\stoptext

I also note that the standard typescript for junicode is not useful.
Beside mentioning goudysans (a cosmetic issue only, I think) the font
file names do not reflect current file names for the font as available
at http://junicode.sourceforge.net. If anybody has a typescript
reflecting current ttf file naming, I would appreciate receiving a copy,
either via the list or directly.

(The typescript in the above is stripped to a minimum, and not what I
would use other than in such an example.)

what font is that?

Hans

As I said, the not-in-time engine has no problem with the file.

The font is referenced in the free fonts page of the wiki (I updated its outdated link earlier today). The same version of the font is included in the TL and standalone distributions. I have installed the ttf files in my Windows/fonts directory so that lesser programs can access them as well, and that is where they are found by ConTeXt.

Here is the full log of the jit run. When I unwrap the line between \starttext and \stoptext, the errors point to lines with bold fonts:

open source > 1 > 1 > C:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt ver: 2014.06.27 10:53 MKIV beta fmt: 2014.6.27 int: english/english

system > 'cont-new.mkiv' loaded
open source > 2 > 2 > C:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv close source > 2 > 2 > C:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv system > files > jobname 'junicode_bold', input './junicode_bold', result 'junicode_bold'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > 2 > 3 > C:/Users/rik/Desktop/ContextBugs/Bugs I say/junicode_bold.tex
fonts > preloading modern-designsize (math)
fonts > typescripts > unknown library 'modern-designsize' or 'modern'
fonts > 'fallback modern-designsize mm 12pt' is loaded
fonts > preloading modern-designsize (mono)
fonts > 'fallback modern-designsize tt 12pt' is loaded
fonts > otf loading > loading 'c:/windows/fonts/junicode-bold.ttf', hash 'junicode-bold'
fonts > otf loading > loading done
fonts > otf loading > file size: 421536
fonts > encoding > loading (extended) adobe glyph list
fonts > otf loading > fixing kernclass table of lookup 'pp_l_3_s'

lua error > error on line 19 in file C:/Users/rik/Desktop/ContextBugs/Bugs I say/junicode_bold.tex:

C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:192: invalid value (nil) at index 1 in table for 'concat'
stack traceback:
[C]: in function 'concat'
C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:192: in function 'pack_indexed' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:375: in function 'enhancer' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:302: in function 'enhance' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:507: in function 'load' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2131: in function 'otftotfm' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2176: in function <C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2175> C:/ConTeXt/tex/texmf-context/tex/context/base/font-def.lua:313: in function 'loadfont' C:/ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:478: in function 'loadfont' C:/ConTeXt/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read' C:/ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:1109: in function 'definefont_two'
[\directlua]:1: in main chunk

9 \definefontsynonym [Serif] [file:junicode]
10 \definefontsynonym [SerifItalic] [file:junicode-italic]
11 \definefontsynonym [SerifBold] [file:junicode-bold]
12 \definefontsynonym [SerifBoldItalic] [file:junicode-bolditalic]
13 \stoptypescript
14 \starttypescript [junicode]
15 \definetypeface [junicode] [rm] [serif] [junicode] [default]
16 \stoptypescript
17 \setupbodyfont[junicode]
18 \starttext
19 >> \fontalternative{\it\fontalternative}{\bf\fontalternative}{\bi\fontalternative}
20 \stoptext
21


? q
OK, entering \batchmode...

fonts > otf loading > loading 'c:/windows/fonts/junicode-bolditalic.ttf', hash 'junicode-bolditalic'
fonts > otf loading > loading done
fonts > otf loading > file size: 318428
fonts > otf loading > fixing kernclass table of lookup 'pp_l_2_s'

lua error > error on line 19 in file C:/Users/rik/Desktop/ContextBugs/Bugs I say/junicode_bold.tex:

C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:192: invalid value (nil) at index 1 in table for 'concat'
stack traceback:
[C]: in function 'concat'
C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:192: in function 'pack_indexed' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otp.lua:375: in function 'enhancer' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:302: in function 'enhance' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:507: in function 'load' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2131: in function 'otftotfm' C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2176: in function <C:/ConTeXt/tex/texmf-context/tex/context/base/font-otf.lua:2175> C:/ConTeXt/tex/texmf-context/tex/context/base/font-def.lua:313: in function 'loadfont' C:/ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:478: in function 'loadfont' C:/ConTeXt/tex/texmf-context/tex/context/base/font-def.lua:415: in function 'read' C:/ConTeXt/tex/texmf-context/tex/context/base/font-ctx.lua:1109: in function 'definefont_two'
[\directlua]:1: in main chunk

9 \definefontsynonym [Serif] [file:junicode]
10 \definefontsynonym [SerifItalic] [file:junicode-italic]
11 \definefontsynonym [SerifBold] [file:junicode-bold]
12 \definefontsynonym [SerifBoldItalic] [file:junicode-bolditalic]
13 \stoptypescript
14 \starttypescript [junicode]
15 \definetypeface [junicode] [rm] [serif] [junicode] [default]
16 \stoptypescript
17 \setupbodyfont[junicode]
18 \starttext
19 >> \fontalternative{\it\fontalternative}{\bf\fontalternative}{\bi\fontalternative}
20 \stoptext
21

The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

backend > xmp > using file 'C:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
close source > 2 > 3 > C:/Users/rik/Desktop/ContextBugs/Bugs I say/junicode_bold.tex close source > 1 > 3 > C:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

system > structure > start used structure

used structure > text: junicode_bold

system > structure > stop used structure


system > files > start used files

used file > 1: filename=cont-yes.mkiv filetype=tex foundname=C:/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database used file > 2: filename=cont-new.mkiv filetype=tex foundname=C:/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database used file > 3: filename=lang-us.lua filetype=lua foundname=C:/ConTeXt/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database used file > 4: filename=C:\Users\rik\Desktop\ContextBugs\Bugs I say/junicode_bold foundname=C:/Users/rik/Desktop/ContextBugs/Bugs I say/junicode_bold.tex usedmethod=qualified used file > 5: filename=junicode filetype=ttf format=ttf foundname=c:/windows/fonts/junicode.ttf usedmethod=filesystem used file > 6: filename=junicode.ttf filetype=truetypedictionaries foundname=c:/windows/fonts/junicode.ttf usedmethod=filesystem used file > 7: filename=junicode-italic filetype=ttf format=ttf foundname=c:/windows/fonts/junicode-italic.ttf usedmethod=filesystem used file > 8: filename=junicode-bold filetype=ttf format=ttf foundname=c:/windows/fonts/junicode-bold.ttf usedmethod=filesystem used file > 9: filename=font-agl.lua filetype=lua foundname=C:/ConTeXt/tex/texmf-context/tex/context/base/font-agl.lua usedmethod=database used file > 10: filename=junicode-bolditalic filetype=ttf format=ttf foundname=c:/windows/fonts/junicode-bolditalic.ttf usedmethod=filesystem used file > 11: filename=lpdf-pdx.xml filetype=tex foundname=C:/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system > files > stop used files


system > options > start commandline options

used option > autopdf="true"
used option > currentrun="1"
used option > engine="luajittex"
used option > fulljobname="./junicode_bold"
used option > input="./junicode_bold"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > no-parse-first-line="true"

system > options > stop commandline options

system > options > start commandline files

used file > 1: ./junicode_bold

system > options > stop commandline files


mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: C:/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.009 seconds, 1 scans with scantime 0.024 seconds, 0 shared scans, 11 found files, scanned paths: c:/windows/fonts mkiv lua stats > stored bytecode data: 351 modules (0.086 sec), 69 tables (0.002 sec), 420 chunks (0.088 sec)
mkiv lua stats > running in nuts mode: yes
mkiv lua stats > cleaned up reserved nodes: 44 nodes, 443 lists of 442
mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list, 2 temp mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 39 calls mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats > callbacks: 146 direct, 197 indirect, 343 total
mkiv lua stats > result saved in file: junicode_bold.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats > loaded fonts: 2 files: junicode-italic.ttf, junicode.ttf
mkiv lua stats > fonts load time: 0.109 seconds for 4 fonts, 2 shared in backend, 0 common vectors, 2 common hashes mkiv lua stats > used platform: win64, type: windows, binary subtree: texmf-win64 mkiv lua stats > luatex banner: this is luajittex, version beta-0.79.1 (tex live 2014/w32tex) (rev 5024)
mkiv lua stats > control sequences: 38313 of 65536 + 100000
mkiv lua stats > lua properties: engine: luajit, used memory: 24 MB (ctx: 0 MB), hash type: lua51, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 5.982 seconds, 1 processed pages, 1 shipped pages, 0.167 pages/second


--
RIk Kabel
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to