annotate README.txt @ 28:a1cda4ff6d4b

Add README.
author David Barts <n5jrn@me.com>
date Tue, 13 Apr 2021 10:18:59 -0700
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
1 This was written because I got sick of text I entered in many
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
2 applications having ugly "straight quotes" instead of the more
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
3 attractive “curly” quotes. I found it needlessly awkward to type the
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
4 Unicode characters necessary to do that, and it was easy enough to code
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
5 up a state machine that took care of most of the common cases one
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
6 encounters in English language texts.
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
7
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
8 While doing so, I also got the itch to experiment with using the Python
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
9 array module and the buffer protocol to implement writable strings,
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
10 because I was curious as to how much a fairly straightforward attempt at
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
11 same might speed up code (such as the state machine I had just written)
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
12 that makes many tiny, single-character modifications to a long strong.
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
13 It turns out that it is *very* hard to improve on Python's own strings,
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
14 but I left my own code in because its performance isn't all *that*
a1cda4ff6d4b Add README.
David Barts <n5jrn@me.com>
parents:
diff changeset
15 awful, either.