• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RFE: unwanted smilies

 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note this: <h:outputText>

There's an unwanted smilie in it. I would suggest to let the smilie parser (or regexp :roll: ) check if there is any non-whitespace character in front of it and if false, then let it render the smilie.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There was a setting in the UBB forums to automatically disable smilies for some forums (like JSP where the JSTL tags always looked surprised).

I'll find out if jForum has such a feature.

We might also be able to suppress them within code tags automatically with a little work...
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Fixing the smilies parser would be more easy and reliable, I think. Or is that beyond your control?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not convinced that white-space detection is the right way to go. I rather like just suppressing them within code tags, but I'm unlikely to be its implementor.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, in the old software the XML forum was also set up to disable smilies by default (because of the common use of namespace prefixes in posts). For what it's worth, you can disable smilies in a particular message by checking the box under the posting window, and you can edit that checkbox after the fact. But if somebody else failed to do that, and their post is hard to read as a result, then you would have to wait for a moderator to edit the post.

However your suggestion sounds like a good one. No idea how practical it is though.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This would make a good addition to the http://faq.javaranch.com/java/SoftwareEnhancementIdeasAndSuggestions page.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Smilies are already by default disabled in code blocks?



To clear things out, I am not talking about smilies in code blocks, but just in plain text. E.g.

"You need h:outputFormat instead of h:outputText."

You see? It isn't worth the effort to wrap them in code blocks and disabling smilies in a post is imho a workaround, not a solution.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bauke Scholtz wrote:Smilies are already by default disabled in code blocks?

See how responsive we are! ;)

And not to be dismissive about your suggestion, but for smilies outside of code blocks, I'd just click the disable checkbox for now.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I can live with it. But I don't like it ;) The smilie parser/regex/whatever tool needs improvement.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:I'm not convinced that white-space detection is the right way to go. I rather like just suppressing them within code tags, but I'm unlikely to be its implementor.


Can I ask why not? White space detection seems logical to me. Or is it because people put smilies at the end of a sentence like this ?
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just don't think it's deterministic enough. Doesn't mean I'd be upset if it got implemented that way. It's just not how I'd do it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic