Summary: | Automatic replacement of accented characters not working | ||
---|---|---|---|
Product: | quanta | Reporter: | Jeremy <lynton> |
Component: | general | Assignee: | András Manţia <amantia> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | sandmanrulez |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: |
document.diff
quanta_init.diff |
Description
Jeremy
2005-10-21 17:41:01 UTC
Confirming the bug. I'm using Quanta+ 3.4.3 delivered with Ubuntu 5.10. I uninstalled the package and built Quanta+ 3.4.2 from source to check if it could be resolved. But it didn't. I really need this functionality for my work. There was a bug when I wanted to restore the functionality. So you have to manually add the following to the local quantarc file (after you closed Quanta), under [General Options] Replace Accented Chars=true Replace Chars Not In Current Encoding=true Does it work with these settings_ Thank you for your answer. I opened ~/.kde/share/config/quantarc and found where it said: Replace Accented Chars=true Replace Chars Not In Current Encoding=false so I edited it to read: Replace Accented Chars=true Replace Chars Not In Current Encoding=true then saved and closed. Then I opened Quanta, but it still didn't work. I then closed quanta and re-opened quantarc and found that it had been changed back to: Replace Accented Chars=true Replace Chars Not In Current Encoding=false I then repeated the whole process just to be sure, and the same happened again. Hm, in this case it might be possible that you need to wait until 3.5 comes out or patch the source yourself. I will post the patch soon. When is 3.5 due? Tried same process than Jeremy in comment #3. Same (bad) result. And so, same question: when is next version due? Apply the following patches plus follow my previous instructions in order to get this working. It will work in 3.5 Created an attachment (id=13279) document.diff Created an attachment (id=13280) quanta_init.diff SVN commit 477723 by amantia: The right implementation of replace accented chars and replace chars not in the current encoding. BUG: 114825 M +11 -10 document.cpp --- branches/KDE/3.5/kdewebdev/quanta/src/document.cpp #477722:477723 @@ -848,19 +848,20 @@ return; } } - if (qConfig.replaceAccented) + } + if (qConfig.replaceAccented) + { + uint c = string[0].unicode(); + if (c > 191) { - uint c = string[0].unicode(); - if (c > 191) - { - m_replaceLine = line; - m_replaceCol = column; - m_replaceStr = QString("&#%1;").arg(c); - QTimer::singleShot(0, this, SLOT(slotReplaceChar())); - return; - } + m_replaceLine = line; + m_replaceCol = column; + m_replaceStr = QString("&#%1;").arg(c); + QTimer::singleShot(0, this, SLOT(slotReplaceChar())); + return; } } + if ( (string == ">") || (string == "<") ) Thanks. As 3.5 is due within a few weeks and I have no idea how or where to apply the patches, I think I'll wait. Thanks, Andras, this is great! But I'm looking on my 3.4.2 document.cpp source code and it doesn't look the same. For wich version is this patch? The patch is for 3.4.3. Andras I´m using 3.5.2 on Ubuntu (Dapper Drake) and still not working... I´m using 3.5.8 on Debian and still not working too... |