mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
4f644756f6
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@575 0fc631ac-6414-0410-93d0-97cfa31319b6
18 lines
607 B
Plaintext
18 lines
607 B
Plaintext
Function: curly_quotes
|
|
|
|
--Usage--
|
|
> curly_quotes(some_tagged_string)
|
|
|
|
Make quotes 'curly'.
|
|
Single and double quotation marks are changed to opening or closing versions depending on where they appear in the text.
|
|
|
|
--Parameters--
|
|
! Parameter Type Description
|
|
| @input@ [[type:tagged string]] String to make quotes curly in.
|
|
|
|
--Examples--
|
|
>>> curly_quotes("He said: 'This is cool!', she said: \"No way!\" ")
|
|
>>> == "He said: ‘This is cool!’, she said: “No way!” "
|
|
>>> curly_quotes("Also: ’Wrong quotes‘ ")
|
|
>>> == "Also: ‘Wrong quotes’ "
|