On Mon, 2006-06-19 at 11:17 +0200, dondi_2006 wrote:
> 
> 
> 
> 
> > On Sat June 17 2006 13:43, dondi_2006 wrote:
> > > Hello,
> > >
> > > I want to convert on Linux many .txt files to
> > > opendocument .odt format.
> > > I have found this article explaining how to do it:
> > >
> > > http://www.xml.com/pub/a/2006/01/11/from-microsoft-to-openoffice.html?page=
> > >2
> > >
> > > but I have a couple of questions:
> > >
> > > 1) how do you tell force it to use a given template?
> > > 2) how can you run it on all the files in a folder
> > > tree without restarting
> > > OOo every time?
> > >
> > > Are there other macros or scripts  doing the same
> > > thing?
> > 
> > That link is really an explanation on how to convert .DOC files and not 
> > really 
> > for .TXT files.
> 
> well, first of all, the macro text explicitly says:
> cURL = ConvertToURL( cFile )
> ' Open the document. Just blindly assume that the document 
>    ' is of a type that OOo will correctly recognize and open 
>    ' without specifying an import filter.
> 
> so I assumed using it on .txt files wouldn't make any difference. Was I wrong?
> Second, both my questions are independent from the input
> format, so maybe they would interest also people
> who want to do conversion from those .doc formats
> 
> > Does your .TXT files have specific formatting in them
> > then "File" -> "Open" in OpenOffice.org would not
> > understand ?
> 
> ?? No (*), but I am not going to File->Open. It would take
> days.
> I explicitly said I am looking for a macro
> because I have a _looot_ of .txt files to convert,
> scattered around in several levels of subfolders (and
> even the .odt versions should remain in the same folders).
> 
> so, is it possible to modify that macro as requested?
> Where are the right tutorials/web pages to read to add
> those functionalities? Is there some similar macro
> from which to paste code?
> 
> TIA,
> o.
> 
> (*)I just need those files to all have the same page format, paragraph type, 
> font, spacing, hyphenation....
> that I have defined in a non standard OpenDocument
> template which I created. Hence the first question
> 
> 

You have not been clear about what you want.  Converting .txt files to
what? Some sort of word processing file with fonts and structure?  If
yes, then you should be looking at the default templates you use.

OOo imports text very well but cannot guess what you want anymore than
can MSO.

-- 
PLEASE KEEP MESSAGES ON THE LIST.
OpenOffice.org Documentation Co-Lead
http://documentation.openoffice.org/ 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to