Skip to content

Errors when trying to open odfWeave documents

7 messages · Dieter Menne, Paul Bivand, Max Kuhn

#
Paul Hurley wrote:
There was a problem with XML and odfWeave on Windows, probably you read one
of my posts. I normally use LateX, but I tried odfWeave and the examples
that failed at that time today with odfWeave_0.7.11 XML_2.8-1 , and it
worked. 

It would be helpful if you could prune your text to the smallest size that
shows the effect, and post it again; best put it on some web site for
download, since most attachments are not permitted on this list.


Dieter
1 day later
#
I tried with this:

 > sessionInfo()
R version 2.10.1 (2009-12-14)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] odfWeave_0.7.11 XML_2.8-1       lattice_0.17-26

loaded via a namespace (and not attached):
[1] grid_2.10.1  tools_2.10.1

OO 3.2.0
Win XP

I didn't have any issues with the testcases.odt and examples.odt files.

:-/


On Sun, May 2, 2010 at 11:39 AM, Dieter Menne
<dieter.menne at menne-biomed.de> wrote:

  
    
1 day later
1 day later
#
Can you send the rest of the sessionInfo() results? I'd like to see your locale.

Thanks,

Max
On Tue, May 4, 2010 at 5:12 PM, Paul <paul at paulhurley.co.uk> wrote:

  
    
1 day later
#
Max Kuhn wrote:
Hi Max,

I've put the locale info below.  I wanted to let you know that I tried 
some things again today, starting from scratch, and found that if I just 
ran the odfWeave command, my files were readable, but after I ran the 
lines from the formatting.R file they gave the error.

I eventually tracked the problem down to the line ;
 basicStyles$wideBullet$bulletChar="\342\234\224"
causes the outputs to give the error.  If I comment it out everything 
works fine.  I assume that this is a problem with the fonts available on 
my system ?  That if the symbol referenced by \342\234\224 isn't 
available then the file ends badly ?

Let me know if you have any other ideas, but otherwise, thanks hugely 
for the odfWeave package, it's probably saved R from not being used at 
all at my work (top ten Pharma).

Here's the locale info, Regards, Paul.

 > sessionInfo()
R version 2.10.1 (2009-12-14)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United 
Kingdom.1252    LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                            LC_TIME=English_United 
Kingdom.1252   

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base    

other attached packages:
[1] odfWeave_0.7.11 XML_2.8-1       lattice_0.18-3

loaded via a namespace (and not attached):
[1] grid_2.10.1  tools_2.10.1
 > Sys.getlocale()
[1] "LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United 
Kingdom.1252;LC_MONETARY=English_United 
Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252"
#
Paul,

That line defines the bullet character. I don't think that you'll be
missing much by excluding it.

I think that to avoid these issues, you should use a utf-8 locale. The
one that I get in my sessions is:

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

I'm sure that there are UK locales that would work.

xml tends to be defined in terms of utf8 character sets (at least I
see those characters a lot in xml files), so this might be a good idea
for you to do. How to do it is beyond me.

Max
On Fri, May 7, 2010 at 4:26 PM, Paul <paul at paulhurley.co.uk> wrote: