well what i am trying to do is copy a file, but insert certain things in it.
So the original file is like a template. But it has different font sizes
and some is bold/italic/underlined. if i just insert the text it will just
be default size with no attributes. I want to know how to get the
attributes to stay.
so say I am scanning a line of text, and the text is font size 14 and
bold/underlined how would i keep those attributes to paste in the new file
I hope this is a bit more clear so you can help me, or point me in a certain
direction.
Thanks,
Justin Fox
From: Andy Pepperdine <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
CC: "Justin Fox" <[EMAIL PROTECTED]>
Subject: Re: [users] markup for openoffice
Date: Fri, 9 Mar 2007 08:23:57 +0000
On Friday 09 March 2007 07:51, Justin Fox wrote:
> cool, so say i wanted to copy a line of text from one file to the other
> (and i knew the font/i/u/b etc..) I could just do like so in java..
>
> Code:
>
> writer.write("[b][i][u]");
> writer.write("Hello World!");
> writer.write("[/u][/i][/b]");
> writer.newLine();
>
> /Code:
>
>
> it would write "Hello World!" but bold/italic/underline in openoffice?
No, it won't.
It might surprise you, but there is no such thing as a markup tag in
OpenOffice in the sense you are asking about. If you do what Dan suggested,
then you will see that that is the case. If you have not defined the bold
style yourself, then OOo will generate one with its own unique name, and at
the point in the text which is made bold, it will stop inserting text in
one
style, and start insertion using a different style which will define the
characters as bold. And the same with any other combination of font
attributes, including language, font name etc.
I suspect this is not very helpful to you, and it might be better to ask
what
you are trying to achieve.
>
>
> Thanks,
>
> Justin
>
> p.s
>
> would you know offhand the tag for font size?
>
> [font size = 14] [/font] ?
>
> >From: Dan Lewis <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >CC: "Justin Fox" <[EMAIL PROTECTED]>
> >Subject: Re: [users] markup for openoffice
> >Date: Thu, 8 Mar 2007 19:38:24 -0600
> >
> >On Wednesday March 07 2007 3:41 pm, Justin Fox wrote:
> > > ok i need to know what the markup language tags are for openoffice,
> > > for bold,fontsize and underline.
> > >
> > >
> > > Thanks a lot,
> > >
> > > Justin Fox
> >
> > They are the standard XML tags. But for specifics, all you have
> >to do is to create a text document and save it. Then using Windows
> >Explorer, change the file extension from .odt to .zip. Unzip the
> >document and look at the XML files. The one you are probably looking
> >for is the style.xml file. You could look in other files that you
> >unzipped just to be sure.
> >
> >Dan
>
> _________________________________________________________________
> The average US Credit Score is 675. The cost to see yours: $0 by
Experian.
>
http://www.freecreditreport.com/pm/default.aspx?sc=660600&bcd=EMAILFOOTERAV
>ERAGE
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Andy Pepperdine
On this mailing list help is provided by volunteers.
Please subscribe to the mailing list to see all the replies to a query,
and reply only to the mailing list.
For FAQ, userguide, see: http://documentation.openoffice.org/
For more information about the OOo licence here:
http://www.openoffice.org/license.html
_________________________________________________________________
Mortgage rates as low as 4.625% - Refinance $150,000 loan for $579 a month.
Intro*Terms
https://www2.nextag.com/goto.jsp?product=100000035&url=%2fst.jsp&tm=y&search=mortgage_text_links_88_h27f6&disc=y&vers=743&s=4056&p=5117
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]