Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RFE: unwanted smilies  RSS feed

 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note this: <hutputText>

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.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • 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
  • 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 hutputFormat instead of hutputText."

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
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37180
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Posts: 66142
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!