Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-10

FlipText

27 messages · 10 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen gmail
to silvioprog: It's possible in Lazarus?: http://www.fliptext.org/ <http://www.fliptext.org/>(canvas? :s…
silvioprog wrote
It's possible in Lazarus?: http://www.fliptext.org/

How is that done? I can copy the flipped text to a normal editor (like Lazarus editor or KMail's editor) and it still shows flipped. Changing the fon't doesn't turn it.

u?u?uu?? ??n?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/011f7593/attachment.html>

Reply by email

ik
to Juha Manninen gmail

It does one of two things:
A. Reverse the text (I tested it on Hebrew).
B. Uses a map of other unicode chars that looks like latin but are not.

On April 1th the Linux Kernel website did the same thing.

Ido

2010/10/20 Juha Manninen (gmail)

Show quoted text 20 lines
On Wednesday 20 October 2010 04:20:40 silvioprog wrote: > It's possible in Lazarus?: > http://www.fliptext.org/ How is that done? I can copy the flipped text to a normal editor (like Lazarus editor or KMail's editor) and it still shows flipped. Changing the fon't doesn't turn it. u?u?uu?? ??n? -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

LINESIP websites:
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/c264594f/attachment.html>

Reply by email

Žilvinas Ledas
to Juha Manninen gmail: How is that done? I can copy the flipped text to a normal editor (like Lazarus editor or…
Juha Manninen wrote 11 lines
> It's possible in Lazarus?: > http://www.fliptext.org/ How is that done? I can copy the flipped text to a normal editor (like Lazarus editor or KMail's editor) and it still shows flipped. Changing the fon't doesn't turn it. u?u?uu?? ??n

It is "faking" it :)
You can use "s" as flipped "s", use "x" as flipped "x" and you can use "d" as flipped "q" (and vice versa), "u" <-> "n"...

Regards
?ilvinas Ledas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/221c8e20/attachment.html>

Reply by email

ik
to Juha Manninen gmail

I wrote there in Arabic (Hello):
?????
and it reversed it to
?????

It seems tough that the letters are the same, you see the Mem, Ra, Het, ba and Alef the same, at least here (My Arabic skill are not that good though, I haven't used it for a lot of reading since high school almost 15 years ago).

Ido

On Wed, Oct 20, 2010 at 14:35, Juha Manninen (gmail) <

Show quoted text 22 lines
wrote: On Wednesday 20 October 2010 15:23:35 ik wrote: > It does one of two things: > A. Reverse the text (I tested it on Hebrew). > B. Uses a map of other unicode chars that looks like latin but are not. > > On April 1th the Linux Kernel website did the same thing. Cool. Only this one char looks different: ? It also behaves differently, cursor moving right to left. Juha -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/9bb24692/attachment.html>

Reply by email

silvioprog
to Martin: font.orientation := 180; canvas.Textout...

2010/10/20 Martin

Show quoted text 12 lines
On 20/10/2010 02:20, silvioprog wrote: > Hi guys, > > It's possible in Lazarus?: > > http://www.fliptext.org/ > > (canvas? :s special font? :o ) > font.orientation := 180; canvas.Textout...

It works, but not allows to use Copy/Paste. :/

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/743a7ff3/attachment-0001.html>

Reply by email

silvioprog
to Michael Fuchs: Of course. You need only two TMemo and a unicode font. Michael

2010/10/20 Michael Fuchs

Show quoted text 10 lines
Am 20.10.2010 03:20, schrieb silvioprog: It's possible in Lazarus?: > http://www.fliptext.org/ > Of course. You need only two TMemo and a unicode font. Michael

Do you know any? (GPL)

Thanks. ;)

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/bde81cf9/attachment.html>

Reply by email

Antônio
to silvioprog

I think it is made by a special font.

Ant?nio

2010/10/20 silvioprog :

Show quoted text 23 lines
2010/10/20 ?ilvinas Ledas > > It is "faking" it :) > You can use "s" as flipped "s", use "x" as flipped "x" and you can use "d" as flipped "q" (and vice versa), "u" <-> "n"... > > > Regards > ?ilvinas Ledas Hmm... and this: '?', '?', '?', '?' ??? :S -- Silvio Cl?cio, programmer ObjectPascal -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Antônio
to Antônio

You could not paste it on an app of your computer.

Ant?nio

2010/10/20 Ant?nio :

