On 04 June 2002, Fran?ois Pinard said: > Hi, people. > > For this incoming text wrapper facility, there is a feature that appears > really essential to me, and many others: the protection of full stops[1]. If you mean reformatting this: """ This is a sentence ending. If we convert each newline to a single space, there won't be enough space after that period. """ to this: """ This is a sentence ending. If we convert each newline to a single space, there won't be enough space after that period. """ then my wrapping algorithm handles it. However, it's currently limited to English, because it relies on string.lowercase to detect sentence ending periods -- this needs to be fixed, but I was going to post the code and let someone who understands locales tell me what to do. ;-) Greg -- Greg Ward - programmer-at-big gward@python.net http://starship.python.net/~gward/ "... but in the town it was well known that when they got home their fat and psychopathic wives would thrash them to within inches of their lives ..."
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4