Plugin:HistoryPP/pl/Formatowanie tekstu

From Miranda NG
< History++‎ | History++
Revision as of 19:26, 3 August 2014 by Goraf (talk | contribs) (H++ - Text formatting [PL]; +categories; untranslated)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Następujące klucze typu STRING są używane do zmiany tekstu, który jest kopiowany do schowka.


Klucz Domyślne ustawienie Opis
FormatCopy %nick%, %smart_datetime%:\n%mes%\n to format text which is copied to clipboard on Copy command
FormatCopyText %mes%\n to format text which is copied to clipboard on Copy Text command
FormatReplyQuoted %nick%, %smart_datetime%:\n%quot_mes%\n to format text which is copied to message input area on Reply Quoted command
FormatReplyQuotedText %quot_selmes%\n to format selected text which is copied to message input area on Reply Quoted command
FormatSelection %selmes%\n to format selected messages or text via external log API query

Do dodawania/edytowania tych kluczy będziesz potrzebować wtyczki Database Editor. Aby przywrócić wartości domyślne dla określonego ustawinia, usuń je z bazy danych i zrestartuj Mirandę.


Zmienne formatujące

  • \n – nowa linia
  • \t – tabulator
  • \\ – odwrotny ukośnik (backslash) (jeśli chcesz wypisać backslash, zamiast "Ja\Ty" napisz "Ja\\Ty")
  • \% – znak procentu (jeśli chcesz wypisać znak procentu, zamiast "Ja%Ty" napisz "Ja\%Ty")
  • %nick% – default contact's nickname text
  • %from_nick% – nick nadawcy
  • %to_nick% – nick odbiorcy
  • %mes% – niesformatowany tekst wiadomości
  • %adj_mes% – wiadomość wyjustowana do 72 znaków
  • %quot_mes% – tak samo jak %adj_mes%, ale każda linia zaczyna się od "> "
  • %selmes% – the same as %mes% or selected text in pseudo-edit mode
  • %adj_selmes% – the same as %adj_mes% or applied to selected text in pseudo-edit mode
  • %quot_selmes% – the same as %quot_mes% or applied to selected text in pseudo-edit mode
  • %datetime% – data i czas zdarzenia
  • %smart_datetime% – works for only for several messages. Outputs full date & time only for messages with unique date. For other events outputs only time.
  • %date% – data zdarzenia
  • %time% – czas zdarzenia


Przykłady dla pojedynczego zdarzenia

Zdarzenie:

SomeContact, 21.01.2006 18:34
Hello, how are you? I haven't seen you for a long time. I've got fantastic new gadget I want to tell you about. Please, drop me a line.

Format: %nick% - [%datetime%]:\n%mes%

SomeContact - [21.01.2006 18:34]:
Hello, how are you? I haven't seen you for a long time. I've got fantastic new gadget I want to tell you about. Please, drop me a line.

Format: %nick%, %time%\n%quot_mes%

SomeContact, 18:34
> Hello, how are you? I haven't seen you for a long time. I've got fantastic
> new gadget I want to tell you about. Please, drop me a line.


Przykłady dla wielu zdarzeń

Zdarzenia:

Mario, 21.01.2006 18:34: Hi!
You, 21.01.2006 18:35: Hi!
Mario, 21.01.2006 18:36: Bye then
You, 22.01.2006 12:11: Hi again! Where have you been?
Mario, 22.01.2006 12:12: Oh, don't ask

Format: %nick%, %smart_datetime%: %quot_mes%

Mario, 21.01.2006 18:34: > Hi!
You, 18:35: > Hi!
Mario, 18:36: > Bye then
You, 22.01.2006 12:11: > Hi again! Where have you been?
Mario, 12:12: > Oh, don't ask

Format: %from_nick%\\%to_nick% [%smart_datetime%]: %mes%\n-----\n

Mario\You [21.01.2006 18:34]: Hi!
-----
You\Mario [18:35]: Hi!
-----
Mario\You [18:36]: Bye then
-----
You\Mario [22.01.2006 12:11]: Hi again! Where have you been?
-----
Mario\You [12:12]: Oh, don't ask
-----

Format: %nick%\t[%time%]\t%mes%

Mario	[18:34] Hi!
You	[18:35] Hi!
Mario	[18:36] Bye then
You	[12:11] Hi again! Where have you been?
Mario	[12:12] Oh, don't ask

Zobacz także