W3C home > Mailing lists > Public > www-international@w3.org > April to June 2005

Re: Editor for HTML, UTF-8 and Arabic

From: Najib Tounsi <ntounsi@emi.ac.ma>
Date: Fri, 01 Apr 2005 13:23:17 +0000
Message-ID: <424D4B45.6000109@emi.ac.ma>
To: Ivan Herman <ivan@w3.org>
CC: Jasper Michalczik <jasper.m@gmx.net>, www-international@w3.org, michel bercovier <berco@cs.huji.ac.il>

Ivan Herman wrote:

> Mozilla composer creates a pretty horrible HTML, usually. 

Exact. I would say even more horrible. Don't forget to Tidy your HTML 
just after terminating your edition. Here are some defects/bugs 
(according to my experience in bilinguale editing):
- If your initial HTML is valid, Mozilla composer invalidate it (e.g. by 
eliminating the backslash  of empty elements). Even if you don't choose 
the option "Reformat HTML source".
- You can't add the dir attribute in the html tag as it is recommended 
to do. It is immediately eliminated. Unless it exists before opening the 
file with mozilla. So you have to insert it before by a text editor.
- Mozilla inserts many blank line in the source file (!?)
- A space typed is considered &nbsp;  . It is particularely annoying in 
bidi context, because it breaks an RTL directionnal run, when you see 
view HTML code.  "ABC &nbsp; DEF" in memory gives "FED CBA" in normal 
display. In HTML source edinting you see "CBA &nbsp; FED"

Mozilla doesn't offer enough options to configure it's composer 
according to user's need.

> I have really good experiences with NVU, though, although this is 
> still Beta: www.nvu.com. It is, sort of, a separate Mozilla project, 
> based on the Mozilla core, but concentrating on the editing process only. 

I'll try it. Thank you.

Najib


> As I said, it is still beta, but close to its first release.
>
> Ivan
>
> Najib Tounsi wrote:
>
>> I use Mozilla 1.* (http://www.mozilla.org/releases/ 
>> <http://www.mozilla.org/releases/mozilla1.7.3>) for authoring/editing 
>> Arabic HTML with utf-8. Mozilla composer can read and save in most 
>> encodings.
>> Well Mozilla is yet perfectible, but it fulfill many jobs. HTML files 
>> I use to edit are in fact Arabic + Latin. Some of my requirements 
>> would be:
>> - Option to edit in HTML mode *both* in visual or logical (memory) 
>> ordering. The latter is necessary for some "fine tunings".
>> - Ability to retrieve the chain of cascading styles that apply to a 
>> text at a given place.
>> - Select a text and apply a <span> to it with some desired attributes.
>> etc.
>>
>> There are also situations (e.g. telnet to a web server from MacOS X) 
>> where I simply edit Arabic-utf8 files with emacs. But not to do too 
>> much changes.
>>
>> Hope that helps.
>>
>> Najib Tounsi
>>
>>
>> Jasper Michalczik wrote:
>>
>>> Dear members of www-international,
>>>
>>> I’m looking for an editor that allows me to edit and save HTML-Files 
>>> with UTF-8 encoding and displays Arabic script correctly. I tried 
>>> XML-Spy, but in order to let it recognize Files as UTF-8 you have to 
>>> put an xml-declaration at the beginning.
>>>
>>> I’m looking for some editor of the kind of ancient “HomeSite”.
>>>
>>> Thank you very much,
>>>
>>> Jasper Michalczik
>>>
>>
>

-- 
Najib TOUNSI (mailto:tounsi@w3.org)
Bureau W3C au Maroc (http://www.w3c.org.ma/)
Ecole Mohammadia d'Ingenieurs, BP 765 Agdal-RABAT Maroc (Morocco)
Phone : +212 (0) 37 68 71 74  Fax : +212 (0) 37 77 88 53
Mobile: +212 (0) 61 22 00 30
Received on Friday, 1 April 2005 13:21:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:05 GMT