Regex for proper use of Long S

Thoſe who know me know that I have a thing for uſing the Engliſh Long S properly and at every occaſion. I’ve come up with a regex that will auto-ſubstitute lowercaſe round S for long S where appropriate:

s/\([^kbf']\)s\([^kbf'\b]\)/\1\ſ\2/g

As a bonus, I ran the regex against this page. ^_^

Advertisements

  1. #1 by Joshua on May 29, 2011 - 7:28 PM

    Note that the ſ is good for HTML, SGML, and XML only. For plain text, use the actual unicode character U+017F instead (note that it doesn’t need to be escaped with the backslash like the SGML Entity Reference does).

  2. #2 by Chadwick on May 29, 2011 - 9:04 PM

    Our current font doesn’t seem to make good use of the long S.

    • #3 by Chadwick on May 29, 2011 - 9:05 PM

      I can’t feel my nose.

      • #4 by Joshua on May 29, 2011 - 9:24 PM

        Hahah. Best random comment ever!

        • #5 by Chadwick on May 29, 2011 - 9:25 PM

          Maybe I should drink whole bottles of wine more often. I could be a wino then.

    • #6 by Joshua on May 29, 2011 - 9:25 PM

      The original IM Fell Latin typeset (the largest English typeset known) has over 70 ligatures that include the long S. Scary stuff, considering you can download the full typesets as TrueType fonts.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: