Adium

Ticket #10862 (new defect)

Opened 4 months ago

Last modified 3 days ago

Hebrew shows up wrong on styles since 1.3

Reported by: winterk Assigned to:
Priority: normal Milestone: Adium 1.3.3
Component: Message View Version: 1.3
Severity: regression Keywords: wereon1.3.2
Cc: Patch: None
Pending: 0

Description

The recent 1.3 update has introduced a new style bug for hebrew and possibly other Right to Left languages:

On Renkoo, the timestamp for every line shows under the text rather then on its side. (Looks like a bad newline?)

On Mockie, the text now sticks right up to the timestamp rather then be spaced away from it as before. Additionally, the entire timestamp + line is now aligned one char to the right.

Attachments

Renkoo.png (24.7 kB) - added by winterk on 08/28/2008 10:41:38 AM.
Hebrew style issue on Renkoo
Mockie.png (19.3 kB) - added by winterk on 08/28/2008 10:42:31 AM.
Hebrew style issue on Mockie

Change History

08/28/2008 10:41:38 AM changed by winterk

  • attachment Renkoo.png added.

Hebrew style issue on Renkoo

08/28/2008 10:42:31 AM changed by winterk

  • attachment Mockie.png added.

Hebrew style issue on Mockie

08/28/2008 10:50:36 AM changed by winterk

Here's a string in hebrew for you people to play with while you're testing this out: שורה בשפה העברית

MacOS should automatically RLT it.

08/28/2008 11:05:04 AM changed by mathuaerknedam

I can confirm this problem in renkoo.

In mockie the right-padding issue is present in LtR languages, and can be seen by sending something a long series of "1 " and then resizing the window until just before a "1" wraps. The unwrapped one will sit right against the timestamp.

I do not see the one char alignment issue.

08/28/2008 11:26:22 AM changed by mathuaerknedam

Gone Dark has the same problem as Mockie.

Stockholm's right timestamp-on-hover forces a strange-looking right intent in the RtL text.

Minimal-Mod doesn't right justify RtL text. Technically it should, but it certainly can call on artistic license to not do so. :)

08/28/2008 11:27:50 AM changed by mathuaerknedam

I also see the newline problem in two of my own messagestyles. I'll try to patch the builtins once I figure out the problems for my own.

08/28/2008 11:28:13 AM changed by mathuaerknedam

  • owner set to nobody.
  • component changed from Message View to Xtras.

08/28/2008 11:53:16 AM changed by mathuaerknedam

  • owner deleted.
  • component changed from Xtras to Message View.
  • milestone set to Adium 1.3.1.

ugh, this is what happens when I have only 4 hours sleep.

Since this fine in 1.3, it probably really is a message view problem. Though the essages style might benefit from some tweaking too.

09/03/2008 12:28:58 AM changed by jas8522

  • milestone changed from Adium 1.3.1 to Adium 1.3.2.

(follow-up: ↓ 9 ) 09/15/2008 10:40:05 PM changed by evands

mathuaerknedam: So what's the solution?

(in reply to: ↑ 8 ) 09/15/2008 11:08:19 PM changed by mathuaerknedam

Replying to evands:

mathuaerknedam: So what's the solution?

To be honest, I forgot about it. I can patch Mockie and Gone dark easily enough, it's just a matter of adding a bit of padding. I've not looked into the newline yet, it may also be easy. I'll bookmark this ticket so that I remember to look at it again soon.

However, the fact that they worked fine before 1.3 makes me hesitant to simply bandaid the message styles symptom without knowing what in the message view caused the problem in the first place.

09/16/2008 12:13:40 AM changed by mathuaerknedam

The problem in Renkoo is probably that it has a pretty inflexible structure (explicit HTML tables) and the insertion of <div dir="rtl"> around the text breaks the structure, causing a new line (expected behavior for a div). Since the pattern is so regular (div[dir=rtl]), it is easy overcome the newline in CSS. However, I've not yet found a way to do so without making the RTL text aligned to the left.

09/23/2008 10:31:04 AM changed by mathuaerknedam

Winterk, Can you post screenshots of how this looks in 1.2.7? I should probably use that as a visual reference for any message style patches (if we go that route).

10/10/2008 04:51:50 PM changed by Robby

  • keywords changed from hebrew, rtl, style to wereon1.3.2.
  • milestone changed from Adium 1.3.2 to Adium 1.3.3.

10/17/2008 09:18:00 AM changed by Robby

  • severity changed from normal to regression.

01/04/2009 12:23:43 PM changed by evands

Could we use something besides a div to set the direction without inserting the newline which is problematic in some styles?

(follow-up: ↓ 16 ) 01/04/2009 01:26:39 PM changed by mathuaerknedam

It's been long enough since I looked at this that I don't remember everything, but if I remember correctly, spans didn't break message styles, but then RtL wasn't reliable. I wasn't able to come up with any satisfactory solution, so I'm really curious how it worked in 1.2.7 and if we can somehow revert to that treatment without losing the desired effect of the relevant code change.

(in reply to: ↑ 15 ; follow-up: ↓ 17 ) 01/04/2009 04:46:54 PM changed by jas8522

Replying to mathuaerknedam:

if I remember correctly, spans didn't break message styles

This would make sense since div tags are block level, thus causing everything around it to be above and below. Spans are inline so should accomplish the same effect without the appearance of a new line after it.

(in reply to: ↑ 16 ) 01/05/2009 04:23:25 PM changed by mathuaerknedam

Replying to jas8522:

This would make sense since div tags are block level, thus causing everything around it to be above and below. Spans are inline so should accomplish the same effect without the appearance of a new line after it.

Hm, I guess I was unclear. replacing the div with a span didn't break the message style, but it also didn't make the text flush-right. I just tested by taking a chat correctly displaying RtL text and replacing the "<div dir=rtl></div>" with "<span dir=rtl></span>". The text that had been (correctly) aligned to the right became (incorrectly) aligned to the left.