Re: About debugging tokenizer of writerfilter

2014-08-11 Thread Andre Fischer

On 09.08.2014 03:10, Hung Mark wrote:

Hi,

I tried to understand why my document doesn't format correctly.

I followed steps on wiki :
https://wiki.openoffice.org/wiki/WriterFilter


./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
file:///home/mark/num.docx


error: libwriterfilter.so: cannot get factory of demanded implementation:

debugservices.ooxml.ScannerTestService

dying...

./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
file:///home/mark/num.doc


error: libwriterfilter.so: cannot get factory of demanded implementation:

debugservices.doctok.ScannerTestService

dying...

Is the document outdated or did I miss anything?


Yes to the first part of your question, maybe to the second :-)

The wiki page describes a state during the development of the OOXML 
writer filter.  I am not sure that it was updated to keep track with 
development.  I was not directly involved in it so I can not give you 
any details.  But I did look into it a couple of months ago to asses 
whether to build on it for a better OOXML support or whether to rewrite 
it.  There are some interesting ideas in it but not all where realized 
and some don't work anymore.  Maybe the dumping of tokens is a case of 
not working anymore.


Some info that might help you:

The source of the ooxml/ScannerTestService can found in 
main/writerfilter/unocomponent/debugservices/ooxml/OOXMLTestService.cxx
There are some #ifdefs that depend on a DEBUG_ELEMENT environment 
variable.  I don't know if that is important but I also don't see a 
place where it is ever defined.
You might run the uno command in you debugger and place a breakpoint in 
ScannerTestService::run().  If you don't reach it then your problem is 
located in the UNO framework, otherwise it is in the OOXML scanner itself.


Regards,
Andre






-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: About debugging tokenizer of writerfilter

2014-08-10 Thread Hung Mark
Hi Peter and Regina,

I realized that I might have skipped important steps.
Later on I built with debug=t and install the so file, it printed another
error message.
And I guess that pre-installed libreoffice in my ubuntu 12.04 might affect
the result.
I'm now rebuilding my environment.
I tried wiki, and I wonder if it is possible to get detail instructions
here.


Best Regards.



2014-08-09 22:00 GMT+08:00 Regina Henschel rb.hensc...@t-online.de:

 Hi,

 Hung Mark schrieb:

  Hi,

 I tried to understand why my document doesn't format correctly.

 I followed steps on wiki :
 https://wiki.openoffice.org/wiki/WriterFilter


 ./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
 file:///home/mark/num.docx

  error: libwriterfilter.so: cannot get factory of demanded implementation:

 debugservices.ooxml.ScannerTestService

 dying...

 ./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
 file:///home/mark/num.doc

  error: libwriterfilter.so: cannot get factory of demanded implementation:

 debugservices.doctok.ScannerTestService

 dying...


 Is the document outdated or did I miss anything?


 I cannot help you in using uno, but if your document looks different in MS
 Word and OpenOffice, you should write a bug report. Reduce the document to
 the relevant parts and attach the reduced document to your report. Please
 specify in the bug report the program and version you have used to produce
 the document.

 There will be a release candidate of the version 4.1.1 soon (around end of
 next week). You should try that version too.

 Kind regards
 Regina


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




Re: About debugging tokenizer of writerfilter

2014-08-10 Thread Louis Suárez-Potts

 On 2014-08-10, at 09:54, Hung Mark mark...@gmail.com wrote:
 
 Hi Peter and Regina,
 
 I realized that I might have skipped important steps.
 Later on I built with debug=t and install the so file, it printed another
 error message.
 And I guess that pre-installed libreoffice in my ubuntu 12.04 might affect
 the result.

That's fairly interesting. Can you provide more information on that, perhaps in 
an issue report? I think that many have (or could have) similar experiences, as 
Ubuntu comes with LO.

 I'm now rebuilding my environment.
 I tried wiki, and I wonder if it is possible to get detail instructions
 here.

It is, if you also file an issue and just do the usual of reminding everyone :-)

