Talk:Reverse a string: Difference between revisions

m
mention bidi
(→‎Extra Credit?: why I did what I did)
m (mention bidi)
Line 8:
I have found the [http://www.unicode.org/Public/5.2.0/ucd/Index-5.2.0d2.txt data table], ([http://www.unicode.org/copyright.html#Exhibit1 license]), that is embedded in the Python module on-line. Should I split the task and have the stretch goal as a task on its own? (parse the table if needed, reverse a unicode string using the info from the table/an internal function with the combining info). --[[User:Paddy3118|Paddy3118]] 09:20, 28 July 2009 (UTC)
 
About my addition: Yep, it's often tricky, and that's why I said "extra credit". The thing is, if you ''don't'' do it, you get nonsense from certain Unicode strings; this will become increasingly relevant as the world drifts away from the habits of ASCII-and-a-few-extras. So I added this to spread a little Unicode-handling-awareness (though this isn't even complete: there are also e.g. bidirectional formatting markers, which need even more complicated handling). And that's why I think it shouldn't be a separate task: it's not a ''different problem'', it's ''more correctness'' (unless the string you're reversing is not really text, in which case you're looking for [[Binary_string_manipulation_functions|binary]] tasks). --[[User:Kevin Reid|Kevin Reid]] 12:03, 28 July 2009 (UTC)