Nvu progress 20040923
By glazou on Thursday 23 September 2004, 12:05 - Nvu - Permalink
- Entities encoding preference:

- Nvu is featured or quoted on 8 pages in issue number 336 of french magazine Micro Hebdo. This magazine was previously recommending FrontPage and Nemo Web Editor, so imagine the gap. A few excerpts from their prose: "you may own Namo Web Editor that we have long recommended but there is a completely free solution, Nvu", "already a very robust and complete solution", "Nvu is so simple to master you'll be able to write your first HTML pages very quickly", "Nvu's UI is intuitive"

Update: I have hacked the serializer so there's a new option to encode all non-ascii characters plus < > and non-breakable whitespace into &#....; entities.

Comments
If possible, a very usefull option would be :
"& < > plus all characters that are not countained within the document charset"
(and sorry for my bad english)
For exemple if the document is encoded in ISO Latin 1, there is in theory no need to encode a non breakable space, but there is for the euro sign or the oe character for exemple.
Il y a une chose qui me gene actuellement. J'ai des pages qui contiennent tous les caracteres accentues
sous la forme É et si on charge le fichier avec NVU et qu'on sauvegarde, meme avec la preference
"ne pas reformater le code", c'est transforme en entite numerique &#xxx;.
C'est genant car ca modifie enormement de lignes pour la gestion de conf. Pourrait-on avoir une option
qui empeche cette transformation ?
Merci
I think this might be what Joule was saying, but I'm not entirely sure, as I don't speak French. Could you have an option to force only number codes  , not not .
The reason this would be useful for me is that I work with XML, and often want to edit an HTML page, then convert it to XML. As XML doesn't do named entities, without undue hardship for me and DOCTYPE's and ENTITY declarations, using numbers is just miles easier.
I think you definitively need to improve that select somehow.
Output special characters as named character entities (©)
...
The above and *accentuated* letters
Note that there are some characters which are not considered *accentuated* letters: ¿ÐØÞß
So I wonder why you just do not say
The above and Latin-1 letters.
Also, a single quote (' ") is not in the HTML 4 spec but only starting from XHTML. So, you can not really convert it to a named character entity just like that.
DU
Sorry. I meant to say that you can convert ' to " in HTML 4 but you can not convert ' to ' in HTML 4.
Does this impact the problem NVU has with editing php documents (converting the '<>') Could you include an option to not encode any characters at all?
Just to say, I agree with Pierre that the second option should be to encode all characters not in the current character set, and leave the rest. Also, having an option to encode 'XML' character entities (meaning & > < ' " as &, etc, but the rest as numeric entities) is a very good idea.
~Grauw
Actually - no, it shouldn't be the second option, it should just be done by default. Which is probably already happening.
Anyways, another thing, I think the last option is a bit useless. 'All non-ASCII characters' would make sense though, which probably is pretty much the same thing.
~Grauw
Je viens justement de découvrir NVU sur Micro Hebdo No 336, d'où ma présence toute nouvelle sur ce forum.
J'ai trois questions à poser :
1) doit-on obligatoirement s'exprimer en anglais sur ce forum ( because that's not very easy for me !) ?
2) pour utiliser NVU sous Windows XP, doit-on utiliser obligatoirement Mozilla qui est, je crois, un navigateur internet ; je ne le pense pas mais .... on ne sait jamais !
3) puis-je ouvrir un sujet (sur le fonctionnement de NVU) et si oui, comment ?
Désolé de poser ces questions ici dans cet espace réservé à des commentaires sur un sujet précis ....
I would like an option that only converts, &, <, >, " and ' into their entity equivalents and converts everything else to their UTF-8 equivalent. Now *that* would be cool.
(This really nice too, by the way.)