Continuing documenting functions

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@575 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-07-14 15:13:46 +00:00
parent a75366234f
commit 4f644756f6
19 changed files with 195 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
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’ "