ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* lmtx update
@ 2020-07-31  8:32 Hans Hagen
  2020-07-31  8:40 ` Taco Hoekwater
                   ` (3 more replies)
  0 siblings, 4 replies; 26+ messages in thread
From: Hans Hagen @ 2020-07-31  8:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Sorry for the long mail ...

One of the changes in lmtx is that we freeze the properties that 
determine the paragraph shape as well as breaking into lines in such a 
way that we have predictable behaviour. As a side effect it can be that 
existing code (lmtx only) will behave differently (will be fixed when we 
notice) but also that some low level user tweaking can not work, i.e. 
they are just ignored, but only when they happen mid paragraph which 
actually is always debatable anyway.

Now, if for some reasom you get unexpected results and can't wait for a 
fix, you can do this:

   \forgetparagraphfreezing : disables
   \setparagraphfreezing    : enables (default)

Of course it might have other side effects once in lmtx we everywhere 
expect freezing to be enabled. You can take a snapshot with:

   \freezeparagraphproperties  : snapshot relevant parameters
   \defrostparagraphproperties : resets snapshot

More efficient is snapshotting a subcategory:

   \updateparagraphproperties : all
   \updateparagraphpenalties  : only penalties
   \updateparagraphdemerits   : other than penalties
   \updateparagraphshapes     : hangindent etc

Don't use the low level commands that they use because we take plenty of 
time to experiment at that level and interfaces might evolve, for instance:

\frozen\hangindent 30pt
\frozen\hangafter  2

is valid and will likely stay.

We're talking of a conceptually rather different approach. Internally 
the engine is still doing the same things but we can control it a bit 
differently. Due to the way ConTeXt is set up, we can make such a 
paradigm shift without too much troubles. I'll wrap up more details in 
an article later.

Other work in progress is: better columns in itemize, esp proper 
footnote support (not that I ever need that but I know users do so ...), 
experiments work ok, but I need to check spacing. In general, footnotes 
(will) behave a bit better, especially those used nested in other 
mechanisms. A side effect of more control is that we can do other tricks 
too and we're playing with it (kind of fun).

More work in progress concerns paragraph wrappers and that will result 
in a rewrite of some existing mechanism (generic subsystems with 
instances), but that might as well go unnoticed.

To give an idea of possibilities, here is an example:

\definedescription[whatever][alternative=right:bottom]

\startwhatever{just a small\\example}
     \input ward
\stopwhatever

No one ever requested it so see it an a quick and dirty example but 
don't hesitate to ask for more anyway (we like an occasional challenge).

Anyway, it might take some weeks / iterations before all this settles 
down and now you can't say that we didn't warn you.

So far,

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] 26+ messages in thread
* lmtx update
@ 2020-09-16 15:52 ebohoyod
  2020-09-16 16:23 ` Wolfgang Schuster
  0 siblings, 1 reply; 26+ messages in thread
From: ebohoyod @ 2020-09-16 15:52 UTC (permalink / raw)
  To: ntg-context


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

Hi,

It seems that the Lettrine module is one of those affected:

https://tex.stackexchange.com/questions/562534/does-context-fail-in-the-lmtx-environment-with-the-lettrine-module?noredirect=1#comment1418902_562534 


But, honestly, first, I don't know what means "/Of course it might have 
other side effects once in lmtx we everywhere expect freezing to be 
enabled./"
I suppose that, in order not to be a nuisance (and not to digress into 
this real subject of interest), a short answer would be enough to put me 
on track to investigate it.

On the other hand, I suppose the best practice, from what I have just 
read, would be not to use \forgetparagraphfreezing globaly, but 
\forgetparagraphfreezing  and \setparagraphfreezing at the beginning and 
end of the first paragraph respectively of each chapter.  Would this be 
the least harmful way? That is, wrapping it up to avoid this provisional 
failure of the Lettrine with LMTX module, but at the same time to avoid 
affecting that default freezing proposal in the rest of the document, 
right?

By the way, and just out of curiosity, how does the recommended 
provisional command work? Would it be something like this in the preamble?:

\definingparagraphs
     firstparagraph][n=1]
     \setupparagraphs [firstparagraph][1][align={hanging}]

And then this arrangement in the \input files?:

\startfirstparagraph
\lettrine{B}{lah} blah, blah, blah...
\stopfirstparagraph
\blank [overlay] \strut

I know it's a dirty, inelegant solution, but I can't think of a better 
one at the moment.


[-- Attachment #1.2: Type: text/html, Size: 2460 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] 26+ messages in thread
* lmtx update
@ 2021-08-19 17:57 Hans Hagen via ntg-context
  2021-08-19 20:07 ` Aditya Mahajan via ntg-context
  0 siblings, 1 reply; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2021-08-19 17:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

