4 votes

KeenWrite 2.2.0: Curl straight quotes upon export

1 comment

  1. DaveJarvis
    Link
    When exporting to XHTML and PDF files, KeenWrite now curls quotes automatically. See the list of test cases that are handled correctly. The code is basically a collection of rules, which should...

    When exporting to XHTML and PDF files, KeenWrite now curls quotes automatically.

    See the list of test cases that are handled correctly. The code is basically a collection of rules, which should port fairly easily to other programming languages.

    If your prose has a lot of ambiguous ye olde cockney English, the curling feature will make some mistakes, so either disable it or curl the ambiguous quotes yourself. Modern English without complicated interplay between leading and trailing contractions will curl correctly.

    The quote curling rules are for English prose.

    KeenQuotes may be used as a standalone command-line quote curler or as a library. If there's interest, I'll update it to handle XHTML documents---the code is already there, just not exposed from the command-line. The software handles more scenarios than either John Gruber's SmartyPants or Matt Ryall's smartquotes, and is much lighter than Stanford's NLP QuoteAnnotator (65 KB vs 14+ MB).

    2 votes