ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Missing images in Wiki?
@ 2021-01-21 19:30 Andres Conrado Montoya
  2021-01-22  8:06 ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Conrado Montoya @ 2021-01-21 19:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

It seems a lot of image examples from the wiki are gone now. Most articles
lost many images. Is this on purpose?

-- 
Andrés Conrado Montoya

[-- Attachment #1.2: Type: text/html, Size: 343 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] 4+ messages in thread

* Re: Missing images in Wiki?
  2021-01-21 19:30 Missing images in Wiki? Andres Conrado Montoya
@ 2021-01-22  8:06 ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2021-01-22  8:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 21 Jan 2021, at 20:30, Andres Conrado Montoya <andresconrado@gmail.com> wrote:
> 
> It seems a lot of image examples from the wiki are gone now. Most articles lost many images. Is this on purpose? 

Seems unlikely, but provide a few examples, please. I will check.

— 
Taco Hoekwater              E: taco@bittext.nl
genderfluid (all pronouns)



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

* Re: Missing images in Wiki?
  2021-01-22 19:41 ` Andres Conrado Montoya Acosta
@ 2021-01-25  8:19   ` Taco Hoekwater
  0 siblings, 0 replies; 4+ messages in thread
From: Taco Hoekwater @ 2021-01-25  8:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 22 Jan 2021, at 20:41, Andres Conrado Montoya Acosta <elandi@chiquitico.org> wrote:
> 
> This is one example: 
> 
> https://wiki.contextgarden.net/Command/externalfigure
> 
> However, now I checked the source, and the image files are there... and they are being correctly linked, but the image attributes width and height are set to zero. Maybe something wrong with lazy loading?

The remote cat was missing from ConTeXt’s image cache. I fixed that now by editing the source (added a space),
which made the wiki rerun ConTeXt, and that in turn made ConTeXt re-fetch the url contents.

The other images all load fine for me.



Images for ‘<context>’ blocks can be a little tricky, because the wiki software caches them based on a hash of the block’s contents. So if something transient goes wrong in the ConTeXt processing but ConTeXt still outputs some sort of PDF, then that output will never get fixed unless you edit the wiki source again. 

That does not happen a lot, but it is likelier to happen with remote content.

There are two ways around this:

1. edit the block source slightly, by adding a space or a % or something else that is harmless. That changes the hash key of the content, and the wiki will (probably) regenerate the graphic.

2. There is a ‘secret’ force attribute for <context>, but that should only be used to apply fixes like the one I did above, and it should be removed afterwards. That attribute bypasses the wiki caching altogether. But as that is really bad for the webserver’s performance, it should only be used if there is no other way. 

See also:  https://wiki.contextgarden.net/Help:Context


Best wishes,
Taak


— 
Taco Hoekwater              E: taco@bittext.nl
genderfluid (all pronouns)



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

* Re: Missing images in Wiki?
       [not found] <mailman.1.1611313201.30311.ntg-context@ntg.nl>
@ 2021-01-22 19:41 ` Andres Conrado Montoya Acosta
  2021-01-25  8:19   ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Conrado Montoya Acosta @ 2021-01-22 19:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

This is one example:

https://wiki.contextgarden.net/Command/externalfigure

However, now I checked the source, and the image files are there... and
they are being correctly linked, but the image attributes width and height
are set to zero. Maybe something wrong with lazy loading?

Example in html code:

<img class="image-lazy-loaded" alt="" style=""
src="/wikiteximage/966d36e3a607022bcbae59654239a147.png" srcset="" *width="0"
height="0"*>


El vie, 22 ene 2021 a las 6:00, <ntg-context-request@ntg.nl> escribió:

> Send ntg-context mailing list submissions to
>         ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>         ntg-context-request@ntg.nl
>
> You can reach the person managing the list at
>         ntg-context-owner@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>    1. Missing images in Wiki? (Andres Conrado Montoya)
>    2. Re: Missing images in Wiki? (Taco Hoekwater)
>    3. new lmtx / fonts (Hans Hagen)
>    4. \doassign variable - updates not picked up (Werner Hennrich)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 21 Jan 2021 14:30:59 -0500
> From: Andres Conrado Montoya <andresconrado@gmail.com>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] Missing images in Wiki?
> Message-ID:
>         <CAGhDZhBhKYygadgykbrqDm_VEqHDA=
> z7sh-Ng53xaxs6LR_DyQ@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> It seems a lot of image examples from the wiki are gone now. Most articles
> lost many images. Is this on purpose?
>
> --
> Andrés Conrado Montoya
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210121/8ba7f748/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Fri, 22 Jan 2021 09:06:51 +0100
> From: Taco Hoekwater <taco@bittext.nl>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Missing images in Wiki?
> Message-ID: <712D4F56-8CBC-4BDF-ADAC-86FACD1D2DB6@bittext.nl>
> Content-Type: text/plain;       charset=utf-8
>
>
>
> > On 21 Jan 2021, at 20:30, Andres Conrado Montoya <
> andresconrado@gmail.com> wrote:
> >
> > It seems a lot of image examples from the wiki are gone now. Most
> articles lost many images. Is this on purpose?
>
> Seems unlikely, but provide a few examples, please. I will check.
>
> —
> Taco Hoekwater              E: taco@bittext.nl
> genderfluid (all pronouns)
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 22 Jan 2021 09:50:50 +0100
> From: Hans Hagen <j.hagen@xs4all.nl>
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: [NTG-context] new lmtx / fonts
> Message-ID: <ab638a78-912f-c604-8c6e-9206193fe511@xs4all.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I uploaded a new lmtx. I'm still playing a bit with metafonts so there
> are two new files
>
> context --global meta-imp-demo.mkxl
> context --global meta-imp-clock.mkxl
>
> Both show a bit. The question is, do we need / want more like this? What
> kind of interfaces are best? It's mostly about used defined symbols that
> are proper characters and efficiently used.
>
> Hans
>
> PS. The clock one has a hidden cut'n'paste feature that only works on
> acrobat which of course then makes it a kind of useless feature (plenty
> of them by now) because when, e.g. a  mupdf bases viewer doesn't support
> this after all these years it's could as well be kept out of the standard.
>
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 22 Jan 2021 09:48:58 +0100
> From: Werner Hennrich <wehe@gmx.at>
> To: ntg-context@ntg.nl
> Subject: [NTG-context] \doassign variable - updates not picked up
> Message-ID: <88b0bb87-972e-0664-1e29-71e7b05388a7@gmx.at>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello everyone,
>
> I'm using ConTeXt  (ver: 2020.09.20 23:02 LMTX) and have to have
> conditional page headers based on specific content criteria. To achive
> this I'd like to get some global variables in TeX, change their values
> several times throughout the document and have my macro for the header
> read them and act accordingly (like skip the header at all, change a
> color, etc).
>
> As a basis for this I established the following pattern in an iolated
> test case:
>
>     \def\setHeaderVar[#1]{
>     \doassign[header][myvar=#1]
>     \message{setHEADER: '#1'}
>     }
>     \def\getHeaderVar{\headermyvar}
>     \setupheadertexts[\setups{page:header}]
>     \startsetups page:header
>     HEADER: myvar=\getHeaderVar
>     \stopsetups
>     \starttext
>     \setHeaderVar[initval]
>     page: 1
>     \page
>     \setHeaderVar[aaaaa]
>     page: 2
>     \page
>     \setHeaderVar[bbbbb]
>     page: 3
>     \page
>     \setHeaderVar[cccc]
>     page: 4
>     \page
>     \setHeaderVar[]
>     page: 5
>     \stoptext
>
> This works as expected and the header-macro prints the updated value.
> But when I put the same pattern in my big environment-file, I can see
> the variable being updated with different values (console), but the
> header always puts out just the variable's initial value - so the
> variable is read but it's updates aren't picked up by the header macro.
> Peeking into console, log & tuc didn't raise any idea yet as to what is
> going wrong...
>
> Any idea what is happening and how I can fix this?
>
> Any hints on how I can track this down?
>
> Thanks a lot,
> Werner Hennrich, Vienna AT
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210122/b5413c6c/attachment-0001.htm
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
>
> ___________________________________________________________________________________
> 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  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>
>
> ------------------------------
>
> End of ntg-context Digest, Vol 199, Issue 53
> ********************************************
>


-- 
Andrés Conrado Montoya
http://chiquitico.org

[-- Attachment #1.2: Type: text/html, Size: 10953 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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21 19:30 Missing images in Wiki? Andres Conrado Montoya
2021-01-22  8:06 ` Taco Hoekwater
     [not found] <mailman.1.1611313201.30311.ntg-context@ntg.nl>
2021-01-22 19:41 ` Andres Conrado Montoya Acosta
2021-01-25  8:19   ` Taco Hoekwater

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