Kaz’hack

{ No ducks were harmed in the making of this weblog. }

recherche

To content | To menu | To search

KompoZer 0.8b2

By Kazé on Tuesday, February 23 2010, 04:58 :: Permalink

spacer

KompoZer 0.8b2 is finally ready. Few visible changes, but a lot of bugfixes and code cleaning under the hood.

You can grab KompoZer 0.8b2 here: kompozer.net/download.php

Enjoy, and please report bugs!

Bug Fixes

We’ve tried to solve the most frequently reported bugs:

  • the CSS Editor shouldn't add those annoying “*|” strings in the selectors any more
  • the preview in the “Image Properties” box now works properly
  • better FTP support (right-click in the Site Manager context menu)
  • the markup cleaner doesn't crash on nested lists any more
  • Enter in a paragraph now creates a new paragraph
  • the “Credits” panel in the About box is back ;-)

KompoZer 0.8b2 is now a more reliable editor: the regressions in the CSS editor were a complete blocker for myself, so I guess it’s been a real nightmare for most users. We’ve fixed a lot of small bugs and I think the overall user experience should be much better than with the previous versions.

18*4 Localized Binaries

Cédric Corazza, our l10n lead, has done a great job to release localized binaries for all the supported languages at once. This time he’s had much more work than for the previous beta:

  • we had 9 locales for the 0.8b1 release, there are 18 locales for 0.8b2:
    • Catalan, Dutch, Hungarian, Japanese got ready after the 0.8b1 release
    • Simplified Chinese, Esperanto, Finnish, Portuguese, Upper Sorbian have been added for the 0.8b2
  • Cédric has made Windows™ installers, which should put an end to one of the most frequent feature request
  • he’s built all binaries manually, as we don’t have any kind of script to ease this task (I considered that as a typical “l10n lead job”)

Cédric, congrats! and go get some sleep, the Korean and Bulgarian locales are getting ready. ;-) I’ll definitely write a few scripts to ease your work for the next release.

Inline Spell Checker

The inline spell checker in KompoZer 0.7.10 was inherited from Nvu, it was implemented with a specific patch against the Gecko 1.7 core and it caused a lot of freezes and crashes. As a result, most users (including myself) disabled it and I didn’t see it as an important feature to bring back in KompoZer 0.8.

As you can guess, a lot of users had a very different opinion on this. :-)

Unlike Gecko 1.7, Gecko 1.8.1 has a very good built-in inline spell checker. I’ve had a look at Thunderbird’s code and I found out enabling the inline spell checker in KompoZer was a snap. I’m sorry I didn’t do it sooner — but now it’s done, and it’s working fine as far as I know.

DOM Explorer Sidebar

I’m working with Fabien ’Kasparov’ Rocu on the next version of the DOM Explorer. As Fabien is implementing his ideas in an extension, I had to clean up the DOM Explorer and add a few hooks for his addon. To ease the development of his add-on, we’ve decided to implement a part of his work directly in KompoZer 0.8b2:

  • the DOM Explorer now shows the HTML attributes of the current element
  • a double-click on an element in the DOM Explorer brings up its “Property” dialog

The real improvement will come with Fabien’s extension, which should be released in April 2010. I’ll come back to this in another blog post.

New Keyboard Shortcuts

I’m known to be a dangerous pervert when it comes to computer keyboards — I admit I hate having to use a mouse when I’m editing a text. These new keyboard shortcuts aren’t documented, you can see them as a hidden bonus:

  • Ctrl+(Up|Down) moves the caret to the (beginning|end) of the current element
  • Ctrl(+Shift)+Enter adds a new line after (before) the current element
  • Alt+Shift+Enter switches to “Source” view

The Ctrl+Up/Down shortcut is more than a productivity booster. One of the known problems of the Mozilla editor component is that in some situations, it can be difficult to put the caret where you want it: for instance, there’s no easy way to put the caret right after a <div> block if it’s the last block in the page. With KompoZer 0.7.10 you had to select the <div> in the status bar, press the right arrow and hit Return; now all you need is to do a Ctrl+Down.

The “Source” View Still Sucks…

…and I’m aware of that. Please configure KompoZer to use your favorite text editor to work on the HTML source, there’s a specific “HTML” button by default in the main toolbar for that. I can’t help it, I hate the “Source” view in Nvu and KompoZer 0.7:

  • I don’t see much point in a pseudo syntax hilighting that doesn’t update as you type
  • I don’t see any point in showing line numbers that don’t match the *real* line numbers in the HTML file
  • nobody understands why the “Source” view hides the document tabs
  • it was the main source of crashes for KompoZer 0.7

The SeaMonkey-like plaintext editor, in my opinion, is much better at the moment — and on my first trunk builds (KompoZer 0.9a1pre / Gecko 1.9.3), Bespin is already working quite well.

Again, I understand a lot of users have a very different opinion on this, so I’ve tried an interesting experiment with this “Source” view: basically, I’ve re-written the main <tabeditor> element so it includes its own source editor. This embedded source editor could be used either for the “Split” view or for the “Source” view, and I could switch to “Source” mode without loosing the document tabs.

Unfortunately, this new <tabeditor> element raised a few problems that I couldn’t solve easily for this 0.8b2 release, so I’ve had to revert to the good old plaintext editor. For the 0.8b3 I’ll probably re-implement an Nvu-like “Source” view, rather than spending too much time on a feature that won’t work as well as Bespin: I prefer to release KompoZer 0.8 sooner in order to propose a Bespin-based KompoZer 0.9 as soon as possible.

The HTML Serializer Still Sucks…

…but we’re working on it. As you may have noticed, the HTML output of KompoZer 0.8 is already much cleaner than the one we had in KompoZer 0.7, especially if you check the “reformat HTML source” option: the most visible point is, there are (almost) no empty lines any more in the output files. But your well-defined indentation is still destroyed by KompoZer, which is a real pain when switching to “Source” mode.

