Re: Problems downloading source through Mercurial

Seth Shich <[email protected]> Mon, 10 Oct 2011 22:25:15 -0500
Newsgroups gmane.comp.openoffice.devel.general
Message-ID <[email protected]>
--_506c11df-ceb0-4fbf-b657-2a96f320b4f9_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I was under the impression that I could use OOo's PyUno to read and manipul=
ate .doc and .docx files from Python and even to interact with those files =
while they are opened. Is this not correct? If it is, I would prefer to use=
 Python because of its natural language processing capabilities (e.g. NLTK)=
. Also, if I can avoid having to spend between $600 and $1,000 to read .doc=
 and .docx through Microsoft Visual Studio, I would certainly prefer to do =
so.

> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Date: Mon, 10 Oct 2011 15:08:18 -0700
> Subject: [dev] Re: Problems downloading source through Mercurial
>=20
> What I can't figure out from the use case is why isn't Seth=20
> developing a plug-in for Microsoft Word if it is about Word documents and
> Microsoft Word is being used to view the document already?
>=20
> So, what else is there to the use case that would make it clear why
> code from OO.o is needed?
>=20
>=20
>  - Dennis E. Hamilton
>    tools for document interoperability,  <http://nfoWorks.org/>
>    [email protected]  gsm: +1-206-779-9430  @orcmid
>=20
>=20
>=20
> -----Original Message-----
> From: Mathias Bauer [mailto:[email protected]]=20
> Sent: Monday, October 10, 2011 14:27
> To: [email protected]
> Subject: [dev] Re: Problems downloading source through Mercurial
>=20
> Hi Seth,
>=20
> I'm not sure what you are trying to achieve.
>=20
> OOo should have PyUno and - if it is a build provided by Oracle - its
> own version of Python and both should fit to each other. Admittedly I'm
> not completely sure about that, if you have bad luck, even the Oracle
> builds didn't contain an own Python. But if you build OOo by yourself,
> you should be able to make sure that OOo's own copy of Python is used in
> the build (and thus put into the installation set) and not the version
> of the system. See what configure offers you with regard to Python.
>=20
> Regards,
> Mathias
> Am 10.10.2011 05:41, schrieb Seth Shich:
>=20
> > HI Mathias,
> >=20
> > Thanks for the information. Perhaps, I should tell you why I want to
> > build OOo, and, then, maybe you could suggest what course I should take=
.=20
> >=20
> > I am trying to get PyUno working so that I can read and interface with
> > .doc and .docx files (e.g. highlight certain words in documents, such as
> > proper names) while they are being viewed by users in MsWord. The
> > problem is that PyUno links against Python2.3 and, therefore, I cannot
> > run it on Mac OS X 10.7.1: 10.7.1 does not have Python2.3 in its
> > complete form, and, at any rate, I wouldn't want to use that Python
> > version because it would prevent imports of other modules requiring
> > later Python versions. PyUno, then, must be made to link against either
> > Python 2.6.7 or Python 2.7, the Python versions I have on my system.
> > But, how to do this?
> >=20
> > I read here, at
> > http://www.mail-archive.com/[email protected]/msg03582.html, t=
hat:=20
> >=20
> > Those who build OOo by themselves will be able to just use
> > --with[out]-system-python, but only very, very few Mac users will
> > build their own copy of OOo. Thus it is important to decide on the
> > default, what the installsets offered from www.openoffice.org will
> > include (or not include)
> >=20
> > At this stage, I have downloaded the entire repository for OOo. Is there
> > a way to selectively build just the PyUno Module? Also, do you have any
> > suggestions as to where I can begin? I am a newbie and am becoming
> > somewhat overwhelmed at what has become quite a daunting task.
> >=20
> > Thanks, in advance, for any help you can provide.
> >=20
> > Sincerely,
> >=20
> > Seth
> >=20
> >=20
> >> BTW: building OOo on Mac OS X 10.7 is not easy. It doesn't work out of
> >> the box. You have at least to back to the 10.4 SDK and XCode 3.2.6.
> >>
> >> Please see the discussion here:
> >>
> >>
> > http://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201109.mbox/=
%[email protected]%3e
> >>
> >> Regards,
> >> Mathias
> >> --
> >> -----------------------------------------------------------------
> >> To unsubscribe send email to [email protected]
> >> For additional commands send email to [email protected]
> >> with Subject: help
>=20
> --=20
> -----------------------------------------------------------------
> To unsubscribe send email to [email protected]
> For additional commands send email to [email protected]
> with Subject: help
>=20
> --=20
> -----------------------------------------------------------------
> To unsubscribe send email to [email protected]
> For additional commands send email to [email protected]
> with Subject: help
 		 	   		   		 	   		  --=20
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help

