ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* btex ... etex within MP with 1 letter ignored?
@ 2018-07-17 13:40 Procházka Lukáš Ing.
  2018-07-17 14:24 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Procházka Lukáš Ing. @ 2018-07-17 13:40 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

Hello,

I encountered a weird thing - words of 1 letter inside btex ... etex within MP are not shown - check:

----
\setuplayout[page]

\startluacode
   context.setMPtext("Pare", "1")
   context.setMPtext("Pare2", "22")
   context.setMPtext("Pare3", "333")
\stopluacode

%

\startuseMPgraphic{Pare}
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))
     withcolor red
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))
     withcolor magenta
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} etex, (0, 50))
     withcolor green
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} etex, (0, 0))
     withcolor blue
     ;
   draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} etex, (0, -50))
     withcolor yellow
     ;

\stopuseMPgraphic

% Overlays

\defineoverlay[Pare][\useMPgraphic{Pare}]

\setupbackgrounds[page][background={foreground,Pare}]

\starttext
   \startTEXpage[width=210mm,height=297mm]
     Aaa
   \stopTEXpage
\stoptext
----

Here, texts "1" and "U" are not rendered; if you change them to e.g. "11" and "UU", all works fine.

Am I missing something? Bug?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

[-- Attachment #2: Pare.log --]
[-- Type: application/octet-stream, Size: 12774 bytes --]

open source     > level 1, order 1, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system          > 
system          > ConTeXt  ver: 2018.07.10 15:52 MKIV beta  fmt: 2018.7.13  int: english/english
system          > 
system          > 'cont-new.mkiv' loaded
open source     > level 2, order 2, name 'd:/Ctx-Beta/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 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'

system          > jobfiles > using path: d:\\Lukas\\ConTeXt\\Styles
system          > files > jobname 'Pare', input 'D:\\Lukas\\~\\Par~\\Pare.mkiv', result 'Pare'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 2, order 3, name 'D://Lukas/~/Par~/Pare.mkiv'
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
metapost        > initializing instance 'metafun:1' using format 'metafun' and method 'default'
metapost        > loading 'metafun' as 'd:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'default'
metapost        > initializing number mode 'scaled'
fonts           > bodyfont '20mm' is defined (can better be done global)
fonts           > bodyfont '68.29pt' is defined (can better be done global)
fonts           > bodyfont '45.52pt' is defined (can better be done global)
fonts           > bodyfont '56.91pt' is defined (can better be done global)
fonts           > bodyfont '45.53pt' is defined (can better be done global)
backend         > xmp > using file 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1, subpage 1
close source    > level 2, order 3, name 'D://Lukas/~/Par~/Pare.mkiv'
close source    > level 1, order 3, name 'd:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'

system          > start used files

system          > text: Pare

system          > stop used files


system          > start used files

system          >    1: filename=char-prv.lua filetype=tex format=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system          >    2: filename=cont-yes.mkiv filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system          >    3: filename=publ-imp-default.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system          >    4: filename=cont-new.mkiv filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system          >    5: filename=lang-exc.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system          >    6: filename=lang-us.lua filetype=scripts foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system          >    7: filename=D://Lukas/~/Par~/Pare.mkiv foundname=D://Lukas/~/Par~/Pare.mkiv fullname=D://Lukas/~/Par~/Pare.mkiv usedmethod=direct
system          >    8: filename=lm.lfg filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/fonts/mkiv/lm.lfg usedmethod=database
system          >    9: filename=lmroman12-regular filetype=otf format=otf foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
system          >   10: filename=latinmodern-math.otf filetype=opentypefonts foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
system          >   11: filename=metafun.mpiv filetype=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv usedmethod=database
system          >   12: filename=mp-base.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-base.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-base.mpiv usedmethod=database
system          >   13: filename=mp-tool.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-tool.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-tool.mpiv usedmethod=database
system          >   14: filename=mp-mlib.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-mlib.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-mlib.mpiv usedmethod=database
system          >   15: filename=mp-luas.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-luas.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-luas.mpiv usedmethod=database
system          >   16: filename=mp-page.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-page.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-page.mpiv usedmethod=database
system          >   17: filename=mp-butt.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-butt.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-butt.mpiv usedmethod=database
system          >   18: filename=mp-shap.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-shap.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-shap.mpiv usedmethod=database
system          >   19: filename=mp-grph.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-grph.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-grph.mpiv usedmethod=database
system          >   20: filename=mp-grid.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-grid.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-grid.mpiv usedmethod=database
system          >   21: filename=mp-form.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-form.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-form.mpiv usedmethod=database
system          >   22: filename=mp-figs.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-figs.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-figs.mpiv usedmethod=database
system          >   23: filename=mp-func.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-func.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-func.mpiv usedmethod=database
system          >   24: filename=mp-node.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-node.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-node.mpiv usedmethod=database
system          >   25: filename=mp-apos.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-apos.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-apos.mpiv usedmethod=database
system          >   26: filename=mp-abck.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-abck.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-abck.mpiv usedmethod=database
system          >   27: filename=mp-blob.mpiv filetype=mp format=mp foundname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-blob.mpiv fullname=d:/Ctx-Beta/tex/texmf-context/metapost/context/base/mpiv/mp-blob.mpiv usedmethod=database
system          >   28: filename=lmroman10-regular filetype=otf format=otf foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmroman10-regular.otf usedmethod=database
system          >   29: filename=lmsans10-regular filetype=otf format=otf foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmsans10-regular.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmsans10-regular.otf usedmethod=database
system          >   30: filename=lmsans10-bold filetype=otf format=otf foundname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmsans10-bold.otf fullname=d:/Ctx-Beta/tex/texmf/fonts/opentype/public/lm/lmsans10-bold.otf usedmethod=database
system          >   31: filename=lpdf-pdx.xml filetype=tex foundname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=d:/Ctx-Beta/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database

system          > stop used files


system          > start commandline options

system          > currentrun="3"
system          > fulljobname="D:\\Lukas\\~\\Par~\\Pare.mkiv"
system          > input="D:\\Lukas\\~\\Par~\\Pare.mkiv"
system          > kindofrun="2"
system          > maxnofruns="9"
system          > no-parse-first-line="true"
system          > nonstopmode="true"
system          > path="d:\\Lukas\\ConTeXt\\Styles"

system          > stop commandline options


system          > start commandline files

system          >    1: D:\\Lukas\\~\\Par~\\Pare.mkiv

system          > stop commandline files


modules         > start used modules


modules         > stop used modules


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: d:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.000 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 31 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 425 modules (0.227 sec), 93 tables (0.013 sec), 518 chunks (0.240 sec)
mkiv lua stats  > traced context: maxstack: 1313, freed: 9, unreachable: 1304
mkiv lua stats  > cleaned up reserved nodes: 67 nodes, 10 lists of 455
mkiv lua stats  > node memory usage: 4 glue, 2 kern, 4 penalty, 17 attribute, 50 glue_spec, 6 attribute_list, 2 temp, 2 user_defined
mkiv lua stats  > node list callback tasks: 7 unique task lists, 6 instances (re)created, 30 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.000 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: internal: 128, file: 191, direct: 3, late: 0, function 674, total: 996
mkiv lua stats  > randomizer: resumed with value 0.038850062562944
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > result saved in file: Pare.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 5 files: latinmodern-math.otf, lmroman10-regular.otf, lmroman12-regular.otf, lmsans10-bold.otf, lmsans10-regular.otf
mkiv lua stats  > font engine: otf 3.103, afm 1.513, tfm 1.000, 16 instances, 9 shared in backend, 3 common vectors, 6 common hashes, load time 0.402 seconds 
mkiv lua stats  > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 20mm 45.52pt 45.53pt 56.91pt 68.29pt
mkiv lua stats  > metapost: 0.000 seconds, loading: 0.031, execution: 0.000, n: 1, average: 0.031, instances: 1, luacalls: 11, memory: 1.805 M
mkiv lua stats  > used platform: mswin, type: windows, binary subtree: texmf-mswin
mkiv lua stats  > used engine: luatex version 1.08 with functionality level 6731, banner: this is luatex, version 1.08.0 (tex live 2018/w32tex)
mkiv lua stats  > control sequences: 47210 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua 5.2, used memory: 76 MB (ctx: 76 MB), hash type: lua, hash chars: min(32,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.786 seconds, 1 processed pages, 1 shipped pages, 1.272 pages/second


[-- Attachment #3: Pare.mkiv --]
[-- Type: application/octet-stream, Size: 1488 bytes --]

\setuplayout[page]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\startluacode
  context.setMPtext("Pare", "1")
  context.setMPtext("Pare2", "22")
  context.setMPtext("Pare3", "333")
\stopluacode

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%

\startuseMPgraphic{Pare}
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))
    withcolor red
    ;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))
    withcolor magenta
    ;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} etex, (0, 50))
    withcolor green
    ;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} etex, (0, 0))
    withcolor blue
    ;
  draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} etex, (0, -50))
    withcolor yellow
    ;

