mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-09 22:00:39 +01:00
keep elipses char where it belongs when reversing rest of strings
This commit is contained in:
parent
49001c6893
commit
c42e5f2c0f
2 changed files with 587 additions and 587 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys, getopt, re, os
|
import sys, getopt, re, os
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
@ -12,12 +13,11 @@ expr = '(' + \
|
||||||
r"\\'" , \
|
r"\\'" , \
|
||||||
r'\\"' , \
|
r'\\"' , \
|
||||||
r'\s' , \
|
r'\s' , \
|
||||||
r'[;:.]' , \
|
u'[;:.…]' , \
|
||||||
] ) + \
|
] ) + \
|
||||||
')'
|
')'
|
||||||
|
|
||||||
# Can't make these work...
|
# Can't make these work...
|
||||||
# r'[;:.]' , \
|
|
||||||
# r'\(' , \
|
# r'\(' , \
|
||||||
# r'\)' , \
|
# r'\)' , \
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue