Bug 129520

Summary: Automatic Replacement of accented characters
Product: [Unmaintained] quanta Reporter: Alvaro Aguilera <alvaro.aguilera>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: wishlist CC: matti60
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alvaro Aguilera 2006-06-20 23:19:53 UTC
Version:           3.5.3 (using KDE 3.5.3 Level "a" , unofficial build of SUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.16.13-4-default

Hello, here there is a small feature request and a tiny bug, both concerning the automatic replacement of accented chars.

I code HTML in German or Spanish all the time, so I use the automatic replacement of accented charactes a lot. This feature works but it isn't very friendly (at least for me).
One thing I would like to see changed is the encoding of special chars.

For example, when I type "ä", Quanta replace it with "&#228;", it would be a lot nicer if Quanta replaces it with "&auml;" because it is a lot easier to identify (A+Umlaut). The same for all other special chars. I don't know if that notation is standard or not, but if it is, it can surely be a nice change.

Other thing, I use a german keyboard (with dead keys) and when I write in Spanish I have to type two keys to get an accented char (á = '+a, ñ = ~+n, etc.). Quanta doesn't replace those accented chars. 

That's it :)
Comment 1 Xavier Brochard 2006-06-30 14:52:34 UTC
I totally agree. Numeric character references are very hard to read. You can't see if you have typed the wrong character. But as HTML entities are limited to a subset of Unicode characters, users should have the choice to use one or another (and may be the choice to use numeric character reference in hexadecimal).
Two great possible enhancements would be a dockable list box for special characters and the possiblity to change the encoding on a text block (useful when copy/paste from a text file).
Comment 2 Sven Müller 2007-07-01 12:20:01 UTC
Bump

I would post the same wish request and found this. 

Using Version 3.5.7. Are there any efforts to add that feature? It would be very nice.

Comment 3 Xiong Chiamiov 2008-01-03 22:00:08 UTC
I believe that in PSPad (my editor of choice in Windows), it would show you the accented character, but the file itself would have either &#228 or &auml.  I'm not completely sure on that, but that would be an ideal solution.
Comment 4 matti60 2008-02-01 11:24:59 UTC
Due to this problem for most european user this program is not usefull yet. 
For example in BlueFish i see all special character correctly. Quanta replace it an others. It is not good. I dont see "ű ü ó ú í" characters in HTML source code.   
Comment 5 András Manţia 2008-02-01 14:30:25 UTC
SVN commit 769457 by amantia:

Insert literal character entities if possible.

BUG: 129520

 M  +1 -0      ChangeLog  
 M  +119 -119  data/chars  
 M  +2 -2      src/document.cpp  
 M  +11 -1     src/quanta_init.cpp  
 M  +9 -0      utility/quantacommon.cpp  
 M  +9 -0      utility/quantacommon.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=769457
Comment 6 Xavier Brochard 2008-02-01 14:38:08 UTC
Thank you very much Andras!
Comment 7 matti60 2008-02-01 17:11:25 UTC
Dear Andr
Comment 8 András Manţia 2008-02-01 17:54:42 UTC
Just a short summary here about how Quanta works. The conversion happens only if one the following conditions is true:
- the introduced character cannot be encoded in the codepage selected for the document
- the automatic conversion is enabled

To completely avoid automatic conversion, you should use UTF8 for your documents and disabled the conversion in the settings dialog. 
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Just a short summary here about how Quanta works. The conversion happens only if one the following conditions is true:</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- the introduced character cannot be encoded in the codepage selected for the document</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">- the automatic conversion is enabled</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">To completely avoid automatic conversion, you should use UTF8 for your documents and disabled the conversion in the settings dialog. </p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>