This extension idea I received by email is to swap around a person’s name, e.g. if it currently says “John Smith” it would flip it to “Smith, John” or vice versa.
How it might work for more complex names
John Herbert Walker Smith <=> Smith, John Herbert Walker
John H. W. Smith, <=> Smith, John H. W.
J. Herbert Smith <=> Smith, J. Herbert
Basically it should assume the surname is one word an everything else is the forenames.
Thanks for this! I would more often need the reverse of this (John Do to Doe, John), but will keep this one in mind. Is there a simple “transpose 2 words” (or 2 characters) operation?
That would go partway but would also be useful to place punctuation inside double or single quotation marks for example when they appear on the outside.