not quite 1252

Serge Orlov Serge.Orlov at gmail.com
Fri Apr 28 09:31:11 EDT 2006


Anton Vredegoor wrote:
> Serge Orlov wrote:
>
> > Anton Vredegoor wrote:
> >> In fact there are a lot of printable things that haven't got a text
> >> attribute, for example some items with tag (xxxx)s.
> >
> > In my sample file I see <text:s text:c="2"/>, is that you're talking
> > about? Since my file is small I can say for sure this tag represents
> > two space characters.
>
> Or for example in firefox:
>
> <text:s/>
> in Amsterdam
> <text:s/>
>
> So, probably yes. If it doesn't have a text attribrute if you iterate
> over it using OOopy for example:
>
>      o   = OOoPy (infile = fname)
>      c = o.read ('content.xml')
>      for x in c.getiterator():
>          if x.text:
>
> Then we know for sure you have recreated my other problem.

I'm tweaking a small test file and see that
<text:s/> is one space character
<text:s text:c="2"/> is two space characters
<text:s text:c="3"/> is three space characters




More information about the Python-list mailing list