\stopuseMPgraphic

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Overlays

\defineoverlay[Pare][\useMPgraphic{Pare}]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\setupbackgrounds[page][background={foreground,Pare}]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\starttext
  \startTEXpage[width=210mm,height=297mm]
    Aaa
  \stopTEXpage
\stoptext

[-- Attachment #4: Pare.pdf --]
[-- Type: application/pdf, Size: 6934 bytes --]

[-- Attachment #5: Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: btex ... etex within MP with 1 letter ignored?
  2018-07-17 13:40 btex ... etex within MP with 1 letter ignored? Procházka Lukáš Ing.
@ 2018-07-17 14:24 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2018-07-17 14:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Procházka Lukáš Ing.

On 7/17/2018 3:40 PM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> I encountered a weird thing - words of 1 letter inside btex ... etex 
> within MP are not shown - check:
> 
> ----
> \setuplayout[page]
> 
> \startluacode
>    context.setMPtext("Pare", "1")
>    context.setMPtext("Pare2", "22")
>    context.setMPtext("Pare3", "333")
> \stopluacode
> 
> %
> 
> \startuseMPgraphic{Pare}
>    draw thelabel(btex \switchtobodyfont[20mm]\sans\bold TTT etex, (0, 150))
>      withcolor red
>      ;
>    draw thelabel(btex \switchtobodyfont[20mm]\sans\bold U etex, (0, 100))
>      withcolor magenta
>      ;
>    draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare} 
> etex, (0, 50))
>      withcolor green
>      ;
>    draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare2} 
> etex, (0, 0))
>      withcolor blue
>      ;
>    draw thelabel(btex \switchtobodyfont[20mm]\sans\bold \MPtext{Pare3} 
> etex, (0, -50))
>      withcolor yellow
>      ;
> 
> \stopuseMPgraphic
> 
> % Overlays
> 
> \defineoverlay[Pare][\useMPgraphic{Pare}]
> 
> \setupbackgrounds[page][background={foreground,Pare}]
> 
> \starttext
>    \startTEXpage[width=210mm,height=297mm]
>      Aaa
>    \stopTEXpage
> \stoptext
> ----
> 
> Here, texts "1" and "U" are not rendered; if you change them to e.g. 
> "11" and "UU", all works fine.
> 
> Am I missing something? Bug?
{\switchtobodyfont[20mm]\sans\bold \MPtext{Pare}}


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-17 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17 13:40 btex ... etex within MP with 1 letter ignored? Procházka Lukáš Ing.
2018-07-17 14:24 ` Hans Hagen

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).