OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

html output with special chars

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
wallaye
General User
General User


Joined: 03 Dec 2003
Posts: 12

PostPosted: Thu May 13, 2004 8:07 am    Post subject: html output with special chars Reply with quote

Hello

I'd like to save some documents in HTML format...
But with some special unicode chars like "?" (ʁ)
OO just save the character "as is", but it should encode it ampersand + # + unicode number + ;

I didn't found such an option, so I decided to write a macro... Well I found I can write :
ReplaceStrings(StarDesktop.ActiveFrame.Controller.Model, "?" , "\ʁ")

but that won't work, it just insert ʁ instead of ʁ

So I'd like to go into kind of "html source mode" before doing the replace... is that possible?
Can I found a good doc for OO objects hierarchy somewhere?

thanks
Back to top
View user's profile Send private message
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 3991
Location: Lawrence, Kansas, USA

PostPosted: Thu May 13, 2004 8:22 am    Post subject: Reply with quote

Be sure you are writing HTML in a Web document not a Writer document. For Writer you would pick....

File --> New --> Text document.

For Web, you would pick....

File --> New --> HTML document.


In a Web document, you can pick

View --> HTML Source

to see the html source code. As a shortcut, there is an HTML Source icon on the left hand toolbar. You can put ʁ codes in to the html source.

Ordinary question marks do not need be coded as entities.
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group