Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-26 Thread Hans Hagen via ntg-context
On 7/18/2022 11:24 PM, Benjamin Buchmuller via ntg-context wrote: This is the friendly reminder you requested for the "crappyspecs" parbuilder as per your example in early July. m-crappyspec is in the next upload Hans -

Re: [NTG-context] Count (and limit) glyphs per line?

2022-07-18 Thread Benjamin Buchmuller via ntg-context
Dear Hans, This is the friendly reminder you requested for the "crappyspecs" parbuilder as per your example in early July. With ConTeXt ver: 2022.07.06 21:42 LMTX fmt: 2022.7.8 I get tex error > tex error on line 12 in file ./test-wrapping2.tex: Undefined control sequence

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-27 Thread Hans Hagen via ntg-context
On 6/27/2022 12:32 AM, Max Chernoff via ntg-context wrote: On 2022-06-26 9:59 a.m., Benjamin Buchmuller wrote: I forgot about \leftskip. Replace "tex.hsize" with "tex.hsize - tex.leftskip.width" and everything should work properly. Using localhsize would also work, whenever it's non-zero.

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Max Chernoff via ntg-context
On 2022-06-26 9:59 a.m., Benjamin Buchmuller wrote: Hi Max, Thank you so much for your help and pointing me to the documents; always a lot of things to learn in TeX! No problem :) I'm afraid that including the hyphen width doesn't solve the issue yet. It seems to move the problem to other

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Benjamin Buchmuller via ntg-context
I completely agree, Hans, that such specifications are often made without a second thought on them. And Max is probably right that they originated from the typewriter area. In a sense these "challenges" can be at least somewhat educational. I've learnt---also thanks to Max's suggestions---a

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Hans Hagen via ntg-context
On 6/25/2022 10:25 PM, Benjamin Buchmuller via ntg-context wrote: Dear list, A brief follow-up for (1) itemizations [resolved; but question on ConTeXt hsize defaults] and (2) hyphenation [troubles]. (1) To deal with itemizations and other situation where texts are indented such as:

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Benjamin Buchmuller via ntg-context
Hi Max, Thank you so much for your help and pointing me to the documents; always a lot of things to learn in TeX! I'm afraid that including the hyphen width doesn't solve the issue yet. It seems to move the problem to other parts of the text. My guess is that one could equivalently have said

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-26 Thread Hans Hagen via ntg-context
On 6/25/2022 5:38 PM, Benjamin Buchmuller via ntg-context wrote: Wow, that works like a charm! Thank you, Max! It's also a very insightful example of how to use and inject Lua code in the TeX output routine. Do you mind if I add it to the wiki? (Probably under "Wrapping".) I didn't check it

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-25 Thread Max Chernoff via ntg-context
It's also a very insightful example of how to use and inject Lua code in the TeX output routine. This is injecting Lua code before the paragraph builder, not in the output routine. Something like https://tex.stackexchange.com/a/644613/270600 or my module "lua-widow-control" would be an

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-25 Thread Benjamin Buchmuller via ntg-context
Dear list, A brief follow-up for (1) itemizations [resolved; but question on ConTeXt hsize defaults] and (2) hyphenation [troubles]. (1) To deal with itemizations and other situation where texts are indented such as: \setuppapersize[landscape,letter] \showframe \starttext

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-25 Thread Benjamin Buchmuller via ntg-context
Wow, that works like a charm! Thank you, Max! It's also a very insightful example of how to use and inject Lua code in the TeX output routine. Do you mind if I add it to the wiki? (Probably under "Wrapping".) Many thanks again! Benjamin > On Jun 24, 2022, at 01:44, Max Chernoff wrote: >

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-24 Thread Hans Hagen via ntg-context
On 6/24/2022 5:15 AM, Benjamin Buchmuller via ntg-context wrote: Dear list, I've been confronted with the following 'intriguing' formatting requirement for a document: " • Type density: Must be no more than 15 characters per linear inch (including characters and spaces). • Line spacing:

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-24 Thread Henning Hraban Ramm via ntg-context
Am 24.06.22 um 05:15 schrieb Benjamin Buchmuller via ntg-context: • Type density: Must be no more than 15 characters per linear inch (including characters and spaces). This talks about "type density", not characters per line. This depends mostly on the font (and letterspacing). I.e. you

Re: [NTG-context] Count (and limit) glyphs per line?

2022-06-23 Thread Max Chernoff via ntg-context
I've been confronted with the following 'intriguing' formatting requirement for a document: "Intriguing" is definitely right here. I suspect these guidelines were made for typewriters and haven't been updated since. to limit the number of glyphs per line to 112. 112 characters per line

[NTG-context] Count (and limit) glyphs per line?

2022-06-23 Thread Benjamin Buchmuller via ntg-context
Dear list, I've been confronted with the following 'intriguing' formatting requirement for a document: " • Type density: Must be no more than 15 characters per linear inch (including characters and spaces). • Line spacing: Must be no more than six lines per vertical inch. " While the line