Gajim - 2013-08-03


  1. hkar.prince هاي
  2. hkar.prince :HI:
  3. hkar.prince :-|
  4. hkar.prince #test
  5. hkar.prince _test
  6. bot hkar.prince: Passed!
  7. hkar.prince _join
  8. hkar.prince .test
  9. hkar.prince #join
  10. hkar.prince .join
  11. bot RSS: Feeds for Gajim • time_date_patch_original.png attached to Ticket #7284 time & date patch of comment #26 (original) https://trac.gajim.org/attachment/ticket/7284/time_date_patch_original.png • time_date_patch_edited.png attached to Ticket #7284 time & date patch of comment #26 (edited) https://trac.gajim.org/attachment/ticket/7284/time_date_patch_edited.png
  12. bot RSS: Feeds for Gajim • time_date_patch_original_broken.png attached to Ticket #7284 time & date patch of comment #26 (original) (broken) https://trac.gajim.org/attachment/ticket/7284/time_date_patch_original_broken.png
  13. Darlan The bot can send PM messages :-)
  14. Darlan Python coders, I need a small help, please.
  15. mrDoctorWhо. Darlan: what help do you need?
  16. bot RSS: Feeds for Gajim • time_date_patch_edited_LRM.png attached to Ticket #7284 time & date patch of comment #26 (diff) (arbitrary LRM) https://trac.gajim.org/attachment/ticket/7284/time_date_patch_edited_LRM.png • time_date_patch_edited_RLM.png attached to Ticket #7284 time & date patch of comment #26 (diff) (arbitrary RLM) https://trac.gajim.org/attachment/ticket/7284/time_date_patch_edited_RLM.png
  17. Darlan mrDoctorWhо.: I need to check what is the used direction_mark in initial line of message.
  18. Darlan In this commit https://trac.gajim.org/changeset/001d4e759427 BiDi support has been added to Gajim, this means that when a message starts with an Arabic character, message will be aligned from right-to-left, otherwise (e.g. English), message will appear from left-to-right.
  19. mrDoctorWhо. you need this symbol?
  20. Darlan direction_mark symbol (invisible character)
  21. mrDoctorWhо. def paragraph_direction_mark(text): """ Determine paragraph writing direction according to http://www.unicode.org/reports/tr9/#The_Paragraph_Level Returns either Unicode LTR mark or RTL mark. """ for char in text: bidi = unicodedata.bidirectional(char) if bidi == 'L': return u'\u200E' elif bidi == 'AL' or bidi == 'R': return u'\u200F'
  22. mrDoctorWhо. ha, nice feature
  23. mrDoctorWhо. (in server)
  24. Darlan https://trac.gajim.org/browser/src/conversation_textview.py#L1395 I want to replace this line: format_ += day_str + ' ' with this line: format_ += day_str + DIRECTION_MARK + ' ' Whereas DIRECTION_MARK be the direction_mark used in start of line.
  25. mrDoctorWhо. do you need just insert this mark at start of line or what? Sorry, i can't understand you well.
  26. Darlan https://trac.gajim.org/browser/src/common/i18n.py#L33
  27. Darlan This mark (LRM or RLM) is already set by commit https://trac.gajim.org/changeset/001d4e759427
  28. Darlan In order to have [day] [time] aligned properly for both sides, I need to copy the mark in used at start of a line and insert it between [day] [time].
  29. mrDoctorWhо. aha, got it. But where is the problem?
  30. Darlan See [day [time] of messages start from right https://trac.gajim.org/attachment/ticket/7284/time_date_patch_edited_LRM.png
  31. Darlan In order to not break the [day] [time] or [time] [day] we need to insert between them the same direction mark used at start of a line.
  32. mrDoctorWhо. Darlan: can you give me any arabic char?
  33. Darlan You are using Psi, which is not supporting BiDi, yet. العربية
  34. Darlan العربية
  35. mrDoctorWhо. yes, but i can join from gajim
  36. Darlan You need 0.16 or hg
  37. mrDoctorWhо. i have hg ver
  38. Darlan good :-)
  39. r.k. Darlan, give me an example
  40. Darlan العربية
  41. r.k. how it should looks
  42. Darlan What do you mean? It should appear from right-to-left, like this: ‏[17:20:57] ‏Darlan‏: العربية
  43. Darlan Test العربية
  44. Darlan العربية Test
  45. Darlan Hello, this is an Arabic text العربية to test
  46. Darlan שלום, הרי טקסט בשפה ערבית العربية לבחינה
  47. Darlan r.k.: Please join to test@ channel
  48. Darlan r.k.: Please update of your hg version
  49. Darlan mrDoctorWhо.: This is the current line: https://trac.gajim.org/browser/src/conversation_textview.py#L1435 format_ = direction_mark + before_str + name + direction_mark + \ after_str + ' '
  50. Darlan I need to copy that direction_mark, of that line, to [day] [time]
  51. mrDoctorWhо. wait
  52. Darlan ok
  53. Darlan mrDoctorWhо.: I tried but it is not working
  54. Darlan Link Mauve, mathieui: Do you think you can help? https://trac.gajim.org/ticket/7284#comment:32
  55. mrDoctorWhо. Darlan: http://u.to/H50iBA test it
  56. mrDoctorWhо. , הרי טקסט בשפה ערבית
  57. mrDoctorWhо. its conversation_ui.py
  58. mrDoctorWhо. textview*
  59. Darlan mrDoctorWhо.: This seems to work! I need to observe more.
  60. mrDoctorWhо. i dont know, but in my version history loosing
  61. dicson mrDoctorWhо., :-)
  62. mrDoctorWhо. Darlan: is it ok for you?
  63. mrDoctorWhо. but i didn't change anything to make it broken
  64. Darlan mrDoctorWhо.: Yes, it is working, but I still wonder if this task can be achieved with lesser code.
  65. mrDoctorWhо. Darlan: no way. Its the most simplest
  66. Darlan ok
  67. mrDoctorWhо. 4 lines changed
  68. mrDoctorWhо. ~20 symbols
  69. Darlan mrDoctorWhо. https://trac.gajim.org/ticket/7284#comment:33
  70. mrDoctorWhо. oops
  71. mrDoctorWhо. remove + print "1",before_str and others
  72. mrDoctorWhо. it was for debug
  73. Darlan Good, thanks!
  74. Darlan mrDoctorWhо. https://trac.gajim.org/ticket/7284?action=comment-diff&cnum=33&version=1
  75. mrDoctorWhо. yes, i see
  76. bot RSS: Feeds for Gajim • Ticket #7404 (Incorrect nicknames in chat history) created Bug description I have several jabber accounts in Gajim, and today I discovered that when I open the chat history, my nickname in it is not from the current account. So, for example, if I have the accounts "user1", "user2" and "user3", in their chat histories I would see these nicknames: "user1" for "user1" account "user3" for "user2" account "user1" for "us[…] https://trac.gajim.org/ticket/7404
  77. bot RSS: Feeds for Gajim • Ticket #7196 (Incorrect self nickname in History (Direct and Private)) updated Also reported at #7404 https://trac.gajim.org/ticket/7196#comment:2 • Ticket #7404 (Incorrect nicknames in chat history) updated Also reported at #7196 https://trac.gajim.org/ticket/7404#comment:1
  78. hkar.prince :HI:
  79. hkar.prince :-D
  80. hkar.prince :-|
  81. hkar.prince HI