Re: a multilingual hyphenation challenge

2025-02-04 Thread G. Branden Robinson
Hi onf, At 2025-02-04T20:53:03+0100, onf wrote: > Let nroff explain it: > $ nroff -ww << EOF > .tm \n[.hla] > .ev epigram > .hla fr > .tm \n[.hla] > .ev > .tm \n[.hla] > EOF > en > fr > fr An excellent procedure, one I endorse. > In other words, hyphenation language setting

Re: a multilingual hyphenation challenge

2025-02-04 Thread G. Branden Robinson
At 2025-02-04T22:15:47+0100, Tadziu Hoffmann wrote: > > In other words, hyphenation language setting is not local > > to the environment... > > But French would allow hyphenation of "commonplaces". Yes it would! Uh-oh! My puzzler was somewhat defective. The French hyphenation patterns never g

Re: a multilingual hyphenation challenge

2025-02-04 Thread Tadziu Hoffmann
> > But French would allow hyphenation of "commonplaces". > Would it? Funnily yes, and this had me initially confused. Try: .hla fr .hpf hyphen.fr .hla en .hpf hyphen.us .sp .ev epigram .hla fr .rj 1 L'homme c'est rien\[em]l'\[oe]uvre c'est tout. .ev .sp My life is spe

Re: a multilingual hyphenation challenge

2025-02-04 Thread Tadziu Hoffmann
> Notably, this design doesn't _prevent_ anyone changing hyphenation > language when they switch environments -- it just doesn't do it > automatically. That is, it covers the common case, but gives the user > flexibility to handle other cases. With the scope of both hyphenation > mode and hyphe

Re: a multilingual hyphenation challenge

2025-02-04 Thread onf
On Wed Feb 5, 2025 at 12:56 AM CET, onf wrote: [...] > I thus intuitivelly expected environments to save all formatting-related > properties. s/\./, including hyphenation settings./

Re: a multilingual hyphenation challenge

2025-02-04 Thread onf
On Tue Feb 4, 2025 at 10:13 PM CET, Dave Kemper wrote: > On Tue, Feb 4, 2025 at 1:54 PM onf wrote: > > In other words, hyphenation language setting is not local to the > > environment... which seems like a really unintuitive behavior, > > Being one of the disqualifieds from this challenge (having

Re: a multilingual hyphenation challenge

2025-02-04 Thread onf
On Tue Feb 4, 2025 at 10:15 PM CET, Tadziu Hoffmann wrote: > > > In other words, hyphenation language setting is not local > > to the environment... > > But French would allow hyphenation of "commonplaces". Would it? $ nroff -ww << EOF .pl 3 .ll 60n My life is spent in one long effort to escape

Re: a multilingual hyphenation challenge

2025-02-04 Thread Tadziu Hoffmann
> In other words, hyphenation language setting is not local > to the environment... But French would allow hyphenation of "commonplaces".

Re: a multilingual hyphenation challenge

2025-02-04 Thread Dave Kemper
On Tue, Feb 4, 2025 at 1:54 PM onf wrote: > In other words, hyphenation language setting is not local to the > environment... which seems like a really unintuitive behavior, Being one of the disqualifieds from this challenge (having been in prior discussion about it on savannah), I've had a few e

Re: a multilingual hyphenation challenge

2025-02-04 Thread onf
Hi Branden, On Tue Feb 4, 2025 at 11:08 AM CET, G. Branden Robinson wrote: > I have another puzzler. [...] > Consider the following input: > $ cat EXPERIMENTS/multilingual-trivia-challenge.groff > .sp > .ce 1 > A Study in Redheads > .sp > .ev epigram > .hla fr > .hy 6 > .ad r > L'homme c'est rien\

Re: a multilingual hyphenation challenge

2025-02-04 Thread G. Branden Robinson
Hi Tadziu, At 2025-02-04T13:58:26+0100, Tadziu Hoffmann wrote: > > [...] explain why the word "commonplaces" hyphenates in the second > > exhibit but not the first. > > Interesting! It's not clear from the documentation why it behaves > this way (or even, once you know how to fix it, what specif

Re: a multilingual hyphenation challenge

2025-02-04 Thread Tadziu Hoffmann
> [...] explain why the word "commonplaces" hyphenates in the > second exhibit but not the first. Interesting! It's not clear from the documentation why it behaves this way (or even, once you know how to fix it, what specifically the solution changes in the internal state to make it work and w

a multilingual hyphenation challenge

2025-02-04 Thread G. Branden Robinson
Hi folks, I have another puzzler. (A few people--they know who they are--are disqualified from this challenge. Please don't spoil it. ;-) ) Consider the following input: $ cat EXPERIMENTS/multilingual-trivia-challenge.groff .sp .ce 1 A Study in Redheads .sp .ev epigram .hla fr .hy 6 .ad r L'ho