Author: soliton
Date: Sun Jun 8 22:36:27 2008
New Revision: 27051
URL: http://svn.gna.org/viewcvs/wesnoth?rev=27051&view=rev
Log:
* small improvement to abbreviation generation
Modified:
trunk/data/tools/wmlunits
Modified: trunk/data/tools/wmlunits
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wmlunits?rev=27051&r1=27050&r2=27051&view=diff
==============================================================================
--- trunk/data/tools/wmlunits (original)
+++ trunk/data/tools/wmlunits Sun Jun 8 22:36:27 2008
@@ -203,8 +203,9 @@
def abbrev(name):
abbrev = name[0]
+ word_seperators = [" ", "_", "+", "(", ")"]
for i in range(1, len(name)):
- if name[i] in ["(", ")"] or name[i - 1] in [" ", "_", "(",
")"]:
+ if name[i] in ["+", "(", ")"] or name[i - 1] in
word_seperators and name[i] not in word_seperators:
abbrev += name[i]
return abbrev
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits