1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

:( Smileys everywhere :)

Discussion in 'Suggestions and Feedback' started by SaswatPadhi, Jun 2, 2009.

  1. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Let's see :

    std::pair == std :: pair -- GOOD
    Code:
    std::pair == std :: pair -- GOOD
    HTML:
    std::pair == std :: pair -- GOOD
    PHP:
    std::pair == std :: pair -- GOOD
    std :: pair != std::pair -- BAD

    So, after my last suggestion; you removed the use of smileys inside all kinds of code tags. But the issue is not fully resolved.

    Suggestion :: I don't know if this is possible but can we restrict text -> smiley conversion with the following criteria :
    (*) The text say ": p" (I added <space> to disable auto-conversion to smiley), should only be converted to ":p" IF, it is followed by a blank space so as to confirm that it's not the part of a word.

    So, ': p' (without space in between) gets converted to :p, but std :: pair (without spaces) does not get converted ('cuz the smiley is not followed by a space after it).
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Yes the quote behavior is as expected and it should not be there only in codes. Inline code had the bug which I fixed it :D
     
  3. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Ah but if you're smart you can write :p without getting a smiley... :)
     
  4. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    So xpi0t0s, you are not alone :p

    The thing is if you "Disable smileys", it affects the whole text, not a portion of it ! I want smileys to be "intelligent". They should appear only where they are required and not in std::pair :)
     
    Last edited: Jun 2, 2009
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    and thats why if you use inlinecode in std::pair they would go away :D
     
  6. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Thats fine but what about maths. Say, I have to write a ratio q : p ? Then ? It becomes q:p
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    so you mean something like ratio q:p but without disabling smileys :) :p
     
  8. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Now you are trying to achieve it by putting it inside INLINECODE. But why ? That's not code.
    What if I want that thing not to be different from from the rest of the text : black and not blue ?

    "Plane crash:pilot dead". I want this text to look normal. I don't want to force INLINECODE.
     
  9. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    Corrected that for you (should be a space after the colon by standard English rules of grammar). Hey, no smiley!
     
  10. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Ahhh.. After soooo many days (of research), I found another flaw. Look at this URL:
    http://hypothetical.com/Home:products?search=xyz
    (Don't click that :D)

    URL inside INLINECODE:
    http://hypothetical.com/Home:products?search=xyz

    What do you have to say now, xpi0t0s ??!?

    We were not discussing grammar here [LOL :D]. I was pointing out an example. Anyway, as you didn't accept that, I came up with another :D.

    BTW, which one of these is grammatically correct ;)
    (1) standard English rules of grammar [as mentioned by you], or
    (2) standard rules of English grammar
     
  11. senaratne

    senaratne New Member

    Joined:
    Jul 31, 2008
    Messages:
    254
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Sri Lanka
    OK. Let both be correct.:baby:
     
  12. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Let both be correct ?!

    What does that mean ? Who will let, by the way ? :mad:
    What's wrong and what's correct are already known to all, sort of predefined.
    We can't let anything to be correct, 'cuz we don't define things !
     
  13. senaratne

    senaratne New Member

    Joined:
    Jul 31, 2008
    Messages:
    254
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Sri Lanka
    I don't know. I just said so just for the fun of it. I don't wish to get involved in any argument.:lipsrseal
     
  14. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Ahh, I have finally, after spending a lot of time experimenting here; found a way !!! :) :)

    Now I can temporarily disable smileys for selected piece(s) of text ;)

    TESTS :
    This is normally what appears :
    std::pair
    q:p
    Plane Crash :pilot dead
    http://hypothetical.com/Home:products?search=xyz

    This is what appears now, with my trick: ;)
    [noparse]std::pair
    q:p
    Plane Crash :pilot dead
    http://hypothetical.com/Home:products?search=xyz
    [/noparse]

    I didn't have to disable smileys, nor did I have to add unnecessary code tags.

    :hurray: :hurray: :happy: :hurray: :hurray: :happy: :hurray: :hurray:
     
    Last edited: Jun 16, 2009
  15. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
  16. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
    Yes, that's it !! :)

    I was just going through the list, when it did strike to me that noparse might work. And it did ! :D

    Please disable smileys inside URL tags, as you disabled them inside code tags.
     
  17. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,293
    Likes Received:
    365
    Trophy Points:
    83
    Will try to do that and see if we have urls in that format very frequently
     
  18. senaratne

    senaratne New Member

    Joined:
    Jul 31, 2008
    Messages:
    254
    Likes Received:
    3
    Trophy Points:
    0
    Location:
    Sri Lanka
    Thanks, SawatPadhi and shabbir. I'll try it when I'm free. Right now, I'm a bit busy.
     

Share This Page