Changeset 539

Show
Ignore:
Timestamp:
04/27/09 20:56:39 (3 years ago)
Author:
confluence
Message:

changed variable format for greater consistency with the pmwiki version; added example of text to substitute.

Location:
confluence/genderiser/genderiser-python
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • confluence/genderiser/genderiser-python/genderiser.py

    r536 r539  
    7575    SAME: "same gender", 
    7676} 
    77  
    78 #specific_words = { 
    79     #"name": { 
    80         #"joe": ("Joseph", "Jane"), 
    81         #"bob": ("Robert", "Barbara"), 
    82     #}, 
    83     #"s_name": { 
    84         #"joe": ("Joe", "Jane"), 
    85         #"bob": ("Bob", "Barbs"), 
    86     #}, 
    87 #} 
    88  
    89 #people = { 
    90     #"joe": F, 
    91     #"bob": M, 
    92 #} 
    93  
    94  
    95 #sos = { 
    96     #"joe": O, 
    97     #"bob": F, 
    98 #} 
    9977 
    10078if len(sys.argv) == 1: 
     
    191169 
    192170    for keyword, value in keywords.iteritems(): 
    193         variable = "${%s}" % keyword 
    194         variable_c = "${%s,c}" % keyword 
     171        variable = "{$%s}" % keyword 
     172        variable_c = "{$%s,c}" % keyword 
    195173        contents = contents.replace(variable, value) 
    196174        contents = contents.replace(variable_c, value.capitalize())