But also, your experiences can add usefully to any content in that wiki. It's a 
good fail. :-)


 
 
 Best Regards.
 
 
best
louis


 
 2014-08-09 22:00 GMT+08:00 Regina Henschel rb.hensc...@t-online.de:
 
 Hi,
 
 Hung Mark schrieb:
 
 Hi,
 
 I tried to understand why my document doesn't format correctly.
 
 I followed steps on wiki :
 https://wiki.openoffice.org/wiki/WriterFilter
 
 
 ./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
 file:///home/mark/num.docx
 
 error: libwriterfilter.so: cannot get factory of demanded implementation:
 
 debugservices.ooxml.ScannerTestService
 
 dying...
 
 ./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
 file:///home/mark/num.doc
 
 error: libwriterfilter.so: cannot get factory of demanded implementation:
 
 debugservices.doctok.ScannerTestService
 
 dying...
 
 
 Is the document outdated or did I miss anything?
 
 
 I cannot help you in using uno, but if your document looks different in MS
 Word and OpenOffice, you should write a bug report. Reduce the document to
 the relevant parts and attach the reduced document to your report. Please
 specify in the bug report the program and version you have used to produce
 the document.
 
 There will be a release candidate of the version 4.1.1 soon (around end of
 next week). You should try that version too.
 
 Kind regards
 Regina
 
 
 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



Re: About debugging tokenizer of writerfilter

2014-08-10 Thread Hung Mark
Hi Louis,


After I enable debug by 'build debug=t', I glimpsed the traceback message
with 'libre...'. (not very sure)
Then I reinstall my VM and delete all libreoffice.

Here is what I do and the resulting message. Well, I guess it's nothing to
do with libreoffice ;-(


mh@ubuntu:~/aoo/main/writerfilter/unxlngx6.pro/lib$ cp
libwriterfilter.uno.so /opt/openoffice4/program/
mh@ubuntu:~/aoo/main/writerfilter/unxlngx6.pro/lib$ cp libdoctok.so
libooxml.so  libresourcemodel.so /opt/openoffice4/program/
mh@ubuntu:~/aoo/main/writerfilter/unxlngx6.pro/lib$ cd -
/opt/openoffice4/program
mh@ubuntu:/opt/openoffice4/program$ ./uno -l libwriterfilter.uno.so -c
debugservices.doctok.ScannerTestService -- file:///home/mh/num.doc
Loading service: debugservices.doctok.ScannerTestService: 0x7fb356994f70
can't initialize UCB
mh@ubuntu:/opt/openoffice4/program$



2014-08-10 23:06 GMT+08:00 Louis Suárez-Potts lui...@gmail.com:


  On 2014-08-10, at 09:54, Hung Mark mark...@gmail.com wrote:
 
  Hi Peter and Regina,
 
  I realized that I might have skipped important steps.
  Later on I built with debug=t and install the so file, it printed another
  error message.
  And I guess that pre-installed libreoffice in my ubuntu 12.04 might
 affect
  the result.

 That's fairly interesting. Can you provide more information on that,
 perhaps in an issue report? I think that many have (or could have) similar
 experiences, as Ubuntu comes with LO.

  I'm now rebuilding my environment.
  I tried wiki, and I wonder if it is possible to get detail instructions
  here.

 It is, if you also file an issue and just do the usual of reminding
 everyone :-)

 But also, your experiences can add usefully to any content in that wiki.
 It's a good fail. :-)


 
 
  Best Regards.
 
 
 best
 louis


 
  2014-08-09 22:00 GMT+08:00 Regina Henschel rb.hensc...@t-online.de:
 
  Hi,
 
  Hung Mark schrieb:
 
  Hi,
 
  I tried to understand why my document doesn't format correctly.
 
  I followed steps on wiki :
  https://wiki.openoffice.org/wiki/WriterFilter
 
 
  ./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService
 --
  file:///home/mark/num.docx
 
  error: libwriterfilter.so: cannot get factory of demanded
 implementation:
 
  debugservices.ooxml.ScannerTestService
 
  dying...
 
  ./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService
 --
  file:///home/mark/num.doc
 
  error: libwriterfilter.so: cannot get factory of demanded
 implementation:
 
  debugservices.doctok.ScannerTestService
 
  dying...
 
 
  Is the document outdated or did I miss anything?
 
 
  I cannot help you in using uno, but if your document looks different in
 MS
  Word and OpenOffice, you should write a bug report. Reduce the document
 to
  the relevant parts and attach the reduced document to your report.
 Please
  specify in the bug report the program and version you have used to
 produce
  the document.
 
  There will be a release candidate of the version 4.1.1 soon (around end
 of
  next week). You should try that version too.
 
  Kind regards
  Regina
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