Show quoted text 29 lines
I think it is made by a special font. Ant?nio 2010/10/20 silvioprog : > 2010/10/20 ?ilvinas Ledas >> >> It is "faking" it :) >> You can use "s" as flipped "s", use "x" as flipped "x" and you can use "d" as flipped "q" (and vice versa), "u" <-> "n"... >> >> >> Regards >> ?ilvinas Ledas > > Hmm... and this: > > '?', '?', '?', '?' ??? :S > > -- > Silvio Cl?cio, > programmer ObjectPascal > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >

Reply by email

Žilvinas Ledas
to silvioprog: 2010/10/20 ?ilvinas Ledas Hmm... and this: '?', '?', '?', '?' ??? :S programmer…
silvioprog wrote 11 lines
2010/10/20 ?ilvinas Ledas > It is "faking" it :) > You can use "s" as flipped "s", use "x" as flipped "x" and you can use "d" as flipped "q" (and vice versa), "u"<-> "n"... > > > Regards > ?ilvinas Ledas Hmm... and this: '?', '?', '?', '?' ??? :S

Standard unicode characters:
? - $01DD (in latin extended-b subset)
? - $0250 (IPA extensions subset)
? - $026F (IPA extensions subset)
...
Most of the unicode fonts have these (eg. Arial (unicode), Times new roman ... in Windows)

Regards
?ilvinas Ledas

Reply by email

silvioprog
to Žilvinas Ledas

2010/10/20 ?ilvinas Ledas

Show quoted text 10 lines
Standard unicode characters: ? - $01DD (in latin extended-b subset) ? - $0250 (IPA extensions subset) ? - $026F (IPA extensions subset) ... Most of the unicode fonts have these (eg. Arial (unicode), Times new roman ... in Windows) Regards ?ilvinas Ledas

http://davidwalsh.name/flip-text

:o

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/a36d4a70/attachment.html>

Reply by email

silvioprog
to silvioprog

2010/10/20 ?ilvinas Ledas

Show quoted text 7 lines
Standard unicode characters: > > ? - $01DD (in latin extended-b subset) > ? - $0250 (IPA extensions subset) > ? - $026F (IPA extensions subset) >

How to convert from $01DD to ?? (e.g. 'AnyFPCFunction'($01DD); returns ?)

Thanks ;)

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/8e12d9dd/attachment-0001.html>

Reply by email

Sven Barth
to silvioprog
silvioprog wrote 14 lines
2010/10/20 ?ilvinas Ledas < <mailto:>> Standard unicode characters: ? - $01DD (in latin extended-b subset) ? - $0250 (IPA extensions subset) ? - $026F (IPA extensions subset) How to convert from $01DD to ?? (e.g. 'AnyFPCFunction'($01DD); returns ?) Thanks ;)

If you're using Lazarus you can do