--_506c11df-ceb0-4fbf-b657-2a96f320b4f9_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'><div dir=3D'ltr'>
<div><div dir=3D"ltr">I was under the impression that I could use OOo's PyU=
no to read and manipulate .doc and .docx files from Python and even to inte=
ract with those files while they are opened. Is this not correct? If it is,=
 I would prefer to use Python because of its natural language processing ca=
pabilities (e.g. NLTK). Also, if I can avoid having to spend between $600 a=
nd $1,000 to read .doc and .docx through Microsoft Visual Studio, I would c=
ertainly prefer to do so.<div><br></div><div><br><div>&gt; From: dennis.ham=
[email protected]<br>&gt; To: [email protected]<br>&gt; CC: sethshich@hotmail.=
com<br>&gt; Date: Mon, 10 Oct 2011 15:08:18 -0700<br>&gt; Subject: [dev] Re=
: Problems downloading source through Mercurial<br>&gt; <br>&gt; What I can=
't figure out from the use case is why isn't Seth <br>&gt; developing a plu=
g-in for Microsoft Word if it is about Word documents and<br>&gt; Microsoft=
 Word is being used to view the document already?<br>&gt; <br>&gt; So, what=
 else is there to the use case that would make it clear why<br>&gt; code fr=
om OO.o is needed?<br>&gt; <br>&gt; <br>&gt;  - Dennis E. Hamilton<br>&gt; =
   tools for document interoperability,  &lt;http://nfoWorks.org/&gt;<br>&g=
t;    [email protected]  gsm: +1-206-779-9430  @orcmid<br>&gt; <br>&g=
t; <br>&gt; <br>&gt; -----Original Message-----<br>&gt; From: Mathias Bauer=
 [mailto:[email protected]] <br>&gt; Sent: Monday, October 10, 2011 14:27=
<br>&gt; To: [email protected]<br>&gt; Subject: [dev] Re: Problems downloa=
ding source through Mercurial<br>&gt; <br>&gt; Hi Seth,<br>&gt; <br>&gt; I'=
m not sure what you are trying to achieve.<br>&gt; <br>&gt; OOo should have=
 PyUno and - if it is a build provided by Oracle - its<br>&gt; own version =
