On Wednesday 12 September 2001 19:36, Nicolas Goutte wrote: | On Tuesday, 11. September 2001 14:45, Vadim Plessky wrote: | > I was wondering for some time why HTML exported by KWord, always was | > using
...
for every paragraph. | | Because a paragraph is aelement in HTML! For sure :-) And support for it is some kind of *legacy support*. Web designers who still want to support Netscape 4.x (and MS IE 4.x), create a lot of netsted tables with 1pixel-size transparent GIFs, etc. Web designers who don't care about Netscape anymore (and that's majority), use DIV and SPAN everywhere. Hopefully, latest Mozilla build can handle this. IMO DIV is much more modern technics than *old* P and tables. Note that you can even have scrollbar in fixed-size DIV element if context doesn't fit completely into it! :)) // not sure wether Konq supports it, though. Major disadvantage of using P is that P *always* breaks line, and starts new block. So, if you want to have two paragraphs following each other - there is no, basically, a way to do this with P tag (except overriding CSS style with !importnat instruction and disbaling breaking) With SPAN, you can do it easily. Another problem is putting image. There is no problem to put an image inside DIV, but it's not very clear *how*
will behave if you placed picture inside. Sorry it may sound a little bit OT for KWord/KPresenter itself, it's more KHTML/Konq related, but it seems there is some kind of misunderstanding what should be
used for.
IMPORTANT NOTE:
anyway, when you export image to HTML (either as IMG or as OBJECT of Image
MIMEtype), you need to place it in some *bounding* structure.
If you placed just in , for every
| > paragraph.
|
| The HTM 4.01 Specification defines (about 1em in
| > each case), while Mozilla - only half of it.
|
| That will change when the space before and after the paragraph will be
| exported as CSS too. But then I am sure that I will have complaints like:
| "But why there is no space between paragraphs in exported HTML."
I think default settings of KWord should be exported.
There is default setting for before and after paragraph space, right?
So you can export them in HTML.
|
| > So IMO it's not good to count *default* behavior/style for P tag, it's
| > better to define it each time (or to have extra option for this)
|
| Sure, that is called style in KWord and class in CSS but I was trying to
| make a library for KWord export filters before finsih it. But however, I
| have the feeling that nobody cares anymore that I write this library when I
| read this thread.
No-no, I care!...
Sorry I was not very active on list recently, August was rather mixed for me
and I decided to make some break, but I follow the list ...
Hope to participate more actively soon!
|
| Have a nice day/evening/night!
Take care!
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
Do you have Arial font installed? Just test it!
http://kde2.newmail.ru/font_test_arial.html
_______________________________________________
Koffice-devel mailing list
Koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel