Win a copy of The Prairie Homestead Cookbook this week in the Cooking Forum forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
permaculture forums growies critters building homesteading energy monies kitchen purity ungarbage community wilderness fiber arts art permaculture artisans regional education skip experiences global resources the cider press projects digital market permies.com private forums all forums
this forum made possible by our volunteer staff, including ...
master stewards:
  • Nicole Alderman
  • r ranson
  • Anne Miller
  • Pearl Sutton
  • James Freyr
  • Mike Haasl
  • paul wheaton
  • Dave Burton
stewards:
  • Joylynn Hardesty
  • Jocelyn Campbell
  • Joseph Lofthouse
garden masters:
gardeners:
  • Carla Burke
  • Steve Thorn
  • Eric Hanson

Incorrect emoji translations ( regex probably )

 
pollinator
Posts: 87
66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Seen on :

https://permies.com/t/6273/energy/Paul-Wheaton-Wrong-CFLs


Paul has a list going on replying to several discussion points : https://permies.com/forums/posts/quote/0/55310

In the normal view the item ' 28) subsidies - if you have some strong numbers, that would be great. '

Is represented as '" 2"<img src="http://cache-www.permies.com/images/smilies/cool.gif">'


A few issues.
1) it's not ment to be a smiliy face.
2) using a page search for '28' or '28)' does not find the text with a web browser serach.
3) using a forums search for '8)' does not return any results.
4) using the google search for '8)' seems to not work due to the page changes.


Possible fixes?
a) ( in pcre )
look behind non matching assertions.
(?<!(\d|\())8\)

b) adding the text back as alt text in the img reference e.g.
'" 2"<img src="http://cache-www.permies.com/images/smilies/cool.gif" alt="8)">'


good luck.
 
pollinator
Posts: 4154
Location: Northern New York Zone4-5 the OUTER 'RONDACs percip 36''
61
hugelkultur fungi books wofati solar woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WTF ? Big AL !
 
steward
Posts: 3172
Location: Moved from south central WI to Portland, OR
627
hugelkultur urban chicken food preservation bike bee
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh yeah, that happens sometimes. The software has automatic generation of emojis, and I don't know how to turn it off.

If you have a number eight and then a parenthesis mark, it will turn into a smiley face with big round eyes.

It could be there's a programming expert who will teach us how to get around that.

But really - the post is five years old. Must it be repaired?
 
gardener
Posts: 2832
Location: Central Oklahoma (zone 7a)
628
forest garden trees woodworking
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a common problem with forum software -- it takes certain combinations of numbers and punctuation marks (some of the most famous emoticons) and replaces them with graphical smilies. It's a (sometimes annoying) feature, not a bug.

When you are composing a post, you can check the "disable smilies in this message" burton to avoid the problem. If you are making numbered lists with parentheses after the numbers, checking that box is essential
 
master steward
Posts: 29074
Location: missoula, montana (zone 4)
hugelkultur trees chicken wofati bee woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should check the box, but I forget and I think it is funny the 8 ) shows up as .

 
steward
Posts: 7926
Location: Currently in Lake Stevens, WA. Home in Spokane
315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I never seem to run into this, as I have smileys turned off by default (I don't like them).
So...I would need to intentionally turn them ON in order to send them.
If only there was a way to turn them OFF so I couldn't receive them.

 
The permaculture playing cards make great stocking stuffers: http://richsoil.com/cards
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!