Re: Smart quotes via finite state machine

2024-09-23 Thread onf
Hi Deri, On Tue Sep 24, 2024 at 1:27 AM CEST, Deri wrote: > That's the path I followed. A script which takes the text file version from > the gutenberg site and produces an A5 pdf, via groff, example attached. Happy > to give you a copy of the script if you are interested. That sounds (and look

Re: Smart quotes via finite state machine

2024-09-23 Thread onf
On Mon Sep 23, 2024 at 4:54 PM CEST, Douglas McIlroy wrote: > Because the state diagram is complex, it may be hard for a user to see > what's up when it does make a mistake. > > I infer that open-quot-space has two purposes: (1) to allow a single space > to be quoted, as might happen in a language

Re: Smart quotes via finite state machine

2024-09-23 Thread onf
Hi Branden, On Mon Sep 23, 2024 at 3:05 AM CEST, G. Branden Robinson wrote: > A document author should say (type) what they mean. > [...] > If you mean a foot mark or inches mark rather than a quotation mark, you > should say so to groff. I understand this approach. The problem comes when trying

Re: Smart quotes via finite state machine

2024-09-23 Thread Douglas McIlroy
A word of caution. AI is a dangerous tool. "Smart" features abound in Microsoft Word and its imitators. They are neat when they work, but can be extremely frustrating when they go wrong. Whenever one bites, you have to cook up a special trick--or a whole new layout--to get past it. A common examp

Re: Smart quotes via finite state machine

2024-09-22 Thread G. Branden Robinson
Hi onf, At 2024-09-23T01:02:35+0200, onf wrote: [...] > I wondered if perhaps having some minimal context could allow one to > decide whether the " character is actually a quotation mark or just > an inch mark, and similarly with '. It's going to take me some time to absorb the rest of your messa