Bug 98188

Summary: wrong direction for some BIDI articles
Product: [Applications] akregator Reporter: Diego Iastrubni <cuco3001>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Diego Iastrubni 2005-01-30 10:44:49 UTC
Version:            (using KDE KDE 3.3.91)
Installed from:    Compiled From Sources

First all, nice work. This app took me by surprice, really. It has a generally good BIDI support, it may be since you stolled many code lines from kmail :)

..any way, to the bug.

If a feed starts with an RTL letter, it will be aligned to the right. It's done utins QString::isRightToLeft(). However, when a feed starts with an HTML tag, this assumtion falls since you are actually checking the text of the feed, and not the feed itself.

What needs to be done, is generate a function that retrives only the text from a feed, and use that as a base to auto-detect the direction of the text. 

JFYI, some sites are adding '<div dir=rtl> %feed% </div>' tags, just in case, in those sites the feed will be displayed quite good even without any tricks. Just in case, we need to cover all problems no?

Is a screen shot or sample feed really needed? say yes if you do.
Comment 1 Sashmit Bhaduri 2005-02-02 01:10:11 UTC
> Is a screen shot or sample feed really needed? say yes if you do. 

yes, those would be good..
Comment 2 Sashmit Bhaduri 2005-02-02 01:16:53 UTC
hmm.. might be dup of bug #93739
Comment 3 Diego Iastrubni 2005-02-02 18:20:45 UTC
98188  

*** This bug has been marked as a duplicate of 93739 ***