mirror of https://github.com/mpv-player/mpv
DOCS/input: move escape-ass documentation
It should be next to expand-text and expand-path, not under Input Commands that are Possibly Subject to Change.
This commit is contained in:
parent
053d971507
commit
67644888e7
|
@ -827,6 +827,18 @@ Remember to quote string arguments in input.conf (see `Flat command syntax`_).
|
|||
This line of Lua would show the location of the user's mpv
|
||||
configuration directory on the OSD.
|
||||
|
||||
``escape-ass <text>``
|
||||
Modify ``text`` so that commands and functions that interpret ASS tags,
|
||||
such as ``osd-overlay`` and ``mp.create_osd_overlay``, will display it
|
||||
verbatim, and return it. This can only be used through the client API or
|
||||
from a script using ``mp.command_native``.
|
||||
|
||||
.. admonition:: Example
|
||||
|
||||
``mp.osd_message(mp.command_native({"escape-ass", "foo {bar}"}))``
|
||||
|
||||
This line of Lua prints "foo \\{bar}" on the OSD.
|
||||
|
||||
``show-progress``
|
||||
Show the progress bar, the elapsed time and the total duration of the file
|
||||
on the OSD. ``no-osd`` has no effect on this command.
|
||||
|
@ -1266,18 +1278,6 @@ Input Commands that are Possibly Subject to Change
|
|||
use the ``mp.create_osd_overlay()`` helper instead of invoking this
|
||||
command directly.
|
||||
|
||||
``escape-ass <text>``
|
||||
Modify ``text`` so that commands and functions that interpret ASS tags,
|
||||
such as ``osd-overlay`` and ``mp.create_osd_overlay``, will display it
|
||||
verbatim, and return it. This can only be used through the client API or
|
||||
from a script using ``mp.command_native``.
|
||||
|
||||
.. admonition:: Example
|
||||
|
||||
``mp.osd_message(mp.command_native({"escape-ass", "foo {bar}"}))``
|
||||
|
||||
This line of Lua prints "foo \\{bar}" on the OSD.
|
||||
|
||||
``script-message [<arg1> [<arg2> [...]]]``
|
||||
Send a message to all clients, and pass it the following list of arguments.
|
||||
What this message means, how many arguments it takes, and what the arguments
|
||||
|
|
Loading…
Reference in New Issue