Plugin:HistoryPP/de/TextFormatierung: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
(Created page with "{{PageLang|de}}{{Untranslated}}__TOC__ The following <tt>STRING</tt> keys are used to change text which is copied to clipboard. {| class="wikitable" |- ! Key !! Default setti...")
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{PageLang|de}}{{Untranslated}}__TOC__
{{PageLang|de}}__TOC__
The following <tt>STRING</tt> keys are used to change text which is copied to clipboard.
Die folgenden <tt>STRING</tt>-Einträge werden verwendet um den Text zu ändern, welcher in die Zwischenablage kopiert wird.


{| class="wikitable"
{{Content:HistoryPP/TextFormatting-Keys}}
|-
! Key !! Default setting !! Description
|-
| '''FormatCopy'''|| <tt>%nick%, %smart_datetime%:\n%mes%\n</tt>|| to format text which is copied to clipboard on ''Copy'' command
|-
| '''FormatCopyText'''|| <tt>%mes%\n</tt>|| to format text which is copied to clipboard on ''Copy Text'' command
|-
| '''FormatReplyQuoted'''|| <tt>%nick%, %smart_datetime%:\n%quot_mes%\n</tt>|| to format text which is copied to message input area on ''Reply Quoted'' command
|-
| '''FormatReplyQuotedText'''|| <tt>%quot_selmes%\n</tt>|| to format selected text which is copied to message input area on ''Reply Quoted'' command
|-
| '''FormatSelection'''|| <tt>%selmes%\n</tt>|| to format selected messages or text via external log API query
|}
You will need {{Plugin|DbEditorPP|Database Editor}} plugin to add/edit these keys. To restore default format for particular setting, just delete it from the database and restart Miranda.


Sie benötigen  {{Plugin|DbEditorPP|Database Editor}} um diese Schlüssel hinzuzufügen/zu ändern.


== Formatting variables ==
== Formatierungsvariablen ==
* <tt>\n</tt> – new line
{{Content:HistoryPP/TextFormatting-Variables}}
* <tt>\t</tt> – tab
* <tt>\\</tt> – backslash (if you need to output backslash, instead of "Me\You" write "Me\\You")
* <tt>\%</tt> – percent sign (if you need to output percent sign, instead of "Me%You" write "Me\%You")
* <tt>%nick%</tt> – default contact's nickname text
* <tt>%from_nick%</tt> – nick of the sender
* <tt>%to_nick%</tt> – nick of the reciever
* <tt>%mes%</tt> – plain message text
* <tt>%adj_mes%</tt> – message adjusted to fit in 72 symbols
* <tt>%quot_mes%</tt> – the same as <tt>%adj_mes%</tt>, but every line is prefixed with "> "
* <tt>%selmes%</tt> – the same as <tt>%mes%</tt> or selected text in pseudo-edit mode
* <tt>%adj_selmes%</tt> – the same as <tt>%adj_mes%</tt> or applied to selected text in pseudo-edit mode
* <tt>%quot_selmes%</tt> – the same as <tt>%quot_mes%</tt> or applied to selected text in pseudo-edit mode
* <tt>%datetime%</tt> – date and time of the event
* <tt>%smart_datetime%</tt> – works for only for several messages. Outputs full date & time only for messages with unique date. For other events outputs only time.
* <tt>%date%</tt> – date of the event
* <tt>%time%</tt> – time of the event




== Single event examples ==
== Beispiele für einzelne Ereignisse ==
Event:
Ereignis:


''SomeContact, 21.01.2006 18:34''<br />
''SomeContact, 21.01.2006 18:34''<br />
Line 59: Line 30:




== Multiple events examples ==
== Beispiele für mehrere Ereignisse ==
Events:
Ereignisse:


''Mario, 21.01.2006 18:34: Hi!''<br />
''Mario, 21.01.2006 18:34: Hi!''<br />
Line 101: Line 72:




== See also ==
== Siehe auch==
* [[Plugin:HistoryPP/en#Hidden_options|History++ - Hidden options]]
* [[Plugin:HistoryPP/de#Versteckte_Einstellungen|History++ - Versteckte Einstellungen]]


[[Category:Anleitungen]]
[[Category:Anleitungen]]

Latest revision as of 22:03, 28 June 2015

Die folgenden STRING-Einträge werden verwendet um den Text zu ändern, welcher in die Zwischenablage kopiert wird.

Schlüssel Standardwert Beschreibung
FormatCopy %nick%, %smart_datetime%:\n%mes%\n Formatiert den Text, der durch Kopieren in die Zwischenablage kopiert wird.
FormatCopyText %mes%\n Formatiert den Text, der durch Text kopieren in die Zwischenablage kopiert wird.
FormatReplyQuoted %nick%, %smart_datetime%:\n%quot_mes%\n Formatiert den Text, der durch Mit Zitat antworten in den Nachrichteneingabebereich kopiert wird.
FormatReplyQuotedText %quot_selmes%\n Formatiert den ausgewählten Text, der durch Mit Zitat antworten in den Nachrichteneingabebereich kopiert wird.
FormatSelection %selmes%\n Formatiert ausgewählte Nachrichten oder Text, die über die externe API kopiert werden.

Sie benötigen Database Editor um diese Schlüssel hinzuzufügen/zu ändern.

Formatierungsvariablen

Variable Beschreibung
\n Neue Zeile
\t Tab
\\ Backslash (wenn Sie einen Backslash ausgeben müssen, geben Sie "Ich\\Er" anstelle von "Ich\Er" an)
\% Prozentzeichen (wenn Sie ein Prozentzeichen ausgeben müssen, geben Sie "Ich\%Er" anstelle von "Ich%Er" an)
%nick% Standard Nickname des Kontaktes
%from_nick% Nick des Absenders
%to_nick% Nick des Empfängers
%mes% Nachrichtentext
%adj_mes% Nachricht im 72-Zeichen-Format
%quot_mes% Dasselbe wie %adj_mes%, aber jede Zeile beginnt mit "> "
%selmes% Dasselbe wie %mes%, angewendet auf ausgewählten Text im Pseudobearbeitungsmodus.
%adj_selmes% Dasselbe wie %adj_mes%, angewendet auf ausgewählten Text im Pseudobearbeitungsmodus.
%quot_selmes% Dasselbe wie %quot_mes%, angewendet auf ausgewählten Text im Pseudobearbeitungsmodus
%datetime% Datum und Uhrzeit des Ereignisses
%smart_datetime% Funktioniert nur für mehrere Nachrichten. Gibt für Nachrichten mit eindeutigen Datum volles Datum und Uhrzeit aus. Für alle anderen Ereignisse gibt es nur die Uhrzeit aus.
%date% Datum des Ereignisses
%time% Uhrzeit des Ereignisses


Beispiele für einzelne Ereignisse

Ereignis:

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.


Beispiele für mehrere Ereignisse

Ereignisse:

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


Siehe auch