of Python and both should fit to each other. Admittedly I'm<br>&gt; not com=
pletely sure about that, if you have bad luck, even the Oracle<br>&gt; buil=
ds didn't contain an own Python. But if you build OOo by yourself,<br>&gt; =
you should be able to make sure that OOo's own copy of Python is used in<br=
>&gt; the build (and thus put into the installation set) and not the versio=
n<br>&gt; of the system. See what configure offers you with regard to Pytho=
n.<br>&gt; <br>&gt; Regards,<br>&gt; Mathias<br>&gt; Am 10.10.2011 05:41, s=
chrieb Seth Shich:<br>&gt; <br>&gt; &gt; HI Mathias,<br>&gt; &gt; <br>&gt; =
&gt; Thanks for the information. Perhaps, I should tell you why I want to<b=
r>&gt; &gt; build OOo, and, then, maybe you could suggest what course I sho=
uld take. <br>&gt; &gt; <br>&gt; &gt; I am trying to get PyUno working so t=
hat I can read and interface with<br>&gt; &gt; .doc and .docx files (e.g. h=
ighlight certain words in documents, such as<br>&gt; &gt; proper names) whi=
le they are being viewed by users in MsWord. The<br>&gt; &gt; problem is th=
at PyUno links against Python2.3 and, therefore, I cannot<br>&gt; &gt; run =
it on Mac OS X 10.7.1: 10.7.1 does not have Python2.3 in its<br>&gt; &gt; c=
omplete form, and, at any rate, I wouldn't want to use that Python<br>&gt; =
&gt; version because it would prevent imports of other modules requiring<br=
>&gt; &gt; later Python versions. PyUno, then, must be made to link against=
 either<br>&gt; &gt; Python 2.6.7 or Python 2.7, the Python versions I have=
 on my system.<br>&gt; &gt; But, how to do this?<br>&gt; &gt; <br>&gt; &gt;=
 I read here, at<br>&gt; &gt; http://www.mail-archive.com/[email protected]=
ffice.org/msg03582.html, that: <br>&gt; &gt; <br>&gt; &gt; Those who build =
OOo by themselves will be able to just use<br>&gt; &gt; --with[out]-system-=
python, but only very, very few Mac users will<br>&gt; &gt; build their own=
 copy of OOo. Thus it is important to decide on the<br>&gt; &gt; default, w=
hat the installsets offered from www.openoffice.org will<br>&gt; &gt; inclu=
de (or not include)<br>&gt; &gt; <br>&gt; &gt; At this stage, I have downlo=
aded the entire repository for OOo. Is there<br>&gt; &gt; a way to selectiv=
ely build just the PyUno Module? Also, do you have any<br>&gt; &gt; suggest=
ions as to where I can begin? I am a newbie and am becoming<br>&gt; &gt; so=
mewhat overwhelmed at what has become quite a daunting task.<br>&gt; &gt; <=
br>&gt; &gt; Thanks, in advance, for any help you can provide.<br>&gt; &gt;=
 <br>&gt; &gt; Sincerely,<br>&gt; &gt; <br>&gt; &gt; Seth<br>&gt; &gt; <br>=
&gt; &gt; <br>&gt; &gt;&gt; BTW: building OOo on Mac OS X 10.7 is not easy.=
 It doesn't work out of<br>&gt; &gt;&gt; the box. You have at least to back=
 to the 10.4 SDK and XCode 3.2.6.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Please =
see the discussion here:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt; htt=
p://mail-archives.apache.org/mod_mbox/incubator-ooo-dev/201109.mbox/%3cE029=
[email protected]%3e<br>&gt; &gt;&gt;<br>=
&gt; &gt;&gt; Regards,<br>&gt; &gt;&gt; Mathias<br>&gt; &gt;&gt; --<br>&gt;=
 &gt;&gt; -----------------------------------------------------------------=
<br>&gt; &gt;&gt; To unsubscribe send email to [email protected]=
rg<br>&gt; &gt;&gt; For additional commands send email to sympa@openoffice.=
org<br>&gt; &gt;&gt; with Subject: help<br>&gt; <br>&gt; -- <br>&gt; ------=
-----------------------------------------------------------<br>&gt; To unsu=
bscribe send email to [email protected]<br>&gt; For additional=
 commands send email to [email protected]<br>&gt; with Subject: help<br>=
&gt; <br>&gt; -- <br>&gt; -------------------------------------------------=
----------------<br>&gt; To unsubscribe send email to dev-unsubscribe@openo=
ffice.org<br>&gt; For additional commands send email to [email protected]=
g<br>&gt; with Subject: help<br></div></div> 		 	   		  </div></div> 		 	  =
 		  </div></body>
</html>=

--_506c11df-ceb0-4fbf-b657-2a96f320b4f9_--