Recent

Author Topic: memo and smileys  (Read 1098 times)

mercurhyo

  • Full Member
  • ***
  • Posts: 210
Re: memo and smileys
« Reply #15 on: April 17, 2021, 02:17:10 am »
c'mon winni write a sentence don't play with ms paint  or the Gimp ;) please
DEO MERCHVRIO - Linux, Win10pro - Ryzen9XT 24threads + Geoforce 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

MarkMLl

  • Hero Member
  • *****
  • Posts: 2494
Re: memo and smileys
« Reply #16 on: April 17, 2021, 09:40:58 am »
@mercurhyo YOU stop playing around, and experiment with some code. Recent Lazarus has no problems with such things.

MarkMLl

p.s. It's rare for winni and I to agree on something :-)
« Last Edit: April 17, 2021, 09:42:47 am by MarkMLl »
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

winni

  • Hero Member
  • *****
  • Posts: 2323
Re: memo and smileys
« Reply #17 on: April 17, 2021, 10:49:49 am »
c'mon winni write a sentence don't play with ms paint  or the Gimp ;) please

There is nothing to write.
But for the beginners:

Put a TMemo on your Form.
Compile that "project".

Search some UTF-8-Icons and copy them to the clipboard.

Place your cursor in the memo. Press Ctrl-V.
Make a screenshot.

There you are.

And stop offending me using ms paint. No one with a brain uses that.

Winni
« Last Edit: April 17, 2021, 10:51:43 am by winni »

MarkMLl

  • Hero Member
  • *****
  • Posts: 2494
Re: memo and smileys
« Reply #18 on: April 17, 2021, 10:58:24 am »
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

You /do/ appreciate that these emojim are now standard Unicode characters, don't you? What Winni and I are trying to show you is that you can quite simply C&P them into standard controls, so if (extremely unwisely in my experienced opinion) you wanted to replace :-) by a pile of poo or whatever it becomes a simple character-replacement operation.

There's really absolutely nothing to it, at least with fairly recent versions of the development tools (and obviously suitable OS support).

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

mercurhyo

  • Full Member
  • ***
  • Posts: 210
Re: memo and smileys
« Reply #19 on: April 17, 2021, 05:07:28 pm »
oh ok xcuz I do not use utf8 support for now. will try with more andro ram
DEO MERCHVRIO - Linux, Win10pro - Ryzen9XT 24threads + Geoforce 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

MarkMLl

  • Hero Member
  • *****
  • Posts: 2494
Re: memo and smileys
« Reply #20 on: April 17, 2021, 07:00:03 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

But that is only a subsection of the Unicode repertoire, and you've still got basic punctuation in the base page (i.e. the ASCII characters).

If we were talking about a single-byte character set codepage and a UI which could only display one codepage at a time then things might have been different.

Having said which: the various 5-bit teleprinter codes of which I'm aware (see e.g. table at bottom of http://www.quadibloc.com/crypto/tele03.htm) by and large had a reasonable punctuation repertoire. The various 6-bit dataprocessing codes of which I'm aware (see e.g. https://en.wikipedia.org/wiki/Six-bit_character_code and https://en.wikipedia.org/wiki/BCD_(character_encoding)) had variable degrees of support, but I'm not aware of any of these being used for terminal interaction: even Burroughs adopted ASCII in the early 60s for that purpose.

Both EBCDIC and (7-bit) ASCII have, of course, the combination of punctuations characters we expect. An early version of ASCII had a couple of variant codepoints, in particular _ was a left arrow. I'm aware of a small number of "unofficial" variants, e.g. IBM's VM/CMS operating system considered ^ to be a cent character.

When used as a standalone typewriter, the Selectric had interchangeable golfballs some of which had mathematical symbols rather than standard characters. It's hardly fair to consider those to represent computer character sets, and in any case the typist would have had a case of different golfballs so the situation is much closer to that of modern Unicode.

Finally, I'm aware of rotating-drum or train printers which for reasons of throughput only supported a limited character set so that they could print e.g. bank statements as fast as possible (i.e. greater than the standard 600 lines-per-minute). But that's not to say that the computer to which they were attached was similarly constrained.

So, I'd bet on basic punctuation marks being more predictably available than emojim any day :-)

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

MarkMLl

  • Hero Member
  • *****
  • Posts: 2494
Re: memo and smileys
« Reply #21 on: April 17, 2021, 07:01:12 pm »
oh ok xcuz I do not use utf8 support for now. will try with more andro ram

What's Andrew got to do with it?

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

Thaddy

  • Hero Member
  • *****
  • Posts: 10784
Re: memo and smileys
« Reply #22 on: April 17, 2021, 07:07:14 pm »
and you've still got basic punctuation in the base page (i.e. the ASCII characters).
MarkMLl
No.
(Dead giveaway: open the font in font viewer)

winni

  • Hero Member
  • *****
  • Posts: 2323
Re: memo and smileys
« Reply #23 on: April 17, 2021, 07:19:30 pm »
and you've still got basic punctuation in the base page (i.e. the ASCII characters).
MarkMLl
No.
(Dead giveaway: open the font in font viewer)

Hi!

I don't know any Unicode Font without then base page.
Aditional there are in the math code block an in some language blocks some additional punctuation signs.

Winni

winni

  • Hero Member
  • *****
  • Posts: 2323
Re: memo and smileys
« Reply #24 on: April 17, 2021, 07:28:16 pm »
Hi!

Punctuation in UTF-8, here: Semicolon as example

U+003B  |SEMICOLON
U+061B  |ARABIC SEMICOLON
U+1364  |ETHIOPIC SEMICOLON
U+204F  |REVERSED SEMICOLON
U+236E  |APL FUNCTIONAL SYMBOL SEMICOLON UNDERBAR
U+2E35  |TURNED SEMICOLON
U+A6F6  |BAMUM SEMICOLON
U+FE14  |PRESENTATION FORM FOR VERTICAL SEMICOLON
U+FE54  |SMALL SEMICOLON
U+FF1B  |FULLWIDTH SEMICOLON
U+1DA89 |SIGNWRITING SEMICOLON
U+E003B |TAG SEMICOLON

Whatever you just need.
Even for the APL users (if there are still some)

Winni

 

TinyPortal © 2005-2018