Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Hans Hagen
On 6/18/2021 5:48 PM, Thangalin wrote: The csquotes package can curl straight quotes: https://ctan.org/pkg/csquotes I don't know how smart its smart quote feature is, though, with respect to apostrophes. me neither and as we always had lots of quote related

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Hans Hagen
On 6/18/2021 6:05 PM, Thangalin wrote: > In HTML you should be able to use – I know that doesn’t work reliably in browsers (some add straight quotes to my CSS-configured guillemets). The Converter class maps token replacements:

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Thangalin
> In HTML you should be able to use – I know that doesn’t work reliably in browsers (some add straight quotes to my CSS-configured guillemets). The Converter class maps token replacements:

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Thangalin
The csquotes package can curl straight quotes: https://ctan.org/pkg/csquotes I don't know how smart its smart quote feature is, though, with respect to apostrophes. ___ If your question is of interest to others as

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Henning Hraban Ramm
> Am 18.06.2021 um 04:08 schrieb Thangalin : > > Hraban, > > > In what kind of workflows does your program make sense? > > Have you looked around the web lately? > > KeenWrite (https://github.com/DaveJarvis/keenwrite), my plain text editor, > can neither convert nor easily type curly quotes

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-18 Thread Hans Hagen
On 6/18/2021 4:08 AM, Thangalin wrote: Hraban, > In what kind of workflows does your program make sense? Have you looked around the web lately? KeenWrite (https://github.com/DaveJarvis/keenwrite ), my plain text editor, can neither convert nor

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Thangalin
Hraban, > In what kind of workflows does your program make sense? Have you looked around the web lately? KeenWrite (https://github.com/DaveJarvis/keenwrite), my plain text editor, can neither convert nor easily type curly quotes into the application. Recently, I added ConTeXt integration for

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Hans Hagen
On 6/18/2021 12:10 AM, Henning Hraban Ramm wrote: I usually convert all kinds of quotation marks into \quotation{} / \quote{} using the regex search of my editor; a regex replacement is also part of my docx-to-ConTeXt converter script. (I see no need to avoid regexes, but YMMV.) The biggest

Re: [NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Henning Hraban Ramm
I usually convert all kinds of quotation marks into \quotation{} / \quote{} using the regex search of my editor; a regex replacement is also part of my docx-to-ConTeXt converter script. (I see no need to avoid regexes, but YMMV.) The biggest problem I face are mixed and wrong quotation marks,

[NTG-context] Straight Quotes / Curly Quotes

2021-06-17 Thread Thangalin
I've written a Java-based lexer/parser that can convert straight quotes to curly quotes for English prose. It's a one-pass algorithm (O(n)) that uses neither look-behind nor regex. Here's a list of test cases it handles: