https://bugs.gpodder.org/show_bug.cgi?id=1137

--- Comment #6 from Thomas Perl <[email protected]> 2010-09-29 12:42:16 BST ---
(In reply to comment #5)
> I find what need to change:
> in file /src/gpodder/gtkui/desktop/shownotes.py
> 124 if self.have_webkit:
> 125 global SHOWNOTES_HTML_TEMPLATE
> 
> 124 - checks whether the Webview gtk object is available
> 125 - if so the object will be initialized with the content provided by the
> global SHOWNOTES_HTML_TEMPLATE shown in line 39
> the solution would be to add another line between 124 and 125 a call to
> function that checks what the language of the text, if its in English the LTR
> initializer is called, otherwise the RTL initializer will be called, the RTL
> init will be the same as the rtl only with one exception: the <html> tag will
> contain the dir attribute like this: <html dir="rtl">
> complement: putting the tag in its own global and adding the rest without
> condition (the first line will be conditional).

Ok, so when you modify SHOWNOTES_HTML_TEMPLATE and add dir="rtl", the text is
displayed as expected? If so, we can do this (obviously). Do you know of a
(Python) library that detects if the content is LTR or RTL?

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to