Details
-
Suggestion
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
4.6.0
-
None
Description
quoting a user:
Up to Qt 4.5, a simple formatted text with 10 and 12pt text I would get HTML code like this one:
<source><h3>QHiMDTransfer, Version 0.0.1</h3> <p><p> <p>A free music transfer software for MiniDisc walkman.</p> <p><p> <p>Brought to you by the linux-minidisc project:</p> <p><p> <p>https://wiki.physik.fu-berlin.de/linux-minidisc</p> <p><p> <p>This software is covered by the GNU GPL v2 license. See the file LICENSE in the program folder for more information.</p></source>
Now, using Qt Creator from Qt 4.6.2 (1.3.1) to edit and display the same text would result in a far more complex HTML code:
<source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:14px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:large; font-weight:600;">QHiMDTransfer, Version 0.0.1</span> </p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">A free music transfer software for MiniDisc walkman. </p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Brought to you by the linux-minidisc project: </p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">https://wiki.physik.fu-berlin.de/linux-minidisc </p> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This software is covered by the GNU GPL v2 license. See the file LICENSE in the program folder for more information.</p></body></html></source>
Since Qt Linguist does not render the HTML but displays the raw source code, translators which not necessarily have in-depth HTML knowledge face the problem having to deal with that raw and really complex HTML code. Even for people with HTML knowledge, editing the text for translation is very tedious.
Attachments
Issue Links
- is duplicated by
-
QTBUG-10980 Suggestion: Add "toSimpleHtml()" function to text engine/QTextEngine
- Closed
- resulted from
-
QTBUG-1136 Rich text in Linguist
- Open