/srv/irclogs.ubuntu.com/2013/11/09/#ubuntu-il.txt

cajהיי. התקנתי אובונטו ואני לא מצליח להתחבר לרשת. מישהו מבין בזה?01:49
jkthi there; I'm trying to debug RTL support in Trojita, a Qt-based IMAP e-mail client which uses QtWebKit for rendering23:02
jktthis is my first time with bidi text and RTL, but I've already read a lot of docs, and know the HTML5/CSS rules for directionality computation of the <pre> blocks, which are going to be the problem here23:03
jktit seems to me that the "directionality" and "where the text gets aligned" are two different things, at least that's how WebKit renders stuff now23:03
jkti.e. if I have a <pre> with an English sentence at first followed by Hebrew, the English is displayed LTR, the Hebrew RTL, but it's all aligned to the left23:04
jktwhen I put the Hebrew thing first, the directionality doesn't change (i.e. an English "Hello!" is shown as "Hello!", not as "!Hello"), but everything is aligned to the right23:05
jktmy naive understanding would be that the "directionality" and "alignment" should match, shouldn't it?23:05
Avihayif I read you correctly, then they should be separate things23:12
jktwell, should it look like this: http://trac.webkit.org/browser/trunk/LayoutTests/platform/mac/fast/text/international/unicode-bidi-plaintext-expected.png?rev=8986423:14
jktor like this: https://codereview.chromium.org/23449026/patch/1/100423:14
Avihaywell, the second link shows the expected behaviour23:16
jktthanks!23:17
Avihaybut you should be able to left-align Hebrew explicitly same as you can right align English23:17
jktthe use case here is plaintext mail; I don't know what language it is in, unfortunately23:18
Avihayok, so yes, the usual behaviour in most program is to decide directionality by the first letter, which isn't ideal but close enough23:20
Avihayin most cases23:20
jktfyi, http://jkt.flaska.net/tmp/trojita-RTL-overview.png is how it currently looks like23:20
Avihaythe first part seems fine23:21
jktthe composer is pretty smart, it even automatically quotes the RTL text with " <" on the right23:21
jktso it looks like it's a webkit bug in the rendering23:21
Avihaythe part in the second part should be aligned right as far as I know23:21
jktjust to make sure -- the "correct" place for indication that a piece of text is quoted, e.g. by a blue bar or something like that, is on the right when showing RTL text, right?23:22
Avihayhumm, I don't know, never thought of it or seen an example of it23:23
AvihayI guess the answer is yes, but I don't mail in Hebrew that much23:23
Avihayarikb:  any input?23:24
jkt"neither do I" :)23:24
Avihay:->23:24
arikbNo23:46
jktthanks, guys23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!