Re: About debugging tokenizer of writerfilter

2014-08-09 Thread Regina Henschel

Hi,

Hung Mark schrieb:

Hi,

I tried to understand why my document doesn't format correctly.

I followed steps on wiki :
https://wiki.openoffice.org/wiki/WriterFilter


./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
file:///home/mark/num.docx


error: libwriterfilter.so: cannot get factory of demanded implementation:

debugservices.ooxml.ScannerTestService

dying...

./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
file:///home/mark/num.doc


error: libwriterfilter.so: cannot get factory of demanded implementation:

debugservices.doctok.ScannerTestService

dying...


Is the document outdated or did I miss anything?



I cannot help you in using uno, but if your document looks different in 
MS Word and OpenOffice, you should write a bug report. Reduce the 
document to the relevant parts and attach the reduced document to your 
report. Please specify in the bug report the program and version you 
have used to produce the document.


There will be a release candidate of the version 4.1.1 soon (around end 
of next week). You should try that version too.


Kind regards
Regina


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



About debugging tokenizer of writerfilter

2014-08-08 Thread Hung Mark
Hi,

I tried to understand why my document doesn't format correctly.

I followed steps on wiki :
https://wiki.openoffice.org/wiki/WriterFilter


./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
file:///home/mark/num.docx

 error: libwriterfilter.so: cannot get factory of demanded implementation:
debugservices.ooxml.ScannerTestService
 dying...
./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
file:///home/mark/num.doc

 error: libwriterfilter.so: cannot get factory of demanded implementation:
debugservices.doctok.ScannerTestService
 dying...

Is the document outdated or did I miss anything?


Re: About debugging tokenizer of writerfilter

2014-08-08 Thread Peter Kelly
While I'm not familiar with the current filter implementation, the error you've 
run into does't look like it's the reason for your document not being processed 
correctly; the message indicates to me that it's not even getting to the point 
of being able to load the module necessary to do the conversion.

The first problem to solve (and I don't personally know how to do this) would 
be to find the right way of invoking the filter from the command line; then 
you'll have the module running and be able to track down any parsing errors.

--
Dr. Peter M. Kelly
Founder, UX Productivity
pe...@uxproductivity.com
http://www.uxproductivity.com/
http://www.kellypmk.net/

PGP key: http://www.kellypmk.net/pgp-key
(fingerprint 5435 6718 59F0 DD1F BFA0 5E46 2523 BAA1 44AE 2966)

On 9 Aug 2014, at 8:10 am, Hung Mark mark...@gmail.com wrote:

 Hi,
 
 I tried to understand why my document doesn't format correctly.
 
 I followed steps on wiki :
 https://wiki.openoffice.org/wiki/WriterFilter
 
 
 ./uno -l libwriterfilter.so -c debugservices.ooxml.ScannerTestService --
 file:///home/mark/num.docx
 
 error: libwriterfilter.so: cannot get factory of demanded implementation:
 debugservices.ooxml.ScannerTestService
 dying...
 ./uno -l libwriterfilter.so -c debugservices.doctok.ScannerTestService --
 file:///home/mark/num.doc
 
 error: libwriterfilter.so: cannot get factory of demanded implementation:
 debugservices.doctok.ScannerTestService
 dying...
 
 Is the document outdated or did I miss anything?



signature.asc
Description: Message signed with OpenPGP using GPGMail