Canvas.TextOut(x, y, Utf8Encode(#$01dd));

When you're using Linux and you want to print on a utf8 stdout you can use

Writeln(Utf8Encode(#$01dd));

Utf8Encode(WideString) converts an UTF-16 (fixed character length) string to an UTF-8 (dynamic character length) string (Utf8Decode is the reverse).

Regards,
Sven

Reply by email

Zaher Dirkey
to ik: I wrote there in Arabic (Hello): ????? and it reversed it to ????? It seems tough that…

2010/10/20 ik

Show quoted text 13 lines
I wrote there in Arabic (Hello): ????? and it reversed it to ????? It seems tough that the letters are the same, you see the Mem, Ra, Het, ba and Alef the same, at least here (My Arabic skill are not that good though, I haven't used it for a lot of reading since high school almost 15 years ago). Ido

That is mean you already installed Arabic language in your system :)

fliptext.org can not found our local language, and it is fake, just for fun.

Zaher Dirkey -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/ca760df3/attachment.html>

Reply by email

silvioprog
to Sven Barth: If you're using Lazarus you can do Canvas.TextOut(x, y, Utf8Encode(#$01dd)); When you're…

2010/10/20 Sven Barth

Show quoted text 13 lines
If you're using Lazarus you can do Canvas.TextOut(x, y, Utf8Encode(#$01dd)); When you're using Linux and you want to print on a utf8 stdout you can use Writeln(Utf8Encode(#$01dd)); Utf8Encode(WideString) converts an UTF-16 (fixed character length) string to an UTF-8 (dynamic character length) string (Utf8Decode is the reverse). Regards, Sven

Fail: :(

procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := Utf8Encode(#$01dd);
end;

Error:

----
unit1.pas(35,14) Error: Can't determine which overloaded function to call

And:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Caption := Utf8Encode(chr($01dd));
end;

Return ?, and not ? (u01DD = ?: http://www.wilsonmar.com/1unicode.htm) :(

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101020/b155b946/attachment.html>

Reply by email

Žilvinas Ledas
to silvioprog
silvioprog wrote 5 lines
procedure TForm1.Button1Click(Sender: TObject); begin Caption := Utf8Encode(#$01dd); end;

You can do something like:

showmessage(UTF8Encode(''+#$01dd));

or you can add WideChar() (I'm used to add it to ease code reading in the future):
showmessage(UTF8Encode(''+WideChar(#$01dd)));

Regards
?ilvinas Ledas

Reply by email

ik
to Zaher Dirkey: 2010/10/20 ik That is mean you already installed Arabic language in your system :)…

2010/10/20 Zaher Dirkey

Show quoted text 17 lines
2010/10/20 ik I wrote there in Arabic (Hello): > ????? > and it reversed it to > ????? > > It seems tough that the letters are the same, you see the Mem, Ra, Het, ba > and Alef the same, at least here (My Arabic skill are not that good though, > I haven't used it for a lot of reading since high school almost 15 years > ago). > > Ido > > That is mean you already installed Arabic language in your system :)

In Linux I can see most languages, even Chinese, but my keyboard layout is only English and Hebrew, I just copied the chars from wikipedia :)

Show quoted text 14 lines
fliptext.org can not found our local language, and it is fake, just for fun. -- Zaher Dirkey -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Ido

LINESIP websites:
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101021/bb249eb9/attachment.html>

Reply by email

Sven Barth
to silvioprog: 2010/10/20 Sven Barth Fail: :( procedure TForm1.Button1Click(Sender: TObject); begin…
silvioprog wrote 40 lines
2010/10/20 Sven Barth < <mailto:>> If you're using Lazarus you can do Canvas.TextOut(x, y, Utf8Encode(#$01dd)); When you're using Linux and you want to print on a utf8 stdout you can use Writeln(Utf8Encode(#$01dd)); Utf8Encode(WideString) converts an UTF-16 (fixed character length) string to an UTF-8 (dynamic character length) string (Utf8Decode is the reverse). Regards, Sven Fail: :( procedure TForm1.Button1Click(Sender: TObject); begin Caption := Utf8Encode(#$01dd); end; Error: ---- unit1.pas(35,14) Error: Can't determine which overloaded function to call And: procedure TForm1.Button1Click(Sender: TObject); begin Caption := Utf8Encode(chr($01dd)); end; Return ?, and not ? (u01DD = ?: http://www.wilsonmar.com/1unicode.htm) :(

Let me guess... you're using Windows where UnicodeString WideString...

Try this:

Caption := Utf8Encode(UnicodeString(#$01dd));

Regards,
Sven

Reply by email

silvioprog
to Sven Barth

Hi guys, sorry for my delay...

I made this:

function FlipText(AText: string): string;
var
  I: Integer;
begin
  AText := LowerCase(AText);
  for I := 1 to Length(AText) do
  begin
    case AText[I] of
      'a': Result := '?' + Result;
      'b': Result := 'q' + Result;
      'c': Result := '?' + Result;
      'd': Result := 'p' + Result;
      'e': Result := '?' + Result;
      'f': Result := '?' + Result;
      'g': Result := 'b' + Result;
      'h': Result := '?' + Result;
      'i': Result := '?' + Result;
      'j': Result := '?' + Result;
      'k': Result := '?' + Result;
      'l': Result := '?' + Result;
      'm': Result := '?' + Result;
      'n': Result := 'u' + Result;
      'p': Result := 'd' + Result;
      'q': Result := 'b' + Result;
      'r': Result := '?' + Result;
      't': Result := '?' + Result;
      'u': Result := 'n' + Result;
      'v': Result := '?' + Result;
      'w': Result := '?' + Result;
      'y': Result := '?' + Result;
      '.': Result := '?' + Result;
      ',': Result := '''' + Result;
      '''': Result := ',' + Result;
      '"': Result := ',,' + Result;
      ';': Result := '?' + Result;
      '!': Result := '?' + Result;
      #161: Result := '!' + Result;
      '?': Result := '?' + Result;
      #191: Result := '?' + Result;
      '[': Result := ']' + Result;
      ']': Result := '[' + Result;
      '(': Result := ')' + Result;
      ')': Result := '(' + Result;
      '{': Result := '}' + Result;
      '}': Result := '{' + Result;
      '<': Result := '>' + Result;
      '>': Result := '<' + Result;
      '_': Result := '?' + Result;
    else
      Result := AText[I] + Result;
    end;
  end;
end;

Is not the 'best funtion', but it's something. ^^

Silvio Cl?cio, *programmer* *ObjectPascal* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20101021/68f7eff5/attachment-0001.html>

Reply by email