Of course, you can use HTML Tidy as a workaround; I even used to design an Nvu extension for that. But this means dealing with temp files, serializing the files twice (once with KompoZer + reformatting with Tidy), and risking data losses (especially in utf-8, don’t ask me why). And the HTML code in the “Source” view is still a mess.

The great news is, Laurent Jouanneau has backported his XHTML serializer to Gecko 1.8.1 so I could use it for KompoZer 0.8 — and the first results look great! See this small example I saved with KompoZer 0.7.10, KompoZer 0.8b2 and KompoZer 0.8b3pre. Looks like we can finally get rid of HTML Tidy!

Almost Done

There are four main points to address before we can release a third (and hopefully last) beta:

  • adapt KompoZer 0.8 to the new HTML serializer;
  • get some kind of colored source view working;
  • fix the bugs in the “Split” view so people start using it;
  • work on FTP support to replace the current “Publish” button.

Please test this new version and report bugs. Many thanks to all users who donated or gave some time to keep this project running!

Tags :

  • editor
  • linux
  • osx
  • windows

Comments

1. On Wednesday, February 24 2010, 00:28 by bigmeanmikerich

Great news! Congrats on releasing this latest build. I've already pushed this out to my Mac labs, can't wait for the .deb so I can do the same for my Linux labs!

2. On Thursday, February 25 2010, 18:42 by jctergal

Bravo et merci de maintenir cet excellent logiciel.

3. On Friday, February 26 2010, 00:06 by andy

just tried this new build and had some empty blocks in my code.
used the markup cleaner and unchecked the option to clean up empty blocks but it still decided to clean them up

4. On Saturday, February 27 2010, 00:12 by jani

i found a little bug in mac version:
1. paste any text in design view -OK
2. cut the text in source view -OK
3. change back to design view and voila, the cutted text isn't cutted, it's still there

previous version didn't have this problem.

5. On Saturday, February 27 2010, 00:55 by Kazé

@ jani > yes, it’s been reported on the SF.net tracker. I rather call that a major regression than a “little bug”. :-/

It’s already corrected on the SVN trunk (rev.212). I’m looking at a possible other regression before releasing a new beta (hopefully on Sunday).

6. On Saturday, February 27 2010, 17:05 by jani

@Kazé: Thanks for your reply.

7. On Monday, March 1 2010, 04:06 by Patrick

new version looks nice, but it has one little bug (I think it's a bug, because it doesn't work like in 0.7.10):
In 0.7.10, when I use the "css-classes combobox" while no text is selected, the class is assigned to the current paragraph (i.e. <h1> or <p>). In 0.8, it inserts always a <span> tag. 0.7.10 inserted only a span tag when text was selected.

8. On Monday, March 1 2010, 07:41 by Serenicom

0.82b works fine on Windows 7, but on Ubuntu 9.10 it will not open files on network drives, or Windows server drives mapped to local folders using "smbmount"
If I use Nautilus and "Open With" Kompozer opens with a blank file. Same if I try File > Open and navigate to a file not on a local disk. Nothing happens at all...

Perhaps it is a feature I do not understand.

PS. Very impressed PLEASE keep up the good work!

9. On Monday, March 1 2010, 11:36 by seamaiden

What is the new GUID for KompoZer 0.8?

None of my old Nvu/KompoZer extensions and themes will install in it. And I would like to port Console² (the next generation error console) to KompoZer 0.8. I need the new guid in order to update the install.rdf file. Thank you.

10. On Monday, March 1 2010, 13:18 by Seamaiden

Nevermind. I found it.

{20aa4150-b5f4-11de-8a39-0800200c9a66}

11. On Monday, March 1 2010, 13:23 by jhutchdublin

still can't get it to display a page when I use an external style sheet. It works fine in preview, but when I try it in an browser like IE 8.0 by pressing F5 no text shows up at all

12. On Monday, March 1 2010, 19:05 by Barryjt

I've been using Front Page for the website above but have encountered difficulties as my hosting company no longer support FP. Could I copy this website using kompozer and would it work with Windows 7. Simple non tech answers please, I'm an old man.

13. On Monday, March 1 2010, 23:49 by Barryjt

I should have put my website address: www.stjameschurchwelland.org.uk

14. On Tuesday, March 2 2010, 12:04 by AlexV

Hi,
We have been reported of a problem with a missing MSVCR70.dll on a Win 7 (64bit) System.

Full thread on the Mozilla Italia forum here:
forum.mozillaitalia.org/inde...

15. On Wednesday, March 3 2010, 01:19 by Kazé

@Patrick > oh, right. Thanks for the bug report, I’ll try to fix that with the next release.

@Serenicom > that’s a “feature” I don’t understand either. Will have a look at it.

@jhutchdublin > I don’t see what you mean. Please open a bug report on SourceForge, don’t forget to attach the source code of your HTML page and the CSS stylesheet so I can work on it.

@Barryjt > I’m afraid I don’t have much time for user support. Please register at WYSIFA, there are lots of skilled people there who will help you using KompoZer on your website.

@AlexV > yes, I forgot to ship these MSVC7 dlls with the first Windows binaries. I’ve re-uploaded the Windows binaries on SourceForge (this time with the MSVC7 dlls), I hope the mirrors will serve the new files… Note that this doesn’t affect KompoZer 0.8b2, but only the 0.8b3 update. *sigh*

They posted on the same topic

1. On Tuesday, February 23 2010, 05:44 by kaze

kaze's status on Tuesday, 23-Feb-10 04:44:24 UTC

New blogpost: #kompozer 0.8b2 is released! bit.ly/9O7qWR !kompozer...

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.