Here are the highlights of todays update:

- somewhat more compact tuc files, not for all documents, but it can 
accumulate; also less memory used then; i could bring down an extreme 
2000 page 5 column doc tuc file down to 5% -- it was 70 MB; for the 
luametatex manual it reducec the tuc more than 30%; hard to tell if 
there will be an associated performance hit, but i'm sure thomas will 
complain if that's the case

- more mp-tex-lua interfacing upgraded plus extra preliminary chapter 
for luametafun about extensions - for taco

- a slightly more compact cache files for fonts with many (pseudo) 
ligatures; hopefully no side effects (nothing that can't be fixed fast 
if noted); quite probably no performance hit and maybe even some room 
for optimization (not done yet)

- a split in the cache directory for luametatex so that we can more 
easilly experiment without interference (so, although the above works in 
mkiv it's not enabled there currently)

- some minor things (also in the process of splitting the codebase)

- no real changes in / additions to the luametatex binary (we're in 
cosmetics mode now)

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] 26+ messages in thread
[parent not found: <mailman.0.1629453601.23792.ntg-context@ntg.nl>]
* lmtx update
@ 2023-02-06 17:21 Hans Hagen via ntg-context
  0 siblings, 0 replies; 26+ messages in thread
From: Hans Hagen via ntg-context @ 2023-02-06 17:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen

Hi,

We were considering to drop the virtual math fonts mechanism (which has 
served its purpose in the transition in the very early days of luatex 
but became obsolete as math fonts evolved) but in the end we were forced 
keep this feature and even upgrade it because we liked iwona, kurier and 
anwykwa math too much. A typical case where one needs a week for 
reviewing, supporting, discussing, testing a few fonts, so let's hope it 
wi;l be used. Iwona and Kurier are nice sansish fonts and antykwa has a 
rather distinctive look and feel.

The current variant works okay for most of math (in most weights of the 
fonts)  but then, these fonts are not used for complex math or math 
using obscure symbols anyway.

It can also serve as a test case for somewhat ancient fonts but it is 
configured in the modern way we like more (as we might completely drop 
old code paths some day anyway).

And so, this update is dedicated to Janusz Nowacki, a Polish font 
friend, who passed away some time ago.

% \setupbodyfont[iwona]
% \setupbodyfont[kurier]
% \setupbodyfont[antykwa]

Hans & Mikael


-----------------------------------------------------------------
                                           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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-02-06 17:21 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31  8:32 lmtx update Hans Hagen
2020-07-31  8:40 ` Taco Hoekwater
2020-07-31 10:18   ` Hans Hagen
2020-08-01 13:20 ` Otared Kavian
2020-08-01 14:17   ` Hans Hagen
2020-08-01 16:20     ` Otared Kavian
2020-08-01 16:41   ` Henning Hraban Ramm
2020-08-01 16:57     ` Otared Kavian
2020-08-01 17:19       ` margin notes (was: lmtx update) Henning Hraban Ramm
2020-08-01 20:36         ` Otared Kavian
2020-08-01 21:01           ` Henning Hraban Ramm
2020-08-01 21:35             ` Otared Kavian
2020-08-02  3:30 ` lmtx update Aditya Mahajan
2020-08-03 17:37 ` Pablo Rodriguez
2020-09-16 15:52 ebohoyod
2020-09-16 16:23 ` Wolfgang Schuster
     [not found]   ` <6f2953c3-4b09-e824-da78-46347ef5f4af@disroot.org>
2020-09-17  8:14     ` Eduardo Bohoyo
2020-09-17 10:35       ` Wolfgang Schuster
2020-09-17 10:50         ` Eduardo Bohoyo
2020-09-17 11:11           ` Eduardo Bohoyo
2021-08-19 17:57 Hans Hagen via ntg-context
2021-08-19 20:07 ` Aditya Mahajan via ntg-context
2021-08-20  5:52   ` Hans Hagen via ntg-context
     [not found] <mailman.0.1629453601.23792.ntg-context@ntg.nl>
2021-08-22 22:55 ` Benjamin Buchmuller via ntg-context
2021-08-23  6:21   ` Hans Hagen via ntg-context
2023-02-06 17:21 Hans Hagen via ntg-context

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