ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* m-ipsum broken
@ 2021-01-24  1:10 Jairo A. del Rio
  2021-01-24 12:40 ` Hans Hagen
  2021-01-24 15:44 ` new font trickery Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Jairo A. del Rio @ 2021-01-24  1:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 85 bytes --]

Hi, list

Compiling m-ipsum yields an error in latest LMTX (2021.01.22 09:41)

Jairo

[-- Attachment #1.2: Type: text/html, Size: 144 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 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] 6+ messages in thread

* Re: m-ipsum broken
  2021-01-24  1:10 m-ipsum broken Jairo A. del Rio
@ 2021-01-24 12:40 ` Hans Hagen
  2021-01-24 15:44 ` new font trickery Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2021-01-24 12:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jairo A. del Rio

On 1/24/2021 2:10 AM, Jairo A. del Rio wrote:
> Hi, list
> 
> Compiling m-ipsum yields an error in latest LMTX (2021.01.22 09:41)
not only the latest i think ... lua became more strict on escapes over 
time ... i'll update the interface

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
___________________________________________________________________________________

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

* new font trickery
  2021-01-24  1:10 m-ipsum broken Jairo A. del Rio
  2021-01-24 12:40 ` Hans Hagen
@ 2021-01-24 15:44 ` Hans Hagen
  2021-01-24 16:34   ` Pablo Rodriguez
  1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2021-01-24 15:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jairo A. del Rio

Hi Jairo,

(to the list for those who want to play with it)

In addition to the metapost fotn subsystem I also made a tex variant. 
That one is currently based on setups. So, we now can use mp as well as 
tex to make fonts. Of course this is mostly for special purposes and for 
fun but both are quite efficient.

\starttext

\setupexternalfigure[directory={global,default}]

\startsetups box:demo:103
     \externalfigure[cow-brown.pdf][height=12pt]
\stopsetups

\startsetups box:demo:104
     \externalfigure[cow-black.pdf][height=10pt]
\stopsetups

\startsetups box:demo:105
     \externalfigure[mill.png][height=12pt]
\stopsetups

\startsetups box:demo:106
     \externalfigure[hacker.jpg][height=12pt]
\stopsetups

\registerboxglyph category {demo} unicode 103 \relax % rather low level 
for now
\registerboxglyph category {demo} unicode 104 \relax % rather low level 
for now
\registerboxglyph category {demo} unicode 105 \relax % rather low level 
for now
\registerboxglyph category {demo} unicode 106 \relax % rather low level 
for now

\definefontfeature[whatever][box=demo]

\definedfont[Serif*whatever]

% \enabletrackers[fonts.collecting]

\startTEXpage%[offset=0pt]
    %\hbox{g}%
     \hbox{\char103}%
     \hbox{\char104}%
\stopTEXpage

\startsetups box:demo:whatever
     \startMPcode
         picture p ; p := image (draw figure "hacker.jpg" ysized 10pt);
         fill      boundingbox p enlarged .5pt randomized 2pt withcolor 
"darkgray" ;
         clip p to boundingbox p enlarged -1pt randomized 2pt ;
         draw p ;
     \stopMPcode
\stopsetups

% in current font!

\iffontchar\font\privatecharactercode{demo:whatever}\else
     \setboxglyph {
         category {demo}
         name     {demo:whatever}
         setups   {box:demo:whatever}
     }%
\fi

\startTEXpage[offset=10pt]
     \char\privatecharactercode{demo:whatever}%
\stopTEXpage

\startTEXpage%[offset=0pt]
     \ruledhbox{\char103}
     \ruledhbox{\char104}
     \ruledhbox{\char105}
     \ruledhbox{\char106}
\stopTEXpage

\dorecurse{1000}{
     \char 103\relax \space
     \char 104\relax \space
     \char 105\relax \space
     \char 106\relax \space
}

\page

\setupalign[verytolerant,flushleft]

\dorecurse{100}{
     #1:
     \glyph yoffset -2pt `i\relax
     \glyph yoffset -3pt `j\relax\space
}

\stoptext

-----------------------------------------------------------------
                                           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] 6+ messages in thread

* Re: new font trickery
  2021-01-24 15:44 ` new font trickery Hans Hagen
@ 2021-01-24 16:34   ` Pablo Rodriguez
       [not found]     ` <149c1645-b437-bc71-76f6-8ccd3bf1e650@xs4all.nl>
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2021-01-24 16:34 UTC (permalink / raw)
  To: ntg-context

On 1/24/21 4:44 PM, Hans Hagen wrote:
> \starttext
>
> \setupexternalfigure[directory={global,default}]
>
> \startsetups box:demo:103
>      \externalfigure[cow-brown.pdf][height=12pt]
> \stopsetups
>
> \startsetups box:demo:104
>      \externalfigure[cow-black.pdf][height=10pt]
> \stopsetups
>
> \startsetups box:demo:105
>      \externalfigure[mill.png][height=12pt]
> \stopsetups
>
> \startsetups box:demo:106
>      \externalfigure[hacker.jpg][height=12pt]
> \stopsetups

Sorry, Hans, but I’m afraid it doesn’t work for me.

To find images, I neeed to add:

  \setupexternalfigure[location={default}]

I only get black cows and black squares for bitmap images.

I think this isn’t intended.

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
___________________________________________________________________________________

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

* Re: new font trickery
       [not found]     ` <149c1645-b437-bc71-76f6-8ccd3bf1e650@xs4all.nl>
@ 2021-01-24 17:16       ` Pablo Rodriguez
  2021-01-24 21:25         ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Pablo Rodriguez @ 2021-01-24 17:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 1/24/21 5:51 PM, Hans Hagen wrote:
>> [...]
>> I only get black cows and black squares for bitmap images.
>>
>> I think this isn’t intended.
> Works ok here ... so are the images found? Buggy pdf viewer?

Many thanks for your reply, Hans.

Images are found, but not with "directory=default", but with
"location=default".

Evince doesn’t display the images or colors. Acrobat for Linux doesn’t
display it either (this is why I thought it might be a bug).

But MuPDF and SumtraPDF (based on MuPDF) display it fine.

Sorry for the noise and 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
___________________________________________________________________________________

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

* Re: new font trickery
  2021-01-24 17:16       ` Pablo Rodriguez
@ 2021-01-24 21:25         ` Hans Hagen
  0 siblings, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2021-01-24 21:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

On 1/24/2021 6:16 PM, Pablo Rodriguez wrote:

> But MuPDF and SumtraPDF (based on MuPDF) display it fine.
An (in the meantime probably old version of) okular (windows) also shows 
it ok ... time to ditch (or update) evince 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
___________________________________________________________________________________

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

end of thread, other threads:[~2021-01-24 21:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24  1:10 m-ipsum broken Jairo A. del Rio
2021-01-24 12:40 ` Hans Hagen
2021-01-24 15:44 ` new font trickery Hans Hagen
2021-01-24 16:34   ` Pablo Rodriguez
     [not found]     ` <149c1645-b437-bc71-76f6-8ccd3bf1e650@xs4all.nl>
2021-01-24 17:16       ` Pablo Rodriguez
2021-01-24 21:25         ` 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).