Changeset 56
- Timestamp:
- Sat Jul 2 07:49:22 2005
- Files:
-
- trunk/transolution/filters/sgml2xliff.py (modified) (diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
trunk/transolution/filters/sgml2xliff.py
r44 r56 328 328 for match in matches: 329 329 segend = match.end(1) 330 if text[:segend].split()[-1] in skipwords: 330 lastpart = text[:segend].split()[-1] 331 # if last part before segend is longer then 1 char or in skipwords dont segment 332 if len(lastpart) < 3 or lastpart in skipwords: 331 333 continue 332 334 yield segend
