On Wed, Aug 13, 2003 at 04:40:13PM +0300, Gilad Ben-Yossef wrote:
> Tzafrir Cohen wrote:
> >On Wed, Aug 13, 2003 at 04:06:07PM +0300, Gilad Ben-Yossef wrote:
> >
> >>Shlomi Fish wrote:
> >>
> >>>Hi! I created a document in OpenOffice:
> >>>
> >>>http://t2.technion.ac.il/~shlomif/homesteading/
> >>>
> >>>The document's main language is Hebrew, but I started writing it with an
> >>>English main language. As a result, the headings, endnotes and in the
> >>>HTML
> >>>some of the bullets, are displayed left-aligned. How do I change the main
> >>>language of this specific document to Hebrew?
> >>>
> >>>I'm using OpenOffice 1.1 RC.
> >>>
> >>>(someone recommended me to use Tools -> Options -> "Language Settings"
> >>>but
> >>>this will set the application-wide defaults, which I don't want to.
> >>>
> >>
> >>1. Select all the text.
> >>2. Right click and choose "Edit Paragraph Style..."
> >>3. In the "Alignment" tab, change the "Text direction" property to
> >>"Right to left".
> >>4. Click "OK.
> >>5. Rejoice.
> >
> >
> >Somehow I was expecting a document-wide property. I believe Shlomi is
> >interested here in the HTML produced from the document. Such methods
> >produce ugly HTML: each paragraph has its oown specific "visual"
> >formatting. Very unlike the spirit of HTML. Not to mention that the
> >HTML gets inflated.
> >
> >And you get a property-wide base direction of LTR that is overriden on
> >each paragraph. Take a look at the bullets, where it accidentally wasn't
> >overriden.
> >
> >In other words: All that is needed is a way to tell OpenOffice to change
> >the BODY tag a bit. Not to further inflate the produced html.
> >
>
> I agree that to set the direction of each paragraph seperatly in HTML is
> very ugly. However, the question Shlomi present to us was how to
> override the default paragraph direction in a *OpenOffice* document and
> this is what I provided. If one wants to produce proper HTML one is
> advised to write HTML and not a use a WSIWYG editor.
>
> Moreover, I also agree that a OpenOffice is missing the property of a
> *document* default paragraph direction, as opposed to the existing
> general default paragpraph direction but AFAIK one does not currently
> exists.
In my copy of OpenOffice (beta2):
Tools->Options->Language->Languages->
either:
- "locale settings"
or:
- "default languages for this document" (Looks more sensible, but
greyed-out here)
Then a produced HTML has the charset UTF-8 (no more entetis for Hebrew),
and the docuemnt's body tag has 'LANG="" DIR="RTL"'.
It is far from producing efficient HTML. One small example: a simple
hiphen (squized between two Hebrew letters) produced the following:
<FONT FACE="Arial, sans-serif"><SPAN LANG="en-US">-</SPAN></FONT>
--
Tzafrir Cohen +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:[EMAIL PROTECTED] +---------------------------+
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]