Recent

Author Topic: memo and smileys  (Read 3380 times)

mercurhyo

  • Full Member
  • ***
  • Posts: 242
memo and smileys
« on: April 16, 2021, 01:04:13 pm »
hi all.
Does anyone know if exists a component (likewise a TCustomMemo descendant) able to display smileys inside text? prefer multiplatform if possible
Thank you.
DEO MERCHVRIO - Linux, Win10pro - Ryzen9XT 24threads + Geforce Rtx 3080SUPRIM
god of financial gain, commerce, eloquence (and thus poetry), messages, communication (including divination), travelers, boundaries, luck, trickery and thieves; he also serves as the guide of souls to the underworld

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1111
  • Professional amateur ;-P
Re: memo and smileys
« Reply #1 on: April 16, 2021, 01:59:06 pm »
Hey mercurhyo,

hi all.
Does anyone know if exists a component (likewise a TCustomMemo descendant) able to display smileys inside text? prefer multiplatform if possible
Thank you.

I'm really sorry to be picky, but are you asking for smileys or emojis?

Why the difference, well, smileys are the textual ones: :-) and the emojis are the image ones: :)

But nonetheless, if the emojis are Unicode, then it's possible that the TMemo can cope with it, just like any other UTF8 character.
If it's not UTF8 and it's an image, I suspect maybe a TRichView? But I'm not completely sure about this.

So you must specify which of the non textual ones you're talking about.

Cheers,
Gus
« Last Edit: April 16, 2021, 02:55:16 pm by Gustavo 'Gus' Carreno »
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: memo and smileys
« Reply #2 on: April 16, 2021, 02:43:00 pm »
On Windows, the normal TMemo does that, at least here an my Win10 PC.
However, display is black and white.

Also display may depend on the font chosen.
Meaning there is no guarantee that it will work on all PC, since they may not have the font needed. (Note that Window may substitute the chosen font for individual chars, and you would not know https://docs.microsoft.com/en-us/globalization/input/font-technology#font-fallback )
« Last Edit: April 16, 2021, 02:48:56 pm by Martin_fr »

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: memo and smileys
« Reply #3 on: April 16, 2021, 02:57:43 pm »
Default Ubuntu Mate installation has Noto fonts (no more tofu), which provide color and black-and-white emojis.

https://en.wikipedia.org/wiki/Noto_fonts#Emoji

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: memo and smileys
« Reply #4 on: April 16, 2021, 03:37:04 pm »
Default Ubuntu Mate installation has Noto fonts (no more tofu), which provide color and black-and-white emojis.

I routinely deinstall those since they can vastly slow down some software I've got here (badly-written software, hacked together using Python on a foundation of kitchen sinks, which nobody knows how to debug).

Quite frankly I echo Gus. In fact I'd put it slightly more strongly than he does: nobody but an arrant fool would rely on something which might not display correctly to clarify their meaning >:-)

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1111
  • Professional amateur ;-P
Re: memo and smileys
« Reply #5 on: April 16, 2021, 03:50:30 pm »
Hey Mark,

Quite frankly I echo Gus. In fact I'd put it slightly more strongly than he does: nobody but an arrant fool would rely on something which might not display correctly to clarify their meaning >:-)

I have to admit, and maybe show my very old age, that I never saw the advantage of the image emojis over the textual ones stemmed from the IRC era.

What did we have to gain? The poo emoji and the eggplant one? Really!??! >:-|

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: memo and smileys
« Reply #6 on: April 16, 2021, 03:52:57 pm »
nobody but an arrant fool would rely on something which might not display correctly to clarify their meaning >:-)
Are you sure everyone uses a font that includes punctuation

Bart

  • Hero Member
  • *****
  • Posts: 5274
    • Bart en Mariska's Webstek
Re: memo and smileys
« Reply #7 on: April 16, 2021, 04:01:04 pm »
Are you sure everyone uses a font that includes punctuation

Martin colon At least you could give us the courtesy of ending your sentence with the word questionmark opening parenthesis at leat I assume it was a question closing parenthesis comma if your font opening paernthesis or your keyboard closing parentesis does not support punctiation comma as seems to be the case with you point LineEnding LineEnding With kind regards comma LineEnding LineEnding Bart

Handoko

  • Hero Member
  • *****
  • Posts: 5129
  • My goal: build my own game engine using Lazarus
Re: memo and smileys
« Reply #8 on: April 16, 2021, 04:03:48 pm »
Default Ubuntu Mate installation has Noto fonts (no more tofu), which provide color and black-and-white emojis.

I routinely deinstall those since they can vastly slow down some software ...

Me too. I always uninstall them once I see them on my computer. Not only one, but maybe about 20 or more  :o of such fonts are installed, it makes hard when choosing a font when doing text editing on GIMP. All of them look very similar, a kind of Arial-style, nothing special and not very useful.

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: memo and smileys
« Reply #9 on: April 16, 2021, 04:04:22 pm »
Martin, you are a G.K.Chesterton fan and I claim my £5 :-)

Quote
Tolstoy and the Humanitarians said that the world was growing more merciful, and therefore no one would ever desire to kill. And Mr. Mick not only became a vegetarian, but at length declared vegetarianism doomed (‘shedding,’ as he called it finely, ‘the green blood of the silent animals’), and predicted that men in a better age would live on nothing but salt. And then came the pamphlet from Oregon (where the thing was tried) the pamphlet called ‘Why should Salt suffer?’ and there was more trouble.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: memo and smileys
« Reply #10 on: April 16, 2021, 04:05:18 pm »
At Bart
LOL
ROTFL

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: memo and smileys
« Reply #11 on: April 16, 2021, 04:17:30 pm »
Are you sure everyone uses a font that includes punctuation
Of course not:
E.g. the dingbat family, like wingdings 1/2/3, music fonts and the like.
You are right! Not every font includes punctuation.  :o O:-) :D

Many moons ago (really many) I loved wingdings to create nice looking Windows 1/2 user interfaces.
« Last Edit: April 16, 2021, 04:21:07 pm by Thaddy »
Specialize a type, not a var.

mercurhyo

  • Full Member
  • ***
  • Posts: 242
Re: memo and smileys
« Reply #12 on: April 16, 2021, 06:42:15 pm »
thank you all for the convo.

what I meant =

a TImagelist containing nXn uniform sized images and a memo with text containing tokens that are replaced by corresponding bitmaps at WMPaint time like it works inside moste messenger software I guess
« Last Edit: April 16, 2021, 06:49:59 pm by mercurhyo »
DEO MERCHVRIO - Linux, Win10pro - Ryzen9XT 24threads + Geforce Rtx 3080SUPRIM
god of financial gain, commerce, eloquence (and thus poetry), messages, communication (including divination), travelers, boundaries, luck, trickery and thieves; he also serves as the guide of souls to the underworld

mercurhyo

  • Full Member
  • ***
  • Posts: 242
Re: memo and smileys
« Reply #13 on: April 16, 2021, 06:47:15 pm »
I've searched delphi resources and seems to not exist at least in public  :(
DEO MERCHVRIO - Linux, Win10pro - Ryzen9XT 24threads + Geforce Rtx 3080SUPRIM
god of financial gain, commerce, eloquence (and thus poetry), messages, communication (including divination), travelers, boundaries, luck, trickery and thieves; he also serves as the guide of souls to the underworld

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: memo and smileys
« Reply #14 on: April 16, 2021, 08:37:45 pm »
Hi!

No problems with a simple TMemo and the default font (Sans) with Linux 64, gtk2, fpc 3.2, Laz 2.0.12

See attachement

Winni

 

TinyPortal © 2005-2018