ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jeong Dal <haksan@me.com>
Subject: Re: unable to define 'texgyrepagella-regula' error etc.
Date: Thu, 26 Jul 2018 10:24:42 +0200	[thread overview]
Message-ID: <b6044f9b-37f1-830a-905a-59002100ab22@xs4all.nl> (raw)
In-Reply-To: <7F7C0E3E-3A03-43A9-B440-7470830A0098@me.com>

On 7/26/2018 2:49 AM, Jeong Dal wrote:
> Dear all,
> 
> Yesterday, I asked about a font problem without a mwe.
> 
> Here is a MWE.
> %%%%%%%%%
> \setuplanguage[kr][patterns=us]
> \mainlanguage[kr]
> \setscript[hangul]
> 
> \usetypescriptfile[type-hcrlvt]
> \usetypescript[HcrFont]
> \definefontfeature[kr][script=hang,language=kor,mode=node,analyze=yes]
> \setupbodyfont[Myface, rm, 11pt]
> 
> \starttext
> This is a test file.  %이것은 시험 파일입니다.
> 
> {\bf This is a test file for font.}%{\bf 이것은 시험 파일입니다.}
> 
> {\sl This is a test file for font.}%{\sl 이것은 시험 파일입니다.}
> 
> \stoptext
> %%%%%%%%
> 
> Here is a part of log file of the first run.
> 
> mtx-context     | run 1: luatex 
> --fmt="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
> --jobname="test" 
> --lua="/Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
> --no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
> --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
> "cont-yes.mkiv"
> 
> This is LuaTeX, Version 1.08.0 (TeX Live 2018)
>   system commands enabled.
> open source     > level 1, order 1, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system          >
> system          > ConTeXt  ver: 2018.07.20 21:20 MKIV beta  fmt: 
> 2018.7.24  int: english/english
> system          >
> system          > 'cont-new.mkiv' loaded
> open source     > level 2, order 2, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > beware: some patches loaded from cont-new.mkiv
> close source    > level 2, order 2, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system          > files > jobname 'test', input './test', result 'test'
> fonts           > latin modern fonts are not preloaded
> languages       > language 'en' is active
> open source     > level 2, order 3, name 
> '/Users/graph/Documents/TeXfiles/test.tex'
> open source     > level 3, order 4, name 
> '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv'
> open source     > level 4, order 5, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
> close source    > level 4, order 5, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
> close source    > level 3, order 5, name 
> '/Users/graph/ConTeXt/tex/texmf-local/context/type-hcrlvt.mkiv'
> fonts           > defining > font with asked name 
> 'texgyrepagella-regular' is not found using lookup 'file'
> fonts           > defining > unknown font 'texgyrepagella-regular', 
> loading aborted
> fonts           > defining > unable to define 'texgyrepagella-regular' 
> as 'dummy--0'
> fonts           > defining > font with asked name 'texgyrepagella-bold' 
> is not found using lookup 'file'
> fonts           > defining > unknown font 'texgyrepagella-bold', loading 
> aborted
> fonts           > defining > unable to define 'texgyrepagella-bold' as 
> 'dummy--0'
> fonts           > defining > font with asked name 
> 'texgyrepagella-regular' is not found using lookup 'file'
> fonts           > defining > unknown font 'texgyrepagella-regular', 
> loading aborted
> fonts           > defining > unable to define 'texgyrepagella-regular' 
> as 'dummy--0'
> backend         > xmp > using file 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages           > flushing realpage 1, userpage 1, subpage 1
> close source    > level 2, order 5, name 
> '/Users/graph/Documents/TeXfiles/test.tex'
> close source    > level 1, order 5, name 
> '/Users/graph/ConTeXt/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: 
> /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans 
> with scantime 0.000 seconds, 0 shared scans, 14 found files, scanned 
> paths: <none>
> mkiv lua stats  > stored bytecode data: 428 modules (0.208 sec), 93 
> tables (0.013 sec), 521 chunks (0.220 sec)
> mkiv lua stats  > traced context: maxstack: 1309, freed: 0, unreachable: 
> 1309
> mkiv lua stats  > cleaned up reserved nodes: 58 nodes, 9 lists of 455
> mkiv lua stats  > node memory usage: 2 glue, 2 kern, 2 penalty, 13 
> attribute, 50 glue_spec, 4 attribute_list, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 6 
> instances (re)created, 43 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
> output)
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: internal: 146, file: 617, direct: 2, late: 
> 0, function 868, total: 1633
> mkiv lua stats  > loaded patterns: en::2 kr::51, load time: 0.000
> mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
> objectcompresslevel 3
> mkiv lua stats  > loaded fonts: 3 files: latinmodern-math.otf, 
> hanbatang-lvt.ttf, hanbatangb-lvt.ttf
> mkiv lua stats  > font engine: otf 3.103, afm 1.513, tfm 1.000, 9 
> instances, 4 shared in backend, 4 common vectors, 0 common hashes, load 
> time 1.061 seconds
> mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: 
> texmf-osx-64
> mkiv lua stats  > used engine: luatex version 1.08 with functionality 
> level 6731, banner: this is luatex, version 1.08.0 (tex live 2018)
> mkiv lua stats  > control sequences: 46564 of 65536 + 100000
> mkiv lua stats  > lua properties: engine: lua 5.3, used memory: 214 MB 
> (ctx: 213 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf 
> (τεχ)
> mkiv lua stats  > runtime: 1.403 seconds, 1 processed pages, 1 shipped 
> pages, 0.713 pages/second
> 
> I checked the location of texgyre font and here is the result.
> 
> /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/shapes/texgyrepagella-regular-otf.tma
> 
> /Users/graph/ConTeXt/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/otl/texgyrepagella-regular.tma
> 
> I don’t know what happened here and how to make it right.

Here i see:

mkiv lua stats  > loaded fonts: 5 files: texgyrepagella-bold.otf, 
texgyrepagella-regular.otf, hanbatang-lvt.ttf, hanbatangb-lvt.ttf, 
latinmodern-math.otf

Maybe:

(1) wipe the cache
(2) mtxrun --script --reload -force

> Here is a typescript file.
Better use type-imp-<yourtag>.mkiv i.e. "-imp-" in the name for such 
specific implementation files

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
___________________________________________________________________________________

  reply	other threads:[~2018-07-26  8:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1515668401.1779.ntg-context@ntg.nl>
2018-01-12  2:54 ` referencing the customized enumeration with framed title Jeong Dal
2018-01-12 14:31   ` Hans Hagen
2018-01-12 16:22     ` Jeong Dal
2018-01-12 18:19       ` Hans Hagen
2018-07-24 23:40         ` unable to define 'texgyrepagella-regula' error etc Jeong Dal
2018-07-25  8:19           ` Otared Kavian
2018-07-26  0:49         ` Jeong Dal
2018-07-26  8:24           ` Hans Hagen [this message]
2018-07-26 14:53             ` Jeong Dal
2018-07-26 15:24               ` Hans Hagen
2018-01-12 14:51   ` referencing the customized enumeration with framed title Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b6044f9b-37f1-830a-905a-59002100ab22@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=haksan@me.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).