diff options
69 files changed, 1708 insertions, 1275 deletions
diff --git a/cmake/FindAsciidoc.cmake b/cmake/FindAsciidoc.cmake index c015f44df..d1f32a19b 100644 --- a/cmake/FindAsciidoc.cmake +++ b/cmake/FindAsciidoc.cmake @@ -41,11 +41,15 @@ if(ASCIIDOC_EXECUTABLE AND A2X_EXECUTABLE) OUTPUT_VARIABLE ASCIIDOC_VERSION ) - if(${ASCIIDOC_VERSION} MATCHES "asciidoc 8.*") + string(STRIP ${ASCIIDOC_VERSION} ASCIIDOC_VERSION) + string(REPLACE "asciidoc " "" ASCIIDOC_VERSION ${ASCIIDOC_VERSION}) + + if(ASCIIDOC_VERSION VERSION_EQUAL "8.0.0" OR ASCIIDOC_VERSION VERSION_GREATER "8.0.0") set(ASCIIDOC_FOUND TRUE) endif() mark_as_advanced( ASCIIDOC_EXECUTABLE + ASCIIDOC_VERSION ) endif() diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index f4ede1ca4..26ade9959 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -19,9 +19,55 @@ # if(ENABLE_MAN OR ENABLE_DOC) + find_package(Sourcehighlight) find_package(Asciidoc) + if(ASCIIDOC_FOUND) + + # copy asciidoc.css in build dir + add_custom_command( + OUTPUT ${CMAKE_BINARY_DIR}/doc/asciidoc_toc.css + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.css asciidoc_toc.css + DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.css + ${CMAKE_CURRENT_SOURCE_DIR}/toc2.css + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Building asciidoc_toc.css" + ) + add_custom_target(asciidoc-toc-css ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/asciidoc_toc.css) + + # concat asciidoc.css + toc2.css into asciidoc_toc2.css (in build dir) + add_custom_command( + OUTPUT ${CMAKE_BINARY_DIR}/doc/asciidoc_toc2.css + COMMAND cat ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.css ${CMAKE_CURRENT_SOURCE_DIR}/toc2.css > asciidoc_toc2.css + DEPENDS + ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.css + ${CMAKE_CURRENT_SOURCE_DIR}/toc2.css + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} + COMMENT "Building asciidoc_toc2.css" + ) + add_custom_target(asciidoc-toc2-css ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/asciidoc_toc2.css) + + set(CSS_TOC -a stylesheet=${CMAKE_CURRENT_BINARY_DIR}/asciidoc_toc.css) + set(CSS_TOC2 -a stylesheet=${CMAKE_CURRENT_BINARY_DIR}/asciidoc_toc2.css) + + set(ASCIIDOC_ARGS -a revision="${VERSION}" -f ${CMAKE_CURRENT_SOURCE_DIR}/asciidoc.conf) + + # use html5 backend if available (asciidoc >= 8.6.5) + if(ASCIIDOC_VERSION VERSION_EQUAL "8.6.5" OR ASCIIDOC_VERSION VERSION_GREATER "8.6.5") + set(ASCIIDOC_ARGS -b html5 ${ASCIIDOC_ARGS}) + endif() + + set(ASCIIDOC_ARGS_USER ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + set(ASCIIDOC_ARGS_API ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + set(ASCIIDOC_ARGS_SCRIPTING ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + set(ASCIIDOC_ARGS_FAQ ${ASCIIDOC_ARGS} ${CSS_TOC} -n) + set(ASCIIDOC_ARGS_QUICKSTART ${ASCIIDOC_ARGS} ${CSS_TOC2} -n) + set(ASCIIDOC_ARGS_TESTER ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + set(ASCIIDOC_ARGS_RELAY ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + set(ASCIIDOC_ARGS_DEV ${ASCIIDOC_ARGS} ${CSS_TOC2} ) + add_subdirectory(en) add_subdirectory(fr) add_subdirectory(it) @@ -30,5 +76,7 @@ if(ENABLE_MAN OR ENABLE_DOC) add_subdirectory(es) add_subdirectory(ru) add_subdirectory(ja) + endif() + endif() diff --git a/doc/Makefile.am b/doc/Makefile.am index 7bcb1f530..17ac5905a 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -18,9 +18,21 @@ # along with WeeChat. If not, see <http://www.gnu.org/licenses/>. # +BUILT_SOURCES = build-asciidoc-css +build-asciidoc-css: + cp $(abs_top_srcdir)/doc/asciidoc.css asciidoc_toc.css + cat $(abs_top_srcdir)/doc/asciidoc.css $(abs_top_srcdir)/doc/toc2.css > asciidoc_toc2.css + SUBDIRS = . en fr it de pl es ru ja -EXTRA_DIST = docgen.py CMakeLists.txt asciidoc.conf asciidoc.css +EXTRA_DIST = docgen.py \ + CMakeLists.txt \ + asciidoc.conf \ + asciidoc.css \ + toc2.css uninstall-hook: -rmdir $(DESTDIR)$(datadir)/doc/$(PACKAGE) + +clean-local: + -rm -f asciidoc_toc.css asciidoc_toc2.css diff --git a/doc/asciidoc.css b/doc/asciidoc.css index 8b3161c11..875d1f0b9 100644 --- a/doc/asciidoc.css +++ b/doc/asciidoc.css @@ -1,3 +1,5 @@ +/* custom asciidoc styles */ + body { margin: 1em 2em; font-family: verdana, sans-serif; @@ -24,15 +26,18 @@ tt { } #toc { line-height: 1.4em; + padding-bottom: 3em; } #toctitle { margin-bottom: .6em; color: #555; } -div.toclevel0, div.toclevel1 { - font-size: 1.1em; +#toc .toclevel0, #toc .toclevel1 { + display: block; + font-size: 1em; } -div.toclevel2, div.toclevel3, div.toclevel4 { +#toc .toclevel2, #toc .toclevel3, #toc .toclevel4 { + display: block; font-size: 1em; } h1, h2, h3, h4, h5, h6 { @@ -40,7 +45,7 @@ h1, h2, h3, h4, h5, h6 { } h1 { padding: 1.2em; - border: solid 1px #c0d0ff; + border: 1px solid #c0d0ff; border-radius: 8px; box-shadow: 1px 1px 3px #aac; background: #ddeaee; @@ -53,7 +58,7 @@ h1 { } h2 { padding: .5em; - border: solid 1px #d0d0d0; + border: 1px solid #d0d0d0; border-radius: 6px; box-shadow: 1px 1px 2px #bbb; background: #f2f2f2; @@ -79,7 +84,7 @@ h5 { } span.command { padding: .2em .5em; - border: solid 1px #ccc; + border: 1px solid #ccc; border-radius: 4px; box-shadow: 1px 1px 2px #ccc; margin-right: 12px; @@ -91,13 +96,10 @@ p.table { margin-bottom: 0; } div.listingblock > div.content { - border: solid 1px #e2e2e2; + border: 1px solid #e2e2e2; border-radius: 4px; background: #fbfbfb; } -div.tableblock > table { - border: 2px solid #888; -} .listingblock pre { white-space: pre-wrap; word-wrap: break-word; @@ -107,8 +109,11 @@ table th { color: #000; font-size: 1.1em; } -.tableblock table th, .tableblock table td { - border: solid 1px #bbb; +table.tableblock, th.tableblock, td.tableblock, .tableblock table th, .tableblock table td { + border: 1px solid #bbb; +} +table.tableblock { + border: 2px solid #888; } div.title { color: #525252; @@ -125,10 +130,10 @@ dt.hdlist1 { } .key { padding: .1em .4em; - border-top: solid 1px #d5d5e5; - border-left: solid 1px #d5d5e5; - border-bottom: solid 1px #a5a5b5; - border-right: solid 1px #a5a5b5; + border-top: 1px solid #d5d5e5; + border-left: 1px solid #d5d5e5; + border-bottom: 1px solid #a5a5b5; + border-right: 1px solid #a5a5b5; border-radius: 3px; box-shadow: 1px 1px 3px #d5d5e5; margin: 0 2px; @@ -138,40 +143,40 @@ dt.hdlist1 { line-height: 1.6em; } .key.ctrl { - border-top: solid 1px #dfd0d0; - border-left: solid 1px #dfd0d0; - border-bottom: solid 1px #afa0a0; - border-right: solid 1px #afa0a0; + border-top: 1px solid #dfd0d0; + border-left: 1px solid #dfd0d0; + border-bottom: 1px solid #afa0a0; + border-right: 1px solid #afa0a0; border-radius: 3px; box-shadow: 1px 1px 3px #dfd0d0; background: #fff0f0; text-transform: capitalize; } .key.alt { - border-top: solid 1px #dfc5b4; - border-left: solid 1px #dfc5b4; - border-bottom: solid 1px #af9484; - border-right: solid 1px #af9484; + border-top: 1px solid #dfc5b4; + border-left: 1px solid #dfc5b4; + border-bottom: 1px solid #af9484; + border-right: 1px solid #af9484; border-radius: 3px; box-shadow: 1px 1px 3px #dfc5b4; background: #ffe4d4; text-transform: capitalize; } .key.shift { - border-top: solid 1px #d5d5d5; - border-left: solid 1px #d5d5d5; - border-bottom: solid 1px #a5a5a5; - border-right: solid 1px #a5a5a5; + border-top: 1px solid #d5d5d5; + border-left: 1px solid #d5d5d5; + border-bottom: 1px solid #a5a5a5; + border-right: 1px solid #a5a5a5; border-radius: 3px; box-shadow: 1px 1px 3px #d5d5d5; background: #f5f5f5; text-transform: capitalize; } .key.other { - border-top: solid 1px #d0e0d0; - border-left: solid 1px #d0e0d0; - border-bottom: solid 1px #a0b0a0; - border-right: solid 1px #a0b0a0; + border-top: 1px solid #d0e0d0; + border-left: 1px solid #d0e0d0; + border-bottom: 1px solid #a0b0a0; + border-right: 1px solid #a0b0a0; border-radius: 3px; box-shadow: 1px 1px 3px #d0e0d0; background: #eafaea; @@ -181,12 +186,12 @@ dt.hdlist1 { } .hexa { padding: 0 .2em; - border: solid 1px #88b; + border: 1px solid #88b; margin: 0 .2em; color: #007; font-family: monospace; font-size: .85em; } #footer { - border-top: 1px solid silver; + border-top: solid 1px silver; } diff --git a/doc/de/CMakeLists.txt b/doc/de/CMakeLists.txt index 91a008d88..db07317fc 100644 --- a/doc/de/CMakeLists.txt +++ b/doc/de/CMakeLists.txt @@ -21,12 +21,13 @@ if(ENABLE_MAN) # man page add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.de.asciidoc + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.asciidoc . + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.asciidoc . + COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.de.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.de.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (de)" ) add_custom_target(doc-man-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.de.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.de.html" ) add_custom_target(doc-user-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html) @@ -51,9 +54,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.de.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.de.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.de.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.de.html" ) add_custom_target(doc-scripting-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.de.html) @@ -62,9 +67,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.de.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.de.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.de.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.de.html" ) add_custom_target(doc-faq-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.de.html) @@ -73,9 +80,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.de.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.de.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.de.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.de.html" ) add_custom_target(doc-quickstart-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.de.html) @@ -84,9 +93,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.de.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.de.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.de.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.de.html" ) add_custom_target(doc-tester-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.de.html) diff --git a/doc/de/Makefile.am b/doc/de/Makefile.am index 5817c7074..7b3559113 100644 --- a/doc/de/Makefile.am +++ b/doc/de/Makefile.am @@ -57,23 +57,23 @@ weechat.1: weechat.1.de.asciidoc cmdline_options.de.asciidoc # user's guide weechat_user.de.html: weechat_user.de.asciidoc cmdline_options.de.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.de.html $(abs_top_srcdir)/doc/de/weechat_user.de.asciidoc # scripting guide weechat_scripting.de.html: weechat_scripting.de.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.de.html $(abs_top_srcdir)/doc/de/weechat_scripting.de.asciidoc # FAQ weechat_faq.de.html: weechat_faq.de.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.de.html $(abs_top_srcdir)/doc/de/weechat_faq.de.asciidoc # quickstart weechat_quickstart.de.html: weechat_quickstart.de.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.de.html $(abs_top_srcdir)/doc/de/weechat_quickstart.de.asciidoc # tester's guide weechat_tester.de.html: weechat_tester.de.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.de.html $(abs_top_srcdir)/doc/de/weechat_tester.de.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.de.html $(abs_top_srcdir)/doc/de/weechat_tester.de.asciidoc # install man/docs diff --git a/doc/de/weechat.1.de.asciidoc b/doc/de/weechat.1.de.asciidoc index 024ae45cc..4d7265ce1 100644 --- a/doc/de/weechat.1.de.asciidoc +++ b/doc/de/weechat.1.de.asciidoc @@ -91,6 +91,15 @@ $HOME/.weechat/weechat.log:: == AUTOREN +// TRANSLATION MISSING +This manpage was written by Sébastien Helleu <flashcode@flashtux.org>. + +// TRANSLATION MISSING +Translated by Nils Görs <weechatter@arcor.de>. + +// TRANSLATION MISSING +== COPYRIGHT + WeeChat ist programmiert von Sébastien Helleu und Beitragenden (eine vollständige Auflistung findet man in der AUTHORS.asciidoc Datei). diff --git a/doc/de/weechat_faq.de.asciidoc b/doc/de/weechat_faq.de.asciidoc index 719879109..964f00284 100644 --- a/doc/de/weechat_faq.de.asciidoc +++ b/doc/de/weechat_faq.de.asciidoc @@ -3,12 +3,21 @@ :email: flashcode@flashtux.org :lang: de :toc: +:toc-placement: manual +// TRANSLATION MISSING +Translators: + +* Juergen Descher <jhdl@gmx.net>, 2009 +* Nils Görs <weechatter@arcor.de>, 2009-2015 + [NOTE] Diese Dokumentation bezieht sich auf die WeeChat Version ≥ 0.3.0. Es sollte aber vorzugsweise immer die aktuell veröffentlichte Version von WeeChat genutzt werden. +toc::[] + [[general]] == Allgemein diff --git a/doc/de/weechat_quickstart.de.asciidoc b/doc/de/weechat_quickstart.de.asciidoc index b3227b7c5..3cc1c159a 100644 --- a/doc/de/weechat_quickstart.de.asciidoc +++ b/doc/de/weechat_quickstart.de.asciidoc @@ -2,7 +2,16 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: de -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Frank Zacharias <frank_zacharias@web.de>, 2006 +* Juergen Descher <jhdl@gmx.net>, 2009 +* Nils Görs <weechatter@arcor.de>, 2009-2015 [[start]] diff --git a/doc/de/weechat_scripting.de.asciidoc b/doc/de/weechat_scripting.de.asciidoc index fb1919cc8..19ec24648 100644 --- a/doc/de/weechat_scripting.de.asciidoc +++ b/doc/de/weechat_scripting.de.asciidoc @@ -2,8 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: de -:toc: +:toc2: :toclevels: 3 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Nils Görs <weechatter@arcor.de>, 2010-2015 Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat. diff --git a/doc/de/weechat_tester.de.asciidoc b/doc/de/weechat_tester.de.asciidoc index 4e26f3530..db5d14fe1 100644 --- a/doc/de/weechat_tester.de.asciidoc +++ b/doc/de/weechat_tester.de.asciidoc @@ -2,7 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: de -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Juergen Descher <jhdl@gmx.net>, 2009 +* Nils Görs <weechatter@arcor.de>, 2009-2015 [[purpose]] diff --git a/doc/de/weechat_user.de.asciidoc b/doc/de/weechat_user.de.asciidoc index 5145a99c5..b2f4cbecd 100644 --- a/doc/de/weechat_user.de.asciidoc +++ b/doc/de/weechat_user.de.asciidoc @@ -2,8 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: de -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Nils Görs <weechatter@arcor.de>, 2010-2015 Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat. diff --git a/doc/en/CMakeLists.txt b/doc/en/CMakeLists.txt index 99629cf80..bdf02d5fb 100644 --- a/doc/en/CMakeLists.txt +++ b/doc/en/CMakeLists.txt @@ -21,12 +21,13 @@ if(ENABLE_MAN) # man page add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.en.asciidoc + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.asciidoc . + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.asciidoc . + COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.en.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.en.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (en)" ) add_custom_target(doc-man-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.en.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.en.html" ) add_custom_target(doc-user-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html) @@ -51,10 +54,12 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # plugin API reference add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_API} -o weechat_plugin_api.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.en.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_plugin_api.en.html" ) add_custom_target(doc-plugin-api-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.en.html) @@ -63,9 +68,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.en.html" ) add_custom_target(doc-scripting-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.en.html) @@ -74,9 +81,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.en.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.en.html" ) add_custom_target(doc-faq-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.en.html) @@ -85,9 +94,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.en.html" ) add_custom_target(doc-quickstart-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.en.html) @@ -96,9 +107,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.en.html" ) add_custom_target(doc-tester-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.en.html) @@ -107,9 +120,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # relay protocol add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_RELAY} -o weechat_relay_protocol.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_relay_protocol.en.html" ) add_custom_target(doc-relay-protocol-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.en.html) @@ -118,9 +133,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # developer's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.en.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_DEV} -o weechat_dev.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.en.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.en.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_dev.en.html" ) add_custom_target(doc-dev-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.en.html) diff --git a/doc/en/Makefile.am b/doc/en/Makefile.am index f20875ac9..e12dffe16 100644 --- a/doc/en/Makefile.am +++ b/doc/en/Makefile.am @@ -64,35 +64,35 @@ weechat.1: weechat.1.en.asciidoc cmdline_options.en.asciidoc # user's guide weechat_user.en.html: weechat_user.en.asciidoc cmdline_options.en.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.en.html $(abs_top_srcdir)/doc/en/weechat_user.en.asciidoc # plugin API reference weechat_plugin_api.en.html: weechat_plugin_api.en.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_plugin_api.en.html $(abs_top_srcdir)/doc/en/weechat_plugin_api.en.asciidoc # scripting guide weechat_scripting.en.html: weechat_scripting.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.en.html $(abs_top_srcdir)/doc/en/weechat_scripting.en.asciidoc # FAQ weechat_faq.en.html: weechat_faq.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.en.html $(abs_top_srcdir)/doc/en/weechat_faq.en.asciidoc # quickstart weechat_quickstart.en.html: weechat_quickstart.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.en.html $(abs_top_srcdir)/doc/en/weechat_quickstart.en.asciidoc # tester's guide weechat_tester.en.html: weechat_tester.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.en.html $(abs_top_srcdir)/doc/en/weechat_tester.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.en.html $(abs_top_srcdir)/doc/en/weechat_tester.en.asciidoc # relay protocol weechat_relay_protocol.en.html: weechat_relay_protocol.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_relay_protocol.en.html $(abs_top_srcdir)/doc/en/weechat_relay_protocol.en.asciidoc # developer's guide weechat_dev.en.html: weechat_dev.en.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_dev.en.html $(abs_top_srcdir)/doc/en/weechat_dev.en.asciidoc # install man/docs diff --git a/doc/en/weechat.1.en.asciidoc b/doc/en/weechat.1.en.asciidoc index f735b09b9..5136e6f23 100644 --- a/doc/en/weechat.1.en.asciidoc +++ b/doc/en/weechat.1.en.asciidoc @@ -90,6 +90,10 @@ $HOME/.weechat/weechat.log:: == AUTHORS +This manpage was written by Sébastien Helleu <flashcode@flashtux.org>. + +== COPYRIGHT + WeeChat is written by Sébastien Helleu and contributors (complete list is in the AUTHORS.asciidoc file). diff --git a/doc/en/weechat_dev.en.asciidoc b/doc/en/weechat_dev.en.asciidoc index ebf06e074..976bb9471 100644 --- a/doc/en/weechat_dev.en.asciidoc +++ b/doc/en/weechat_dev.en.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% This manual documents WeeChat chat client, it is part of WeeChat. diff --git a/doc/en/weechat_faq.en.asciidoc b/doc/en/weechat_faq.en.asciidoc index ad7229570..a8863757c 100644 --- a/doc/en/weechat_faq.en.asciidoc +++ b/doc/en/weechat_faq.en.asciidoc @@ -3,12 +3,15 @@ :email: flashcode@flashtux.org :lang: en :toc: +:toc-placement: manual [NOTE] This document is written for WeeChat versions ≥ 0.3.0 but should preferably be used with latest stable version of WeeChat. +toc::[] + [[general]] == General diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc index c451ef3ce..8b71bf8ce 100644 --- a/doc/en/weechat_plugin_api.en.asciidoc +++ b/doc/en/weechat_plugin_api.en.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: +:toc2: :toclevels: 4 +:max-width: 100% This manual documents WeeChat chat client, it is part of WeeChat. @@ -221,7 +222,7 @@ For each function, we give: Functions to get infos about plugins. -==== weechat_plugin_get_name +==== plugin_get_name Get plugin name. @@ -266,7 +267,7 @@ Many string functions below are already available thru standard C functions, but it's recommended to use functions in this API because they are OK with UTF-8 and locale. -==== weechat_charset_set +==== charset_set Set new plugin charset (default charset is 'UTF-8', so if your plugin uses 'UTF-8', you don't need to call this function). @@ -300,7 +301,7 @@ weechat.charset_set(charset) weechat.charset_set("iso-8859-1") ---- -==== weechat_iconv_to_internal +==== iconv_to_internal Convert string to WeeChat internal charset (UTF-8). @@ -340,7 +341,7 @@ str = weechat.iconv_to_internal(charset, string) str = weechat.iconv_to_internal("iso-8859-1", "iso string: é à") ---- -==== weechat_iconv_from_internal +==== iconv_from_internal Convert string from internal WeeChat charset (UTF-8) to another. @@ -380,7 +381,7 @@ str = weechat.iconv_from_internal(charset, string) str = weechat.iconv_from_internal("iso-8859-1", "utf-8 string: é à") ---- -==== weechat_gettext +==== gettext Return translated string (depends on local language). @@ -417,7 +418,7 @@ str = weechat.gettext(string) str = weechat.gettext("hello") ---- -==== weechat_ngettext +==== ngettext Return translated string, using single or plural form, according to 'count' argument. @@ -460,7 +461,7 @@ num_files = 2 str = weechat.ngettext("file", "files", num_files) ---- -==== weechat_strndup +==== strndup Return duplicated string, with 'length' chars max. @@ -492,7 +493,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_tolower +==== string_tolower Convert UTF-8 string to lower case. @@ -518,7 +519,7 @@ weechat_string_tolower (str); /* str is now: "abcdé" */ [NOTE] This function is not available in scripting API. -==== weechat_string_toupper +==== string_toupper Convert UTF-8 string to upper case. @@ -544,7 +545,7 @@ weechat_string_toupper (str); /* str is now: "ABCDé" */ [NOTE] This function is not available in scripting API. -==== weechat_strcasecmp +==== strcasecmp _Updated in 1.0._ @@ -578,7 +579,7 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] This function is not available in scripting API. -==== weechat_strcasecmp_range +==== strcasecmp_range _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -620,7 +621,7 @@ int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 * [NOTE] This function is not available in scripting API. -==== weechat_strncasecmp +==== strncasecmp _Updated in 1.0._ @@ -655,7 +656,7 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] This function is not available in scripting API. -==== weechat_strncasecmp_range +==== strncasecmp_range _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -698,7 +699,7 @@ int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == [NOTE] This function is not available in scripting API. -==== weechat_strcmp_ignore_chars +==== strcmp_ignore_chars _Updated in 1.0._ @@ -737,7 +738,7 @@ int diff = weechat_strcmp_ignore_chars ("a-b", "--a-e", "-", 1); /* == -3 */ [NOTE] This function is not available in scripting API. -==== weechat_strcasestr +==== strcasestr Locale and case independent string search. @@ -767,7 +768,7 @@ char *pos = weechat_strcasestr ("aBcDeF", "de"); /* result: pointer to "DeF" */ [NOTE] This function is not available in scripting API. -==== weechat_strlen_screen +==== strlen_screen _WeeChat ≥ 0.4.2._ @@ -808,7 +809,7 @@ length = weechat.strlen_screen(string) length = weechat.strlen_screen("é") # 1 ---- -==== weechat_string_match +==== string_match _Updated in 1.0._ @@ -863,7 +864,7 @@ match4 = weechat.string_match("abcdef", "*de*", 0) # 1 match5 = weechat.string_match("abcdef", "*b*d*", 0) # 1 ---- -==== weechat_string_expand_home +==== string_expand_home _WeeChat ≥ 0.3.3._ @@ -899,7 +900,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_remove_quotes +==== string_remove_quotes Remove quotes at beginning and end of string (ignore spaces if there are before first quote or after last quote). @@ -934,7 +935,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_strip +==== string_strip Strip chars at beginning and/or end of string. @@ -969,7 +970,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_convert_escaped_chars +==== string_convert_escaped_chars _WeeChat ≥ 1.0._ @@ -1019,7 +1020,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_mask_to_regex +==== string_mask_to_regex Return a regex, built with a mask, where only special char is "`*`". All other special chars for regex are escaped. @@ -1060,7 +1061,7 @@ regex = weechat.string_mask_to_regex(mask) regex = weechat.string_mask_to_regex("test*mask") # "test.*mask" ---- -==== weechat_string_regex_flags +==== string_regex_flags _WeeChat ≥ 0.3.7._ @@ -1112,7 +1113,7 @@ const char *ptr_regex = weechat_string_regex_flags (regex, REG_EXTENDED, &flags) [NOTE] This function is not available in scripting API. -==== weechat_string_regcomp +==== string_regcomp _WeeChat ≥ 0.3.7._ @@ -1156,7 +1157,7 @@ if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) [NOTE] This function is not available in scripting API. -==== weechat_string_has_highlight +==== string_has_highlight Check if a string has one or more highlights, using list of highlight words. @@ -1195,7 +1196,7 @@ highlight = weechat.string_has_highlight(string, highlight_words) highlight = weechat.string_has_highlight("my test string", "test,word2") # 1 ---- -==== weechat_string_has_highlight_regex +==== string_has_highlight_regex _WeeChat ≥ 0.3.4._ @@ -1238,7 +1239,7 @@ highlight = weechat.string_has_highlight_regex(string, regex) highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1 ---- -==== weechat_string_replace +==== string_replace Replace all occurrences of a string by another string. @@ -1273,7 +1274,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_replace_regex +==== string_replace_regex _WeeChat ≥ 1.0._ @@ -1337,7 +1338,7 @@ if (weechat_string_regcomp (&my_regex, "([0-9]{4})-([0-9]{2})-([0-9]{2})", [NOTE] This function is not available in scripting API. -==== weechat_string_split +==== string_split Split a string according to one or more delimiter(s). @@ -1395,7 +1396,7 @@ weechat_string_free_split (argv); [NOTE] This function is not available in scripting API. -==== weechat_string_split_shell +==== string_split_shell _WeeChat ≥ 1.0._ @@ -1440,7 +1441,7 @@ weechat_string_free_split (argv); [NOTE] This function is not available in scripting API. -==== weechat_string_free_split +==== string_free_split Free memory used by a split string. @@ -1470,7 +1471,7 @@ weechat_string_free_split (argv); [NOTE] This function is not available in scripting API. -==== weechat_string_build_with_split_string +==== string_build_with_split_string Build a string with a split string. @@ -1508,7 +1509,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_split_command +==== string_split_command Split a list of commands separated by 'separator' (which can be escaped by "\" in string). @@ -1544,7 +1545,7 @@ weechat_free_split_command (argv); [NOTE] This function is not available in scripting API. -==== weechat_string_free_split_command +==== string_free_split_command Free memory used by a split command. @@ -1572,7 +1573,7 @@ weechat_free_split_command (argv); [NOTE] This function is not available in scripting API. -==== weechat_string_format_size +==== string_format_size Build a string with formatted file size and a unit translated to local language. @@ -1622,7 +1623,7 @@ free (str); [NOTE] This function is not available in scripting API. -==== weechat_string_remove_color +==== string_remove_color Remove WeeChat colors from a string. @@ -1671,7 +1672,7 @@ str = weechat.string_remove_color(string, replacement) str = weechat.string_remove_color(my_string, "?") ---- -==== weechat_string_encode_base64 +==== string_encode_base64 _WeeChat ≥ 0.3.2._ @@ -1703,7 +1704,7 @@ weechat_string_encode_base64 (string, strlen (string), result); [NOTE] This function is not available in scripting API. -==== weechat_string_decode_base64 +==== string_decode_base64 _WeeChat ≥ 0.3.2._ @@ -1739,7 +1740,7 @@ length = weechat_string_decode_base64 (string, result); [NOTE] This function is not available in scripting API. -==== weechat_string_is_command_char +==== string_is_command_char _WeeChat ≥ 0.3.2._ @@ -1780,7 +1781,7 @@ command_char1 = weechat.string_is_command_char("/test") # == 1 command_char2 = weechat.string_is_command_char("test") # == 0 ---- -==== weechat_string_input_for_buffer +==== string_input_for_buffer _WeeChat ≥ 0.3.2._ @@ -1824,7 +1825,7 @@ str2 = weechat.string_input_for_buffer("/test") # "" str3 = weechat.string_input_for_buffer("//test") # "/test" ---- -==== weechat_string_eval_expression +==== string_eval_expression _WeeChat ≥ 0.4.0, updated in 0.4.2 and 1.1._ @@ -2014,7 +2015,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio Some UTF-8 string functions. -==== weechat_utf8_has_8bits +==== utf8_has_8bits Check if a string has 8-bits chars. @@ -2046,7 +2047,7 @@ if (weechat_utf8_has_8bits (string)) [NOTE] This function is not available in scripting API. -==== weechat_utf8_is_valid +==== utf8_is_valid Check if a string is UTF-8 valid. @@ -2085,7 +2086,7 @@ else [NOTE] This function is not available in scripting API. -==== weechat_utf8_normalize +==== utf8_normalize Normalize UTF-8 string: remove non UTF-8 chars and replace them by a char. @@ -2111,7 +2112,7 @@ weechat_utf8_normalize (string, '?'); [NOTE] This function is not available in scripting API. -==== weechat_utf8_prev_char +==== utf8_prev_char Return pointer to previous UTF-8 char in a string. @@ -2142,7 +2143,7 @@ char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); [NOTE] This function is not available in scripting API. -==== weechat_utf8_next_char +==== utf8_next_char Return pointer to next UTF-8 char in a string. @@ -2171,7 +2172,7 @@ char *next_char = weechat_utf8_next_char (string); [NOTE] This function is not available in scripting API. -==== weechat_utf8_char_int +==== utf8_char_int Return UTF-8 char as integer. @@ -2200,7 +2201,7 @@ int char_int = weechat_utf8_char_int ("être"); /* "ê" as integer */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_char_size +==== utf8_char_size Return UTF-8 char size (in bytes). @@ -2229,7 +2230,7 @@ int char_size = weechat_utf8_char_size ("être"); /* == 2 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_strlen +==== utf8_strlen Return UTF-8 string length (in UTF-8 chars). @@ -2258,7 +2259,7 @@ int length = weechat_utf8_strlen ("chêne"); /* == 5 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_strnlen +==== utf8_strnlen Return UTF-8 string length (in UTF-8 chars), for max 'bytes' in string. @@ -2288,7 +2289,7 @@ int length = weechat_utf8_strnlen ("chêne", 4); /* == 3 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_strlen_screen +==== utf8_strlen_screen Return number of chars needed on screen to display UTF-8 string. @@ -2317,7 +2318,7 @@ int length_on_screen = weechat_utf8_strlen_screen ("é"); /* == 1 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_charcmp +==== utf8_charcmp _Updated in 1.0._ @@ -2351,7 +2352,7 @@ int diff = weechat_utf8_charcmp ("aaa", "ccc"); /* == -2 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_charcasecmp +==== utf8_charcasecmp _Updated in 1.0._ @@ -2385,7 +2386,7 @@ int diff = weechat_utf8_charcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_char_size_screen +==== utf8_char_size_screen Return number of chars needed on screen to display UTF-8 char. @@ -2414,7 +2415,7 @@ int length_on_screen = weechat_utf8_char_size_screen ("é"); /* == 1 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_add_offset +==== utf8_add_offset Move forward N chars in an UTF-8 string. @@ -2445,7 +2446,7 @@ char *str2 = weechat_utf8_add_offset (str, 3); /* points to "ne" */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_real_pos +==== utf8_real_pos Return real position in UTF-8 string. @@ -2475,7 +2476,7 @@ int pos = weechat_utf8_real_pos ("chêne", 3); /* == 4 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_pos +==== utf8_pos Return position in UTF-8 string. @@ -2505,7 +2506,7 @@ int pos = weechat_utf8_pos ("chêne", 4); /* == 3 */ [NOTE] This function is not available in scripting API. -==== weechat_utf8_strndup +==== utf8_strndup Return duplicate string, with 'length' chars max. @@ -2542,7 +2543,7 @@ This function is not available in scripting API. Some functions related to directories. -==== weechat_mkdir_home +==== mkdir_home Create a directory in WeeChat home. @@ -2583,7 +2584,7 @@ weechat.mkdir_home(directory, mode) weechat.mkdir_home("temp", 0755) ---- -==== weechat_mkdir +==== mkdir Create a directory. @@ -2624,7 +2625,7 @@ weechat.mkdir(directory, mode) weechat.mkdir("/tmp/mydir", 0755) ---- -==== weechat_mkdir_parents +==== mkdir_parents Create a directory and make parent directories as needed. @@ -2665,7 +2666,7 @@ weechat.mkdir_parents(directory, mode) weechat.mkdir_parents("/tmp/my/dir", 0755) ---- -==== weechat_exec_on_files +==== exec_on_files Find files in a directory and execute a callback on each file. @@ -2704,7 +2705,7 @@ weechat_exec_on_files ("/tmp", 0, NULL, &callback); [NOTE] This function is not available in scripting API. -==== weechat_file_get_content +==== file_get_content _WeeChat ≥ 0.3.1._ @@ -2744,7 +2745,7 @@ This function is not available in scripting API. Some useful functions. -==== weechat_util_timeval_cmp +==== util_timeval_cmp Compare two "timeval" structures. @@ -2779,7 +2780,7 @@ if (weechat_util_timeval_cmp (&tv1, &tv2) > 0) [NOTE] This function is not available in scripting API. -==== weechat_util_timeval_diff +==== util_timeval_diff _Updated in 1.1._ @@ -2814,7 +2815,7 @@ long long diff = weechat_util_timeval_diff (&tv1, &tv2); [NOTE] This function is not available in scripting API. -==== weechat_util_timeval_add +==== util_timeval_add _Updated in 1.1._ @@ -2845,7 +2846,7 @@ weechat_util_timeval_add (&tv, 2000000); /* add 2 seconds */ [NOTE] This function is not available in scripting API. -==== weechat_util_get_time_string +==== util_get_time_string _WeeChat ≥ 0.3.2._ @@ -2874,7 +2875,7 @@ weechat_printf (NULL, "date: %s", [NOTE] This function is not available in scripting API. -==== weechat_util_version_number +==== util_version_number _WeeChat ≥ 0.3.9._ @@ -2909,7 +2910,7 @@ This function is not available in scripting API. Sorted list functions. -==== weechat_list_new +==== list_new Create a new list. @@ -2942,7 +2943,7 @@ list = weechat.list_new() list = weechat.list_new() ---- -==== weechat_list_add +==== list_add Add an item in a list. @@ -2989,7 +2990,7 @@ item = weechat.list_add(list, data, where, user_data) item = weechat.list_add(list, "my data", weechat.WEECHAT_LIST_POS_SORT, "") ---- -==== weechat_list_search +==== list_search Search an item in a list. @@ -3028,7 +3029,7 @@ item = weechat.list_search(list, data) item = weechat.list_search(list, "my data") ---- -==== weechat_list_search_pos +==== list_search_pos _WeeChat ≥ 0.3.4._ @@ -3069,7 +3070,7 @@ pos_item = weechat.list_search_pos(list, data) pos_item = weechat.list_search_pos(list, "my data") ---- -==== weechat_list_casesearch +==== list_casesearch Search an item in a list, ignoring case. @@ -3108,7 +3109,7 @@ item = weechat.list_casesearch(list, data) item = weechat.list_casesearch(list, "my data") ---- -==== weechat_list_casesearch_pos +==== list_casesearch_pos _WeeChat ≥ 0.3.4._ @@ -3149,7 +3150,7 @@ pos_item = weechat.list_casesearch_pos(list, data) pos_item = weechat.list_casesearch_pos(list, "my data") ---- -==== weechat_list_get +==== list_get Return an item in a list by position. @@ -3188,7 +3189,7 @@ item = weechat.list_get(list, position) item = weechat.list_get(list, 0) ---- -==== weechat_list_set +==== list_set Set new value for an item. @@ -3222,7 +3223,7 @@ weechat.list_set(item, value) weechat.list_set(item, "new data") ---- -==== weechat_list_next +==== list_next Return next item in list. @@ -3259,7 +3260,7 @@ item = weechat.list_next(item) item = weechat.list_next(item) ---- -==== weechat_list_prev +==== list_prev Return previous item in list. @@ -3296,7 +3297,7 @@ item = weechat.list_prev(item) item = weechat.list_prev(item) ---- -==== weechat_list_string +==== list_string Return string value of an item. @@ -3333,7 +3334,7 @@ value = weechat.list_string(item) weechat.prnt("", "value of item: %s" % weechat.list_string(item)) ---- -==== weechat_list_size +==== list_size Return size of list (number of items). @@ -3370,7 +3371,7 @@ size = weechat.list_size(list) weechat.prnt("", "size of list: %d" % weechat.list_size(list)) ---- -==== weechat_list_remove +==== list_remove Remove an item in a list. @@ -3405,7 +3406,7 @@ weechat.list_remove(list, item) weechat.list_remove(list, item) ---- -==== weechat_list_remove_all +==== list_remove_all Remove all items in a list. @@ -3438,7 +3439,7 @@ weechat.list_remove_all(list) weechat.list_remove_all(list) ---- -==== weechat_list_free +==== list_free Free a list. @@ -3476,7 +3477,7 @@ weechat.list_free(list) Hashtable functions. -==== weechat_hashtable_new +==== hashtable_new _WeeChat ≥ 0.3.3._ @@ -3548,7 +3549,7 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, [NOTE] This function is not available in scripting API. -==== weechat_hashtable_set_with_size +==== hashtable_set_with_size _WeeChat ≥ 0.3.3, updated in 0.4.2._ @@ -3588,7 +3589,7 @@ weechat_hashtable_set_with_size (hashtable, "my_key", 0, [NOTE] This function is not available in scripting API. -==== weechat_hashtable_set +==== hashtable_set _WeeChat ≥ 0.3.3, updated in 0.4.2._ @@ -3622,7 +3623,7 @@ weechat_hashtable_set (hashtable, "my_key", "my_value"); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_get +==== hashtable_get _WeeChat ≥ 0.3.3._ @@ -3654,7 +3655,7 @@ void *value = weechat_hashtable_get (hashtable, "my_key"); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_has_key +==== hashtable_has_key _WeeChat ≥ 0.3.4._ @@ -3690,7 +3691,7 @@ if (weechat_hashtable_has_key (hashtable, "my_key")) [NOTE] This function is not available in scripting API. -==== weechat_hashtable_map +==== hashtable_map _WeeChat ≥ 0.3.3._ @@ -3734,7 +3735,7 @@ weechat_hashtable_map (hashtable, &map_cb, NULL); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_map_string +==== hashtable_map_string _WeeChat ≥ 0.3.7._ @@ -3781,7 +3782,7 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_dup +==== hashtable_dup _WeeChat ≥ 1.0._ @@ -3812,7 +3813,7 @@ struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_get_integer +==== hashtable_get_integer _WeeChat ≥ 0.3.3._ @@ -3847,7 +3848,7 @@ int items_count = weechat_hashtable_get_integer (hashtable, "items_count"); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_get_string +==== hashtable_get_string _WeeChat ≥ 0.3.4._ @@ -3902,7 +3903,7 @@ weechat_printf (NULL, "list of keys: %s", [NOTE] This function is not available in scripting API. -==== weechat_hashtable_set_pointer +==== hashtable_set_pointer _WeeChat ≥ 0.3.4._ @@ -3948,7 +3949,7 @@ weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_add_to_infolist +==== hashtable_add_to_infolist _WeeChat ≥ 0.3.3._ @@ -3993,7 +3994,7 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash"); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_remove +==== hashtable_remove _WeeChat ≥ 0.3.3._ @@ -4021,7 +4022,7 @@ weechat_hashtable_remove (hashtable, "my_key"); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_remove_all +==== hashtable_remove_all _WeeChat ≥ 0.3.3._ @@ -4048,7 +4049,7 @@ weechat_hashtable_remove_all (hashtable); [NOTE] This function is not available in scripting API. -==== weechat_hashtable_free +==== hashtable_free _WeeChat ≥ 0.3.3._ @@ -4080,7 +4081,7 @@ This function is not available in scripting API. Functions for configuration files. -==== weechat_config_new +==== config_new Create a new configuration file. @@ -4151,7 +4152,7 @@ def my_config_reload_cb(data, config_file): config_file = weechat.config_new("test", "my_config_reload_cb", "") ---- -==== weechat_config_new_section +==== config_new_section Create a new section in configuration file. @@ -4392,7 +4393,7 @@ section = weechat.config_new_section(config_file, "section1", 1, 1, "my_section_delete_option_cb", "") ---- -==== weechat_config_search_section +==== config_search_section Search a section in a configuration file. @@ -4433,7 +4434,7 @@ section = weechat.config_search_section(config_file, section_name) section = weechat.config_search_section(config_file, "section") ---- -==== weechat_config_new_option +==== config_new_option Create a new option in a section of a configuration file. @@ -4646,7 +4647,7 @@ In Ruby, the 3 callbacks + data (6 strings) must be given in an array of 6 strings (due to a Ruby limitation of 15 arguments by function), see the 'WeeChat Scripting Guide' for more info _(fixed in version 0.4.1)_. -==== weechat_config_search_option +==== config_search_option Search an option in a section of a configuration file. @@ -4689,7 +4690,7 @@ option = weechat.config_search_option(config_file, section, option_name) option = weechat.config_search_option(config_file, section, "option") ---- -==== weechat_config_search_section_option +==== config_search_section_option Search a section and an option in a configuration file or section. @@ -4739,7 +4740,7 @@ else [NOTE] This function is not available in scripting API. -==== weechat_config_search_with_string +==== config_search_with_string Get file/section/option info about an option with full name. @@ -4793,7 +4794,7 @@ else [NOTE] This function is not available in scripting API. -==== weechat_config_string_to_boolean +==== config_string_to_boolean Check if a text is "true" or "false", as boolean value. @@ -4839,7 +4840,7 @@ if weechat.config_string_to_boolean(text): # ... ---- -==== weechat_config_option_reset +==== config_option_reset Reset an option to its default value. @@ -4898,7 +4899,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set +==== config_option_set Set new value for an option. @@ -4958,7 +4959,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set_null +==== config_option_set_null Set null (undefined value) for an option. @@ -5021,7 +5022,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_unset +==== config_option_unset Unset/reset option. @@ -5083,7 +5084,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: # ... ---- -==== weechat_config_option_rename +==== config_option_rename Rename an option. @@ -5118,7 +5119,7 @@ weechat.config_option_rename(option, new_name) weechat.config_option_rename(option, "new_name") ---- -==== weechat_config_option_get_pointer +==== config_option_get_pointer Return a pointer on an option property. @@ -5161,7 +5162,7 @@ char *description = weechat_config_option_get_pointer (option, "description"); [NOTE] This function is not available in scripting API. -==== weechat_config_option_is_null +==== config_option_is_null Check if an option is "null" (undefined value). @@ -5207,7 +5208,7 @@ if weechat.config_option_is_null(option): # ... ---- -==== weechat_config_option_default_is_null +==== config_option_default_is_null Check if default value for an option is "null" (undefined value). @@ -5253,7 +5254,7 @@ if weechat.config_option_default_is_null(option): # ... ---- -==== weechat_config_boolean +==== config_boolean Return boolean value of option. @@ -5300,7 +5301,7 @@ if weechat.config_boolean(option): # ... ---- -==== weechat_config_boolean_default +==== config_boolean_default Return default boolean value of option. @@ -5347,7 +5348,7 @@ if weechat.config_boolean_default(option): # ... ---- -==== weechat_config_integer +==== config_integer Return integer value of option. @@ -5386,7 +5387,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer(option) ---- -==== weechat_config_integer_default +==== config_integer_default Return default integer value of option. @@ -5425,7 +5426,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer_default(option) ---- -==== weechat_config_string +==== config_string Return string value of option. @@ -5464,7 +5465,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string(option) ---- -==== weechat_config_string_default +==== config_string_default Return default string value of option. @@ -5503,7 +5504,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string_default(option) ---- -==== weechat_config_color +==== config_color Return color value of option. @@ -5542,7 +5543,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color(option) ---- -==== weechat_config_color_default +==== config_color_default Return default color value of option. @@ -5581,7 +5582,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color_default(option) ---- -==== weechat_config_write_option +==== config_write_option Write a line in a configuration file with option and its value (this function should be called only in "write" or "write_default" callbacks for a section). @@ -5629,7 +5630,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write_line +==== config_write_line Write a line in a configuration file (this function should be called only in "write" or "write_default" callbacks for a section). @@ -5681,7 +5682,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write +==== config_write Write configuration file to disk. @@ -5737,7 +5738,7 @@ elif rc == weechat.WEECHAT_CONFIG_WRITE_ERROR: # ... ---- -==== weechat_config_read +==== config_read Read configuration file from disk. @@ -5793,7 +5794,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_reload +==== config_reload Reload configuration file from disk. @@ -5849,7 +5850,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_option_free +==== config_option_free Free an option. @@ -5882,7 +5883,7 @@ weechat.config_option_free(option) weechat.config_option_free(option) ---- -==== weechat_config_section_free_options +==== config_section_free_options Free all options in a section. @@ -5915,7 +5916,7 @@ weechat.config_section_free_options(section) weechat.config_section_free_options(section) ---- -==== weechat_config_section_free +==== config_section_free Free a section. @@ -5948,7 +5949,7 @@ weechat.config_section_free(section) weechat.config_section_free(section) ---- -==== weechat_config_free +==== config_free Free a configuration file. @@ -5981,7 +5982,7 @@ weechat.config_free(config_file) weechat.config_free(config_file) ---- -==== weechat_config_get +==== config_get Search an option with full name. @@ -6018,7 +6019,7 @@ option = weechat.config_get(option_name) option = weechat.config_get("weechat.look.item_time_format") ---- -==== weechat_config_get_plugin +==== config_get_plugin Search an option in plugins configuration file (plugins.conf). @@ -6058,7 +6059,7 @@ value = weechat.config_get_plugin(option_name) value = weechat.config_get_plugin("option") ---- -==== weechat_config_is_set_plugin +==== config_is_set_plugin Check if option is set in plugins configuration file (plugins.conf). @@ -6108,7 +6109,7 @@ else: # ... ---- -==== weechat_config_set_plugin +==== config_set_plugin Set new value for option in plugins configuration file (plugins.conf). @@ -6172,7 +6173,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_set_desc_plugin +==== config_set_desc_plugin _WeeChat ≥ 0.3.5._ @@ -6216,7 +6217,7 @@ if int(version) >= 0x00030500: weechat.config_set_desc_plugin("option", "description of option") ---- -==== weechat_config_unset_plugin +==== config_unset_plugin Unset option in plugins configuration file (plugins.conf). @@ -6284,7 +6285,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: Functions for key bindings. -==== weechat_key_bind +==== key_bind _WeeChat ≥ 0.3.6._ @@ -6348,7 +6349,7 @@ keys = {"@chat(python.test):button1": "hsignal:test_mouse", weechat.key_bind("mouse", keys) ---- -==== weechat_key_unbind +==== key_unbind _WeeChat ≥ 0.3.6._ @@ -6406,7 +6407,7 @@ weechat.key_unbind("mouse", "area:chat(python.test)") Functions to display text in buffers. -==== weechat_prefix +==== prefix Return a prefix. @@ -6459,7 +6460,7 @@ value = weechat.prefix(prefix) weechat.prnt("", "%sThis is an error..." % weechat.prefix("error")) ---- -==== weechat_color +==== color Return a string color code for display. @@ -6539,7 +6540,7 @@ weechat.prnt("", "Color: %sblue %sdefault color %syellow on red" % (weechat.color("blue"), weechat.color("chat"), weechat.color("yellow,red"))) ---- -==== weechat_printf +==== printf Display a message on a buffer. @@ -6597,7 +6598,7 @@ weechat.prnt(buffer, "\t\t") # empty line (without time) [NOTE] Function is called "print" in scripts ("prnt" in Python). -==== weechat_printf_date +==== printf_date Display a message on a buffer, using a custom date. @@ -6625,7 +6626,7 @@ weechat_printf_date (NULL, time (NULL) - 120, "Hello, 2 minutes ago"); [NOTE] This function is not available in scripting API. -==== weechat_printf_tags +==== printf_tags Display a message on a buffer, using a custom tags. @@ -6654,7 +6655,7 @@ weechat_printf_tags (NULL, "notify_message", [NOTE] This function is not available in scripting API. -==== weechat_printf_date_tags +==== printf_date_tags Display a message on a buffer, using a custom date and tags. @@ -6723,7 +6724,7 @@ weechat.prnt_date_tags("", time - 120, "notify_message", [NOTE] Function is called "print_date_tags" in scripts ("prnt_date_tags" in Python). -==== weechat_printf_y +==== printf_y Display a message on a line of a buffer with free content. @@ -6765,7 +6766,7 @@ weechat.prnt_y("", 2, "My message on third line") [NOTE] Function is called "print_y" in scripts ("prnt_y" in Python). -==== weechat_log_printf +==== log_printf Write a message in WeeChat log file (weechat.log). @@ -6832,7 +6833,7 @@ weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL); Following hook types allow priority: command, command_run, signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, hdata, focus. -==== weechat_hook_command +==== hook_command Hook a command. @@ -6968,7 +6969,7 @@ hook = weechat.hook_command("myfilter", "description of myfilter", "my_command_cb", "") ---- -==== weechat_hook_command_run +==== hook_command_run Hook a command when WeeChat runs it. @@ -7038,7 +7039,7 @@ def my_command_run_cb(data, buffer, command): hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") ---- -==== weechat_hook_timer +==== hook_timer Hook a timer. @@ -7105,7 +7106,7 @@ def my_timer_cb(data, remaining_calls): hook = weechat.hook_timer(20 * 1000, 0, 0, "my_timer_cb", "") ---- -==== weechat_hook_fd +==== hook_fd Hook a file descriptor (file or socket). @@ -7174,7 +7175,7 @@ sock = ... hook = weechat.hook_fd(sock, 1, 0, 0, "my_fd_cb", "") ---- -==== weechat_hook_process +==== hook_process Hook a process (launched with fork), and catch output. @@ -7313,7 +7314,7 @@ def my_process_cb(data, command, return_code, out, err): hook = weechat.hook_process("ls", 5000, "my_process_cb", "") ---- -==== weechat_hook_process_hashtable +==== hook_process_hashtable _WeeChat ≥ 0.3.7._ @@ -7518,7 +7519,7 @@ hook3 = weechat.hook_process_hashtable("sh", 20000, "my_process_cb", "") ---- -==== weechat_hook_connect +==== hook_connect Hook a connection (background connection to a remote host). @@ -7688,7 +7689,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---- -==== weechat_hook_print +==== hook_print _Updated in 0.4.3 and 1.0._ @@ -7789,7 +7790,7 @@ def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message) hook = weechat.hook_print("", "", "", 1, "my_print_cb", "") ---- -==== weechat_hook_signal +==== hook_signal Hook a signal. @@ -8468,7 +8469,7 @@ def my_signal_cb(data, signal, signal_data): hook = weechat.hook_signal("quit", "my_signal_cb", "") ---- -==== weechat_hook_signal_send +==== hook_signal_send _Updated in 1.0._ @@ -8659,7 +8660,7 @@ weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, "freenode;;2;;/whois FlashCode") ---- -==== weechat_hook_hsignal +==== hook_hsignal _WeeChat ≥ 0.3.4._ @@ -8785,7 +8786,7 @@ def my_hsignal_cb(data, signal, hashtable): hook = weechat.hook_hsignal("test", "my_hsignal_cb", "") ---- -==== weechat_hook_hsignal_send +==== hook_hsignal_send _WeeChat ≥ 0.3.4, updated in 1.0._ @@ -9016,7 +9017,7 @@ weechat.hook_hsignal_send("irc_redirect_pattern", # ... ---- -==== weechat_hook_config +==== hook_config Hook a configuration option. @@ -9082,7 +9083,7 @@ def my_config_cb(data, option, value): hook = weechat.hook_config("weechat.look.item_time_format", "my_config_cb", "") ---- -==== weechat_hook_completion +==== hook_completion Hook a completion. @@ -9174,7 +9175,7 @@ hook = weechat.hook_completion("plugin_item", "my custom completion!", "my_completion_cb", "") ---- -==== weechat_hook_completion_get_string +==== hook_completion_get_string _WeeChat ≥ 0.3.4._ @@ -9231,7 +9232,7 @@ def my_completion_cb(data, completion_item, buffer, completion): return weechat.WEECHAT_RC_OK ---- -==== weechat_hook_completion_list_add +==== hook_completion_list_add Add a word for a completion. @@ -9267,7 +9268,7 @@ weechat.hook_completion_list_add(completion, word, nick_completion, where) # example: see function hook_completion above ---- -==== weechat_hook_modifier +==== hook_modifier Hook a modifier. @@ -9460,7 +9461,7 @@ def my_modifier_cb(data, modifier, modifier_data, string): hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "") ---- -==== weechat_hook_modifier_exec +==== hook_modifier_exec Execute modifier(s). @@ -9502,7 +9503,7 @@ weechat.hook_modifier_exec(modifier, modifier_data, string) weechat.hook_modifier_exec("my_modifier", my_data, my_string) ---- -==== weechat_hook_info +==== hook_info Hook an information (callback takes and returns a string). @@ -9569,7 +9570,7 @@ hook = weechat.hook_info("my_info", "Some info", "Info about arguments", "my_info_cb", "") ---- -==== weechat_hook_info_hashtable +==== hook_info_hashtable _WeeChat ≥ 0.3.4._ @@ -9645,7 +9646,7 @@ hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info", "my_info_hashtable_cb", "") ---- -==== weechat_hook_infolist +==== hook_infolist Hook an infolist: callback will return pointer to infolist asked. @@ -9728,7 +9729,7 @@ hook = weechat.hook_infolist("my_infolist", "Infolist with some data", "my_infolist_cb", "") ---- -==== weechat_hook_hdata +==== hook_hdata Hook a hdata: callback will return pointer to hdata asked. @@ -9783,7 +9784,7 @@ struct t_hook *my_hdata = weechat_hook_hdata ("my_hdata", [NOTE] This function is not available in scripting API. -==== weechat_hook_focus +==== hook_focus Hook a focus: mouse event or key pressed in cursor mode (free movement of cursor). @@ -9919,7 +9920,7 @@ def my_focus_nicklist_cb(data, info): hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") ---- -==== weechat_hook_set +==== hook_set _WeeChat ≥ 0.3.9 (script: WeeChat ≥ 0.4.3)._ @@ -9996,7 +9997,7 @@ weechat.hook_set(hook, "stdin", "data sent to stdin of child process") weechat.hook_set(hook, "stdin_close", "") # optional ---- -==== weechat_unhook +==== unhook Unhook something hooked. @@ -10031,7 +10032,7 @@ weechat.unhook(hook) weechat.unhook(my_hook) ---- -==== weechat_unhook_all +==== unhook_all Unhook everything that has been hooked by current plugin. @@ -10065,7 +10066,7 @@ weechat.unhook_all() Functions to create/query/close buffers. -==== weechat_buffer_new +==== buffer_new Open a new buffer. @@ -10152,7 +10153,7 @@ def my_close_cb(data, buffer): buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") ---- -==== weechat_current_buffer +==== current_buffer Return pointer to current buffer (buffer displayed by current window). @@ -10185,7 +10186,7 @@ buffer = weechat.current_buffer() weechat.prnt(weechat.current_buffer(), "Text on current buffer") ---- -==== weechat_buffer_search +==== buffer_search _Updated in 1.0._ @@ -10232,7 +10233,7 @@ buffer = weechat.buffer_search(plugin, name) buffer = weechat.buffer_search("my_plugin", "my_buffer") ---- -==== weechat_buffer_search_main +==== buffer_search_main Search WeeChat main buffer ('core' buffer, first buffer displayed when WeeChat is starting). @@ -10266,7 +10267,7 @@ buffer = weechat.buffer_search_main() buffer = weechat.buffer_search_main() ---- -==== weechat_buffer_clear +==== buffer_clear Clear content of a buffer. @@ -10306,7 +10307,7 @@ if buffer != "": weechat.buffer_clear(buffer) ---- -==== weechat_buffer_close +==== buffer_close Close a buffer. @@ -10345,7 +10346,7 @@ buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") weechat.buffer_close(buffer) ---- -==== weechat_buffer_merge +==== buffer_merge Merge buffer into another buffer: both buffers will still exist separately, but with same number, and WeeChat will display lines from both buffers (mixed @@ -10385,7 +10386,7 @@ weechat.buffer_merge(buffer, target_buffer) weechat.buffer_merge(weechat.current_buffer(), weechat.buffer_search_main()) ---- -==== weechat_buffer_unmerge +==== buffer_unmerge Unmerge buffer from a group of merged buffers. @@ -10421,7 +10422,7 @@ weechat.buffer_unmerge(buffer, number) weechat.buffer_unmerge(weechat.current_buffer(), 1) ---- -==== weechat_buffer_get_integer +==== buffer_get_integer Return integer value of a buffer property. @@ -10508,7 +10509,7 @@ value = weechat.buffer_get_integer(buffer, property) weechat.prnt("", "my buffer number is: %d" % weechat.buffer_get_integer(my_buffer, "number")) ---- -==== weechat_buffer_get_string +==== buffer_get_string Return string value of a buffer property. @@ -10568,7 +10569,7 @@ weechat.prnt("", "name / short name of buffer are: %s / %s" weechat.buffer_get_string(my_buffer, "short_name"))) ---- -==== weechat_buffer_get_pointer +==== buffer_get_pointer Return pointer value of a buffer property. @@ -10611,7 +10612,7 @@ value = weechat.buffer_get_pointer(buffer, property) weechat.prnt("", "plugin pointer of my buffer: %s" % weechat.buffer_get_pointer(my_buffer, "plugin")) ---- -==== weechat_buffer_set +==== buffer_set Set string value of a buffer property. @@ -10824,7 +10825,7 @@ weechat.buffer_set(my_buffer, "localvar_set_toto", "abc") weechat.buffer_set(my_buffer, "localvar_del_toto", "") ---- -==== weechat_buffer_set_pointer +==== buffer_set_pointer Set pointer value of a buffer property. @@ -10878,7 +10879,7 @@ weechat_buffer_set_pointer (my_buffer, "close_callback", &my_close_cb); [NOTE] This function is not available in scripting API. -==== weechat_buffer_string_replace_local_var +==== buffer_string_replace_local_var Replace local variables in a string by their values, using buffer local variables. @@ -10924,7 +10925,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") # str contains "test with abc" ---- -==== weechat_buffer_match_list +==== buffer_match_list _WeeChat ≥ 0.3.5._ @@ -10984,7 +10985,7 @@ if buffer: Functions to query windows. -==== weechat_current_window +==== current_window Return pointer to current window. @@ -11017,7 +11018,7 @@ window = weechat.current_window() current_window = weechat.current_window() ---- -==== weechat_window_search_with_buffer +==== window_search_with_buffer _WeeChat ≥ 0.3.5._ @@ -11059,7 +11060,7 @@ weechat.prnt("", "window displaying core buffer: %s" % weechat.window_search_with_buffer(weechat.buffer_search_main())) ---- -==== weechat_window_get_integer +==== window_get_integer Return integer value of a window property. @@ -11120,7 +11121,7 @@ weechat.prnt("", "current window is at position (x,y): (%d,%d)" weechat.window_get_integer(weechat.current_window(), "win_y"))) ---- -==== weechat_window_get_string +==== window_get_string Return string value of a window property. @@ -11144,7 +11145,7 @@ Return value: * string value of property -==== weechat_window_get_pointer +==== window_get_pointer Return pointer value of a window property. @@ -11188,7 +11189,7 @@ weechat.prnt("", "buffer displayed in current window: %s" % weechat.window_get_pointer(weechat.current_window(), "buffer")) ---- -==== weechat_window_set_title +==== window_set_title Set title for terminal. @@ -11226,7 +11227,7 @@ weechat.window_set_title("new title here") Functions for buffer nicklist. -==== weechat_nicklist_add_group +==== nicklist_add_group Add a group in a nicklist. @@ -11292,7 +11293,7 @@ group = weechat.nicklist_add_group(my_buffer, my_parent_group, "test_group", "weechat.color.nicklist_group", 1) ---- -==== weechat_nicklist_search_group +==== nicklist_search_group Search a group in a nicklist. @@ -11335,7 +11336,7 @@ group = weechat.nicklist_search_group(buffer, from_group, name) group = weechat.nicklist_search_group(my_buffer, "", "test_group") ---- -==== weechat_nicklist_add_nick +==== nicklist_add_nick Add a nick in a group. @@ -11407,7 +11408,7 @@ else: nick = weechat.nicklist_add_nick(my_buffer, my_group, "test_nick", color, "@", "lightgreen", 1) ---- -==== weechat_nicklist_search_nick +==== nicklist_search_nick Search a nick in a nicklist. @@ -11450,7 +11451,7 @@ nick = weechat.nicklist_search_nick(buffer, from_group, name) nick = weechat.nicklist_search_nick(my_buffer, "", "test_nick") ---- -==== weechat_nicklist_remove_group +==== nicklist_remove_group Remove a group from a nicklist. @@ -11485,7 +11486,7 @@ weechat.nicklist_remove_group(buffer, group) weechat.nicklist_remove_group(my_buffer, my_group) ---- -==== weechat_nicklist_remove_nick +==== nicklist_remove_nick Remove a nick from a nicklist. @@ -11520,7 +11521,7 @@ weechat.nicklist_remove_nick(buffer, nick) weechat.nicklist_remove_nick(my_buffer, my_nick) ---- -==== weechat_nicklist_remove_all +==== nicklist_remove_all Remove all groups/nicks from a nicklist. @@ -11553,7 +11554,7 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---- -==== weechat_nicklist_get_next_item +==== nicklist_get_next_item _WeeChat ≥ 0.3.7._ @@ -11603,7 +11604,7 @@ while (ptr_group || ptr_nick) [NOTE] This function is not available in scripting API. -==== weechat_nicklist_group_get_integer +==== nicklist_group_get_integer _WeeChat ≥ 0.3.4._ @@ -11648,7 +11649,7 @@ value = weechat.nicklist_group_get_integer(buffer, group, property) visible = weechat.nicklist_group_get_integer(buffer, group, "visible") ---- -==== weechat_nicklist_group_get_string +==== nicklist_group_get_string _WeeChat ≥ 0.3.4._ @@ -11693,7 +11694,7 @@ value = weechat.nicklist_group_get_string(buffer, group, property) color = weechat.nicklist_group_get_string(buffer, group, "color") ---- -==== weechat_nicklist_group_get_pointer +==== nicklist_group_get_pointer _WeeChat ≥ 0.3.4._ @@ -11737,7 +11738,7 @@ value = weechat.nicklist_group_get_pointer(buffer, group, property) parent = weechat.nicklist_group_get_pointer(buffer, group, "parent") ---- -==== weechat_nicklist_group_set +==== nicklist_group_set _WeeChat ≥ 0.3.4._ @@ -11807,7 +11808,7 @@ weechat.nicklist_group_set(buffer, group, "color", "yellow") weechat.nicklist_group_set(buffer, group, "visible", "0") ---- -==== weechat_nicklist_nick_get_integer +==== nicklist_nick_get_integer _WeeChat ≥ 0.3.4._ @@ -11851,7 +11852,7 @@ value = weechat.nicklist_nick_get_integer(buffer, nick, property) visible = weechat.nicklist_nick_get_integer(buffer, nick, "visible") ---- -==== weechat_nicklist_nick_get_string +==== nicklist_nick_get_string _WeeChat ≥ 0.3.4._ @@ -11898,7 +11899,7 @@ value = weechat.nicklist_nick_get_string(buffer, nick, property) color = weechat.nicklist_nick_get_string(buffer, nick, "color") ---- -==== weechat_nicklist_nick_get_pointer +==== nicklist_nick_get_pointer _WeeChat ≥ 0.3.4._ @@ -11942,7 +11943,7 @@ value = weechat.nicklist_nick_get_pointer(buffer, nick, property) group = weechat.nicklist_nick_get_pointer(buffer, nick, "group") ---- -==== weechat_nicklist_nick_set +==== nicklist_nick_set _WeeChat ≥ 0.3.4._ @@ -12030,7 +12031,7 @@ weechat.nicklist_nick_set(buffer, nick, "visible", "0") Functions for bars. -==== weechat_bar_item_search +==== bar_item_search Search a bar item. @@ -12067,7 +12068,7 @@ bar_item = weechat.bar_item_search(name) bar_item = weechat.bar_item_search("myitem") ---- -==== weechat_bar_item_new +==== bar_item_new _Updated in 0.4.2._ @@ -12153,7 +12154,7 @@ def my_build_callback2(data, item, window, buffer, extra_info): bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2 ---- -==== weechat_bar_item_update +==== bar_item_update Update content of a bar item, by calling its build callback. @@ -12186,7 +12187,7 @@ weechat.bar_item_update(name) weechat.bar_item_update("myitem") ---- -==== weechat_bar_item_remove +==== bar_item_remove Remove a bar item. @@ -12219,7 +12220,7 @@ weechat.bar_item_remove(item) weechat.bar_item_remove(myitem) ---- -==== weechat_bar_search +==== bar_search Search a bar. @@ -12256,7 +12257,7 @@ bar = weechat.bar_search(name) bar = weechat.bar_search("mybar") ---- -==== weechat_bar_new +==== bar_new Create a new bar. @@ -12357,7 +12358,7 @@ bar = weechat.bar_new("mybar", "off", "100", "window", "", "top", "horizontal", "0", "5", "default", "cyan", "blue", "off", "time,buffer_number+buffer_name") ---- -==== weechat_bar_set +==== bar_set Set a new value for a bar property. @@ -12399,7 +12400,7 @@ weechat.bar_set(bar, property, value) weechat.bar_set(my_bar, "position", "bottom") ---- -==== weechat_bar_update +==== bar_update Refresh content of a bar on screen. @@ -12432,7 +12433,7 @@ weechat.bar_update(name) weechat.bar_update("mybar") ---- -==== weechat_bar_remove +==== bar_remove Remove a bar. @@ -12470,7 +12471,7 @@ weechat.bar_remove(my_bar) Functions for executing WeeChat commands. -==== weechat_command +==== command _Updated in 1.1._ @@ -12520,7 +12521,7 @@ rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois Network functions. -==== weechat_network_pass_proxy +==== network_pass_proxy Establish a connection/authentication to a proxy. @@ -12566,7 +12567,7 @@ else [NOTE] This function is not available in scripting API. -==== weechat_network_connect_to +==== network_connect_to _Updated in 0.4.3._ @@ -12625,7 +12626,7 @@ This function is not available in scripting API. Functions to get infos. -==== weechat_info_get +==== info_get Return info, as string, from WeeChat or a plugin. @@ -12674,7 +12675,7 @@ weechat.prnt("", "Current WeeChat version is: %s (compiled on %s)" weechat.prnt("", "WeeChat home is: %s" % weechat.info_get("weechat_dir", "")) ---- -==== weechat_info_get_hashtable +==== info_get_hashtable _WeeChat ≥ 0.3.4._ @@ -12762,7 +12763,7 @@ Each variable has a type and a value. Possible types are: * 'buffer': buffer with fixed length, containing any data * 'time': time value -==== weechat_infolist_new +==== infolist_new Create a new infolist. @@ -12795,7 +12796,7 @@ infolist = weechat.infolist_new() infolist = weechat.infolist_new() ---- -==== weechat_infolist_new_item +==== infolist_new_item Add an item in an infolist. @@ -12832,7 +12833,7 @@ item = weechat.infolist_new_item(infolist) item = weechat.infolist_new_item(infolist) ---- -==== weechat_infolist_new_var_integer +==== infolist_new_var_integer Add an integer variable to an infolist item. @@ -12875,7 +12876,7 @@ var = weechat.infolist_new_var_integer(item, name, value) var = weechat.infolist_new_var_integer(item, "my_integer", 123) ---- -==== weechat_infolist_new_var_string +==== infolist_new_var_string Add a string variable to an infolist item. @@ -12918,7 +12919,7 @@ var = weechat.infolist_new_var_string(item, name, value) var = weechat.infolist_new_var_string(item, "my_string", "value") ---- -==== weechat_infolist_new_var_pointer +==== infolist_new_var_pointer Add a pointer variable to an infolist item. @@ -12961,7 +12962,7 @@ var = weechat.infolist_new_var_pointer(item, name, pointer) var = weechat.infolist_new_var_pointer(item, "my_pointer", pointer) ---- -==== weechat_infolist_new_var_buffer +==== infolist_new_var_buffer Add a buffer variable to an infolist item. @@ -13001,7 +13002,7 @@ struct t_infolist_var *var = weechat_infolist_new_var_buffer (item, [NOTE] This function is not available in scripting API. -==== weechat_infolist_new_var_time +==== infolist_new_var_time Add a time variable to an infolist item. @@ -13044,7 +13045,7 @@ var = weechat.infolist_new_var_time(item, name, time) var = weechat.infolist_new_var_time(item, "my_time", int(time.time())) ---- -==== weechat_infolist_get +==== infolist_get Return infolist from WeeChat or a plugin. @@ -13098,7 +13099,7 @@ infolist = weechat.infolist_get(infolist_name, pointer, arguments) infolist = weechat.infolist_get("irc_server", "", "") ---- -==== weechat_infolist_next +==== infolist_next Move "cursor" to next item in an infolist. The first call to this function for an infolist moves cursor to first item in infolist. @@ -13147,7 +13148,7 @@ else: # no more item available ---- -==== weechat_infolist_prev +==== infolist_prev Move "cursor" to previous item in an infolist. The first call to this function for an infolist moves cursor to last item in infolist. @@ -13197,7 +13198,7 @@ else: # no more item available ---- -==== weechat_infolist_reset_item_cursor +==== infolist_reset_item_cursor Reset "cursor" for infolist. @@ -13230,7 +13231,7 @@ weechat.infolist_reset_item_cursor(infolist) weechat.infolist_reset_item_cursor(infolist) ---- -==== weechat_infolist_search_var +==== infolist_search_var _WeeChat ≥ 0.4.3._ @@ -13277,7 +13278,7 @@ if weechat.infolist_search_var(infolist, "name"): # ... ---- -==== weechat_infolist_fields +==== infolist_fields Return list of fields for current infolist item. @@ -13320,7 +13321,7 @@ fields = weechat.infolist_fields(infolist) # "i:my_integer,s:my_string,p:my_pointer,b:my_buffer,t:my_time" ---- -==== weechat_infolist_integer +==== infolist_integer Return value of integer variable in current infolist item. @@ -13359,7 +13360,7 @@ value = weechat.infolist_integer(infolist, var) weechat.prnt("", "integer = %d" % weechat.infolist_integer(infolist, "my_integer")) ---- -==== weechat_infolist_string +==== infolist_string Return value of string variable in current infolist item. @@ -13398,7 +13399,7 @@ value = weechat.infolist_string(infolist, var) weechat.prnt("", "string = %s" % weechat.infolist_string(infolist, "my_string")) ---- -==== weechat_infolist_pointer +==== infolist_pointer Return value of pointer variable in current infolist item. @@ -13437,7 +13438,7 @@ value = weechat.infolist_pointer(infolist, var) weechat.prnt("", "pointer = 0x%s" % weechat.infolist_pointer(infolist, "my_pointer")) ---- -==== weechat_infolist_buffer +==== infolist_buffer Return value of buffer variable in current infolist item. @@ -13472,7 +13473,7 @@ weechat_printf (NULL, "buffer = 0x%lx, size = %d", [NOTE] This function is not available in scripting API. -==== weechat_infolist_time +==== infolist_time Return value of time variable in current infolist item. @@ -13511,7 +13512,7 @@ value = weechat.infolist_time(infolist, var) weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time")) ---- -==== weechat_infolist_free +==== infolist_free Free an infolist. @@ -13555,7 +13556,7 @@ something in memory pointed by hdata variables. + The only way to update data is to call function <<_weechat_hdata_update,weechat_hdata_update>>. -==== weechat_hdata_new +==== hdata_new _WeeChat ≥ 0.3.6, updated in 0.3.9 and 0.4.0._ @@ -13620,7 +13621,7 @@ struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, 0 [NOTE] This function is not available in scripting API. -==== weechat_hdata_new_var +==== hdata_new_var _WeeChat ≥ 0.3.6, updated in 0.3.9._ @@ -13703,7 +13704,7 @@ WEECHAT_HDATA_VAR(struct t_myplugin_list, next, POINTER, 0, NULL, "myplugin_list [NOTE] This function is not available in scripting API. -==== weechat_hdata_new_list +==== hdata_new_list _WeeChat ≥ 0.3.6, updated in 1.0._ @@ -13765,7 +13766,7 @@ WEECHAT_HDATA_LIST(last_buffer, 0); [NOTE] This function is not available in scripting API. -==== weechat_hdata_get +==== hdata_get _WeeChat ≥ 0.3.6._ @@ -13813,7 +13814,7 @@ hdata = weechat.hdata_get(hdata_name) hdata = weechat.hdata_get("irc_server") ---- -==== weechat_hdata_get_var_offset +==== hdata_get_var_offset _WeeChat ≥ 0.3.6._ @@ -13853,7 +13854,7 @@ offset = weechat.hdata_get_var_offset(hdata, name) offset = weechat.hdata_get_var_offset(hdata, "name") ---- -==== weechat_hdata_get_var_type +==== hdata_get_var_type _WeeChat ≥ 0.3.6._ @@ -13918,7 +13919,7 @@ switch (type) [NOTE] This function is not available in scripting API. -==== weechat_hdata_get_var_type_string +==== hdata_get_var_type_string _WeeChat ≥ 0.3.6._ @@ -13958,7 +13959,7 @@ type = weechat.hdata_get_var_type_string(hdata, name) weechat.prnt("", "type = %s" % weechat.hdata_get_var_type_string("name")) ---- -==== weechat_hdata_get_var_array_size +==== hdata_get_var_array_size _WeeChat ≥ 0.3.9._ @@ -13999,7 +14000,7 @@ array_size = weechat.hdata_get_var_array_size(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_array_size_string +==== hdata_get_var_array_size_string _WeeChat ≥ 0.3.9._ @@ -14042,7 +14043,7 @@ array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_hdata +==== hdata_get_var_hdata _WeeChat ≥ 0.3.6._ @@ -14082,7 +14083,7 @@ hdata_name = weechat.hdata_get_var_hdata(hdata, name) weechat.prnt("", "hdata = %s" % weechat.hdata_get_var_hdata(hdata, "name")) ---- -==== weechat_hdata_get_var +==== hdata_get_var _WeeChat ≥ 0.3.6._ @@ -14117,7 +14118,7 @@ void *pointer = weechat_hdata_get_var (hdata, buffer, "name"); [NOTE] This function is not available in scripting API. -==== weechat_hdata_get_var_at_offset +==== hdata_get_var_at_offset _WeeChat ≥ 0.3.6._ @@ -14153,7 +14154,7 @@ void *pointer = weechat_hdata_get_var_at_offset (hdata, buffer, offset); [NOTE] This function is not available in scripting API. -==== weechat_hdata_get_list +==== hdata_get_list _WeeChat ≥ 0.3.6._ @@ -14195,7 +14196,7 @@ hdata = weechat.hdata_get("buffer") buffers = weechat.hdata_get_list(hdata, "gui_buffers") ---- -==== weechat_hdata_check_pointer +==== hdata_check_pointer _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -14256,7 +14257,7 @@ else: # ... ---- -==== weechat_hdata_move +==== hdata_move _WeeChat ≥ 0.3.6._ @@ -14314,7 +14315,7 @@ if buffer: buffer = weechat.hdata_move(hdata, buffer, -1) ---- -==== weechat_hdata_search +==== hdata_search _WeeChat ≥ 0.4.1._ @@ -14374,7 +14375,7 @@ if server: # ... ---- -==== weechat_hdata_char +==== hdata_char _WeeChat ≥ 0.3.7._ @@ -14416,7 +14417,7 @@ value = weechat.hdata_char(hdata, pointer, name) weechat.prnt("", "letter = %c" % weechat.hdata_char(hdata, pointer, "letter")) ---- -==== weechat_hdata_integer +==== hdata_integer _WeeChat ≥ 0.3.6._ @@ -14462,7 +14463,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "number = %d" % weechat.hdata_integer(hdata, buffer, "number")) ---- -==== weechat_hdata_long +==== hdata_long _WeeChat ≥ 0.3.6._ @@ -14504,7 +14505,7 @@ value = weechat.hdata_long(hdata, pointer, name) weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar")) ---- -==== weechat_hdata_string +==== hdata_string _WeeChat ≥ 0.3.6._ @@ -14550,7 +14551,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "name = %s" % weechat.hdata_string(hdata, buffer, "name")) ---- -==== weechat_hdata_pointer +==== hdata_pointer _WeeChat ≥ 0.3.6._ @@ -14596,7 +14597,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "lines = %lx" % weechat.hdata_pointer(hdata, buffer, "lines")) ---- -==== weechat_hdata_time +==== hdata_time _WeeChat ≥ 0.3.6._ @@ -14664,7 +14665,7 @@ if ptr: weechat.prnt("", "time of first line displayed = %s" % time.strftime("%F %T", time.localtime(int(date)))) ---- -==== weechat_hdata_hashtable +==== hdata_hashtable _WeeChat ≥ 0.3.7._ @@ -14715,7 +14716,7 @@ for key in hash: weechat.prnt("", " %s == %s" % (key, hash[key])) ---- -==== weechat_hdata_set +==== hdata_set _WeeChat ≥ 0.3.9._ @@ -14755,7 +14756,7 @@ weechat_hdata_set (hdata, pointer, "message", "test"); [NOTE] This function is not available in scripting API. -==== weechat_hdata_update +==== hdata_update _WeeChat ≥ 0.3.9._ @@ -14841,7 +14842,7 @@ if own_lines: weechat.hdata_update(hdata, line_data, {"date": str(weechat.hdata_time(hdata, line_data, "date") - 3600)}) ---- -==== weechat_hdata_get_string +==== hdata_get_string _WeeChat ≥ 0.3.6._ @@ -14904,7 +14905,7 @@ weechat.prnt("", "lists in hdata: %s" % weechat.hdata_get_string(hdata, "list_ke Functions for upgrading WeeChat (command "/upgrade"). -==== weechat_upgrade_new +==== upgrade_new Create or read a file for upgrade. @@ -14945,7 +14946,7 @@ upgrade_file = weechat.upgrade_new(filename, write) upgrade_file = weechat.upgrade_new("my_file", 1) ---- -==== weechat_upgrade_write_object +==== upgrade_write_object Write an object in upgrade file. @@ -14993,7 +14994,7 @@ rc = weechat.upgrade_write_object(upgrade_file, object_id, infolist) weechat.upgrade_write_object(upgrade_file, 1, infolist) ---- -==== weechat_upgrade_read +==== upgrade_read Read an upgrade file. @@ -15059,7 +15060,7 @@ def my_upgrade_read_cb(upgrade_file, object_id, infolist): weechat.upgrade_read(upgrade_file, "my_upgrade_read_cb", "")) ---- -==== weechat_upgrade_close +==== upgrade_close Close an upgrade file. diff --git a/doc/en/weechat_quickstart.en.asciidoc b/doc/en/weechat_quickstart.en.asciidoc index 5dc950e7d..f80d5ae52 100644 --- a/doc/en/weechat_quickstart.en.asciidoc +++ b/doc/en/weechat_quickstart.en.asciidoc @@ -2,7 +2,8 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: +:toc2: +:max-width: 100% [[start]] diff --git a/doc/en/weechat_relay_protocol.en.asciidoc b/doc/en/weechat_relay_protocol.en.asciidoc index 4d7f2f6f2..5a9640edf 100644 --- a/doc/en/weechat_relay_protocol.en.asciidoc +++ b/doc/en/weechat_relay_protocol.en.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% This document is the specification of WeeChat Relay protocol: the protocol used diff --git a/doc/en/weechat_scripting.en.asciidoc b/doc/en/weechat_scripting.en.asciidoc index 956b3989f..d4bb03e73 100644 --- a/doc/en/weechat_scripting.en.asciidoc +++ b/doc/en/weechat_scripting.en.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: +:toc2: :toclevels: 3 +:max-width: 100% This manual documents WeeChat chat client, it is part of WeeChat. diff --git a/doc/en/weechat_tester.en.asciidoc b/doc/en/weechat_tester.en.asciidoc index f5b0087f4..8078e14f5 100644 --- a/doc/en/weechat_tester.en.asciidoc +++ b/doc/en/weechat_tester.en.asciidoc @@ -2,7 +2,8 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: +:toc2: +:max-width: 100% [[purpose]] diff --git a/doc/en/weechat_user.en.asciidoc b/doc/en/weechat_user.en.asciidoc index aa1fa1d26..75144d968 100644 --- a/doc/en/weechat_user.en.asciidoc +++ b/doc/en/weechat_user.en.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: en -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% This manual documents WeeChat chat client, it is part of WeeChat. diff --git a/doc/es/CMakeLists.txt b/doc/es/CMakeLists.txt index 48348c176..768071615 100644 --- a/doc/es/CMakeLists.txt +++ b/doc/es/CMakeLists.txt @@ -22,9 +22,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.es.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.es.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.es.html" ) add_custom_target(doc-quickstart-es ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.es.html) diff --git a/doc/es/Makefile.am b/doc/es/Makefile.am index c6105f55e..546715277 100644 --- a/doc/es/Makefile.am +++ b/doc/es/Makefile.am @@ -36,7 +36,7 @@ all-local: $(man_targets) $(doc_targets) # quickstart weechat_quickstart.es.html: weechat_quickstart.es.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.es.html $(abs_top_srcdir)/doc/es/weechat_quickstart.es.asciidoc # install man/docs diff --git a/doc/es/weechat_quickstart.es.asciidoc b/doc/es/weechat_quickstart.es.asciidoc index 3c66efa72..7d498ca62 100644 --- a/doc/es/weechat_quickstart.es.asciidoc +++ b/doc/es/weechat_quickstart.es.asciidoc @@ -2,7 +2,14 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: es -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Lázaro A. <uranio-235@myopera.com>, 2012 [[start]] diff --git a/doc/fr/CMakeLists.txt b/doc/fr/CMakeLists.txt index 653c65b4d..f8caf4a16 100644 --- a/doc/fr/CMakeLists.txt +++ b/doc/fr/CMakeLists.txt @@ -21,12 +21,13 @@ if(ENABLE_MAN) # man page add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.fr.asciidoc + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.asciidoc . + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.asciidoc . + COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.fr.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.fr.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (fr)" ) add_custom_target(doc-man-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.fr.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.fr.html" ) add_custom_target(doc-user-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html) @@ -51,10 +54,12 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # plugin API reference add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_API} -o weechat_plugin_api.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.fr.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_plugin_api.fr.html" ) add_custom_target(doc-plugin-api-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.fr.html) @@ -63,9 +68,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.fr.html" ) add_custom_target(doc-scripting-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.fr.html) @@ -74,9 +81,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.fr.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.fr.html" ) add_custom_target(doc-faq-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.fr.html) @@ -85,9 +94,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.fr.html" ) add_custom_target(doc-quickstart-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.fr.html) @@ -96,9 +107,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.fr.html" ) add_custom_target(doc-tester-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.fr.html) @@ -107,9 +120,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # relay protocol add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_RELAY} -o weechat_relay_protocol.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_relay_protocol.fr.html" ) add_custom_target(doc-relay-protocol-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.fr.html) @@ -118,9 +133,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # developer's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.fr.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_DEV} -o weechat_dev.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.fr.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.fr.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_dev.fr.html" ) add_custom_target(doc-dev-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.fr.html) diff --git a/doc/fr/Makefile.am b/doc/fr/Makefile.am index 8323d4b55..5a1b78588 100644 --- a/doc/fr/Makefile.am +++ b/doc/fr/Makefile.am @@ -64,35 +64,35 @@ weechat.1: weechat.1.fr.asciidoc cmdline_options.fr.asciidoc # user's guide weechat_user.fr.html: weechat_user.fr.asciidoc cmdline_options.fr.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.fr.html $(abs_top_srcdir)/doc/fr/weechat_user.fr.asciidoc # plugin API reference weechat_plugin_api.fr.html: weechat_plugin_api.fr.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_plugin_api.fr.html $(abs_top_srcdir)/doc/fr/weechat_plugin_api.fr.asciidoc # scripting guide weechat_scripting.fr.html: weechat_scripting.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.fr.html $(abs_top_srcdir)/doc/fr/weechat_scripting.fr.asciidoc # FAQ weechat_faq.fr.html: weechat_faq.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.fr.html $(abs_top_srcdir)/doc/fr/weechat_faq.fr.asciidoc # quickstart weechat_quickstart.fr.html: weechat_quickstart.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.fr.html $(abs_top_srcdir)/doc/fr/weechat_quickstart.fr.asciidoc # tester's guide weechat_tester.fr.html: weechat_tester.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.fr.html $(abs_top_srcdir)/doc/fr/weechat_tester.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.fr.html $(abs_top_srcdir)/doc/fr/weechat_tester.fr.asciidoc # relay protocol weechat_relay_protocol.fr.html: weechat_relay_protocol.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_relay_protocol.fr.html $(abs_top_srcdir)/doc/fr/weechat_relay_protocol.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_relay_protocol.fr.html $(abs_top_srcdir)/doc/fr/weechat_relay_protocol.fr.asciidoc # developer's guide weechat_dev.fr.html: weechat_dev.fr.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_dev.fr.html $(abs_top_srcdir)/doc/fr/weechat_dev.fr.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_dev.fr.html $(abs_top_srcdir)/doc/fr/weechat_dev.fr.asciidoc # install man/docs diff --git a/doc/fr/weechat.1.fr.asciidoc b/doc/fr/weechat.1.fr.asciidoc index b243dc56f..f3228997f 100644 --- a/doc/fr/weechat.1.fr.asciidoc +++ b/doc/fr/weechat.1.fr.asciidoc @@ -92,6 +92,10 @@ $HOME/.weechat/weechat.log:: == AUTEURS +Cette page de manuel a été écrite par Sébastien Helleu <flashcode@flashtux.org>. + +== COPYRIGHT + WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète est dans le fichier AUTHORS.asciidoc). diff --git a/doc/fr/weechat_dev.fr.asciidoc b/doc/fr/weechat_dev.fr.asciidoc index 6f83fd180..8b4f3ab9f 100644 --- a/doc/fr/weechat_dev.fr.asciidoc +++ b/doc/fr/weechat_dev.fr.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% Ce manuel documente le client de messagerie instantanée WeeChat, il fait diff --git a/doc/fr/weechat_faq.fr.asciidoc b/doc/fr/weechat_faq.fr.asciidoc index 8cfbdd2e8..f929431cd 100644 --- a/doc/fr/weechat_faq.fr.asciidoc +++ b/doc/fr/weechat_faq.fr.asciidoc @@ -3,12 +3,15 @@ :email: flashcode@flashtux.org :lang: fr :toc: +:toc-placement: manual [NOTE] Ce document est écrit pour les versions de WeeChat ≥ 0.3.0 mais devrait être utilisé de préférence avec la dernière version stable de WeeChat. +toc::[] + == Général diff --git a/doc/fr/weechat_plugin_api.fr.asciidoc b/doc/fr/weechat_plugin_api.fr.asciidoc index 88954f7ca..3cfa93f1c 100644 --- a/doc/fr/weechat_plugin_api.fr.asciidoc +++ b/doc/fr/weechat_plugin_api.fr.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: +:toc2: :toclevels: 4 +:max-width: 100% Ce manuel documente le client de messagerie instantanée WeeChat, il fait @@ -226,7 +227,7 @@ Pour chaque fonction, on donne : Fonctions pour obtenir des informations sur les extensions. -==== weechat_plugin_get_name +==== plugin_get_name Retourner le nom d'une extension. @@ -272,7 +273,7 @@ Plusieurs fonctions sur les chaînes de caractères sont déjà disponibles via les fonctions standard du C, mais il est recommandé d'utiliser celles de l'API car elles sont ok avec UTF-8 et la locale. -==== weechat_charset_set +==== charset_set Définir le nouveau jeu de caractères (le jeu de caractères par défaut est 'UTF-8', donc si votre extension utilise 'UTF-8', vous n'avez pas besoin @@ -307,7 +308,7 @@ weechat.charset_set(charset) weechat.charset_set("iso-8859-1") ---- -==== weechat_iconv_to_internal +==== iconv_to_internal Convertir une chaîne vers le jeu de caractères interne (UTF-8). @@ -347,7 +348,7 @@ str = weechat.iconv_to_internal(charset, string) str = weechat.iconv_to_internal("iso-8859-1", "chaîne iso : é à") ---- -==== weechat_iconv_from_internal +==== iconv_from_internal Convertir une chaîne du jeu de caractères interne (UTF-8) vers un autre. @@ -387,7 +388,7 @@ str = weechat.iconv_from_internal(charset, string) str = weechat.iconv_from_internal("iso-8859-1", "chaîne utf-8 : é à") ---- -==== weechat_gettext +==== gettext Retourner la chaîne traduite (dépend de la langue locale). @@ -424,7 +425,7 @@ str = weechat.gettext(string) str = weechat.gettext("hello") ---- -==== weechat_ngettext +==== ngettext Retourner la chaîne traduite, en utilisant le singulier ou le pluriel, selon le paramètre 'count'. @@ -467,7 +468,7 @@ num_files = 2 str = weechat.ngettext("file", "files", num_files) ---- -==== weechat_strndup +==== strndup Retourner la chaîne dupliquée, avec au plus 'length' caractères. @@ -499,7 +500,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_tolower +==== string_tolower Convertir une chaîne UTF-8 en minuscules. @@ -525,7 +526,7 @@ weechat_string_tolower (str); /* str vaut maintenant : "abcdé" */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_toupper +==== string_toupper Convertir une chaîne UTF-8 en majuscules. @@ -551,7 +552,7 @@ weechat_string_toupper (str); /* str vaut maintenant : "ABCDé" */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strcasecmp +==== strcasecmp _Mis à jour dans la 1.0._ @@ -585,7 +586,7 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strcasecmp_range +==== strcasecmp_range _WeeChat ≥ 0.3.7, mis à jour dans la 1.0._ @@ -627,7 +628,7 @@ int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 * [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strncasecmp +==== strncasecmp _Mis à jour dans la 1.0._ @@ -663,7 +664,7 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strncasecmp_range +==== strncasecmp_range _WeeChat ≥ 0.3.7, mis à jour dans la 1.0._ @@ -706,7 +707,7 @@ int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strcmp_ignore_chars +==== strcmp_ignore_chars _Mis à jour dans la 1.0._ @@ -745,7 +746,7 @@ int diff = weechat_strcmp_ignore_chars ("a-b", "--a-e", "-", 1); /* == -3 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strcasestr +==== strcasestr Rechercher une chaîne indépendemment de la locale et de la casse. @@ -775,7 +776,7 @@ char *pos = weechat_strcasestr ("aBcDeF", "de"); /* résultat : pointeur vers " [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_strlen_screen +==== strlen_screen _WeeChat ≥ 0.4.2._ @@ -817,7 +818,7 @@ length = weechat.strlen_screen(string) length = weechat.strlen_screen("é") # 1 ---- -==== weechat_string_match +==== string_match _Mis à jour dans la 1.0._ @@ -872,7 +873,7 @@ match4 = weechat.string_match("abcdef", "*de*", 0) # 1 match5 = weechat.string_match("abcdef", "*b*d*", 0) # 1 ---- -==== weechat_string_expand_home +==== string_expand_home _WeeChat ≥ 0.3.3._ @@ -908,7 +909,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_remove_quotes +==== string_remove_quotes Supprimer les apostrophes/guillemets au début et à la fin d'une chaîne (les espaces avant la première apostrophe ou après la dernière sont ignorés). @@ -943,7 +944,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_strip +==== string_strip Supprimer des caractères au début et/ou à la fin d'une chaîne. @@ -979,7 +980,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_convert_escaped_chars +==== string_convert_escaped_chars _WeeChat ≥ 1.0._ @@ -1031,7 +1032,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_mask_to_regex +==== string_mask_to_regex Retourner une expression régulière ("regex"), construite avec un masque où le seul caractère spécial est "`*`". Tous les autres caractères spéciaux @@ -1074,7 +1075,7 @@ regex = weechat.string_mask_to_regex(mask) regex = weechat.string_mask_to_regex("test*mask") # "test.*mask" ---- -==== weechat_string_regex_flags +==== string_regex_flags _WeeChat ≥ 0.3.7._ @@ -1129,7 +1130,7 @@ const char *ptr_regex = weechat_string_regex_flags (regex, REG_EXTENDED, &flags) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_regcomp +==== string_regcomp _WeeChat ≥ 0.3.7._ @@ -1173,7 +1174,7 @@ if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_has_highlight +==== string_has_highlight Vérifier si une chaîne a un ou plusieurs "highlights", en utilisant une liste de mots "highlight". @@ -1213,7 +1214,7 @@ highlight = weechat.string_has_highlight(string, highlight_words) highlight = weechat.string_has_highlight("my test string", "test,word2") # 1 ---- -==== weechat_string_has_highlight_regex +==== string_has_highlight_regex _WeeChat ≥ 0.3.4._ @@ -1256,7 +1257,7 @@ highlight = weechat.string_has_highlight_regex(string, regex) highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1 ---- -==== weechat_string_replace +==== string_replace Remplacer toutes les occurrences d'une chaîne par une autre chaîne. @@ -1291,7 +1292,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_replace_regex +==== string_replace_regex _WeeChat ≥ 1.0._ @@ -1360,7 +1361,7 @@ if (weechat_string_regcomp (&my_regex, "([0-9]{4})-([0-9]{2})-([0-9]{2})", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_split +==== string_split Découper une chaîne à l'aide de délimiteur(s). @@ -1421,7 +1422,7 @@ weechat_string_free_split (argv); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_split_shell +==== string_split_shell _WeeChat ≥ 1.0._ @@ -1469,7 +1470,7 @@ weechat_string_free_split (argv); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_free_split +==== string_free_split Supprimer une chaîne découpée. @@ -1499,7 +1500,7 @@ weechat_string_free_split (argv); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_build_with_split_string +==== string_build_with_split_string Construire une chaîne à partir d'une chaîne découpée. @@ -1538,7 +1539,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_split_command +==== string_split_command Découper une liste de commandes séparées par 'separator' (qui peut être échappé par "\" dans la chaîne). @@ -1574,7 +1575,7 @@ weechat_free_split_command (argv); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_free_split_command +==== string_free_split_command Supprimer une commande découpée. @@ -1602,7 +1603,7 @@ weechat_free_split_command (argv); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_format_size +==== string_format_size Construire une chaîne avec une taille de fichier formatée et une unité traduite dans la langue locale. @@ -1652,7 +1653,7 @@ free (str); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_remove_color +==== string_remove_color Supprimer les couleurs WeeChat dans une chaîne. @@ -1702,7 +1703,7 @@ str = weechat.string_remove_color(string, replacement) str = weechat.string_remove_color(ma_chaine, "?") ---- -==== weechat_string_encode_base64 +==== string_encode_base64 _WeeChat ≥ 0.3.2._ @@ -1734,7 +1735,7 @@ weechat_string_encode_base64 (string, strlen (string), result); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_decode_base64 +==== string_decode_base64 _WeeChat ≥ 0.3.2._ @@ -1770,7 +1771,7 @@ length = weechat_string_decode_base64 (string, result); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_string_is_command_char +==== string_is_command_char _WeeChat ≥ 0.3.2._ @@ -1812,7 +1813,7 @@ command_char1 = weechat.string_is_command_char("/test") # == 1 command_char2 = weechat.string_is_command_char("test") # == 0 ---- -==== weechat_string_input_for_buffer +==== string_input_for_buffer _WeeChat ≥ 0.3.2._ @@ -1856,7 +1857,7 @@ str2 = weechat.string_input_for_buffer("/test") # "" str3 = weechat.string_input_for_buffer("//test") # "/test" ---- -==== weechat_string_eval_expression +==== string_eval_expression _WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2 et 1.1._ @@ -2053,7 +2054,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio Fonctions pour les chaînes UTF-8. -==== weechat_utf8_has_8bits +==== utf8_has_8bits Vérifier si une chaîne a des caractères 8-bits. @@ -2086,7 +2087,7 @@ if (weechat_utf8_has_8bits (string)) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_is_valid +==== utf8_is_valid Vérifier si une chaîne est valide UTF-8. @@ -2125,7 +2126,7 @@ else [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_normalize +==== utf8_normalize Normaliser une chaîne UTF-8 : supprimer tous les caractères non valides UTF-8 en les remplaçant par un caractère. @@ -2152,7 +2153,7 @@ weechat_utf8_normalize (string, '?'); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_prev_char +==== utf8_prev_char Retourner un pointeur vers le caractère UTF-8 précédent dans une chaîne. @@ -2184,7 +2185,7 @@ char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_next_char +==== utf8_next_char Retourner un pointeur vers le caractère UTF-8 suivant dans une chaîne. @@ -2214,7 +2215,7 @@ char *next_char = weechat_utf8_next_char (string); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_char_int +==== utf8_char_int Retourner un caractère UTF-8 sous forme d'entier. @@ -2243,7 +2244,7 @@ int char_int = weechat_utf8_char_int ("être"); /* "ê" comme entier */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_char_size +==== utf8_char_size Retourner la taille d'un caractère UTF-8 (en octets). @@ -2272,7 +2273,7 @@ int char_size = weechat_utf8_char_size ("être"); /* == 2 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_strlen +==== utf8_strlen Retourner la taille d'une chaîne UTF-8 (en nombre de caractères UTF-8). @@ -2301,7 +2302,7 @@ int length = weechat_utf8_strlen ("chêne"); /* == 5 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_strnlen +==== utf8_strnlen Retourner la taille d'une chaîne UTF-8 (en nombre de caractères UTF-8), pour au maximum 'bytes' octets dans la chaîne. @@ -2332,7 +2333,7 @@ int length = weechat_utf8_strnlen ("chêne", 4); /* == 3 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_strlen_screen +==== utf8_strlen_screen Retourner le nombre de caractères nécessaires pour afficher la chaîne UTF-8 sur l'écran. @@ -2362,7 +2363,7 @@ int length_on_screen = weechat_utf8_strlen_screen ("é"); /* == 1 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_charcmp +==== utf8_charcmp _Mis à jour dans la 1.0._ @@ -2396,7 +2397,7 @@ int diff = weechat_utf8_charcmp ("aaa", "ccc"); /* == -2 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_charcasecmp +==== utf8_charcasecmp _Mis à jour dans la 1.0._ @@ -2430,7 +2431,7 @@ int diff = weechat_utf8_charcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_char_size_screen +==== utf8_char_size_screen Retourner le nombre de caractères nécessaires pour afficher le caractère UTF-8 sur l'écran. @@ -2460,7 +2461,7 @@ int length_on_screen = weechat_utf8_char_size_screen ("é"); /* == 1 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_add_offset +==== utf8_add_offset Avancer de N caractères dans une chaîne UTF-8. @@ -2492,7 +2493,7 @@ char *str2 = weechat_utf8_add_offset (str, 3); /* pointe vers "ne" */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_real_pos +==== utf8_real_pos Retourner la position réelle dans une chaîne UTF-8. @@ -2522,7 +2523,7 @@ int pos = weechat_utf8_real_pos ("chêne", 3); /* == 4 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_pos +==== utf8_pos Retourner la position dans une chaîne UTF-8. @@ -2552,7 +2553,7 @@ int pos = weechat_utf8_pos ("chêne", 4); /* == 3 */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_utf8_strndup +==== utf8_strndup Retourner une chaîne dupliquée, avec au plus 'length' caractères. @@ -2590,7 +2591,7 @@ Cette fonction n'est pas disponible dans l'API script. Fonctions liées aux répertoires. -==== weechat_mkdir_home +==== mkdir_home Créer un répertoire dans le répertoire de WeeChat. @@ -2631,7 +2632,7 @@ weechat.mkdir_home(directory, mode) weechat.mkdir_home("temp", 0755) ---- -==== weechat_mkdir +==== mkdir Créer un répertoire. @@ -2672,7 +2673,7 @@ weechat.mkdir(directory, mode) weechat.mkdir("/tmp/mydir", 0755) ---- -==== weechat_mkdir_parents +==== mkdir_parents Créer un répertoire et ses parents si besoin. @@ -2713,7 +2714,7 @@ weechat.mkdir_parents(directory, mode) weechat.mkdir_parents("/tmp/my/dir", 0755) ---- -==== weechat_exec_on_files +==== exec_on_files Balayer les fichiers dans un répertoire et exécuter un "callback" pour chaque fichier. @@ -2753,7 +2754,7 @@ weechat_exec_on_files ("/tmp", 0, NULL, &callback); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_file_get_content +==== file_get_content _WeeChat ≥ 0.3.1._ @@ -2794,7 +2795,7 @@ Cette fonction n'est pas disponible dans l'API script. Quelques fonctions utiles. -==== weechat_util_timeval_cmp +==== util_timeval_cmp Comparer deux structures "timeval". @@ -2829,7 +2830,7 @@ if (weechat_util_timeval_cmp (&tv1, &tv2) > 0) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_util_timeval_diff +==== util_timeval_diff _Mis à jour dans la 1.1._ @@ -2864,7 +2865,7 @@ long long diff = weechat_util_timeval_diff (&tv1, &tv2); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_util_timeval_add +==== util_timeval_add _Mis à jour dans la 1.1._ @@ -2895,7 +2896,7 @@ weechat_util_timeval_add (&tv, 2000000); /* ajouter 2 secondes */ [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_util_get_time_string +==== util_get_time_string _WeeChat ≥ 0.3.2._ @@ -2924,7 +2925,7 @@ weechat_printf (NULL, "date: %s", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_util_version_number +==== util_version_number _WeeChat ≥ 0.3.9._ @@ -2960,7 +2961,7 @@ Cette fonction n'est pas disponible dans l'API script. Fonctions pour les listes triées. -==== weechat_list_new +==== list_new Créer une nouvelle liste. @@ -2993,7 +2994,7 @@ list = weechat.list_new() list = weechat.list_new() ---- -==== weechat_list_add +==== list_add Ajouter un élément dans une liste. @@ -3040,7 +3041,7 @@ item = weechat.list_add(list, data, where, user_data) item = weechat.list_add(list, "ma donnée", weechat.WEECHAT_LIST_POS_SORT, "") ---- -==== weechat_list_search +==== list_search Rechercher un élément dans une liste. @@ -3079,7 +3080,7 @@ item = weechat.list_search(list, data) item = weechat.list_search(list, "ma donnée") ---- -==== weechat_list_search_pos +==== list_search_pos _WeeChat ≥ 0.3.4._ @@ -3120,7 +3121,7 @@ pos_item = weechat.list_search_pos(list, data) pos_item = weechat.list_search_pos(list, "ma donnée") ---- -==== weechat_list_casesearch +==== list_casesearch Rechercher un élément dans la liste, sans tenir compte de la casse. @@ -3159,7 +3160,7 @@ item = weechat.list_casesearch(list, data) item = weechat.list_casesearch(list, "ma donnée") ---- -==== weechat_list_casesearch_pos +==== list_casesearch_pos _WeeChat ≥ 0.3.4._ @@ -3201,7 +3202,7 @@ pos_item = weechat.list_casesearch_pos(list, data) pos_item = weechat.list_casesearch_pos(list, "ma donnée") ---- -==== weechat_list_get +==== list_get Retourner un élément de la liste par sa position. @@ -3240,7 +3241,7 @@ item = weechat.list_get(list, position) item = weechat.list_get(list, 0) ---- -==== weechat_list_set +==== list_set Affecter une nouvelle valeur pour un élément. @@ -3274,7 +3275,7 @@ weechat.list_set(item, value) weechat.list_set(item, "nouvelle donnée") ---- -==== weechat_list_next +==== list_next Retourner l'élément suivant dans la liste. @@ -3312,7 +3313,7 @@ item = weechat.list_next(item) item = weechat.list_next(item) ---- -==== weechat_list_prev +==== list_prev Retourner l'élément précédent dans la liste. @@ -3350,7 +3351,7 @@ item = weechat.list_prev(item) item = weechat.list_prev(item) ---- -==== weechat_list_string +==== list_string Retourner la valeur de l'élément sous forme de chaîne. @@ -3387,7 +3388,7 @@ value = weechat.list_string(item) weechat.prnt("", "valeur de l'item : %s" % weechat.list_string(item)) ---- -==== weechat_list_size +==== list_size Retourner la taille de la liste (nombre d'éléments). @@ -3424,7 +3425,7 @@ size = weechat.list_size(list) weechat.prnt("", "taille de la liste : %d" % weechat.list_size(list)) ---- -==== weechat_list_remove +==== list_remove Supprimer un élément de la liste. @@ -3459,7 +3460,7 @@ weechat.list_remove(list, item) weechat.list_remove(list, item) ---- -==== weechat_list_remove_all +==== list_remove_all Supprimer tous les éléments de la liste. @@ -3492,7 +3493,7 @@ weechat.list_remove_all(list) weechat.list_remove_all(list) ---- -==== weechat_list_free +==== list_free Supprimer une liste. @@ -3530,7 +3531,7 @@ weechat.list_free(list) Fonctions pour les tables de hachage. -==== weechat_hashtable_new +==== hashtable_new _WeeChat ≥ 0.3.3._ @@ -3604,7 +3605,7 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_set_with_size +==== hashtable_set_with_size _WeeChat ≥ 0.3.3, mis à jour dans la 0.4.2._ @@ -3645,7 +3646,7 @@ weechat_hashtable_set_with_size (hashtable, "ma_cle", 0, [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_set +==== hashtable_set _WeeChat ≥ 0.3.3, mis à jour dans la 0.4.2._ @@ -3679,7 +3680,7 @@ weechat_hashtable_set (hashtable, "ma_cle", "ma_valeur"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_get +==== hashtable_get _WeeChat ≥ 0.3.3._ @@ -3711,7 +3712,7 @@ void *value = weechat_hashtable_get (hashtable, "ma_cle"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_has_key +==== hashtable_has_key _WeeChat ≥ 0.3.4._ @@ -3748,7 +3749,7 @@ if (weechat_hashtable_has_key (hashtable, "ma_cle")) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_map +==== hashtable_map _WeeChat ≥ 0.3.3._ @@ -3792,7 +3793,7 @@ weechat_hashtable_map (hashtable, &map_cb, NULL); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_map_string +==== hashtable_map_string _WeeChat ≥ 0.3.7._ @@ -3840,7 +3841,7 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_dup +==== hashtable_dup _WeeChat ≥ 1.0._ @@ -3871,7 +3872,7 @@ struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_get_integer +==== hashtable_get_integer _WeeChat ≥ 0.3.3._ @@ -3906,7 +3907,7 @@ int items_count = weechat_hashtable_get_integer (hashtable, "items_count"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_get_string +==== hashtable_get_string _WeeChat ≥ 0.3.4._ @@ -3964,7 +3965,7 @@ weechat_printf (NULL, "liste des clés: %s", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_set_pointer +==== hashtable_set_pointer _WeeChat ≥ 0.3.4._ @@ -4011,7 +4012,7 @@ weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_add_to_infolist +==== hashtable_add_to_infolist _WeeChat ≥ 0.3.3._ @@ -4056,7 +4057,7 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_remove +==== hashtable_remove _WeeChat ≥ 0.3.3._ @@ -4084,7 +4085,7 @@ weechat_hashtable_remove (hashtable, "ma_cle"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_remove_all +==== hashtable_remove_all _WeeChat ≥ 0.3.3._ @@ -4111,7 +4112,7 @@ weechat_hashtable_remove_all (hashtable); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hashtable_free +==== hashtable_free _WeeChat ≥ 0.3.3._ @@ -4143,7 +4144,7 @@ Cette fonction n'est pas disponible dans l'API script. Fonctions pour les fichiers de configuration. -==== weechat_config_new +==== config_new Créer un nouveau fichier de configuration. @@ -4216,7 +4217,7 @@ def my_config_reload_cb(data, config_file): config_file = weechat.config_new("test", "my_config_reload_cb", "") ---- -==== weechat_config_new_section +==== config_new_section Créer une nouvelle section dans un fichier de configuration. @@ -4462,7 +4463,7 @@ section = weechat.config_new_section(config_file, "section1", 1, 1, "my_section_delete_option_cb", "") ---- -==== weechat_config_search_section +==== config_search_section Rechercher une section dans un fichier de configuration. @@ -4503,7 +4504,7 @@ section = weechat.config_search_section(config_file, section_name) section = weechat.config_search_section(config_file, "section") ---- -==== weechat_config_new_option +==== config_new_option Créer une nouvelle option dans une section d'un fichier de configuration. @@ -4719,7 +4720,7 @@ tableau de 6 chaînes de caractères (en raison d'une limitation de Ruby à 15 paramètres par fonction), voir le 'Guide pour Scripts WeeChat' pour plus d'infos _(corrigé dans la version 0.4.1)_. -==== weechat_config_search_option +==== config_search_option Rechercher une option dans une section d'un fichier de configuration. @@ -4762,7 +4763,7 @@ option = weechat.config_search_option(config_file, section, option_name) option = weechat.config_search_option(config_file, section, "option") ---- -==== weechat_config_search_section_option +==== config_search_section_option Rechercher une section et une option dans un fichier de configuration ou une section. @@ -4813,7 +4814,7 @@ else [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_config_search_with_string +==== config_search_with_string Retourner des infos sur fichier/section/option pour une option avec le nom complet. @@ -4869,7 +4870,7 @@ else [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_config_string_to_boolean +==== config_string_to_boolean Vérifier si un texte est "vrai" ou "faux", au sens booléen. @@ -4915,7 +4916,7 @@ if weechat.config_string_to_boolean(text): # ... ---- -==== weechat_config_option_reset +==== config_option_reset Réinitialiser une option à sa valeur par défaut. @@ -4975,7 +4976,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set +==== config_option_set Affecter une nouvelle valeur pour une option. @@ -5035,7 +5036,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set_null +==== config_option_set_null Affecter "null" (valeur indéfinie) à une option. @@ -5098,7 +5099,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_unset +==== config_option_unset Réinitialiser ou supprimer une option. @@ -5162,7 +5163,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: # ... ---- -==== weechat_config_option_rename +==== config_option_rename Renommer une option. @@ -5197,7 +5198,7 @@ weechat.config_option_rename(option, new_name) weechat.config_option_rename(option, "nouveau_nom") ---- -==== weechat_config_option_get_pointer +==== config_option_get_pointer Retourner un pointeur vers une propriété de l'option. @@ -5243,7 +5244,7 @@ char *description = weechat_config_option_get_pointer (option, "description"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_config_option_is_null +==== config_option_is_null Vérifier si une option est "null" (valeur non définie). @@ -5289,7 +5290,7 @@ if weechat.config_option_is_null(option): # ... ---- -==== weechat_config_option_default_is_null +==== config_option_default_is_null Vérifier si la valeur par défaut d'une option est "null" (valeur non définie). @@ -5335,7 +5336,7 @@ if weechat.config_option_default_is_null(option): # ... ---- -==== weechat_config_boolean +==== config_boolean Retourner la valeur booléenne de l'option. @@ -5382,7 +5383,7 @@ if weechat.config_boolean(option): # ... ---- -==== weechat_config_boolean_default +==== config_boolean_default Retourner la valeur booléenne par défaut de l'option. @@ -5429,7 +5430,7 @@ if weechat.config_boolean_default(option): # ... ---- -==== weechat_config_integer +==== config_integer Retourner la valeur entière de l'option. @@ -5468,7 +5469,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer(option) ---- -==== weechat_config_integer_default +==== config_integer_default Retourner la valeur entière par défaut de l'option. @@ -5507,7 +5508,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer_default(option) ---- -==== weechat_config_string +==== config_string Retourner la valeur de l'option, sous forme de chaîne. @@ -5546,7 +5547,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string(option) ---- -==== weechat_config_string_default +==== config_string_default Retourner la valeur par défaut de l'option, sous forme de chaîne. @@ -5585,7 +5586,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string_default(option) ---- -==== weechat_config_color +==== config_color Retourner la valeur de l'option, sous forme de couleur. @@ -5624,7 +5625,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color(option) ---- -==== weechat_config_color_default +==== config_color_default Retourner la valeur par défaut de l'option, sous forme de couleur. @@ -5664,7 +5665,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color_default(option) ---- -==== weechat_config_write_option +==== config_write_option Écrire une ligne dans le fichier de configuration avec l'option et sa valeur (cette fonction doit être appelée uniquement dans un "callback" "write" ou @@ -5713,7 +5714,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write_line +==== config_write_line Écrire une ligne dans un fichier de configuration (cette fonction doit être appelée uniquement dans un "callback" "write" ou "write_default" pour une @@ -5766,7 +5767,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write +==== config_write Écrire un fichier de configuration sur le disque. @@ -5822,7 +5823,7 @@ elif rc == weechat.WEECHAT_CONFIG_WRITE_ERROR: # ... ---- -==== weechat_config_read +==== config_read Lire un fichier de configuration depuis le disque. @@ -5878,7 +5879,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_reload +==== config_reload Relire un fichier de configuration depuis le disque. @@ -5934,7 +5935,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_option_free +==== config_option_free Supprimer une option. @@ -5967,7 +5968,7 @@ weechat.config_option_free(option) weechat.config_option_free(option) ---- -==== weechat_config_section_free_options +==== config_section_free_options Supprimer toutes les options dans une section. @@ -6000,7 +6001,7 @@ weechat.config_section_free_options(section) weechat.config_section_free_options(section) ---- -==== weechat_config_section_free +==== config_section_free Supprimer une section. @@ -6033,7 +6034,7 @@ weechat.config_section_free(section) weechat.config_section_free(section) ---- -==== weechat_config_free +==== config_free Supprimer un fichier de configuration. @@ -6066,7 +6067,7 @@ weechat.config_free(config_file) weechat.config_free(config_file) ---- -==== weechat_config_get +==== config_get Rechercher une option avec le nom complet. @@ -6103,7 +6104,7 @@ option = weechat.config_get(option_name) option = weechat.config_get("weechat.look.item_time_format") ---- -==== weechat_config_get_plugin +==== config_get_plugin Rechercher une option dans le fichier de configuration des extensions (plugins.conf). @@ -6144,7 +6145,7 @@ value = weechat.config_get_plugin(option_name) value = weechat.config_get_plugin("option") ---- -==== weechat_config_is_set_plugin +==== config_is_set_plugin Vérifier si une option existe dans le fichier de configuration des extensions (plugins.conf). @@ -6195,7 +6196,7 @@ else: # ... ---- -==== weechat_config_set_plugin +==== config_set_plugin Affecter une nouvelle valeur pour une option dans le fichier de configuration des extensions (plugins.conf). @@ -6260,7 +6261,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_set_desc_plugin +==== config_set_desc_plugin _WeeChat ≥ 0.3.5._ @@ -6305,7 +6306,7 @@ if int(version) >= 0x00030500: weechat.config_set_desc_plugin("option", "description de l'option") ---- -==== weechat_config_unset_plugin +==== config_unset_plugin Supprimer une option du fichier de configuration des extensions (plugins.conf). @@ -6375,7 +6376,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: Fonctions pour les associations de touches. -==== weechat_key_bind +==== key_bind _WeeChat ≥ 0.3.6._ @@ -6441,7 +6442,7 @@ keys = {"@chat(python.test):button1": "hsignal:test_mouse", weechat.key_bind("mouse", keys) ---- -==== weechat_key_unbind +==== key_unbind _WeeChat ≥ 0.3.6._ @@ -6501,7 +6502,7 @@ weechat.key_unbind("mouse", "area:chat(python.test)") Fonctions pour afficher du texte dans les tampons. -==== weechat_prefix +==== prefix Retourner un préfixe. @@ -6554,7 +6555,7 @@ value = weechat.prefix(prefix) weechat.prnt("", "%sCeci est une erreur..." % weechat.prefix("error")) ---- -==== weechat_color +==== color Retourner une chaîne avec un code couleur pour affichage. @@ -6638,7 +6639,7 @@ weechat.prnt("", "Couleur : %sbleu %scouleur par défaut %sjaune sur rouge" % (weechat.color("blue"), weechat.color("chat"), weechat.color("yellow,red"))) ---- -==== weechat_printf +==== printf Afficher un message sur un tampon. @@ -6698,7 +6699,7 @@ weechat.prnt(buffer, "\t\t") # ligne vide (sans heure) [NOTE] La fonction s'appelle "print" dans les scripts ("prnt" en Python). -==== weechat_printf_date +==== printf_date Afficher un message sur un tampon, en utilisant une date personnalisée. @@ -6727,7 +6728,7 @@ weechat_printf_date (NULL, time (NULL) - 120, "Bonjour, il y a 2 minutes"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_printf_tags +==== printf_tags Afficher un message sur un tampon, avec des étiquettes personnalisées. @@ -6757,7 +6758,7 @@ weechat_printf_tags (NULL, "notify_message", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_printf_date_tags +==== printf_date_tags Afficher un message sur un tampon, en utilisant une date et des étiquettes personnalisées. @@ -6829,7 +6830,7 @@ weechat.prnt_date_tags("", time - 120, "notify_message", La fonction s'appelle "print_date_tags" dans les scripts ("prnt_date_tags" en Python). -==== weechat_printf_y +==== printf_y Afficher un message sur une ligne d'un tampon avec contenu libre. @@ -6872,7 +6873,7 @@ weechat.prnt_y("", 2, "Mon message sur la 3ème ligne") [NOTE] La fonction s'appelle "print_y" dans les scripts ("prnt_y" en Python). -==== weechat_log_printf +==== log_printf Écrire un message dans le fichier de log WeeChat (weechat.log). @@ -6941,7 +6942,7 @@ Les types de "hooks" suivants autorisent une priorité : command, command_run, signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, hdata, focus. -==== weechat_hook_command +==== hook_command Accrocher une commande. @@ -7081,7 +7082,7 @@ hook = weechat.hook_command("monfiltre", "description de monfiltre", "my_command_cb", "") ---- -==== weechat_hook_command_run +==== hook_command_run Intercepter une commande lorsqu'elle est exécutée par WeeChat. @@ -7152,7 +7153,7 @@ def my_command_run_cb(data, buffer, command): hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") ---- -==== weechat_hook_timer +==== hook_timer Accrocher un minuteur (fonction appelée à intervalles réguliers). @@ -7224,7 +7225,7 @@ def my_timer_cb(data, remaining_calls): hook = weechat.hook_timer(20 * 1000, 0, 0, "my_timer_cb", "") ---- -==== weechat_hook_fd +==== hook_fd Accrocher un descripteur de fichier (fichier ou socket). @@ -7294,7 +7295,7 @@ sock = ... hook = weechat.hook_fd(sock, 1, 0, 0, "my_fd_cb", "") ---- -==== weechat_hook_process +==== hook_process Accrocher un processus (lancé par un fork), et intercepter sa sortie. @@ -7440,7 +7441,7 @@ def my_process_cb(data, command, return_code, out, err): hook = weechat.hook_process("ls", 5000, "my_process_cb", "") ---- -==== weechat_hook_process_hashtable +==== hook_process_hashtable _WeeChat ≥ 0.3.7._ @@ -7650,7 +7651,7 @@ hook3 = weechat.hook_process_hashtable("sh", 20000, "my_process_cb", "") ---- -==== weechat_hook_connect +==== hook_connect Accrocher une connexion (connexion à une machine distante en tâche de fond). @@ -7825,7 +7826,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---- -==== weechat_hook_print +==== hook_print _Mis à jour dans la 0.4.3 et 1.0._ @@ -7930,7 +7931,7 @@ def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message) hook = weechat.hook_print("", "", "", 1, "my_print_cb", "") ---- -==== weechat_hook_signal +==== hook_signal S'accrocher à un signal. @@ -8614,7 +8615,7 @@ def my_signal_cb(data, signal, signal_data): hook = weechat.hook_signal("quit", "my_signal_cb", "") ---- -==== weechat_hook_signal_send +==== hook_signal_send _Mis à jour dans la 1.0._ @@ -8813,7 +8814,7 @@ weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, "freenode;;2;;/whois FlashCode") ---- -==== weechat_hook_hsignal +==== hook_hsignal _WeeChat ≥ 0.3.4._ @@ -8940,7 +8941,7 @@ def my_hsignal_cb(data, signal, hashtable): hook = weechat.hook_hsignal("test", "my_hsignal_cb", "") ---- -==== weechat_hook_hsignal_send +==== hook_hsignal_send _WeeChat ≥ 0.3.4, mis à jour dans la 1.0._ @@ -9181,7 +9182,7 @@ weechat.hook_hsignal_send("irc_redirect_pattern", # ... ---- -==== weechat_hook_config +==== hook_config S'accrocher à une option de configuration. @@ -9249,7 +9250,7 @@ def my_config_cb(data, option, value): hook = weechat.hook_config("weechat.look.item_time_format", "my_config_cb", "") ---- -==== weechat_hook_completion +==== hook_completion Accrocher une complétion. @@ -9344,7 +9345,7 @@ hook = weechat.hook_completion("extension_item", "ma complétion !", "my_completion_cb", "") ---- -==== weechat_hook_completion_get_string +==== hook_completion_get_string _WeeChat ≥ 0.3.4._ @@ -9401,7 +9402,7 @@ def my_completion_cb(data, completion_item, buffer, completion): return weechat.WEECHAT_RC_OK ---- -==== weechat_hook_completion_list_add +==== hook_completion_list_add Ajouter un mot pour une complétion. @@ -9437,7 +9438,7 @@ weechat.hook_completion_list_add(completion, word, nick_completion, where) # exemple : voir la fonction hook_completion ci-dessus ---- -==== weechat_hook_modifier +==== hook_modifier Accrocher un modificateur. @@ -9641,7 +9642,7 @@ def my_modifier_cb(data, modifier, modifier_data, string): hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "") ---- -==== weechat_hook_modifier_exec +==== hook_modifier_exec Exécuter un ou plusieurs modificateurs. @@ -9683,7 +9684,7 @@ weechat.hook_modifier_exec(modifier, modifier_data, string) weechat.hook_modifier_exec("mon_modifier", mes_donnees, ma_chaine) ---- -==== weechat_hook_info +==== hook_info Accrocher une information (le "callback" prend et retourne une chaîne). @@ -9754,7 +9755,7 @@ hook = weechat.hook_info("mon_info", "Une information", "Info sur les paramètre "my_info_cb", "") ---- -==== weechat_hook_info_hashtable +==== hook_info_hashtable _WeeChat ≥ 0.3.4._ @@ -9835,7 +9836,7 @@ hook = weechat.hook_info_hashtable("mon_info_hashtable", "Une information", "my_info_hashtable_cb", "") ---- -==== weechat_hook_infolist +==== hook_infolist Accrocher une infolist : le "callback" retournera un pointeur vers l'infolist demandée. @@ -9920,7 +9921,7 @@ hook = weechat.hook_infolist("mon_infolist", "Mon infolist", "my_infolist_cb", "") ---- -==== weechat_hook_hdata +==== hook_hdata Accrocher un hdata : le "callback" retournera un pointeur vers le hdata demandé. @@ -9976,7 +9977,7 @@ struct t_hook *my_hdata = weechat_hook_hdata ("mon_hdata", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hook_focus +==== hook_focus Accrocher un focus : évènement souris ou touche du clavier pressée dans le mode "curseur" (mouvement libre du curseur). @@ -10117,7 +10118,7 @@ def my_focus_nicklist_cb(data, info): hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") ---- -==== weechat_hook_set +==== hook_set _WeeChat ≥ 0.3.9 (script : WeeChat ≥ 0.4.3)._ @@ -10195,7 +10196,7 @@ weechat.hook_set(hook, "stdin", "données envoyées sur le stdin du processus fi weechat.hook_set(hook, "stdin_close", "") # facultatif ---- -==== weechat_unhook +==== unhook Décrocher quelque chose qui est a été accroché. @@ -10230,7 +10231,7 @@ weechat.unhook(hook) weechat.unhook(my_hook) ---- -==== weechat_unhook_all +==== unhook_all Décrocher tout ce qui a été accroché par l'extension courante. @@ -10264,7 +10265,7 @@ weechat.unhook_all() Fonctions pour créer/interroger/fermer les tampons. -==== weechat_buffer_new +==== buffer_new Ouvrir un nouveau tampon. @@ -10353,7 +10354,7 @@ def my_close_cb(data, buffer): buffer = weechat.buffer_new("mon_buffer", "my_input_cb", "", "my_close_cb", "") ---- -==== weechat_current_buffer +==== current_buffer Retourner un pointeur vers le tampon courant (le tampon affiché par la fenêtre courante). @@ -10387,7 +10388,7 @@ buffer = weechat.current_buffer() weechat.prnt(weechat.current_buffer(), "Texte sur le tampon courant") ---- -==== weechat_buffer_search +==== buffer_search _Mis à jour dans la 1.0._ @@ -10434,7 +10435,7 @@ buffer = weechat.buffer_search(plugin, name) buffer = weechat.buffer_search("mon_extension", "mon_tampon") ---- -==== weechat_buffer_search_main +==== buffer_search_main Rechercher le tampon principal de WeeChat (tampon 'core', premier tampon affiché lorsque WeeChat démarre). @@ -10468,7 +10469,7 @@ buffer = weechat.buffer_search_main() buffer = weechat.buffer_search_main() ---- -==== weechat_buffer_clear +==== buffer_clear Effacer le contenu d'un tampon. @@ -10508,7 +10509,7 @@ if buffer != "": weechat.buffer_clear(buffer) ---- -==== weechat_buffer_close +==== buffer_close Fermer un tampon. @@ -10547,7 +10548,7 @@ buffer = weechat.buffer_new("mon_tampon", "my_input_cb", "", "my_close_cb", "") weechat.buffer_close(buffer) ---- -==== weechat_buffer_merge +==== buffer_merge Mélanger le tampon avec un autre tampon : les deux tampons continueront d'exister chacun de leur côté, mais avec le même numéro, et WeeChat affichera @@ -10587,7 +10588,7 @@ weechat.buffer_merge(buffer, target_buffer) weechat.buffer_merge(weechat.current_buffer(), weechat.buffer_search_main()) ---- -==== weechat_buffer_unmerge +==== buffer_unmerge Supprimer le mélange d'un tampon. @@ -10623,7 +10624,7 @@ weechat.buffer_unmerge(buffer, number) weechat.buffer_unmerge(weechat.current_buffer(), 1) ---- -==== weechat_buffer_get_integer +==== buffer_get_integer Retourner une valeur entière pour une propriété du tampon. @@ -10711,7 +10712,7 @@ value = weechat.buffer_get_integer(buffer, property) weechat.prnt("", "mon numéro de tampon est : %d" % weechat.buffer_get_integer(my_buffer, "number")) ---- -==== weechat_buffer_get_string +==== buffer_get_string Retourner la valeur d'une propriété du tampon sous forme de chaîne. @@ -10774,7 +10775,7 @@ weechat.prnt("", "nom / nom court du tampon sont : %s / %s" weechat.buffer_get_string(my_buffer, "short_name"))) ---- -==== weechat_buffer_get_pointer +==== buffer_get_pointer Retourner la valeur d'une propriété sous forme d'un pointeur. @@ -10817,7 +10818,7 @@ value = weechat.buffer_get_pointer(buffer, property) weechat.prnt("", "pointeur vers l'extension de mon tampon : %s" % weechat.buffer_get_pointer(my_buffer, "plugin")) ---- -==== weechat_buffer_set +==== buffer_set Affecter une valeur à une propriété d'un tampon. @@ -11041,7 +11042,7 @@ weechat.buffer_set(my_buffer, "localvar_set_toto", "abc") weechat.buffer_set(my_buffer, "localvar_del_toto", "") ---- -==== weechat_buffer_set_pointer +==== buffer_set_pointer Affecter un pointeur à une propriété d'un tampon. @@ -11099,7 +11100,7 @@ weechat_buffer_set_pointer (mon_tampon, "close_callback", &my_close_cb); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_buffer_string_replace_local_var +==== buffer_string_replace_local_var Remplacer les variables locales dans une chaîne par leurs valeurs, en utilisant les variables locales du tampon. @@ -11145,7 +11146,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test avec $toto") # str contient "test avec abc" ---- -==== weechat_buffer_match_list +==== buffer_match_list _WeeChat ≥ 0.3.5._ @@ -11205,7 +11206,7 @@ if buffer: Fonctions pour interroger les fenêtres. -==== weechat_current_window +==== current_window Retourner le pointeur vers la fenêtre courante. @@ -11238,7 +11239,7 @@ window = weechat.current_window() current_window = weechat.current_window() ---- -==== weechat_window_search_with_buffer +==== window_search_with_buffer _WeeChat ≥ 0.3.5._ @@ -11281,7 +11282,7 @@ weechat.prnt("", "fenêtre affichant le tampon core: %s" % weechat.window_search_with_buffer(weechat.buffer_search_main())) ---- -==== weechat_window_get_integer +==== window_get_integer Retourner la valeur entière d'une propriété de la fenêtre. @@ -11349,7 +11350,7 @@ weechat.prnt("", "la fenêtre courante est en position (x,y) : (%d,%d)" weechat.window_get_integer(weechat.current_window(), "win_y"))) ---- -==== weechat_window_get_string +==== window_get_string Retourner la valeur d'une propriété de la fenêtre sous forme d'une chaîne. @@ -11374,7 +11375,7 @@ Valeur de retour : * valeur de la propriété, sous forme de chaîne -==== weechat_window_get_pointer +==== window_get_pointer Retourner la valeur d'une propriété, sous forme d'un pointeur. @@ -11418,7 +11419,7 @@ weechat.prnt("", "tampon affiché dans la fenêtre courante : %s" % weechat.window_get_pointer(weechat.current_window(), "buffer")) ---- -==== weechat_window_set_title +==== window_set_title Définir le titre du terminal. @@ -11456,7 +11457,7 @@ weechat.window_set_title("nouveau titre ici") Fonctions pour la liste des pseudos. -==== weechat_nicklist_add_group +==== nicklist_add_group Ajouter un groupe dans la liste des pseudos. @@ -11523,7 +11524,7 @@ group = weechat.nicklist_add_group(my_buffer, my_parent_group, "groupe_test", "weechat.color.nicklist_group", 1) ---- -==== weechat_nicklist_search_group +==== nicklist_search_group Rechercher un groupe dans la liste des pseudos. @@ -11566,7 +11567,7 @@ group = weechat.nicklist_search_group(buffer, from_group, name) group = weechat.nicklist_search_group(my_buffer, "", "groupe_test") ---- -==== weechat_nicklist_add_nick +==== nicklist_add_nick Ajouter un pseudo dans un groupe. @@ -11638,7 +11639,7 @@ else: nick = weechat.nicklist_add_nick(my_buffer, my_group, "test_nick", color, "@", "lightgreen", 1) ---- -==== weechat_nicklist_search_nick +==== nicklist_search_nick Rechercher un pseudo dans la liste des pseudos. @@ -11681,7 +11682,7 @@ nick = weechat.nicklist_search_nick(buffer, from_group, name) nick = weechat.nicklist_search_nick(my_buffer, "", "test_nick") ---- -==== weechat_nicklist_remove_group +==== nicklist_remove_group Supprimer un groupe de la liste des pseudos. @@ -11717,7 +11718,7 @@ weechat.nicklist_remove_group(buffer, group) weechat.nicklist_remove_group(my_buffer, my_group) ---- -==== weechat_nicklist_remove_nick +==== nicklist_remove_nick Supprimer un pseudo de la liste des pseudos. @@ -11752,7 +11753,7 @@ weechat.nicklist_remove_nick(buffer, nick) weechat.nicklist_remove_nick(my_buffer, my_nick) ---- -==== weechat_nicklist_remove_all +==== nicklist_remove_all Supprimer tous les groupes/pseudos de la liste des pseudos. @@ -11785,7 +11786,7 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---- -==== weechat_nicklist_get_next_item +==== nicklist_get_next_item _WeeChat ≥ 0.3.7._ @@ -11836,7 +11837,7 @@ while (ptr_group || ptr_nick) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_nicklist_group_get_integer +==== nicklist_group_get_integer _WeeChat ≥ 0.3.4._ @@ -11881,7 +11882,7 @@ value = weechat.nicklist_group_get_integer(buffer, group, property) visible = weechat.nicklist_group_get_integer(buffer, group, "visible") ---- -==== weechat_nicklist_group_get_string +==== nicklist_group_get_string _WeeChat ≥ 0.3.4._ @@ -11926,7 +11927,7 @@ value = weechat.nicklist_group_get_string(buffer, group, property) color = weechat.nicklist_group_get_string(buffer, group, "color") ---- -==== weechat_nicklist_group_get_pointer +==== nicklist_group_get_pointer _WeeChat ≥ 0.3.4._ @@ -11970,7 +11971,7 @@ value = weechat.nicklist_group_get_pointer(buffer, group, property) parent = weechat.nicklist_group_get_pointer(buffer, group, "parent") ---- -==== weechat_nicklist_group_set +==== nicklist_group_set _WeeChat ≥ 0.3.4._ @@ -12040,7 +12041,7 @@ weechat.nicklist_group_set(buffer, group, "color", "yellow") weechat.nicklist_group_set(buffer, group, "visible", "0") ---- -==== weechat_nicklist_nick_get_integer +==== nicklist_nick_get_integer _WeeChat ≥ 0.3.4._ @@ -12084,7 +12085,7 @@ value = weechat.nicklist_nick_get_integer(buffer, nick, property) visible = weechat.nicklist_nick_get_integer(buffer, nick, "visible") ---- -==== weechat_nicklist_nick_get_string +==== nicklist_nick_get_string _WeeChat ≥ 0.3.4._ @@ -12131,7 +12132,7 @@ value = weechat.nicklist_nick_get_string(buffer, nick, property) color = weechat.nicklist_nick_get_string(buffer, nick, "color") ---- -==== weechat_nicklist_nick_get_pointer +==== nicklist_nick_get_pointer _WeeChat ≥ 0.3.4._ @@ -12175,7 +12176,7 @@ value = weechat.nicklist_nick_get_pointer(buffer, nick, property) group = weechat.nicklist_nick_get_pointer(buffer, nick, "group") ---- -==== weechat_nicklist_nick_set +==== nicklist_nick_set _WeeChat ≥ 0.3.4._ @@ -12263,7 +12264,7 @@ weechat.nicklist_nick_set(buffer, nick, "visible", "0") Fonctions pour les barres. -==== weechat_bar_item_search +==== bar_item_search Rechercher un objet de barre. @@ -12300,7 +12301,7 @@ bar_item = weechat.bar_item_search(name) bar_item = weechat.bar_item_search("myitem") ---- -==== weechat_bar_item_new +==== bar_item_new _Mis à jour dans la 0.4.2._ @@ -12388,7 +12389,7 @@ def my_build_callback2(data, item, window, buffer, extra_info): bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2 ---- -==== weechat_bar_item_update +==== bar_item_update Mettre à jour le contenu d'un objet de barre, en appelant son "callback" de construction. @@ -12422,7 +12423,7 @@ weechat.bar_item_update(name) weechat.bar_item_update("myitem") ---- -==== weechat_bar_item_remove +==== bar_item_remove Supprimer un objet de barre. @@ -12455,7 +12456,7 @@ weechat.bar_item_remove(item) weechat.bar_item_remove(myitem) ---- -==== weechat_bar_search +==== bar_search Rechercher une barre. @@ -12492,7 +12493,7 @@ bar = weechat.bar_search(name) bar = weechat.bar_search("mybar") ---- -==== weechat_bar_new +==== bar_new Créer une nouvelle barre. @@ -12604,7 +12605,7 @@ bar = weechat.bar_new("mybar", "off", "100", "window", "", "top", "horizontal", "0", "5", "default", "cyan", "blue", "off", "time,buffer_number+buffer_name") ---- -==== weechat_bar_set +==== bar_set Affecter une nouvelle valeur pour une propriété de la barre. @@ -12646,7 +12647,7 @@ weechat.bar_set(bar, property, value) weechat.bar_set(my_bar, "position", "bottom") ---- -==== weechat_bar_update +==== bar_update Mettre à jour le contenu d'une barre à l'écran. @@ -12679,7 +12680,7 @@ weechat.bar_update(name) weechat.bar_update("mybar") ---- -==== weechat_bar_remove +==== bar_remove Supprimer une barre. @@ -12717,7 +12718,7 @@ weechat.bar_remove(my_bar) Fonctions pour exécuter des commandes WeeChat. -==== weechat_command +==== command _Mis à jour dans la 1.1._ @@ -12767,7 +12768,7 @@ rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois Fonctions pour le réseau. -==== weechat_network_pass_proxy +==== network_pass_proxy Établir une connexion/authentification avec un proxy. @@ -12813,7 +12814,7 @@ else [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_network_connect_to +==== network_connect_to _Mis à jour dans la 0.4.3._ @@ -12872,7 +12873,7 @@ Cette fonction n'est pas disponible dans l'API script. Fonctions pour obtenir des informations. -==== weechat_info_get +==== info_get Retourner une information, sous forme de chaîne, de WeeChat ou d'une extension. @@ -12921,7 +12922,7 @@ weechat.prnt("", "La version de WeeChat est : %s (compilée le %s)" weechat.prnt("", "Le répertoire de WeeChat est : %s" % weechat.info_get("weechat_dir", "")) ---- -==== weechat_info_get_hashtable +==== info_get_hashtable _WeeChat ≥ 0.3.4._ @@ -13012,7 +13013,7 @@ Chaque variable a un type et une valeur. Les types possibles sont : données * 'time' : date/heure -==== weechat_infolist_new +==== infolist_new Créer une "infolist". @@ -13045,7 +13046,7 @@ infolist = weechat.infolist_new() infolist = weechat.infolist_new() ---- -==== weechat_infolist_new_item +==== infolist_new_item Ajouter un objet dans l'infolist. @@ -13082,7 +13083,7 @@ item = weechat.infolist_new_item(infolist) item = weechat.infolist_new_item(infolist) ---- -==== weechat_infolist_new_var_integer +==== infolist_new_var_integer Ajouter une variable de type "integer" dans l'objet de l'infolist. @@ -13125,7 +13126,7 @@ var = weechat.infolist_new_var_integer(item, name, value) var = weechat.infolist_new_var_integer(item, "mon_entier", 123) ---- -==== weechat_infolist_new_var_string +==== infolist_new_var_string Ajouter une variable de type "string" dans l'objet de l'infolist. @@ -13168,7 +13169,7 @@ var = weechat.infolist_new_var_string(item, name, value) var = weechat.infolist_new_var_string(item, "ma_chaine", "valeur") ---- -==== weechat_infolist_new_var_pointer +==== infolist_new_var_pointer Ajouter une variable de type "pointer" dans l'objet de l'infolist. @@ -13211,7 +13212,7 @@ var = weechat.infolist_new_var_pointer(item, name, pointer) var = weechat.infolist_new_var_pointer(item, "mon_pointeur", pointer) ---- -==== weechat_infolist_new_var_buffer +==== infolist_new_var_buffer Ajouter une variable de type "buffer" dans l'objet de l'infolist. @@ -13251,7 +13252,7 @@ struct t_infolist_var *var = weechat_infolist_new_var_buffer (item, [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_infolist_new_var_time +==== infolist_new_var_time Ajouter une variable de type "time" dans l'objet de l'infolist. @@ -13294,7 +13295,7 @@ var = weechat.infolist_new_var_time(item, name, time) var = weechat.infolist_new_var_time(item, "mon_time", int(time.time())) ---- -==== weechat_infolist_get +==== infolist_get Retourner une "infolist" de WeeChat ou d'une extension. @@ -13350,7 +13351,7 @@ infolist = weechat.infolist_get(infolist_name, pointer, arguments) infolist = weechat.infolist_get("irc_server", "", "") ---- -==== weechat_infolist_next +==== infolist_next Déplacer le "curseur" vers l'objet suivant dans l'infolist. Le premier appel à cette fonction sur une infolist déplace le curseur sur le premier objet de @@ -13401,7 +13402,7 @@ else: # pas d'autre objet disponible ---- -==== weechat_infolist_prev +==== infolist_prev Déplacer le "curseur" vers l'objet précédent dans l'infolist. Le premier appel à cette fonction sur une infolist déplace le curseur sur le dernier objet de @@ -13452,7 +13453,7 @@ else: # pas d'autre objet disponible ---- -==== weechat_infolist_reset_item_cursor +==== infolist_reset_item_cursor Réinitialiser le "curseur" de l'infolist. @@ -13485,7 +13486,7 @@ weechat.infolist_reset_item_cursor(infolist) weechat.infolist_reset_item_cursor(infolist) ---- -==== weechat_infolist_search_var +==== infolist_search_var _WeeChat ≥ 0.4.3._ @@ -13532,7 +13533,7 @@ if weechat.infolist_search_var(infolist, "name"): # ... ---- -==== weechat_infolist_fields +==== infolist_fields Retourner la liste des champs pour l'objet courant de l'infolist. @@ -13576,7 +13577,7 @@ fields = weechat.infolist_fields(infolist) # "i:mon_entier,s:ma_chaine,p:mon_pointeur,b:mon_buffer,t:ma_date" ---- -==== weechat_infolist_integer +==== infolist_integer Retourner la valeur de la variable de l'objet courant de l'infolist, sous forme d'entier. @@ -13616,7 +13617,7 @@ value = weechat.infolist_integer(infolist, var) weechat.prnt("", "entier = %d" % weechat.infolist_integer(infolist, "mon_entier")) ---- -==== weechat_infolist_string +==== infolist_string Retourner la valeur de la variable de l'objet courant de l'infolist, sous forme de chaîne de caractères. @@ -13656,7 +13657,7 @@ value = weechat.infolist_string(infolist, var) weechat.prnt("", "chaîne = %s" % weechat.infolist_string(infolist, "ma_chaine")) ---- -==== weechat_infolist_pointer +==== infolist_pointer Retourner la valeur de la variable de l'objet courant de l'infolist, sous forme de pointeur. @@ -13696,7 +13697,7 @@ value = weechat.infolist_pointer(infolist, var) weechat.prnt("", "pointeur = 0x%s" % weechat.infolist_pointer(infolist, "mon_pointeur")) ---- -==== weechat_infolist_buffer +==== infolist_buffer Retourner la valeur de la variable de l'objet courant de l'infolist, sous forme de tampon de données. @@ -13733,7 +13734,7 @@ weechat_printf (NULL, "buffer = 0x%lx, taille = %d", [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_infolist_time +==== infolist_time Retourner la valeur de la variable de l'objet courant de l'infolist, sous forme de date/heure. @@ -13773,7 +13774,7 @@ value = weechat.infolist_time(infolist, var) weechat.prnt("", "date/heure = %ld" % weechat.infolist_time(infolist, "mon_time")) ---- -==== weechat_infolist_free +==== infolist_free Supprimer une infolist. @@ -13818,7 +13819,7 @@ les variables du hdata. + Le seul moyen pour mettre à jour des données est d'appeler la fonction <<_weechat_hdata_update,weechat_hdata_update>>. -==== weechat_hdata_new +==== hdata_new _WeeChat ≥ 0.3.6, mis à jour dans la 0.3.9 et 0.4.0._ @@ -13888,7 +13889,7 @@ struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, 0 [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_new_var +==== hdata_new_var _WeeChat ≥ 0.3.6._ @@ -13973,7 +13974,7 @@ WEECHAT_HDATA_VAR(struct t_myplugin_list, next, POINTER, 0, NULL, "myplugin_list [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_new_list +==== hdata_new_list _WeeChat ≥ 0.3.6, mis à jour dans la 1.0._ @@ -14036,7 +14037,7 @@ WEECHAT_HDATA_LIST(last_buffer, 0); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_get +==== hdata_get _WeeChat ≥ 0.3.6._ @@ -14085,7 +14086,7 @@ hdata = weechat.hdata_get(hdata_name) hdata = weechat.hdata_get("irc_server") ---- -==== weechat_hdata_get_var_offset +==== hdata_get_var_offset _WeeChat ≥ 0.3.6._ @@ -14125,7 +14126,7 @@ offset = weechat.hdata_get_var_offset(hdata, name) offset = weechat.hdata_get_var_offset(hdata, "name") ---- -==== weechat_hdata_get_var_type +==== hdata_get_var_type _WeeChat ≥ 0.3.6._ @@ -14190,7 +14191,7 @@ switch (type) [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_get_var_type_string +==== hdata_get_var_type_string _WeeChat ≥ 0.3.6._ @@ -14230,7 +14231,7 @@ type = weechat.hdata_get_var_type_string(hdata, name) weechat.prnt("", "type = %s" % weechat.hdata_get_var_type_string(hdata, "name")) ---- -==== weechat_hdata_get_var_array_size +==== hdata_get_var_array_size _WeeChat ≥ 0.3.9._ @@ -14272,7 +14273,7 @@ array_size = weechat.hdata_get_var_array_size(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_array_size_string +==== hdata_get_var_array_size_string _WeeChat ≥ 0.3.9._ @@ -14316,7 +14317,7 @@ array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_hdata +==== hdata_get_var_hdata _WeeChat ≥ 0.3.6._ @@ -14356,7 +14357,7 @@ hdata_name = weechat.hdata_get_var_hdata(hdata, name) weechat.prnt("", "hdata = %s" % weechat.hdata_get_var_hdata(hdata, "name")) ---- -==== weechat_hdata_get_var +==== hdata_get_var _WeeChat ≥ 0.3.6._ @@ -14391,7 +14392,7 @@ void *pointer = weechat_hdata_get_var (hdata, buffer, "name"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_get_var_at_offset +==== hdata_get_var_at_offset _WeeChat ≥ 0.3.6._ @@ -14428,7 +14429,7 @@ void *pointer = weechat_hdata_get_var_at_offset (hdata, buffer, offset); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_get_list +==== hdata_get_list _WeeChat ≥ 0.3.6._ @@ -14470,7 +14471,7 @@ hdata = weechat.hdata_get("buffer") buffers = weechat.hdata_get_list(hdata, "gui_buffers") ---- -==== weechat_hdata_check_pointer +==== hdata_check_pointer _WeeChat ≥ 0.3.7, mis à jour dans la 1.0._ @@ -14532,7 +14533,7 @@ else: # ... ---- -==== weechat_hdata_move +==== hdata_move _WeeChat ≥ 0.3.6._ @@ -14590,7 +14591,7 @@ if buffer: buffer = weechat.hdata_move(hdata, buffer, -1) ---- -==== weechat_hdata_search +==== hdata_search _WeeChat ≥ 0.4.1._ @@ -14651,7 +14652,7 @@ if server: # ... ---- -==== weechat_hdata_char +==== hdata_char _WeeChat ≥ 0.3.7._ @@ -14695,7 +14696,7 @@ value = weechat.hdata_char(hdata, pointer, name) weechat.prnt("", "letter = %c" % weechat.hdata_char(hdata, pointer, "letter")) ---- -==== weechat_hdata_integer +==== hdata_integer _WeeChat ≥ 0.3.6._ @@ -14743,7 +14744,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "number = %d" % weechat.hdata_integer(hdata, buffer, "number")) ---- -==== weechat_hdata_long +==== hdata_long _WeeChat ≥ 0.3.6._ @@ -14787,7 +14788,7 @@ value = weechat.hdata_long(hdata, pointer, name) weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar")) ---- -==== weechat_hdata_string +==== hdata_string _WeeChat ≥ 0.3.6._ @@ -14835,7 +14836,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "name = %s" % weechat.hdata_string(hdata, buffer, "name")) ---- -==== weechat_hdata_pointer +==== hdata_pointer _WeeChat ≥ 0.3.6._ @@ -14883,7 +14884,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "lines = %lx" % weechat.hdata_pointer(hdata, buffer, "lines")) ---- -==== weechat_hdata_time +==== hdata_time _WeeChat ≥ 0.3.6._ @@ -14953,7 +14954,7 @@ if ptr: weechat.prnt("", "heure de la première ligne affichée = %s" % time.strftime("%F %T", time.localtime(int(date)))) ---- -==== weechat_hdata_hashtable +==== hdata_hashtable _WeeChat ≥ 0.3.7._ @@ -15006,7 +15007,7 @@ for key in hash: weechat.prnt("", " %s == %s" % (key, hash[key])) ---- -==== weechat_hdata_set +==== hdata_set _WeeChat ≥ 0.3.9._ @@ -15047,7 +15048,7 @@ weechat_hdata_set (hdata, pointer, "message", "test"); [NOTE] Cette fonction n'est pas disponible dans l'API script. -==== weechat_hdata_update +==== hdata_update _WeeChat ≥ 0.3.9._ @@ -15136,7 +15137,7 @@ if own_lines: weechat.hdata_update(hdata, line_data, {"date": str(weechat.hdata_time(hdata, line_data, "date") - 3600)}) ---- -==== weechat_hdata_get_string +==== hdata_get_string _WeeChat ≥ 0.3.6._ @@ -15199,7 +15200,7 @@ weechat.prnt("", "listes dans le hdata: %s" % weechat.hdata_get_string(hdata, "l Fonctions pour la mise à jour de WeeChat (commande "/upgrade"). -==== weechat_upgrade_new +==== upgrade_new Créer ou lire un fichier pour la mise à jour. @@ -15240,7 +15241,7 @@ upgrade_file = weechat.upgrade_new(filename, write) upgrade_file = weechat.upgrade_new("mon_fichier", 1) ---- -==== weechat_upgrade_write_object +==== upgrade_write_object Écrire un objet dans le fichier de mise à jour. @@ -15288,7 +15289,7 @@ rc = weechat.upgrade_write_object(upgrade_file, object_id, infolist) weechat.upgrade_write_object(upgrade_file, 1, infolist) ---- -==== weechat_upgrade_read +==== upgrade_read Lire un fichier de mise à jour. @@ -15355,7 +15356,7 @@ def my_upgrade_read_cb(upgrade_file, object_id, infolist): weechat.upgrade_read(upgrade_file, "my_upgrade_read_cb", "")) ---- -==== weechat_upgrade_close +==== upgrade_close Fermer un fichier de mise à jour. diff --git a/doc/fr/weechat_quickstart.fr.asciidoc b/doc/fr/weechat_quickstart.fr.asciidoc index 430c5de8e..fb8566338 100644 --- a/doc/fr/weechat_quickstart.fr.asciidoc +++ b/doc/fr/weechat_quickstart.fr.asciidoc @@ -2,7 +2,8 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: +:toc2: +:max-width: 100% [[start]] diff --git a/doc/fr/weechat_relay_protocol.fr.asciidoc b/doc/fr/weechat_relay_protocol.fr.asciidoc index f00b7a0ff..64e695891 100644 --- a/doc/fr/weechat_relay_protocol.fr.asciidoc +++ b/doc/fr/weechat_relay_protocol.fr.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% Ce document est une spécification du protocole Relay de WeeChat : le protocole diff --git a/doc/fr/weechat_scripting.fr.asciidoc b/doc/fr/weechat_scripting.fr.asciidoc index ac8d83890..8831a0d5d 100644 --- a/doc/fr/weechat_scripting.fr.asciidoc +++ b/doc/fr/weechat_scripting.fr.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: +:toc2: :toclevels: 3 +:max-width: 100% Ce manuel documente le client de messagerie instantanée WeeChat, il fait diff --git a/doc/fr/weechat_tester.fr.asciidoc b/doc/fr/weechat_tester.fr.asciidoc index 02d1e1587..c035d1ce7 100644 --- a/doc/fr/weechat_tester.fr.asciidoc +++ b/doc/fr/weechat_tester.fr.asciidoc @@ -2,7 +2,8 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: +:toc2: +:max-width: 100% [[purpose]] diff --git a/doc/fr/weechat_user.fr.asciidoc b/doc/fr/weechat_user.fr.asciidoc index 52a67d274..2b132978c 100644 --- a/doc/fr/weechat_user.fr.asciidoc +++ b/doc/fr/weechat_user.fr.asciidoc @@ -2,8 +2,9 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: fr -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% Ce manuel documente le client de messagerie instantanée WeeChat, il fait diff --git a/doc/it/CMakeLists.txt b/doc/it/CMakeLists.txt index 1a99cccd1..de65850d3 100644 --- a/doc/it/CMakeLists.txt +++ b/doc/it/CMakeLists.txt @@ -21,12 +21,13 @@ if(ENABLE_MAN) # man page add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.it.asciidoc + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc . + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc . + COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.it.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.it.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (it)" ) add_custom_target(doc-man-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.it.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.it.html" ) add_custom_target(doc-user-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html) @@ -51,10 +54,12 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # plugin API reference add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_API} -o weechat_plugin_api.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.it.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_plugin_api.it.html" ) add_custom_target(doc-plugin-api-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.it.html) @@ -63,9 +68,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.it.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.it.html" ) add_custom_target(doc-scripting-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.it.html) @@ -74,9 +81,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.it.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.it.html" ) add_custom_target(doc-faq-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.it.html) @@ -85,9 +94,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.it.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.it.html" ) add_custom_target(doc-quickstart-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.it.html) @@ -96,9 +107,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.it.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.it.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.it.html" ) add_custom_target(doc-tester-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.it.html) diff --git a/doc/it/Makefile.am b/doc/it/Makefile.am index d8a3f5249..d07cbf51e 100644 --- a/doc/it/Makefile.am +++ b/doc/it/Makefile.am @@ -59,27 +59,27 @@ weechat.1: weechat.1.it.asciidoc cmdline_options.it.asciidoc # user's guide weechat_user.it.html: weechat_user.it.asciidoc cmdline_options.it.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.it.html $(abs_top_srcdir)/doc/it/weechat_user.it.asciidoc # plugin API reference weechat_plugin_api.it.html: weechat_plugin_api.it.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_plugin_api.it.html $(abs_top_srcdir)/doc/it/weechat_plugin_api.it.asciidoc # scripting guide weechat_scripting.it.html: weechat_scripting.it.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.it.html $(abs_top_srcdir)/doc/it/weechat_scripting.it.asciidoc # FAQ weechat_faq.it.html: weechat_faq.it.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.it.html $(abs_top_srcdir)/doc/it/weechat_faq.it.asciidoc # quickstart weechat_quickstart.it.html: weechat_quickstart.it.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.it.html $(abs_top_srcdir)/doc/it/weechat_quickstart.it.asciidoc # tester's guide weechat_tester.it.html: weechat_tester.it.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.it.html $(abs_top_srcdir)/doc/it/weechat_tester.it.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.it.html $(abs_top_srcdir)/doc/it/weechat_tester.it.asciidoc # install man/docs diff --git a/doc/it/weechat.1.it.asciidoc b/doc/it/weechat.1.it.asciidoc index bf53a00a7..f4ceb114c 100644 --- a/doc/it/weechat.1.it.asciidoc +++ b/doc/it/weechat.1.it.asciidoc @@ -92,6 +92,12 @@ $HOME/.weechat/weechat.log:: == AUTHORS +This manpage was written by Sébastien Helleu <flashcode@flashtux.org>. + +// Translated by Name <email@domain.com>. + +== COPYRIGHT + WeeChat is written by Sébastien Helleu and contributors (complete list is in the AUTHORS.asciidoc file). diff --git a/doc/it/weechat_faq.it.asciidoc b/doc/it/weechat_faq.it.asciidoc index 5dca3e523..f89cda773 100644 --- a/doc/it/weechat_faq.it.asciidoc +++ b/doc/it/weechat_faq.it.asciidoc @@ -3,12 +3,20 @@ :email: flashcode@flashtux.org :lang: it :toc: +:toc-placement: manual +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2009-2013 + [NOTE] Questo documento è stato scritto per le versioni di WeeChat ≥ 0.3.0, ma dovrebbe essere usato preferibilmente con l'ultima versione stabile di WeeChat. +toc::[] + [[general]] == Generale diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc index 962867d9e..d8fae2550 100644 --- a/doc/it/weechat_plugin_api.it.asciidoc +++ b/doc/it/weechat_plugin_api.it.asciidoc @@ -2,8 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: it -:toc: +:toc2: :toclevels: 4 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2010-2012 Questo manuale documenta il client di chat WeeChat, ed è parte @@ -229,7 +236,7 @@ Per ogni funzione, viene fornita: Funzioni per ottenere informazioni sui plugin. -==== weechat_plugin_get_name +==== plugin_get_name Ottiene il nome del plugin. @@ -275,7 +282,7 @@ Molte delle funzioni stringa che seguono sono già disponibili tramite funzioni standard in C, ma si raccomanda di utilizzare le funzioni in questa API perché compatibili con UTF-8 e il locale. -==== weechat_charset_set +==== charset_set Imposta il nuovo set caratteri del nuovo plugin (il set caratteri predefinito è 'UTF-8', così se il plugin usa 'UTF-8' non è necessario chiamare questa @@ -310,7 +317,7 @@ weechat.charset_set(charset) weechat.charset_set("iso-8859-1") ---- -==== weechat_iconv_to_internal +==== iconv_to_internal Converte le stringhe per il set caratteri interno di WeeChat (UTF-8). @@ -352,7 +359,7 @@ str = weechat.iconv_to_internal(charset, string) str = weechat.iconv_to_internal("iso-8859-1", "iso string: é à") ---- -==== weechat_iconv_from_internal +==== iconv_from_internal Converte la stringa dal set caratteri interno di WeeChat (UTF-8) in un'altra. @@ -394,7 +401,7 @@ str = weechat.iconv_from_internal(charset, string) str = weechat.iconv_from_internal("iso-8859-1", "utf-8 string: é à") ---- -==== weechat_gettext +==== gettext Restituisce la stringa tradotta (dipende dalla lingua). @@ -431,7 +438,7 @@ str = weechat.gettext(string) str = weechat.gettext("hello") ---- -==== weechat_ngettext +==== ngettext Restituisce la stringa tradotta, utilizzando il singolare o il plurale, in base all'argomento 'count' (contatore). @@ -474,7 +481,7 @@ num_files = 2 str = weechat.ngettext("file", "files", num_files) ---- -==== weechat_strndup +==== strndup Restituisce una stringa duplicata, con un massimo di caratteri impostato su 'chars'. @@ -508,7 +515,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_tolower +==== string_tolower Converte una stringa UTF-8 in minuscolo. @@ -534,7 +541,7 @@ weechat_string_tolower (str); /* str ora è: "abcdé" */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_toupper +==== string_toupper Converte una stringa UTF-8 in maiuscolo. @@ -560,7 +567,7 @@ weechat_string_toupper (str); /* str ora è: "ABCDé" */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strcasecmp +==== strcasecmp // TRANSLATION MISSING _Updated in 1.0._ @@ -595,7 +602,7 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strcasecmp_range +==== strcasecmp_range // TRANSLATION MISSING _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -638,7 +645,7 @@ int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 * [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strncasecmp +==== strncasecmp // TRANSLATION MISSING _Updated in 1.0._ @@ -675,7 +682,7 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strncasecmp_range +==== strncasecmp_range // TRANSLATION MISSING _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -719,7 +726,7 @@ int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strcmp_ignore_chars +==== strcmp_ignore_chars // TRANSLATION MISSING _Updated in 1.0._ @@ -759,7 +766,7 @@ int diff = weechat_strcmp_ignore_chars ("a-b", "--a-e", "-", 1); /* == -3 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strcasestr +==== strcasestr Cerca una stringa non sensibile alle maiuscole e indipendente dalla localizzazione. @@ -790,7 +797,7 @@ char *pos = weechat_strcasestr ("aBcDeF", "de"); /* risultato: puntatore a "DeF [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_strlen_screen +==== strlen_screen _WeeChat ≥ 0.4.2._ @@ -834,7 +841,7 @@ length = weechat.strlen_screen(string) length = weechat.strlen_screen("é") # 1 ---- -==== weechat_string_match +==== string_match // TRANSLATION MISSING _Updated in 1.0._ @@ -892,7 +899,7 @@ match4 = weechat.string_match("abcdef", "*de*", 0) # 1 match5 = weechat.string_match("abcdef", "*b*d*", 0) # 1 ---- -==== weechat_string_expand_home +==== string_expand_home _WeeChat ≥ 0.3.3._ @@ -928,7 +935,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_remove_quotes +==== string_remove_quotes Rimuove le virgolette all'inizio e alla fine della stringa (ignora gli spazi se presenti prima delle prime virgolette o dopo le ultime virgolette). @@ -963,7 +970,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_strip +==== string_strip Rimuove i caratteri ad inizio/fine della stringa. @@ -998,7 +1005,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_convert_escaped_chars +==== string_convert_escaped_chars _WeeChat ≥ 1.0._ @@ -1050,7 +1057,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_mask_to_regex +==== string_mask_to_regex Restituisce una espressione regolare con una mask, dove l'unico carattere speciale è "`*`". Tutti gli altri caratteri speciali per le espressioni regolari @@ -1093,7 +1100,7 @@ regex = weechat.string_mask_to_regex(mask) regex = weechat.string_mask_to_regex("test*mask") # "test.*mask" ---- -==== weechat_string_regex_flags +==== string_regex_flags _WeeChat ≥ 0.3.7._ @@ -1151,7 +1158,7 @@ const char *ptr_regex = weechat_string_regex_flags (regex, REG_EXTENDED, &flags) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_regcomp +==== string_regcomp _WeeChat ≥ 0.3.7._ @@ -1198,7 +1205,7 @@ if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_has_highlight +==== string_has_highlight Controlla se una stringa ha uno o più eventi, usando la lista di parole per gli eventi. @@ -1238,7 +1245,7 @@ highlight = weechat.string_has_highlight(string, highlight_words) highlight = weechat.string_has_highlight("my test string", "test,word2") # 1 ---- -==== weechat_string_has_highlight_regex +==== string_has_highlight_regex _WeeChat ≥ 0.3.4._ @@ -1283,7 +1290,7 @@ highlight = weechat.string_has_highlight_regex(string, regex) highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1 ---- -==== weechat_string_replace +==== string_replace Sostituisce tutte le ricorrenze di una stringa con un'altra. @@ -1318,7 +1325,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_replace_regex +==== string_replace_regex _WeeChat ≥ 1.0._ @@ -1385,7 +1392,7 @@ if (weechat_string_regcomp (&my_regex, "([0-9]{4})-([0-9]{2})-([0-9]{2})", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_split +==== string_split Divide una stringa in base a uno o più delimitatori. @@ -1444,7 +1451,7 @@ weechat_string_free_split (argv); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_split_shell +==== string_split_shell _WeeChat ≥ 1.0._ @@ -1491,7 +1498,7 @@ weechat_string_free_split (argv); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_free_split +==== string_free_split Libera la memoria usata per la divisione di una stringa. @@ -1521,7 +1528,7 @@ weechat_string_free_split (argv); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_build_with_split_string +==== string_build_with_split_string Compila una stringa con una stringa divisa. @@ -1560,7 +1567,7 @@ free (str); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_split_command +==== string_split_command Divide una lista di comandi separata da 'separator' (che può essere omesso aggiungendo "\" nella stringa). @@ -1596,7 +1603,7 @@ weechat_free_split_command (argv); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_free_split_command +==== string_free_split_command Libera la memoria utilizzata dalla divisione di un comando. @@ -1624,7 +1631,7 @@ weechat_free_split_command (argv); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_format_size +==== string_format_size Compila una stringa con un file di dimensione fissa ed una unità tradotta nella lingua locale. @@ -1671,7 +1678,7 @@ char *str = weechat_string_format_size (2097152); /* str == "2.10 MB" */ free (str); ---- -==== weechat_string_remove_color +==== string_remove_color Rimuove i colori di WeeChat da una stringa. @@ -1721,7 +1728,7 @@ str = weechat.string_remove_color(string, replacement) str = weechat.string_remove_color(my_string, "?") ---- -==== weechat_string_encode_base64 +==== string_encode_base64 _WeeChat ≥ 0.3.2._ @@ -1753,7 +1760,7 @@ weechat_string_encode_base64 (string, strlen (string), result); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_decode_base64 +==== string_decode_base64 _WeeChat ≥ 0.3.2._ @@ -1789,7 +1796,7 @@ length = weechat_string_decode_base64 (string, result); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_string_is_command_char +==== string_is_command_char _WeeChat ≥ 0.3.2._ @@ -1832,7 +1839,7 @@ command_char1 = weechat.string_is_command_char("/test") # == 1 command_char2 = weechat.string_is_command_char("test") # == 0 ---- -==== weechat_string_input_for_buffer +==== string_input_for_buffer _WeeChat ≥ 0.3.2._ @@ -1876,7 +1883,7 @@ str2 = weechat.string_input_for_buffer("/test") # "" str3 = weechat.string_input_for_buffer("//test") # "/test" ---- -==== weechat_string_eval_expression +==== string_eval_expression // TRANSLATION MISSING _WeeChat ≥ 0.4.0, updated in 0.4.2 and 1.1._ @@ -2073,7 +2080,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio Alcune funzioni stringa UTF-8. -==== weechat_utf8_has_8bits +==== utf8_has_8bits Verifica che una stringa abbia caratteri a 8-bit. @@ -2105,7 +2112,7 @@ if (weechat_utf8_has_8bits (string)) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_is_valid +==== utf8_is_valid Verifica che una stringa sia valida in UTF-8. @@ -2144,7 +2151,7 @@ else [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_normalize +==== utf8_normalize Normalizza le stringhe UTF-8: rimuove i caratteri non UTF-8 e li sostituisce con un carattere. @@ -2171,7 +2178,7 @@ weechat_utf8_normalize (string, '?'); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_prev_char +==== utf8_prev_char Restituisce il puntatore al carattere UTF-8 precedente in una stringa. @@ -2203,7 +2210,7 @@ char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_next_char +==== utf8_next_char Restituisce il puntatore al successivo carattere UTF-8 in una stringa. @@ -2233,7 +2240,7 @@ char *next_char = weechat_utf8_next_char (string); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_char_int +==== utf8_char_int Restituisce un carattere UTF-8 come intero. @@ -2262,7 +2269,7 @@ int char_int = weechat_utf8_char_int ("être"); /* "ê" come intero */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_char_size +==== utf8_char_size Restituisce la dimensione di un carattere UTF-8 (in byte). @@ -2291,7 +2298,7 @@ int char_size = weechat_utf8_char_size ("être"); /* == 2 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_strlen +==== utf8_strlen Restituisce la lunghezza della stringa UTF-8 (nei caratteri UTF-8). @@ -2320,7 +2327,7 @@ int length = weechat_utf8_strlen ("chêne"); /* == 5 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_strnlen +==== utf8_strnlen Restituisce la lunghezza della stringa UTF-8 (in caratteri UTF-8), per un massimo di 'bytes' nella stringa. @@ -2351,7 +2358,7 @@ int length = weechat_utf8_strnlen ("chêne", 4); /* == 3 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_strlen_screen +==== utf8_strlen_screen Restituisce il numero di caratteri necessari per visualizzare la stringa UTF-8 su schermo. @@ -2382,7 +2389,7 @@ int length_on_screen = weechat_utf8_strlen_screen ("é"); /* == 1 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_charcmp +==== utf8_charcmp // TRANSLATION MISSING _Updated in 1.0._ @@ -2417,7 +2424,7 @@ int diff = weechat_utf8_charcmp ("aaa", "ccc"); /* == -2 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_charcasecmp +==== utf8_charcasecmp // TRANSLATION MISSING _Updated in 1.0._ @@ -2452,7 +2459,7 @@ int diff = weechat_utf8_charcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_char_size_screen +==== utf8_char_size_screen Restituisce il numero di caratteri necessari per visualizzare il carattere UTF-8 sullo schermo. @@ -2483,7 +2490,7 @@ int length_on_screen = weechat_utf8_char_size_screen ("é"); /* == 1 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_add_offset +==== utf8_add_offset Si sposta in avanti di N caratteri in una stringa UTF-8. @@ -2514,7 +2521,7 @@ char *str2 = weechat_utf8_add_offset (str, 3); /* points to "ne" */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_real_pos +==== utf8_real_pos Restituisce la posizione reale nella stringa UTF-8. @@ -2544,7 +2551,7 @@ int pos = weechat_utf8_real_pos ("chêne", 3); /* == 4 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_pos +==== utf8_pos Restituisce la posizione nella stringa UTF-8. @@ -2574,7 +2581,7 @@ int pos = weechat_utf8_pos ("chêne", 4); /* == 3 */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_utf8_strndup +==== utf8_strndup Restituisce la stringa duplicata, di lunghezza massima 'lenght'. @@ -2611,7 +2618,7 @@ Questa funzione non è disponibile nelle API per lo scripting. Alcune funzioni legate alle cartelle. -==== weechat_mkdir_home +==== mkdir_home Crea una cartella nella home di WeeChat. @@ -2652,7 +2659,7 @@ weechat.mkdir_home(directory, mode) weechat.mkdir_home("temp", 0755) ---- -==== weechat_mkdir +==== mkdir Crea una cartella. @@ -2693,7 +2700,7 @@ weechat.mkdir(directory, mode) weechat.mkdir("/tmp/mydir", 0755) ---- -==== weechat_mkdir_parents +==== mkdir_parents Crea una cartella e le cartelle genitore se necessario. @@ -2734,7 +2741,7 @@ weechat.mkdir_parents(directory, mode) weechat.mkdir_parents("/tmp/my/dir", 0755) ---- -==== weechat_exec_on_files +==== exec_on_files Cerca i file in una cartella ed esegue una callback su ogni file. @@ -2773,7 +2780,7 @@ weechat_exec_on_files ("/tmp", 0, NULL, &callback); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_file_get_content +==== file_get_content _WeeChat ≥ 0.3.1._ @@ -2814,7 +2821,7 @@ Questa funzione non è disponibile nelle API per lo scripting. Alcune funzioni utili. -==== weechat_util_timeval_cmp +==== util_timeval_cmp Confronta due strutture "timeval". @@ -2849,7 +2856,7 @@ if (weechat_util_timeval_cmp (&tv1, &tv2) > 0) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_util_timeval_diff +==== util_timeval_diff // TRANSLATION MISSING _Updated in 1.1._ @@ -2888,7 +2895,7 @@ long long diff = weechat_util_timeval_diff (&tv1, &tv2); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_util_timeval_add +==== util_timeval_add // TRANSLATION MISSING _Updated in 1.1._ @@ -2923,7 +2930,7 @@ weechat_util_timeval_add (&tv, 2000000); /* aggiunge 2 secondi */ [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_util_get_time_string +==== util_get_time_string _WeeChat ≥ 0.3.2._ @@ -2952,7 +2959,7 @@ weechat_printf (NULL, "date: %s", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_util_version_number +==== util_version_number _WeeChat ≥ 0.3.9._ @@ -2989,7 +2996,7 @@ Questa funzione non è disponibile nelle API per lo scripting. Funzioni lista ordinata. -==== weechat_list_new +==== list_new Crea una nuova lista. @@ -3022,7 +3029,7 @@ list = weechat.list_new() list = weechat.list_new() ---- -==== weechat_list_add +==== list_add Aggiunge un elemento in una lista. @@ -3069,7 +3076,7 @@ item = weechat.list_add(list, data, where, user_data) item = weechat.list_add(list, "my data", weechat.WEECHAT_LIST_POS_SORT, "") ---- -==== weechat_list_search +==== list_search Cerca un elemento nella lista. @@ -3108,7 +3115,7 @@ item = weechat.list_search(list, data) item = weechat.list_search(list, "my data") ---- -==== weechat_list_search_pos +==== list_search_pos _WeeChat ≥ 0.3.4._ @@ -3149,7 +3156,7 @@ pos_item = weechat.list_search_pos(list, data) pos_item = weechat.list_search_pos(list, "my data") ---- -==== weechat_list_casesearch +==== list_casesearch Cerca un elemento nella lista, senza effettuare una ricerca esatta. @@ -3189,7 +3196,7 @@ item = weechat.list_casesearch(list, data) item = weechat.list_casesearch(list, "my data") ---- -==== weechat_list_casesearch_pos +==== list_casesearch_pos _WeeChat ≥ 0.3.4._ @@ -3230,7 +3237,7 @@ pos_item = weechat.list_casesearch_pos(list, data) pos_item = weechat.list_casesearch_pos(list, "my data") ---- -==== weechat_list_get +==== list_get Restituisce un elemento in una lista in base alla sua posizione. @@ -3269,7 +3276,7 @@ item = weechat.list_get(list, position) item = weechat.list_get(list, 0) ---- -==== weechat_list_set +==== list_set Imposta un nuovo valore per un elemento. @@ -3303,7 +3310,7 @@ weechat.list_set(item, value) weechat.list_set(item, "nuovi dati") ---- -==== weechat_list_next +==== list_next Restituisce l'elemento successivo nella lista. @@ -3341,7 +3348,7 @@ item = weechat.list_next(item) item = weechat.list_next(item) ---- -==== weechat_list_prev +==== list_prev Restituisce l'elemento precedente nella lista. @@ -3379,7 +3386,7 @@ item = weechat.list_prev(item) item = weechat.list_prev(item) ---- -==== weechat_list_string +==== list_string Restituisce il valore stringa di un elemento. @@ -3416,7 +3423,7 @@ value = weechat.list_string(item) weechat.prnt("", "valore dell'elemento: %s" % weechat.list_string(item)) ---- -==== weechat_list_size +==== list_size Restituisce la dimensione della lista (numero di elementi). @@ -3454,7 +3461,7 @@ size = weechat.list_size(list) weechat.prnt("", "dimensione della lista: %d" % weechat.list_size(list)) ---- -==== weechat_list_remove +==== list_remove Rimuove un elemento in una lista. @@ -3489,7 +3496,7 @@ weechat.list_remove(list, item) weechat.list_remove(list, item) ---- -==== weechat_list_remove_all +==== list_remove_all Rimuove tutti gli elementi in una lista. @@ -3522,7 +3529,7 @@ weechat.list_remove_all(list) weechat.list_remove_all(list) ---- -==== weechat_list_free +==== list_free Libera una lista. @@ -3560,7 +3567,7 @@ weechat.list_free(list) Funzioni per le tabelle hash. -==== weechat_hashtable_new +==== hashtable_new _WeeChat ≥ 0.3.3._ @@ -3634,7 +3641,7 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_set_with_size +==== hashtable_set_with_size // TRANSLATION MISSING _WeeChat ≥ 0.3.3, updated in 0.4.2._ @@ -3677,7 +3684,7 @@ weechat_hashtable_set_with_size (hashtable, "my_key", 0, [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_set +==== hashtable_set // TRANSLATION MISSING _WeeChat ≥ 0.3.3, updated in 0.4.2._ @@ -3710,7 +3717,7 @@ Esempio in C: weechat_hashtable_set (hashtable, "my_key", "my_value"); ---- -==== weechat_hashtable_get +==== hashtable_get _WeeChat ≥ 0.3.3._ @@ -3742,7 +3749,7 @@ void *value = weechat_hashtable_get (hashtable, "my_key"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_has_key +==== hashtable_has_key _WeeChat ≥ 0.3.4._ @@ -3779,7 +3786,7 @@ if (weechat_hashtable_has_key (hashtable, "my_key")) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_map +==== hashtable_map _WeeChat ≥ 0.3.3._ @@ -3823,7 +3830,7 @@ weechat_hashtable_map (hashtable, &map_cb, NULL); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_map_string +==== hashtable_map_string _WeeChat ≥ 0.3.7._ @@ -3871,7 +3878,7 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_dup +==== hashtable_dup _WeeChat ≥ 1.0._ @@ -3904,7 +3911,7 @@ struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_get_integer +==== hashtable_get_integer _WeeChat ≥ 0.3.3._ @@ -3939,7 +3946,7 @@ int items_count = weechat_hashtable_get_integer (hashtable, "items_count"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_get_string +==== hashtable_get_string _WeeChat ≥ 0.3.4._ @@ -3994,7 +4001,7 @@ weechat_printf (NULL, "list of keys: %s", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_set_pointer +==== hashtable_set_pointer _WeeChat ≥ 0.3.4._ @@ -4043,7 +4050,7 @@ weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_add_to_infolist +==== hashtable_add_to_infolist _WeeChat ≥ 0.3.3._ @@ -4088,7 +4095,7 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_remove +==== hashtable_remove _WeeChat ≥ 0.3.3._ @@ -4116,7 +4123,7 @@ weechat_hashtable_remove (hashtable, "my_key"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_remove_all +==== hashtable_remove_all _WeeChat ≥ 0.3.3._ @@ -4143,7 +4150,7 @@ weechat_hashtable_remove_all (hashtable); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hashtable_free +==== hashtable_free _WeeChat ≥ 0.3.3._ @@ -4175,7 +4182,7 @@ Questa funzione non è disponibile nelle API per lo scripting. Funzioni per i file di configurazione. -==== weechat_config_new +==== config_new Crea un nuovo file di configurazione. @@ -4247,7 +4254,7 @@ def my_config_reload_cb(data, config_file): config_file = weechat.config_new("test", "my_config_reload_cb", "") ---- -==== weechat_config_new_section +==== config_new_section Crea una nuova sezione nel file di configurazione. @@ -4488,7 +4495,7 @@ section = weechat.config_new_section(config_file, "section1", 1, 1, "my_section_delete_option_cb", "") ---- -==== weechat_config_search_section +==== config_search_section Cerca una sezione in un file di configurazione. @@ -4529,7 +4536,7 @@ section = weechat.config_search_section(config_file, section_name) section = weechat.config_search_section(config_file, "section") ---- -==== weechat_config_new_option +==== config_new_option Crea una nuova opzione nella sezione di un file di configurazione. @@ -4743,7 +4750,7 @@ In Ruby, the 3 callbacks + data (6 strings) must be given in an array of 6 strings (due to a Ruby limitation of 15 arguments by function), see the 'WeeChat Scripting Guide' for more info _(fixed in version 0.4.1)_. -==== weechat_config_search_option +==== config_search_option Cerca un'opzione nella sezione di un file di configurazione. @@ -4786,7 +4793,7 @@ option = weechat.config_search_option(config_file, section, option_name) option = weechat.config_search_option(config_file, section, "option") ---- -==== weechat_config_search_section_option +==== config_search_section_option Cerca una sezione ed un'opzione in un file di configurazione o sezione. @@ -4836,7 +4843,7 @@ else [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_config_search_with_string +==== config_search_with_string // TRANSLATION MISSING Get file/section/option info about an option with full name. @@ -4892,7 +4899,7 @@ else [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_config_string_to_boolean +==== config_string_to_boolean Verifica se un testo è "vero" o "falso", come valore booleano. @@ -4938,7 +4945,7 @@ if weechat.config_string_to_boolean(text): # ... ---- -==== weechat_config_option_reset +==== config_option_reset Resetta un'opzione al proprio valore predefinito. @@ -4999,7 +5006,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set +==== config_option_set Imposta un nuovo valore per l'opzione. @@ -5060,7 +5067,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set_null +==== config_option_set_null Imposta null (valore non definito) per un'opzione. @@ -5124,7 +5131,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_unset +==== config_option_unset Rimuove/ripristina un'opzione. @@ -5188,7 +5195,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: # ... ---- -==== weechat_config_option_rename +==== config_option_rename Rinomina un'opzione. @@ -5223,7 +5230,7 @@ weechat.config_option_rename(option, new_name) weechat.config_option_rename(option, "new_name") ---- -==== weechat_config_option_get_pointer +==== config_option_get_pointer Restituisce un puntatore alla proprietà di un'opzione. @@ -5266,7 +5273,7 @@ char *description = weechat_config_option_get_pointer (option, "description"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_config_option_is_null +==== config_option_is_null Verifica se un opzione è "null" (valore non definito). @@ -5312,7 +5319,7 @@ if weechat.config_option_is_null(option): # ... ---- -==== weechat_config_option_default_is_null +==== config_option_default_is_null Verifica che il valore predefinito di un'opzione sia "null" (valore non definito). @@ -5358,7 +5365,7 @@ if weechat.config_option_default_is_null(option): # ... ---- -==== weechat_config_boolean +==== config_boolean Restituisce il valore bool di un'opzione. @@ -5405,7 +5412,7 @@ if weechat.config_boolean(option): # ... ---- -==== weechat_config_boolean_default +==== config_boolean_default Restituisce il valore bool predefinito di un'opzione. @@ -5452,7 +5459,7 @@ if weechat.config_boolean_default(option): # ... ---- -==== weechat_config_integer +==== config_integer Restituisce il valore intero di un'opzione. @@ -5491,7 +5498,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer(option) ---- -==== weechat_config_integer_default +==== config_integer_default Restituisce il valore intero predefinito di un'opzione. @@ -5530,7 +5537,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer_default(option) ---- -==== weechat_config_string +==== config_string Restituisce il valore stringa di un'opzione. @@ -5569,7 +5576,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string(option) ---- -==== weechat_config_string_default +==== config_string_default Restituisce il valore stringa predefinito di un'opzione. @@ -5608,7 +5615,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string_default(option) ---- -==== weechat_config_color +==== config_color Restituisce il valore colore di un'opzione. @@ -5647,7 +5654,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color(option) ---- -==== weechat_config_color_default +==== config_color_default Restituisce il valore colore predefinito di un'opzione. @@ -5686,7 +5693,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color_default(option) ---- -==== weechat_config_write_option +==== config_write_option Scrive una riga nel file di configurazione con l'opzione ed il suo valore (questa funzione dovrebbe essere chiamata solo nelle callback "write" @@ -5735,7 +5742,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write_line +==== config_write_line Scrive una riga nel file di configurazione (questa funzione dovrebbe essere chiamata solo nelle callback "write" o "write_default" per una @@ -5788,7 +5795,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write +==== config_write Scrive il file di configurazione su disco. @@ -5844,7 +5851,7 @@ elif rc == weechat.WEECHAT_CONFIG_WRITE_ERROR: # ... ---- -==== weechat_config_read +==== config_read Legge il file di configurazione da disco. @@ -5900,7 +5907,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_reload +==== config_reload Ricarica il file di configurazione da disco. @@ -5956,7 +5963,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_option_free +==== config_option_free Libera un'opzione. @@ -5989,7 +5996,7 @@ weechat.config_option_free(option) weechat.config_option_free(option) ---- -==== weechat_config_section_free_options +==== config_section_free_options Libera tutte le opzioni in una sessione. @@ -6022,7 +6029,7 @@ weechat.config_section_free_options(section) weechat.config_section_free_options(section) ---- -==== weechat_config_section_free +==== config_section_free Libera una sezione. @@ -6055,7 +6062,7 @@ weechat.config_section_free(section) weechat.config_section_free(section) ---- -==== weechat_config_free +==== config_free Libera un file di configurazione. @@ -6088,7 +6095,7 @@ weechat.config_free(config_file) weechat.config_free(config_file) ---- -==== weechat_config_get +==== config_get Cerca un'opzione con il nome completo. @@ -6125,7 +6132,7 @@ option = weechat.config_get(option_name) option = weechat.config_get("weechat.look.item_time_format") ---- -==== weechat_config_get_plugin +==== config_get_plugin Cerca un'opzione nei file di configurazione dei plugin (plugins.conf). @@ -6165,7 +6172,7 @@ value = weechat.config_get_plugin(option_name) value = weechat.config_get_plugin("option") ---- -==== weechat_config_is_set_plugin +==== config_is_set_plugin Verifica se un'opzione è impostata nel file di configurazione dei plugin (plugins.conf). @@ -6216,7 +6223,7 @@ else: # ... ---- -==== weechat_config_set_plugin +==== config_set_plugin Imposta il nuovo valore per l'opzione nel file di configurazione dei plugin (plugins.conf). @@ -6280,7 +6287,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_set_desc_plugin +==== config_set_desc_plugin _WeeChat ≥ 0.3.5._ @@ -6325,7 +6332,7 @@ if int(version) >= 0x00030500: weechat.config_set_desc_plugin("option", "description of option") ---- -==== weechat_config_unset_plugin +==== config_unset_plugin Disattiva l'opzione nel file di configurazione dei plugin (plugins.conf). @@ -6395,7 +6402,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: Funzioni per le combinazioni dei tasti. -==== weechat_key_bind +==== key_bind _WeeChat ≥ 0.3.6._ @@ -6459,7 +6466,7 @@ keys = {"@chat(python.test):button1": "hsignal:test_mouse", weechat.key_bind("mouse", keys) ---- -==== weechat_key_unbind +==== key_unbind _WeeChat ≥ 0.3.6._ @@ -6518,7 +6525,7 @@ weechat.key_unbind("mouse", "area:chat(python.test)") Funzioni per visualizzare il testo nei buffer. -==== weechat_prefix +==== prefix Restituisce un prefisso. @@ -6573,7 +6580,7 @@ value = weechat.prefix(prefix) weechat.prnt("", "%sQuesto è un errore..." % weechat.prefix("error")) ---- -==== weechat_color +==== color Restituisce una codice colore stringa da visualizzare. @@ -6654,7 +6661,7 @@ weechat.prnt("", "Color: %sblue %sdefault color %syellow on red" % (weechat.color("blue"), weechat.color("chat"), weechat.color("yellow,red"))) ---- -==== weechat_printf +==== printf Visualizza un messaggio su un buffer. @@ -6716,7 +6723,7 @@ weechat.prnt(buffer, "\t\t") # empty line (without time) [NOTE] La funzione è chiamata "print" negli script ("prnt" in Python). -==== weechat_printf_date +==== printf_date Visualizza un messaggio sul buffer, utilizzando una data personalizzata. @@ -6745,7 +6752,7 @@ weechat_printf_date (NULL, time (NULL) - 120, "Ciao, 2 minuti fa"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_printf_tags +==== printf_tags Visualizza un messaggio sul buffer, utilizzando tag personalizzati. @@ -6775,7 +6782,7 @@ weechat_printf_tags (NULL, "notify_message", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_printf_date_tags +==== printf_date_tags Visualizza un messaggio sul buffer, usando tag e data personalizzati. @@ -6846,7 +6853,7 @@ weechat.prnt_date_tags("", time - 120, "notify_message", [NOTE] La funzione è chiamata "print_date_tags" negli script ("prnt_date_tags" in Python). -==== weechat_printf_y +==== printf_y Visualizza un messaggio sulla riga di un buffer con contenuto libero. @@ -6889,7 +6896,7 @@ weechat.prnt_y("", 2, "Mio messaggio sulla terza riga") [NOTE] La funzione è chiamata "print_y" negli script ("prnt_y in Python). -==== weechat_log_printf +==== log_printf Scrive un messaggio nel file di log di WeeChat (weechat.log). @@ -6958,7 +6965,7 @@ I tipi di hook che seguono consentono la priorità: command, command_run, signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, hdata, focus. -==== weechat_hook_command +==== hook_command Hook su un comando. @@ -7097,7 +7104,7 @@ hook = weechat.hook_command("myfilter", "descrizione di myfilter", "my_command_cb", "") ---- -==== weechat_hook_command_run +==== hook_command_run Hook su un comando quando eseguito da WeeChat. @@ -7170,7 +7177,7 @@ def my_command_run_cb(data, buffer, command): hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") ---- -==== weechat_hook_timer +==== hook_timer Hook sul timer. @@ -7241,7 +7248,7 @@ def my_timer_cb(data, remaining_calls): hook = weechat.hook_timer(20 * 1000, 0, 0, "my_timer_cb", "") ---- -==== weechat_hook_fd +==== hook_fd Hook su un descrittore file (file oppure socket). @@ -7310,7 +7317,7 @@ sock = ... hook = weechat.hook_fd(sock, 1, 0, 0, "my_fd_cb", "") ---- -==== weechat_hook_process +==== hook_process Hook su un processo (lanciato con un fork), e cattura l'output. @@ -7454,7 +7461,7 @@ def my_process_cb(data, command, return_code, out, err): hook = weechat.hook_process("ls", 5000, "my_process_cb", "") ---- -==== weechat_hook_process_hashtable +==== hook_process_hashtable _WeeChat ≥ 0.3.7._ @@ -7667,7 +7674,7 @@ hook3 = weechat.hook_process_hashtable("sh", 20000, "my_process_cb", "") ---- -==== weechat_hook_connect +==== hook_connect Hook su una connessione (connessione in secondo piano ad un host remoto). @@ -7841,7 +7848,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---- -==== weechat_hook_print +==== hook_print // TRANSLATION MISSING _Updated in 0.4.3 and 1.0._ @@ -7948,7 +7955,7 @@ def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message) hook = weechat.hook_print("", "", "", 1, "my_print_cb", "") ---- -==== weechat_hook_signal +==== hook_signal Hook su un segnale. @@ -8697,7 +8704,7 @@ def my_signal_cb(data, signal, signal_data): hook = weechat.hook_signal("quit", "my_signal_cb", "") ---- -==== weechat_hook_signal_send +==== hook_signal_send // TRANSLATION MISSING _Updated in 1.0._ @@ -8899,7 +8906,7 @@ weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, "freenode;;2;;/whois FlashCode") ---- -==== weechat_hook_hsignal +==== hook_hsignal _WeeChat ≥ 0.3.4._ @@ -9034,7 +9041,7 @@ def my_hsignal_cb(data, signal, hashtable): hook = weechat.hook_hsignal("test", "my_hsignal_cb", "") ---- -==== weechat_hook_hsignal_send +==== hook_hsignal_send // TRANSLATION MISSING _WeeChat ≥ 0.3.4, updated in 1.0._ @@ -9271,7 +9278,7 @@ weechat.hook_hsignal_send("irc_redirect_pattern", # ... ---- -==== weechat_hook_config +==== hook_config Hook su un'opzione di configurazione. @@ -9339,7 +9346,7 @@ def my_config_cb(data, option, value): hook = weechat.hook_config("weechat.look.item_time_format", "my_config_cb", "") ---- -==== weechat_hook_completion +==== hook_completion Hook su un completamento. @@ -9433,7 +9440,7 @@ hook = weechat.hook_completion("plugin_item", "my custom completion!", "my_completion_cb", "") ---- -==== weechat_hook_completion_get_string +==== hook_completion_get_string _Novità nella versioe 0.3.4._ @@ -9490,7 +9497,7 @@ def my_completion_cb(data, completion_item, buffer, completion): return weechat.WEECHAT_RC_OK ---- -==== weechat_hook_completion_list_add +==== hook_completion_list_add Aggiunge una parola per il completamento. @@ -9527,7 +9534,7 @@ weechat.hook_completion_list_add(completion, word, nick_completion, where) # esempio: consultare function hook_completion precedente ---- -==== weechat_hook_modifier +==== hook_modifier Hook su un modificatore. @@ -9727,7 +9734,7 @@ def my_modifier_cb(data, modifier, modifier_data, string): hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "") ---- -==== weechat_hook_modifier_exec +==== hook_modifier_exec Esegue modificatore(i). @@ -9769,7 +9776,7 @@ weechat.hook_modifier_exec(modifier, modifier_data, string) weechat.hook_modifier_exec("my_modifier", my_data, my_string) ---- -==== weechat_hook_info +==== hook_info Hook su una informazione (la callback prende e restituisce una stringa). @@ -9838,7 +9845,7 @@ hook = weechat.hook_info("my_info", "Some info", "Info about arguments", "my_info_cb", "") ---- -==== weechat_hook_info_hashtable +==== hook_info_hashtable _WeeChat ≥ 0.3.4._ @@ -9917,7 +9924,7 @@ hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info", "my_info_hashtable_cb", "") ---- -==== weechat_hook_infolist +==== hook_infolist Hook su una lista info: la callback restituisce il puntatore alla lista info richiesta. @@ -10002,7 +10009,7 @@ hook = weechat.hook_infolist("my_infolist", "Infolist with some data", "my_infolist_cb", "") ---- -==== weechat_hook_hdata +==== hook_hdata Hook di un hdata: la callback restituisce il puntatore all'hdata richiesto. @@ -10056,7 +10063,7 @@ struct t_hook *my_hdata = weechat_hook_hdata ("my_hdata", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hook_focus +==== hook_focus Hook sul foucus: evento del mouse o tasto premuto nella modalità cursore (movimento libero del cursore). @@ -10193,7 +10200,7 @@ def my_focus_nicklist_cb(data, info): hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") ---- -==== weechat_hook_set +==== hook_set _WeeChat ≥ 0.3.9 (script: WeeChat ≥ 0.4.3)._ @@ -10282,7 +10289,7 @@ weechat.hook_set(hook, "stdin", "data sent to stdin of child process") weechat.hook_set(hook, "stdin_close", "") # optional ---- -==== weechat_unhook +==== unhook Rimuove un hook. @@ -10317,7 +10324,7 @@ weechat.unhook(hook) weechat.unhook(my_hook) ---- -==== weechat_unhook_all +==== unhook_all Rimuove l'hook in qualsiasi punto in cui è stato attivato dal plugin corrente. @@ -10352,7 +10359,7 @@ weechat.unhook_all() Funzioni per creare/richiedere/chiudere buffer. -==== weechat_buffer_new +==== buffer_new Apre un nuovo buffer. @@ -10439,7 +10446,7 @@ def my_close_cb(data, buffer): buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") ---- -==== weechat_current_buffer +==== current_buffer Restituisce il puntatore al buffer corrente (buffer visualizzato nella finestra corrente). @@ -10473,7 +10480,7 @@ buffer = weechat.current_buffer() weechat.prnt(weechat.current_buffer(), "Testo sul buffer corrente") ---- -==== weechat_buffer_search +==== buffer_search // TRANSLATION MISSING _Updated in 1.0._ @@ -10523,7 +10530,7 @@ buffer = weechat.buffer_search(plugin, name) buffer = weechat.buffer_search("my_plugin", "my_buffer") ---- -==== weechat_buffer_search_main +==== buffer_search_main Cerca nel buffer principale di WeeChat (per primo nel buffer 'core', il primo visualizzato all'avvio di WeeChat). @@ -10557,7 +10564,7 @@ buffer = weechat.buffer_search_main() buffer = weechat.buffer_search_main() ---- -==== weechat_buffer_clear +==== buffer_clear Pulisce il contenuto del buffer. @@ -10597,7 +10604,7 @@ if buffer != "": weechat.buffer_clear(buffer) ---- -==== weechat_buffer_close +==== buffer_close Chiude un buffer. @@ -10636,7 +10643,7 @@ buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") weechat.buffer_close(buffer) ---- -==== weechat_buffer_merge +==== buffer_merge Unisce un buffer in un altro: entrambi i buffer esistono separatamente, ma con lo stesso numero, e WeeChat visualizzerà le righe di entrambi i @@ -10676,7 +10683,7 @@ weechat.buffer_merge(buffer, target_buffer) weechat.buffer_merge(weechat.current_buffer(), weechat.buffer_search_main()) ---- -==== weechat_buffer_unmerge +==== buffer_unmerge Stacca un buffer da un gruppo di buffer uniti. @@ -10713,7 +10720,7 @@ weechat.buffer_unmerge(buffer, number) weechat.buffer_unmerge(weechat.current_buffer(), 1) ---- -==== weechat_buffer_get_integer +==== buffer_get_integer Restituisce il valore intero della proprietà di un buffer. @@ -10812,7 +10819,7 @@ value = weechat.buffer_get_integer(buffer, property) weechat.prnt("", "my buffer number is: %d" % weechat.buffer_get_integer(my_buffer, "number")) ---- -==== weechat_buffer_get_string +==== buffer_get_string Restituisce il valore stringa di una proprietà del buffer. @@ -10875,7 +10882,7 @@ weechat.prnt("", "name / short name of buffer are: %s / %s" weechat.buffer_get_string(my_buffer, "short_name"))) ---- -==== weechat_buffer_get_pointer +==== buffer_get_pointer Restituisce il valore puntatore della proprietà di un buffer. @@ -10918,7 +10925,7 @@ value = weechat.buffer_get_pointer(buffer, property) weechat.prnt("", "plugin pointer of my buffer: %s" % weechat.buffer_get_pointer(my_buffer, "plugin")) ---- -==== weechat_buffer_set +==== buffer_set Imposta il valore stringa della proprietà di un buffer. @@ -11155,7 +11162,7 @@ weechat.buffer_set(my_buffer, "localvar_set_tizio", "abc") weechat.buffer_set(my_buffer, "localvar_del_tizio", "") ---- -==== weechat_buffer_set_pointer +==== buffer_set_pointer Imposta il valore puntatore per la proprietà di un buffer. @@ -11213,7 +11220,7 @@ weechat_buffer_set_pointer (my_buffer, "close_callback", &my_close_cb); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_buffer_string_replace_local_var +==== buffer_string_replace_local_var Sostituisce le variabili globali in una stringa con i loro valori, utilizzando le variabili del buffer locale. @@ -11259,7 +11266,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") # str contains "test with abc" ---- -==== weechat_buffer_match_list +==== buffer_match_list _WeeChat ≥ 0.3.5._ @@ -11320,7 +11327,7 @@ if buffer: Funzioni per richiedere finestre. -==== weechat_current_window +==== current_window Restituisce il puntatore alla finestra corrente @@ -11353,7 +11360,7 @@ window = weechat.current_window() current_window = weechat.current_window() ---- -==== weechat_window_search_with_buffer +==== window_search_with_buffer _WeeChat ≥ 0.3.5._ @@ -11396,7 +11403,7 @@ weechat.prnt("", "window displaying core buffer: %s" % weechat.window_search_with_buffer(weechat.buffer_search_main())) ---- -==== weechat_window_get_integer +==== window_get_integer Restituisce il valore intero della proprietà di una finestra. @@ -11460,7 +11467,7 @@ weechat.prnt("", "current window is at position (x,y): (%d,%d)" weechat.window_get_integer(weechat.current_window(), "win_y"))) ---- -==== weechat_window_get_string +==== window_get_string Restituisce il valore stringa della proprietà di una finestra. @@ -11484,7 +11491,7 @@ Valore restituito: * valore stringa della proprietà -==== weechat_window_get_pointer +==== window_get_pointer Restituisce il valore puntatore della proprietà di una finestra. @@ -11528,7 +11535,7 @@ weechat.prnt("", "buffer displayed in current window: %s" % weechat.window_get_pointer(weechat.current_window(), "buffer")) ---- -==== weechat_window_set_title +==== window_set_title Imposta il titolo per il terminale. @@ -11566,7 +11573,7 @@ weechat.window_set_title("nuovo titolo qui") Funzioni per il buffer nicklist. -==== weechat_nicklist_add_group +==== nicklist_add_group Aggiunge un gruppo in una lista nick. @@ -11632,7 +11639,7 @@ group = weechat.nicklist_add_group(my_buffer, my_parent_group, "test_group", "weechat.color.nicklist_group", 1) ---- -==== weechat_nicklist_search_group +==== nicklist_search_group Cerca un gruppo in una lista nick. @@ -11675,7 +11682,7 @@ group = weechat.nicklist_search_group(buffer, from_group, name) group = weechat.nicklist_search_group(my_buffer, "", "test_group") ---- -==== weechat_nicklist_add_nick +==== nicklist_add_nick Aggiunge un nick in un gruppo. @@ -11747,7 +11754,7 @@ else: nick = weechat.nicklist_add_nick(my_buffer, my_group, "test_nick", color, "@", "lightgreen", 1) ---- -==== weechat_nicklist_search_nick +==== nicklist_search_nick Cerca un nick nella lista nick. @@ -11790,7 +11797,7 @@ nick = weechat.nicklist_search_nick(buffer, from_group, name) nick = weechat.nicklist_search_nick(my_buffer, "", "test_nick") ---- -==== weechat_nicklist_remove_group +==== nicklist_remove_group Rimuove un gruppo da una lista nick. @@ -11826,7 +11833,7 @@ weechat.nicklist_remove_group(buffer, group) weechat.nicklist_remove_group(my_buffer, my_group) ---- -==== weechat_nicklist_remove_nick +==== nicklist_remove_nick Rimuove un nick dalla lista nick. @@ -11861,7 +11868,7 @@ weechat.nicklist_remove_nick(buffer, nick) weechat.nicklist_remove_nick(my_buffer, my_nick) ---- -==== weechat_nicklist_remove_all +==== nicklist_remove_all Rimuove tutti i gruppi/nick da una lista nick. @@ -11894,7 +11901,7 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---- -==== weechat_nicklist_get_next_item +==== nicklist_get_next_item _WeeChat ≥ 0.3.7._ @@ -11945,7 +11952,7 @@ while (ptr_group || ptr_nick) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_nicklist_group_get_integer +==== nicklist_group_get_integer _WeeChat ≥ 0.3.4._ @@ -11990,7 +11997,7 @@ value = weechat.nicklist_group_get_integer(buffer, group, property) visible = weechat.nicklist_group_get_integer(buffer, group, "visible") ---- -==== weechat_nicklist_group_get_string +==== nicklist_group_get_string _WeeChat ≥ 0.3.4._ @@ -12035,7 +12042,7 @@ value = weechat.nicklist_group_get_string(buffer, group, property) color = weechat.nicklist_group_get_string(buffer, group, "color") ---- -==== weechat_nicklist_group_get_pointer +==== nicklist_group_get_pointer _WeeChat ≥ 0.3.4._ @@ -12079,7 +12086,7 @@ value = weechat.nicklist_group_get_pointer(buffer, group, property) parent = weechat.nicklist_group_get_pointer(buffer, group, "parent") ---- -==== weechat_nicklist_group_set +==== nicklist_group_set _WeeChat ≥ 0.3.4._ @@ -12152,7 +12159,7 @@ weechat.nicklist_group_set(buffer, group, "color", "yellow") weechat.nicklist_group_set(buffer, group, "visible", "0") ---- -==== weechat_nicklist_nick_get_integer +==== nicklist_nick_get_integer _WeeChat ≥ 0.3.4._ @@ -12196,7 +12203,7 @@ value = weechat.nicklist_nick_get_integer(buffer, nick, property) visible = weechat.nicklist_nick_get_integer(buffer, nick, "visible") ---- -==== weechat_nicklist_nick_get_string +==== nicklist_nick_get_string _WeeChat ≥ 0.3.4._ @@ -12243,7 +12250,7 @@ value = weechat.nicklist_nick_get_string(buffer, nick, property) color = weechat.nicklist_nick_get_string(buffer, nick, "color") ---- -==== weechat_nicklist_nick_get_pointer +==== nicklist_nick_get_pointer _WeeChat ≥ 0.3.4._ @@ -12287,7 +12294,7 @@ value = weechat.nicklist_nick_get_pointer(buffer, nick, property) group = weechat.nicklist_nick_get_pointer(buffer, nick, "group") ---- -==== weechat_nicklist_nick_set +==== nicklist_nick_set _WeeChat ≥ 0.3.4._ @@ -12378,7 +12385,7 @@ weechat.nicklist_nick_set(buffer, nick, "visible", "0") Funzioni per le barre. -==== weechat_bar_item_search +==== bar_item_search Cerca un elemento barra. @@ -12415,7 +12422,7 @@ bar_item = weechat.bar_item_search(name) bar_item = weechat.bar_item_search("myitem") ---- -==== weechat_bar_item_new +==== bar_item_new // TRANSLATION MISSING _Updated in 0.4.2._ @@ -12507,7 +12514,7 @@ def my_build_callback2(data, item, window, buffer, extra_info): bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2 ---- -==== weechat_bar_item_update +==== bar_item_update Aggiorna il contenuto dell'elemento barra, chiamando la callback che lo ha compilato. @@ -12541,7 +12548,7 @@ weechat.bar_item_update(name) weechat.bar_item_update("myitem") ---- -==== weechat_bar_item_remove +==== bar_item_remove Rimuove un elemento barra. @@ -12574,7 +12581,7 @@ weechat.bar_item_remove(item) weechat.bar_item_remove(myitem) ---- -==== weechat_bar_search +==== bar_search Cerca una barra. @@ -12611,7 +12618,7 @@ bar = weechat.bar_search(name) bar = weechat.bar_search("mybar") ---- -==== weechat_bar_new +==== bar_new Crea una nuova barra. @@ -12723,7 +12730,7 @@ bar = weechat.bar_new("mybar", "off", "100", "window", "", "top", "horizontal", "0", "5", "default", "cyan", "blue", "off", "time,buffer_number+buffer_name") ---- -==== weechat_bar_set +==== bar_set Imposta un nuovo valore per la proprietà di una barra. @@ -12765,7 +12772,7 @@ weechat.bar_set(bar, property, value) weechat.bar_set(my_bar, "position", "bottom") ---- -==== weechat_bar_update +==== bar_update Aggiorna il contenuto di una barra su schermo. @@ -12798,7 +12805,7 @@ weechat.bar_update(name) weechat.bar_update("mybar") ---- -==== weechat_bar_remove +==== bar_remove Rimuove una barra. @@ -12836,7 +12843,7 @@ weechat.bar_remove(my_bar) Funzioni per eseguire comandi di WeeChat. -==== weechat_command +==== command // TRANSLATION MISSING _Updated in 1.1._ @@ -12887,7 +12894,7 @@ rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois Funzioni di rete. -==== weechat_network_pass_proxy +==== network_pass_proxy Stabilisce una connessione/autenticazione con un proxy. @@ -12935,7 +12942,7 @@ else [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_network_connect_to +==== network_connect_to // TRANSLATION MISSING _Updated in 0.4.3._ @@ -13000,7 +13007,7 @@ Questa funzione non è disponibile nelle API per lo scripting. Funzioni per ottenere info. -==== weechat_info_get +==== info_get Restituisce la info, come stringa, da WeeChat o da un plugin. @@ -13051,7 +13058,7 @@ weechat.prnt("", "Current WeeChat version is: %s (compiled on %s)" weechat.prnt("", "WeeChat home is: %s" % weechat.info_get("weechat_dir")) ---- -==== weechat_info_get_hashtable +==== info_get_hashtable _WeeChat ≥ 0.3.4._ @@ -13142,7 +13149,7 @@ Ogni variabile ha un tipo e un valore. I tipi possibili sono: * 'buffer': buffer di lunghezza fissa, contenente qualunque dato * 'time': valore tempo -==== weechat_infolist_new +==== infolist_new Crea una nuova lista info. @@ -13175,7 +13182,7 @@ infolist = weechat.infolist_new() infolist = weechat.infolist_new() ---- -==== weechat_infolist_new_item +==== infolist_new_item Aggiunge un elemento alla lista info. @@ -13212,7 +13219,7 @@ item = weechat.infolist_new_item(infolist) item = weechat.infolist_new_item(infolist) ---- -==== weechat_infolist_new_var_integer +==== infolist_new_var_integer Aggiunge una variabile intera ad un elemento della lista info. @@ -13256,7 +13263,7 @@ var = weechat.infolist_new_var_integer(item, name, value) var = weechat.infolist_new_var_integer(item, "my_integer", 123) ---- -==== weechat_infolist_new_var_string +==== infolist_new_var_string Aggiunge una variabile stringa ad un elemento della lista info. @@ -13300,7 +13307,7 @@ var = weechat.infolist_new_var_string(item, name, value) var = weechat.infolist_new_var_string(item, "my_string", "value") ---- -==== weechat_infolist_new_var_pointer +==== infolist_new_var_pointer Aggiunge una variabile puntatore ad un elemento della lista info. @@ -13344,7 +13351,7 @@ var = weechat.infolist_new_var_pointer(item, name, pointer) var = weechat.infolist_new_var_pointer(item, "my_pointer", pointer) ---- -==== weechat_infolist_new_var_buffer +==== infolist_new_var_buffer Aggiunge una variabile puntatore ad un elemento della lista info. @@ -13384,7 +13391,7 @@ struct t_infolist_var *var = weechat_infolist_new_var_buffer (item, [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_infolist_new_var_time +==== infolist_new_var_time Aggiunge una variabile tempo ad un elemento della lista info. @@ -13427,7 +13434,7 @@ var = weechat.infolist_new_var_time(item, name, time) var = weechat.infolist_new_var_time(item, "my_time", int(time.time())) ---- -==== weechat_infolist_get +==== infolist_get Restituisce una lista info da WeeChat o da un plugin. @@ -13484,7 +13491,7 @@ infolist = weechat.infolist_get(infolist_name, pointer, arguments) infolist = weechat.infolist_get("irc_server", "", "") ---- -==== weechat_infolist_next +==== infolist_next Sposta "cursor" all'elemento successivo nella lista info. La prima chiamata a questa funzione per una lista info sposta il cursore al primo elemento @@ -13535,7 +13542,7 @@ else: # nessun altro elemento disponibile ---- -==== weechat_infolist_prev +==== infolist_prev Sposta "cursor" all'elemento precedente nella lista info. La prima chiamata a questa funzione per una lista info sposta il cursore @@ -13586,7 +13593,7 @@ else: # no more item available ---- -==== weechat_infolist_reset_item_cursor +==== infolist_reset_item_cursor Ripristina "cursor" per la lista info. @@ -13619,7 +13626,7 @@ weechat.infolist_reset_item_cursor(infolist) weechat.infolist_reset_item_cursor(infolist) ---- -==== weechat_infolist_search_var +==== infolist_search_var _WeeChat ≥ 0.4.3._ @@ -13670,7 +13677,7 @@ if weechat.infolist_search_var(infolist, "name"): # ... ---- -==== weechat_infolist_fields +==== infolist_fields Restituisce una lista di campi per l'elemento della lista info corrente. @@ -13715,7 +13722,7 @@ fields = weechat.infolist_fields(infolist) # "i:my_integer,s:my_string,p:my_pointer,b:my_buffer,t:my_time" ---- -==== weechat_infolist_integer +==== infolist_integer Restituisce il valore della variabile intera nell'elemento corrente della lista info. @@ -13755,7 +13762,7 @@ value = weechat.infolist_integer(infolist, var) weechat.prnt("", "integer = %d" % weechat.infolist_integer(infolist, "my_integer")) ---- -==== weechat_infolist_string +==== infolist_string Restituisce il valore della variabile stringa nell'elemento della lista info corrente. @@ -13795,7 +13802,7 @@ value = weechat.infolist_string(infolist, var) weechat.prnt("", "string = %s" % weechat.infolist_string(infolist, "my_string")) ---- -==== weechat_infolist_pointer +==== infolist_pointer Restituisce il valore della variabile puntatore nell'elemento della lista info corrente. @@ -13835,7 +13842,7 @@ value = weechat.infolist_pointer(infolist, var) weechat.prnt("", "pointer = 0x%s" % weechat.infolist_pointer(infolist, "my_pointer")) ---- -==== weechat_infolist_buffer +==== infolist_buffer Restituisce il valore della variabile buffer nell'elemento corrente della lista info. @@ -13872,7 +13879,7 @@ weechat_printf (NULL, "buffer = 0x%lx, size = %d", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_infolist_time +==== infolist_time Restituisce il valore della variabile data/ora nell'elemento attivo della lista info. @@ -13912,7 +13919,7 @@ value = weechat.infolist_time(infolist, var) weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time")) ---- -==== weechat_infolist_free +==== infolist_free Libera una lista info. @@ -13957,7 +13964,7 @@ scrivere qualcosa in memoria puntato dalle variabili in hdata. + The only way to update data is to call function <<_weechat_hdata_update,weechat_hdata_update>>. -==== weechat_hdata_new +==== hdata_new // TRANSLATION MISSING _WeeChat ≥ 0.3.6, updated in 0.3.9 and 0.4.0._ @@ -14027,7 +14034,7 @@ struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, 0 [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_new_var +==== hdata_new_var // TRANSLATION MISSING _WeeChat ≥ 0.3.6, updated in 0.3.9_ @@ -14113,7 +14120,7 @@ WEECHAT_HDATA_VAR(struct t_myplugin_list, next, POINTER, 0, NULL, "myplugin_list [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_new_list +==== hdata_new_list // TRANSLATION MISSING _WeeChat ≥ 0.3.6, updated in 1.0._ @@ -14177,7 +14184,7 @@ WEECHAT_HDATA_LIST(last_buffer, 0); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_get +==== hdata_get _WeeChat ≥ 0.3.6._ @@ -14227,7 +14234,7 @@ hdata = weechat.hdata_get(hdata_name) hdata = weechat.hdata_get("irc_server") ---- -==== weechat_hdata_get_var_offset +==== hdata_get_var_offset _WeeChat ≥ 0.3.6._ @@ -14267,7 +14274,7 @@ offset = weechat.hdata_get_var_offset(hdata, name) offset = weechat.hdata_get_var_offset(hdata, "name") ---- -==== weechat_hdata_get_var_type +==== hdata_get_var_type _WeeChat ≥ 0.3.6._ @@ -14332,7 +14339,7 @@ switch (type) [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_get_var_type_string +==== hdata_get_var_type_string _WeeChat ≥ 0.3.6._ @@ -14373,7 +14380,7 @@ type = weechat.hdata_get_var_type_string(hdata, name) weechat.prnt("", "type = %s" % weechat.hdata_get_var_type_string(hdata, "name")) ---- -==== weechat_hdata_get_var_array_size +==== hdata_get_var_array_size _WeeChat ≥ 0.3.9._ @@ -14416,7 +14423,7 @@ array_size = weechat.hdata_get_var_array_size(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_array_size_string +==== hdata_get_var_array_size_string _WeeChat ≥ 0.3.9._ @@ -14461,7 +14468,7 @@ array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_hdata +==== hdata_get_var_hdata _WeeChat ≥ 0.3.6._ @@ -14501,7 +14508,7 @@ hdata_name = weechat.hdata_get_var_hdata(hdata, name) weechat.prnt("", "hdata = %s" % weechat.hdata_get_var_hdata(hdata, "name")) ---- -==== weechat_hdata_get_var +==== hdata_get_var _WeeChat ≥ 0.3.6._ @@ -14536,7 +14543,7 @@ void *pointer = weechat_hdata_get_var (hdata, buffer, "name"); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_get_var_at_offset +==== hdata_get_var_at_offset _WeeChat ≥ 0.3.6._ @@ -14572,7 +14579,7 @@ void *pointer = weechat_hdata_get_var_at_offset (hdata, buffer, offset); [NOTE] Questa funzione non è disponibile nelle API per lo scripting. -==== weechat_hdata_get_list +==== hdata_get_list _WeeChat ≥ 0.3.6._ @@ -14614,7 +14621,7 @@ hdata = weechat.hdata_get("buffer") buffers = weechat.hdata_get_list(hdata, "gui_buffers") ---- -==== weechat_hdata_check_pointer +==== hdata_check_pointer // TRANSLATION MISSING _WeeChat ≥ 0.3.7, updated in 1.0._ @@ -14677,7 +14684,7 @@ else: # ... ---- -==== weechat_hdata_move +==== hdata_move _WeeChat ≥ 0.3.6._ @@ -14735,7 +14742,7 @@ if buffer: buffer = weechat.hdata_move(hdata, buffer, -1) ---- -==== weechat_hdata_search +==== hdata_search _WeeChat ≥ 0.4.1._ @@ -14800,7 +14807,7 @@ if server: # ... ---- -==== weechat_hdata_char +==== hdata_char _WeeChat ≥ 0.3.7._ @@ -14844,7 +14851,7 @@ value = weechat.hdata_char(hdata, pointer, name) weechat.prnt("", "letter = %c" % weechat.hdata_char(hdata, pointer, "letter")) ---- -==== weechat_hdata_integer +==== hdata_integer _WeeChat ≥ 0.3.6._ @@ -14892,7 +14899,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "number = %d" % weechat.hdata_integer(hdata, buffer, "number")) ---- -==== weechat_hdata_long +==== hdata_long _WeeChat ≥ 0.3.6._ @@ -14936,7 +14943,7 @@ value = weechat.hdata_long(hdata, pointer, name) weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar")) ---- -==== weechat_hdata_string +==== hdata_string _WeeChat ≥ 0.3.6._ @@ -14984,7 +14991,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "name = %s" % weechat.hdata_string(hdata, buffer, "name")) ---- -==== weechat_hdata_pointer +==== hdata_pointer _WeeChat ≥ 0.3.6._ @@ -15032,7 +15039,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "lines = %lx" % weechat.hdata_pointer(hdata, buffer, "lines")) ---- -==== weechat_hdata_time +==== hdata_time _WeeChat ≥ 0.3.6._ @@ -15102,7 +15109,7 @@ if ptr: weechat.prnt("", "time of first line displayed = %s" % time.strftime("%F %T", time.localtime(int(date)))) ---- -==== weechat_hdata_hashtable +==== hdata_hashtable _WeeChat ≥ 0.3.7._ @@ -15157,7 +15164,7 @@ for key in hash: ---- // TRANSLATION MISSING -==== weechat_hdata_set +==== hdata_set _WeeChat ≥ 0.3.9._ @@ -15198,7 +15205,7 @@ weechat_hdata_set (hdata, pointer, "message", "test"); This function is not available in scripting API. // TRANSLATION MISSING -==== weechat_hdata_update +==== hdata_update _WeeChat ≥ 0.3.9._ @@ -15285,7 +15292,7 @@ if own_lines: weechat.hdata_update(hdata, line_data, {"date": str(weechat.hdata_time(hdata, line_data, "date") - 3600)}) ---- -==== weechat_hdata_get_string +==== hdata_get_string _WeeChat ≥ 0.3.6._ @@ -15348,7 +15355,7 @@ weechat.prnt("", "lists in hdata: %s" % weechat.hdata_get_string(hdata, "list_ke Funzioni per l'aggiornamento di WeeChat (comando "/upgrade"). -==== weechat_upgrade_new +==== upgrade_new Crea o legge un file per l'aggiornamento. @@ -15389,7 +15396,7 @@ upgrade_file = weechat.upgrade_new(filename, write) upgrade_file = weechat.upgrade_new("my_file", 1) ---- -==== weechat_upgrade_write_object +==== upgrade_write_object Scrive un oggetto nel file di aggiornamento. @@ -15437,7 +15444,7 @@ rc = weechat.upgrade_write_object(upgrade_file, object_id, infolist) weechat.upgrade_write_object(upgrade_file, 1, infolist) ---- -==== weechat_upgrade_read +==== upgrade_read Legge un file di aggiornamento. @@ -15503,7 +15510,7 @@ def my_upgrade_read_cb(upgrade_file, object_id, infolist): weechat.upgrade_read(upgrade_file, "my_upgrade_read_cb", "")) ---- -==== weechat_upgrade_close +==== upgrade_close Chiude un file di aggiornamento. diff --git a/doc/it/weechat_quickstart.it.asciidoc b/doc/it/weechat_quickstart.it.asciidoc index a660939b0..31730e206 100644 --- a/doc/it/weechat_quickstart.it.asciidoc +++ b/doc/it/weechat_quickstart.it.asciidoc @@ -2,7 +2,14 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: it -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2009-2013 [[start]] diff --git a/doc/it/weechat_scripting.it.asciidoc b/doc/it/weechat_scripting.it.asciidoc index 5e177888d..6f2b297aa 100644 --- a/doc/it/weechat_scripting.it.asciidoc +++ b/doc/it/weechat_scripting.it.asciidoc @@ -2,8 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: it -:toc: +:toc2: :toclevels: 3 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2010-2013 Questo manuale documenta il client di chat WeeChat, ed è parte diff --git a/doc/it/weechat_tester.it.asciidoc b/doc/it/weechat_tester.it.asciidoc index 57c7648d3..9ff723371 100644 --- a/doc/it/weechat_tester.it.asciidoc +++ b/doc/it/weechat_tester.it.asciidoc @@ -2,7 +2,14 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: it -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2009-2012 [[purpose]] diff --git a/doc/it/weechat_user.it.asciidoc b/doc/it/weechat_user.it.asciidoc index 97bf3818f..b2af96bd3 100644 --- a/doc/it/weechat_user.it.asciidoc +++ b/doc/it/weechat_user.it.asciidoc @@ -2,8 +2,15 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: it -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Marco Paolone <marcopaolone@gmail.com>, 2009-2012 Questo manuale documenta il client di chat WeeChat, ed è parte diff --git a/doc/ja/CMakeLists.txt b/doc/ja/CMakeLists.txt index 0b832441d..1392a1b51 100644 --- a/doc/ja/CMakeLists.txt +++ b/doc/ja/CMakeLists.txt @@ -21,12 +21,13 @@ if(ENABLE_MAN) # man page add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.asciidoc ${CMAKE_CURRENT_BINARY_DIR}/ - COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L ${CMAKE_CURRENT_BINARY_DIR}/weechat.1.ja.asciidoc + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.asciidoc . + COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.asciidoc . + COMMAND ${A2X_EXECUTABLE} ARGS -a revision='WeeChat ${VERSION}' -d manpage -f manpage -L weechat.1.ja.asciidoc DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.ja.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (ja)" ) add_custom_target(doc-man-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.ja.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.ja.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.ja.html" ) add_custom_target(doc-user-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.ja.html) @@ -51,10 +54,12 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # plugin API reference add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_API} -o weechat_plugin_api.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_plugin_api.ja.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/plugin_api/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_plugin_api.ja.html" ) add_custom_target(doc-plugin-api-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.ja.html) @@ -63,9 +68,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.ja.html" ) add_custom_target(doc-scripting-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.ja.html) @@ -74,9 +81,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.ja.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.ja.html" ) add_custom_target(doc-faq-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.ja.html) @@ -85,9 +94,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.ja.html" ) add_custom_target(doc-quickstart-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ja.html) @@ -96,9 +107,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.ja.html" ) add_custom_target(doc-tester-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.ja.html) @@ -107,9 +120,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # relay protocol add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_RELAY} -o weechat_relay_protocol.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_relay_protocol.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_relay_protocol.ja.html" ) add_custom_target(doc-relay-protocol-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_protocol.ja.html) @@ -118,9 +133,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # developer's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.ja.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_DEV} -o weechat_dev.ja.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.ja.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_dev.ja.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_dev.ja.html" ) add_custom_target(doc-dev-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.ja.html) diff --git a/doc/ja/Makefile.am b/doc/ja/Makefile.am index 5bd7c2c3c..f37a9d0ba 100644 --- a/doc/ja/Makefile.am +++ b/doc/ja/Makefile.am @@ -63,35 +63,35 @@ weechat.1: weechat.1.ja.asciidoc cmdline_options.ja.asciidoc # user's guide weechat_user.ja.html: weechat_user.ja.asciidoc cmdline_options.ja.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.ja.html $(abs_top_srcdir)/doc/ja/weechat_user.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.ja.html $(abs_top_srcdir)/doc/ja/weechat_user.ja.asciidoc # plugin API reference weechat_plugin_api.ja.html: weechat_plugin_api.ja.asciidoc $(wildcard autogen/plugin_api/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_plugin_api.ja.html $(abs_top_srcdir)/doc/ja/weechat_plugin_api.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_plugin_api.ja.html $(abs_top_srcdir)/doc/ja/weechat_plugin_api.ja.asciidoc # scripting guide weechat_scripting.ja.html: weechat_scripting.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.ja.html $(abs_top_srcdir)/doc/ja/weechat_scripting.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.ja.html $(abs_top_srcdir)/doc/ja/weechat_scripting.ja.asciidoc # FAQ weechat_faq.ja.html: weechat_faq.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.ja.html $(abs_top_srcdir)/doc/ja/weechat_faq.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.ja.html $(abs_top_srcdir)/doc/ja/weechat_faq.ja.asciidoc # quickstart weechat_quickstart.ja.html: weechat_quickstart.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.ja.html $(abs_top_srcdir)/doc/ja/weechat_quickstart.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.ja.html $(abs_top_srcdir)/doc/ja/weechat_quickstart.ja.asciidoc # tester's guide weechat_tester.ja.html: weechat_tester.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.ja.html $(abs_top_srcdir)/doc/ja/weechat_tester.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.ja.html $(abs_top_srcdir)/doc/ja/weechat_tester.ja.asciidoc # relay protocol weechat_relay_protocol.ja.html: weechat_relay_protocol.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_relay_protocol.ja.html $(abs_top_srcdir)/doc/ja/weechat_relay_protocol.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_relay_protocol.ja.html $(abs_top_srcdir)/doc/ja/weechat_relay_protocol.ja.asciidoc # developer's guide weechat_dev.ja.html: weechat_dev.ja.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_dev.ja.html $(abs_top_srcdir)/doc/ja/weechat_dev.ja.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_dev.ja.html $(abs_top_srcdir)/doc/ja/weechat_dev.ja.asciidoc # install man/docs diff --git a/doc/ja/weechat.1.ja.asciidoc b/doc/ja/weechat.1.ja.asciidoc index a20f9e81c..e43e6826c 100644 --- a/doc/ja/weechat.1.ja.asciidoc +++ b/doc/ja/weechat.1.ja.asciidoc @@ -89,6 +89,15 @@ $HOME/.weechat/weechat.log:: == 著者 +// TRANSLATION MISSING +This manpage was written by Sébastien Helleu <flashcode@flashtux.org>. + +// TRANSLATION MISSING +Translated by Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>. + +// TRANSLATION MISSING +== COPYRIGHT + WeeChat は Sébastien Helleu さんと貢献者によって作成されています (完全なリストは AUTHORS.asciidoc ファイルを参照してください)。 diff --git a/doc/ja/weechat_dev.ja.asciidoc b/doc/ja/weechat_dev.ja.asciidoc index 40c6f8eb3..ec2b11165 100644 --- a/doc/ja/weechat_dev.ja.asciidoc +++ b/doc/ja/weechat_dev.ja.asciidoc @@ -1,9 +1,16 @@ = WeeChat 開発者ガイド :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2014 このマニュアルは WeeChat チャットクライアントについての文書で、これは WeeChat の一部です。 diff --git a/doc/ja/weechat_faq.ja.asciidoc b/doc/ja/weechat_faq.ja.asciidoc index bbfe998de..7bff39efc 100644 --- a/doc/ja/weechat_faq.ja.asciidoc +++ b/doc/ja/weechat_faq.ja.asciidoc @@ -3,12 +3,20 @@ :email: flashcode@flashtux.org :toc: :toc-title: 目次 +:toc-placement: manual +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2014 + [NOTE] この文書は WeeChat バージョン 0.3.0 以上向けに書かれたものですが、 最新安定版の WeeChat に対しても利用できます。 +toc::[] + [[general]] == 一般 diff --git a/doc/ja/weechat_plugin_api.ja.asciidoc b/doc/ja/weechat_plugin_api.ja.asciidoc index 264b41acc..a5e0c0a40 100644 --- a/doc/ja/weechat_plugin_api.ja.asciidoc +++ b/doc/ja/weechat_plugin_api.ja.asciidoc @@ -1,9 +1,16 @@ = WeeChat プラグイン API リファレンス :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toclevels: 4 :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2014 このマニュアルは WeeChat チャットクライアントについての文書で、WeeChat の一部です。 @@ -221,7 +228,7 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) プラグインに関する情報を取得する関数。 -==== weechat_plugin_get_name +==== plugin_get_name プラグインの名前を取得。 @@ -266,7 +273,7 @@ name = weechat.plugin_get_name(plugin) API 関数を使うことを推奨します。なぜなら、これらの関数は文字列を UTF-8 とロケールに準じて取り扱うようになっているからです。 -==== weechat_charset_set +==== charset_set 新しいプラグインの文字セットを設定する (デフォルトの文字セットは 'UTF-8' です、このためプラグインで 'UTF-8' を使う場合は、この関数を呼び出す必要はありません。 @@ -300,7 +307,7 @@ weechat.charset_set(charset) weechat.charset_set("iso-8859-1") ---- -==== weechat_iconv_to_internal +==== iconv_to_internal 文字列の文字セットを WeeChat の内部文字セット (UTF-8) に変換。 @@ -340,7 +347,7 @@ str = weechat.iconv_to_internal(charset, string) str = weechat.iconv_to_internal("iso-8859-1", "iso string: é à") ---- -==== weechat_iconv_from_internal +==== iconv_from_internal 文字列の文字セットを WeeChat の内部文字セット (UTF-8) から別の文字セットに変換。 @@ -380,7 +387,7 @@ str = weechat.iconv_from_internal(charset, string) str = weechat.iconv_from_internal("iso-8859-1", "utf-8 string: é à") ---- -==== weechat_gettext +==== gettext 翻訳済み文字列を返す (設定言語に依存)。 @@ -417,7 +424,7 @@ str = weechat.gettext(string) str = weechat.gettext("hello") ---- -==== weechat_ngettext +==== ngettext 'count' 引数を元に単数形または複数形で、翻訳済み文字列を返す。 @@ -460,7 +467,7 @@ num_files = 2 str = weechat.ngettext("file", "files", num_files) ---- -==== weechat_strndup +==== strndup 複製した文字列を最大で 'length' 文字分返す。 @@ -492,7 +499,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_tolower +==== string_tolower UTF-8 文字列を小文字に変換。 @@ -518,7 +525,7 @@ weechat_string_tolower (str); /* str is now: "abcdé" */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_toupper +==== string_toupper UTF-8 文字列を大文字に変換。 @@ -544,7 +551,7 @@ weechat_string_toupper (str); /* str is now: "ABCDé" */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strcasecmp +==== strcasecmp _バージョン 1.0 で更新。_ @@ -578,7 +585,7 @@ int diff = weechat_strcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strcasecmp_range +==== strcasecmp_range _WeeChat バージョン 0.3.7 以上で利用可。バージョン 1.0 で更新。_ @@ -619,7 +626,7 @@ int diff = weechat_strcasecmp_range ("nick{away}", "NICK[away]", 29); /* == 0 * [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strncasecmp +==== strncasecmp _バージョン 1.0 で更新。_ @@ -654,7 +661,7 @@ int diff = weechat_strncasecmp ("aabb", "aacc", 2); /* == 0 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strncasecmp_range +==== strncasecmp_range _WeeChat バージョン 0.3.7 以上で利用可。バージョン 1.0 で更新。_ @@ -697,7 +704,7 @@ int diff = weechat_strncasecmp_range ("nick{away}", "NICK[away]", 6, 29); /* == [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strcmp_ignore_chars +==== strcmp_ignore_chars _バージョン 1.0 で更新。_ @@ -736,7 +743,7 @@ int diff = weechat_strcmp_ignore_chars ("a-b", "--a-e", "-", 1); /* == -3 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strcasestr +==== strcasestr ロケールと大文字小文字を区別して文字列を検索。 @@ -766,7 +773,7 @@ char *pos = weechat_strcasestr ("aBcDeF", "de"); /* result: pointer to "DeF" */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_strlen_screen +==== strlen_screen _WeeChat バージョン 0.4.2 以上で利用可。_ @@ -807,7 +814,7 @@ length = weechat.strlen_screen(string) length = weechat.strlen_screen("é") # 1 ---- -==== weechat_string_match +==== string_match _バージョン 1.0 で更新。_ @@ -862,7 +869,7 @@ match4 = weechat.string_match("abcdef", "*de*", 0) # 1 match5 = weechat.string_match("abcdef", "*b*d*", 0) # 1 ---- -==== weechat_string_expand_home +==== string_expand_home _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -898,7 +905,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_remove_quotes +==== string_remove_quotes 文字列の最初と最後から引用符号を削除 (最初の引用符号の前と最後の引用符号の後にある空白文字は無視)。 @@ -933,7 +940,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_strip +==== string_strip 文字列の最初と最後から文字を削除する。 @@ -968,7 +975,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_convert_escaped_chars +==== string_convert_escaped_chars _WeeChat バージョン 1.0 以上で利用可。_ @@ -1018,7 +1025,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_mask_to_regex +==== string_mask_to_regex マスクから正規表現を作りこれを返す、マスク用の特殊文字は "`*`" のみ。これ以外の文字はすべてエスケープされます。 @@ -1059,7 +1066,7 @@ regex = weechat.string_mask_to_regex(mask) regex = weechat.string_mask_to_regex("test*mask") # "test.*mask" ---- -==== weechat_string_regex_flags +==== string_regex_flags _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -1110,7 +1117,7 @@ const char *ptr_regex = weechat_string_regex_flags (regex, REG_EXTENDED, &flags) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_regcomp +==== string_regcomp _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -1154,7 +1161,7 @@ if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_has_highlight +==== string_has_highlight ハイライトしたい単語のリストを元に、1 箇所以上マッチする部分があるか調べる。 @@ -1193,7 +1200,7 @@ highlight = weechat.string_has_highlight(string, highlight_words) highlight = weechat.string_has_highlight("my test string", "test,word2") # 1 ---- -==== weechat_string_has_highlight_regex +==== string_has_highlight_regex _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -1236,7 +1243,7 @@ highlight = weechat.string_has_highlight_regex(string, regex) highlight = weechat.string_has_highlight_regex("my test string", "test|word2") # 1 ---- -==== weechat_string_replace +==== string_replace マッチした全ての文字列を別の文字列で置換。 @@ -1271,7 +1278,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_replace_regex +==== string_replace_regex _WeeChat バージョン 1.0 以上で利用可。_ @@ -1334,7 +1341,7 @@ if (weechat_string_regcomp (&my_regex, "([0-9]{4})-([0-9]{2})-([0-9]{2})", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_split +==== string_split 1 つ以上の区切り文字に従って文字列を分割。 @@ -1392,7 +1399,7 @@ weechat_string_free_split (argv); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_split_shell +==== string_split_shell _WeeChat バージョン 1.0 以上で利用可。_ @@ -1437,7 +1444,7 @@ weechat_string_free_split (argv); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_free_split +==== string_free_split 文字列分割に使用したメモリを開放。 @@ -1467,7 +1474,7 @@ weechat_string_free_split (argv); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_build_with_split_string +==== string_build_with_split_string 分割文字列から文字列を作る。 @@ -1505,7 +1512,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_split_command +==== string_split_command 'separator' でコマンドのリストを分割 (コマンドに区切り文字を使う場合は "\" でエスケープ)。 @@ -1541,7 +1548,7 @@ weechat_free_split_command (argv); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_free_split_command +==== string_free_split_command コマンド分割で使用したメモリを開放。 @@ -1569,7 +1576,7 @@ weechat_free_split_command (argv); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_format_size +==== string_format_size ファイルサイズと設定言語に翻訳された単位を書式に当てはめて文字列を作る @@ -1618,7 +1625,7 @@ free (str); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_remove_color +==== string_remove_color 文字列から WeeChat 色コードを削除。 @@ -1667,7 +1674,7 @@ str = weechat.string_remove_color(string, replacement) str = weechat.string_remove_color(my_string, "?") ---- -==== weechat_string_encode_base64 +==== string_encode_base64 _WeeChat バージョン 0.3.2 以上で利用可。_ @@ -1699,7 +1706,7 @@ weechat_string_encode_base64 (string, strlen (string), result); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_decode_base64 +==== string_decode_base64 _WeeChat バージョン 0.3.2 以上で利用可。_ @@ -1735,7 +1742,7 @@ length = weechat_string_decode_base64 (string, result); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_string_is_command_char +==== string_is_command_char _WeeChat バージョン 0.3.2 以上で利用可。_ @@ -1776,7 +1783,7 @@ command_char1 = weechat.string_is_command_char("/test") # == 1 command_char2 = weechat.string_is_command_char("test") # == 0 ---- -==== weechat_string_input_for_buffer +==== string_input_for_buffer _WeeChat バージョン 0.3.2 以上で利用可。_ @@ -1820,7 +1827,7 @@ str2 = weechat.string_input_for_buffer("/test") # "" str3 = weechat.string_input_for_buffer("//test") # "/test" ---- -==== weechat_string_eval_expression +==== string_eval_expression _WeeChat バージョン 0.4.0 以上で利用可、バージョン 0.4.2 と 1.1 で更新。_ @@ -2010,7 +2017,7 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio UTF-8 文字列関数。 -==== weechat_utf8_has_8bits +==== utf8_has_8bits 文字列に 8 ビット文字が含まれているか確認。 @@ -2042,7 +2049,7 @@ if (weechat_utf8_has_8bits (string)) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_is_valid +==== utf8_is_valid 文字列が妥当な UTF-8 表現か確認。 @@ -2081,7 +2088,7 @@ else [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_normalize +==== utf8_normalize UTF-8 文字列を正規化: 非 UTF-8 文字を削除し、これらを文字で置換。 @@ -2107,7 +2114,7 @@ weechat_utf8_normalize (string, '?'); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_prev_char +==== utf8_prev_char 文字列中の 1 つ前の UTF-8 文字へのポインタを返す。 @@ -2138,7 +2145,7 @@ char *prev_char = weechat_utf8_prev_char (string, ptr_in_string); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_next_char +==== utf8_next_char 文字列中の 1 つ後の UTF-8 文字へのポインタを返す。 @@ -2167,7 +2174,7 @@ char *next_char = weechat_utf8_next_char (string); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_char_int +==== utf8_char_int UTF-8 文字を整数で返す。 @@ -2196,7 +2203,7 @@ int char_int = weechat_utf8_char_int ("être"); /* "ê" as integer */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_char_size +==== utf8_char_size UTF-8 文字のサイズを返す (バイト単位)。 @@ -2225,7 +2232,7 @@ int char_size = weechat_utf8_char_size ("être"); /* == 2 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_strlen +==== utf8_strlen UTF-8 文字の長さを返す (UTF-8 文字の個数)。 @@ -2254,7 +2261,7 @@ int length = weechat_utf8_strlen ("chêne"); /* == 5 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_strnlen +==== utf8_strnlen 文字列の 'bytes' バイト目までに含まれる UTF-8 文字列の長さを返す (UTF-8 文字の個数)。 @@ -2284,7 +2291,7 @@ int length = weechat_utf8_strnlen ("chêne", 4); /* == 3 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_strlen_screen +==== utf8_strlen_screen UTF-8 文字列をスクリーン上に表示するために必要なスクリーン幅を返す。 @@ -2313,7 +2320,7 @@ int length_on_screen = weechat_utf8_strlen_screen ("é"); /* == 1 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_charcmp +==== utf8_charcmp _バージョン 1.0 で更新。_ @@ -2347,7 +2354,7 @@ int diff = weechat_utf8_charcmp ("aaa", "ccc"); /* == -2 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_charcasecmp +==== utf8_charcasecmp _バージョン 1.0 で更新。_ @@ -2381,7 +2388,7 @@ int diff = weechat_utf8_charcasecmp ("aaa", "CCC"); /* == -2 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_char_size_screen +==== utf8_char_size_screen UTF-8 文字をスクリーン上に表示するために必要なスクリーン幅を返す。 @@ -2410,7 +2417,7 @@ int length_on_screen = weechat_utf8_char_size_screen ("é"); /* == 1 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_add_offset +==== utf8_add_offset UTF-8 文字列で N 文字前に進む。 @@ -2441,7 +2448,7 @@ char *str2 = weechat_utf8_add_offset (str, 3); /* points to "ne" */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_real_pos +==== utf8_real_pos UTF-8 文字列中の真の位置を返す。 @@ -2471,7 +2478,7 @@ int pos = weechat_utf8_real_pos ("chêne", 3); /* == 4 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_pos +==== utf8_pos UTF-8 文字列中の位置を返す。 @@ -2501,7 +2508,7 @@ int pos = weechat_utf8_pos ("chêne", 4); /* == 3 */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_utf8_strndup +==== utf8_strndup 最長 'length' 文字の複製された文字列を返す。 @@ -2538,7 +2545,7 @@ free (string); ディレクトリに関する関数。 -==== weechat_mkdir_home +==== mkdir_home WeeChat ホームディレクトリの下にディレクトリを作成。 @@ -2579,7 +2586,7 @@ weechat.mkdir_home(directory, mode) weechat.mkdir_home("temp", 0755) ---- -==== weechat_mkdir +==== mkdir ディレクトリを作成。 @@ -2620,7 +2627,7 @@ weechat.mkdir(directory, mode) weechat.mkdir("/tmp/mydir", 0755) ---- -==== weechat_mkdir_parents +==== mkdir_parents ディレクトリの作成と必要に応じて親ディレクトリの作成を行う。 @@ -2661,7 +2668,7 @@ weechat.mkdir_parents(directory, mode) weechat.mkdir_parents("/tmp/my/dir", 0755) ---- -==== weechat_exec_on_files +==== exec_on_files ディレクトリ中のファイルを探し、各ファイルに対してコールバックを実行。 @@ -2700,7 +2707,7 @@ weechat_exec_on_files ("/tmp", 0, NULL, &callback); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_file_get_content +==== file_get_content _WeeChat バージョン 0.3.1 以上で利用可。_ @@ -2740,7 +2747,7 @@ free (content); 便利な関数。 -==== weechat_util_timeval_cmp +==== util_timeval_cmp 2 つの "timeval" 構造体を比較。 @@ -2775,7 +2782,7 @@ if (weechat_util_timeval_cmp (&tv1, &tv2) > 0) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_util_timeval_diff +==== util_timeval_diff _バージョン 1.1 で更新。_ @@ -2810,7 +2817,7 @@ long long diff = weechat_util_timeval_diff (&tv1, &tv2); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_util_timeval_add +==== util_timeval_add _バージョン 1.1 で更新。_ @@ -2841,7 +2848,7 @@ weechat_util_timeval_add (&tv, 2000000); /* add 2 seconds */ [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_util_get_time_string +==== util_get_time_string _WeeChat バージョン 0.3.2 以上で利用可。_ @@ -2870,7 +2877,7 @@ weechat_printf (NULL, "date: %s", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_util_version_number +==== util_version_number _WeeChat バージョン 0.3.9 以上で利用可。_ @@ -2905,7 +2912,7 @@ version_number = weechat_util_version_number ("0.3.9"); /* == 0x00030900 */ ソート済みリスト関数。 -==== weechat_list_new +==== list_new 新しいリストを作成。 @@ -2938,7 +2945,7 @@ list = weechat.list_new() list = weechat.list_new() ---- -==== weechat_list_add +==== list_add リストに要素を追加。 @@ -2985,7 +2992,7 @@ item = weechat.list_add(list, data, where, user_data) item = weechat.list_add(list, "my data", weechat.WEECHAT_LIST_POS_SORT, "") ---- -==== weechat_list_search +==== list_search リストから要素を検索。 @@ -3024,7 +3031,7 @@ item = weechat.list_search(list, data) item = weechat.list_search(list, "my data") ---- -==== weechat_list_search_pos +==== list_search_pos _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -3065,7 +3072,7 @@ pos_item = weechat.list_search_pos(list, data) pos_item = weechat.list_search_pos(list, "my data") ---- -==== weechat_list_casesearch +==== list_casesearch 大文字小文字を無視してリストから要素を検索。 @@ -3104,7 +3111,7 @@ item = weechat.list_casesearch(list, data) item = weechat.list_casesearch(list, "my data") ---- -==== weechat_list_casesearch_pos +==== list_casesearch_pos _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -3145,7 +3152,7 @@ pos_item = weechat.list_casesearch_pos(list, data) pos_item = weechat.list_casesearch_pos(list, "my data") ---- -==== weechat_list_get +==== list_get リスト中の位置を指定して要素を返す。 @@ -3184,7 +3191,7 @@ item = weechat.list_get(list, position) item = weechat.list_get(list, 0) ---- -==== weechat_list_set +==== list_set ある要素に新しい値をセット。 @@ -3218,7 +3225,7 @@ weechat.list_set(item, value) weechat.list_set(item, "new data") ---- -==== weechat_list_next +==== list_next リストから 1 つ後の要素を返す。 @@ -3255,7 +3262,7 @@ item = weechat.list_next(item) item = weechat.list_next(item) ---- -==== weechat_list_prev +==== list_prev リストから 1 つ前の要素を返す。 @@ -3292,7 +3299,7 @@ item = weechat.list_prev(item) item = weechat.list_prev(item) ---- -==== weechat_list_string +==== list_string ある要素の文字列値を返す。 @@ -3329,7 +3336,7 @@ value = weechat.list_string(item) weechat.prnt("", "value of item: %s" % weechat.list_string(item)) ---- -==== weechat_list_size +==== list_size リストのサイズ (要素の個数) を返す。 @@ -3366,7 +3373,7 @@ size = weechat.list_size(list) weechat.prnt("", "size of list: %d" % weechat.list_size(list)) ---- -==== weechat_list_remove +==== list_remove ある要素をリストから削除。 @@ -3401,7 +3408,7 @@ weechat.list_remove(list, item) weechat.list_remove(list, item) ---- -==== weechat_list_remove_all +==== list_remove_all あるリストの要素をすべて削除。 @@ -3434,7 +3441,7 @@ weechat.list_remove_all(list) weechat.list_remove_all(list) ---- -==== weechat_list_free +==== list_free リストを開放。 @@ -3472,7 +3479,7 @@ weechat.list_free(list) ハッシュテーブル関数。 -==== weechat_hashtable_new +==== hashtable_new _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -3544,7 +3551,7 @@ struct t_hashtable *hashtable = weechat_hashtable_new (8, [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_set_with_size +==== hashtable_set_with_size _WeeChat バージョン 0.3.3 以上で利用可、バージョン 0.4.2 で更新。_ @@ -3584,7 +3591,7 @@ weechat_hashtable_set_with_size (hashtable, "my_key", 0, [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_set +==== hashtable_set _WeeChat バージョン 0.3.3 以上で利用可、バージョン 0.4.2 で更新。_ @@ -3618,7 +3625,7 @@ weechat_hashtable_set (hashtable, "my_key", "my_value"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_get +==== hashtable_get _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -3650,7 +3657,7 @@ void *value = weechat_hashtable_get (hashtable, "my_key"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_has_key +==== hashtable_has_key _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -3686,7 +3693,7 @@ if (weechat_hashtable_has_key (hashtable, "my_key")) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_map +==== hashtable_map _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -3730,7 +3737,7 @@ weechat_hashtable_map (hashtable, &map_cb, NULL); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_map_string +==== hashtable_map_string _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -3777,7 +3784,7 @@ weechat_hashtable_map_string (hashtable, &map_cb, NULL); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_dup +==== hashtable_dup _WeeChat バージョン 1.0 以上で利用可。_ @@ -3808,7 +3815,7 @@ struct t_hashtable *new_hashtable = weechat_hashtable_dup (hashtable); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_get_integer +==== hashtable_get_integer _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -3843,7 +3850,7 @@ int items_count = weechat_hashtable_get_integer (hashtable, "items_count"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_get_string +==== hashtable_get_string _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -3898,7 +3905,7 @@ weechat_printf (NULL, "list of keys: %s", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_set_pointer +==== hashtable_set_pointer _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -3944,7 +3951,7 @@ weechat_hashtable_set_pointer (hashtable, "callback_free_key", &my_free_key_cb); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_add_to_infolist +==== hashtable_add_to_infolist _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -3989,7 +3996,7 @@ weechat_hashtable_add_to_infolist (hashtable, infolist_item, "testhash"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_remove +==== hashtable_remove _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -4017,7 +4024,7 @@ weechat_hashtable_remove (hashtable, "my_key"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_remove_all +==== hashtable_remove_all _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -4044,7 +4051,7 @@ weechat_hashtable_remove_all (hashtable); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hashtable_free +==== hashtable_free _WeeChat バージョン 0.3.3 以上で利用可。_ @@ -4076,7 +4083,7 @@ weechat_hashtable_free (hashtable); 設定ファイルに関する関数。 -==== weechat_config_new +==== config_new 新しい設定ファイルを作成。 @@ -4147,7 +4154,7 @@ def my_config_reload_cb(data, config_file): config_file = weechat.config_new("test", "my_config_reload_cb", "") ---- -==== weechat_config_new_section +==== config_new_section 設定ファイルに新しいセクションを作成する。 @@ -4388,7 +4395,7 @@ section = weechat.config_new_section(config_file, "section1", 1, 1, "my_section_delete_option_cb", "") ---- -==== weechat_config_search_section +==== config_search_section 設定ファイルからセクションを検索。 @@ -4429,7 +4436,7 @@ section = weechat.config_search_section(config_file, section_name) section = weechat.config_search_section(config_file, "section") ---- -==== weechat_config_new_option +==== config_new_option 設定ファイルのあるセクションに新しいオプションを作成。 @@ -4642,7 +4649,7 @@ Ruby では、3 組のコールバックとデータ (合わせて 6 つの文 1 つ渡してください (これは Ruby が 関数に 15 個以上の引数を渡せないことが原因です)、より詳しい情報は 'WeeChat スクリプト作成ガイド' を参照してください _(バージョン 0.4.1 で修正済み)_ 。 -==== weechat_config_search_option +==== config_search_option 設定ファイルのセクションからオプションを検索。 @@ -4685,7 +4692,7 @@ option = weechat.config_search_option(config_file, section, option_name) option = weechat.config_search_option(config_file, section, "option") ---- -==== weechat_config_search_section_option +==== config_search_section_option 設定ファイルまたはセクションからセクションやオプションを検索。 @@ -4735,7 +4742,7 @@ else [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_config_search_with_string +==== config_search_with_string ファイル/セクション/オプションの情報をオプションを完全な名前で検索。 @@ -4789,7 +4796,7 @@ else [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_config_string_to_boolean +==== config_string_to_boolean テキストがブール値としての "true" または "false" かをチェック。 @@ -4835,7 +4842,7 @@ if weechat.config_string_to_boolean(text): # ... ---- -==== weechat_config_option_reset +==== config_option_reset オプションをデフォルト値にリセット。 @@ -4894,7 +4901,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set +==== config_option_set オプションに新しい値を設定。 @@ -4954,7 +4961,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_set_null +==== config_option_set_null あるオプションに null (未定義値) を設定する。 @@ -5017,7 +5024,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_option_unset +==== config_option_unset オプションをアンセット/リセットする。 @@ -5079,7 +5086,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: # ... ---- -==== weechat_config_option_rename +==== config_option_rename オプションをリネーム。 @@ -5114,7 +5121,7 @@ weechat.config_option_rename(option, new_name) weechat.config_option_rename(option, "new_name") ---- -==== weechat_config_option_get_pointer +==== config_option_get_pointer あるオプションのプロパティへのポインタを返す。 @@ -5157,7 +5164,7 @@ char *description = weechat_config_option_get_pointer (option, "description"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_config_option_is_null +==== config_option_is_null オプションの値が "null" (未定義値) か否かを確認。 @@ -5203,7 +5210,7 @@ if weechat.config_option_is_null(option): # ... ---- -==== weechat_config_option_default_is_null +==== config_option_default_is_null あるオプションのデフォルト値が "null" (未定義値) か否かを確認。 @@ -5249,7 +5256,7 @@ if weechat.config_option_default_is_null(option): # ... ---- -==== weechat_config_boolean +==== config_boolean オプションのブール値を返す。 @@ -5296,7 +5303,7 @@ if weechat.config_boolean(option): # ... ---- -==== weechat_config_boolean_default +==== config_boolean_default オプションのデフォルトブール値を返す。 @@ -5343,7 +5350,7 @@ if weechat.config_boolean_default(option): # ... ---- -==== weechat_config_integer +==== config_integer オプションの整数値を返す。 @@ -5382,7 +5389,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer(option) ---- -==== weechat_config_integer_default +==== config_integer_default オプションのデフォルト整数値を返す。 @@ -5421,7 +5428,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_integer_default(option) ---- -==== weechat_config_string +==== config_string オプションの文字列値を返す。 @@ -5460,7 +5467,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string(option) ---- -==== weechat_config_string_default +==== config_string_default オプションのデフォルト文字列値を返す。 @@ -5499,7 +5506,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_string_default(option) ---- -==== weechat_config_color +==== config_color オプションの色値を返す。 @@ -5538,7 +5545,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color(option) ---- -==== weechat_config_color_default +==== config_color_default オプションのデフォルト色値を返す。 @@ -5577,7 +5584,7 @@ option = weechat.config_get("plugin.section.option") value = weechat.config_color_default(option) ---- -==== weechat_config_write_option +==== config_write_option 設定ファイルにオプションとその値を収めた行を書き込む (この関数をセクションの "write" および "write_default" コールバック以外で使わないでください)。 @@ -5625,7 +5632,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write_line +==== config_write_line 設定ファイルに行を書き込む (この関数をセクションの "write" および "write_default" コールバック以外で使わないでください) @@ -5677,7 +5684,7 @@ def my_section_write_cb(data, config_file, section_name): return weechat.WEECHAT_RC_OK ---- -==== weechat_config_write +==== config_write 設定ファイルをディスクに書き込む。 @@ -5733,7 +5740,7 @@ elif rc == weechat.WEECHAT_CONFIG_WRITE_ERROR: # ... ---- -==== weechat_config_read +==== config_read 設定ファイルをディスクから読み込む。 @@ -5789,7 +5796,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_reload +==== config_reload 設定ファイルをディスクから再読み込みする。 @@ -5845,7 +5852,7 @@ elif rc == weechat.WEECHAT_CONFIG_READ_FILE_NOT_FOUND: # ... ---- -==== weechat_config_option_free +==== config_option_free オプションを開放。 @@ -5878,7 +5885,7 @@ weechat.config_option_free(option) weechat.config_option_free(option) ---- -==== weechat_config_section_free_options +==== config_section_free_options セクションの全てのオプションを開放。 @@ -5911,7 +5918,7 @@ weechat.config_section_free_options(section) weechat.config_section_free_options(section) ---- -==== weechat_config_section_free +==== config_section_free セクションを開放。 @@ -5944,7 +5951,7 @@ weechat.config_section_free(section) weechat.config_section_free(section) ---- -==== weechat_config_free +==== config_free 設定ファイルを開放。 @@ -5977,7 +5984,7 @@ weechat.config_free(config_file) weechat.config_free(config_file) ---- -==== weechat_config_get +==== config_get 完全な名前でオプションを検索。 @@ -6014,7 +6021,7 @@ option = weechat.config_get(option_name) option = weechat.config_get("weechat.look.item_time_format") ---- -==== weechat_config_get_plugin +==== config_get_plugin プラグインの設定ファイル (plugins.conf) からオプションを検索。 @@ -6054,7 +6061,7 @@ value = weechat.config_get_plugin(option_name) value = weechat.config_get_plugin("option") ---- -==== weechat_config_is_set_plugin +==== config_is_set_plugin オプションがプラグインの設定ファイル (plugins.conf) で設定されているか否かを確認。 @@ -6104,7 +6111,7 @@ else: # ... ---- -==== weechat_config_set_plugin +==== config_set_plugin プラグイン設定ファイル (plugins.conf) のオプションの新しい値を設定。 @@ -6168,7 +6175,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_SET_ERROR: # ... ---- -==== weechat_config_set_desc_plugin +==== config_set_desc_plugin _WeeChat バージョン 0.3.5 以上で利用可。_ @@ -6212,7 +6219,7 @@ if int(version) >= 0x00030500: weechat.config_set_desc_plugin("option", "description of option") ---- -==== weechat_config_unset_plugin +==== config_unset_plugin プラグイン設定ファイル (plugins.conf) のオプションをアンセットする。 @@ -6280,7 +6287,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR: キー割り当てに関する関数。 -==== weechat_key_bind +==== key_bind _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -6344,7 +6351,7 @@ keys = {"@chat(python.test):button1": "hsignal:test_mouse", weechat.key_bind("mouse", keys) ---- -==== weechat_key_unbind +==== key_unbind _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -6402,7 +6409,7 @@ weechat.key_unbind("mouse", "area:chat(python.test)") バッファにテキストを表示する関数。 -==== weechat_prefix +==== prefix プレフィックスを返す。 @@ -6455,7 +6462,7 @@ value = weechat.prefix(prefix) weechat.prnt("", "%sThis is an error..." % weechat.prefix("error")) ---- -==== weechat_color +==== color 表示する色コードを文字列で返す。 @@ -6535,7 +6542,7 @@ weechat.prnt("", "Color: %sblue %sdefault color %syellow on red" % (weechat.color("blue"), weechat.color("chat"), weechat.color("yellow,red"))) ---- -==== weechat_printf +==== printf バッファにメッセージを表示。 @@ -6593,7 +6600,7 @@ weechat.prnt(buffer, "\t\t") # empty line (without time) [NOTE] この関数をスクリプトの中で実行するには "print" (Python の場合は "prnt") と綴ります。 -==== weechat_printf_date +==== printf_date 日付を指定してバッファにメッセージを表示。 @@ -6621,7 +6628,7 @@ weechat_printf_date (NULL, time (NULL) - 120, "Hello, 2 minutes ago"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_printf_tags +==== printf_tags タグを指定してバッファにメッセージを表示。 @@ -6650,7 +6657,7 @@ weechat_printf_tags (NULL, "notify_message", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_printf_date_tags +==== printf_date_tags 日付とタグを指定してバッファにメッセージを表示。 @@ -6719,7 +6726,7 @@ weechat.prnt_date_tags("", time - 120, "notify_message", [NOTE] この関数をスクリプトの中で実行するには "print_date_tags" (Python の場合は "prnt_date_tags") と綴ります。 -==== weechat_printf_y +==== printf_y 自由内容のバッファのある行にメッセージを表示 @@ -6761,7 +6768,7 @@ weechat.prnt_y("", 2, "My message on third line") [NOTE] この関数をスクリプトの中で実行するには "print_y" (Python の場合は "prnt_y") と綴ります。 -==== weechat_log_printf +==== log_printf WeeChat ログファイル (weechat.log) にメッセージを書き込む。 @@ -6826,7 +6833,7 @@ weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL); 以下のフック型に対して優先度を設定できます: command、command_run、signal、hsignal、config、completion、modifier、info、info_hashtable、infolist、hdata、focus。 -==== weechat_hook_command +==== hook_command コマンドをフックする。 @@ -6962,7 +6969,7 @@ hook = weechat.hook_command("myfilter", "description of myfilter", "my_command_cb", "") ---- -==== weechat_hook_command_run +==== hook_command_run WeeChat がコマンドを実行する際にこれをフック。 @@ -7032,7 +7039,7 @@ def my_command_run_cb(data, buffer, command): hook = weechat.hook_command_run("/input complete*", "my_command_run_cb", "") ---- -==== weechat_hook_timer +==== hook_timer タイマをフックする。 @@ -7099,7 +7106,7 @@ def my_timer_cb(data, remaining_calls): hook = weechat.hook_timer(20 * 1000, 0, 0, "my_timer_cb", "") ---- -==== weechat_hook_fd +==== hook_fd ファイルディスクリプタ (ファイルやソケット) をフック。 @@ -7168,7 +7175,7 @@ sock = ... hook = weechat.hook_fd(sock, 1, 0, 0, "my_fd_cb", "") ---- -==== weechat_hook_process +==== hook_process プロセスをフックして (フォークして実行)、出力を受け取る。 @@ -7307,7 +7314,7 @@ def my_process_cb(data, command, return_code, out, err): hook = weechat.hook_process("ls", 5000, "my_process_cb", "") ---- -==== weechat_hook_process_hashtable +==== hook_process_hashtable _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -7512,7 +7519,7 @@ hook3 = weechat.hook_process_hashtable("sh", 20000, "my_process_cb", "") ---- -==== weechat_hook_connect +==== hook_connect 接続をフックする (リモートホストへのバックグラウンド接続)。 @@ -7682,7 +7689,7 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "", "my_connect_cb", "") ---- -==== weechat_hook_print +==== hook_print _WeeChat バージョン 0.4.3 と 1.0 で更新_ @@ -7783,7 +7790,7 @@ def my_print_cb(data, buffer, date, tags, displayed, highlight, prefix, message) hook = weechat.hook_print("", "", "", 1, "my_print_cb", "") ---- -==== weechat_hook_signal +==== hook_signal シグナルをフックする。 @@ -8462,7 +8469,7 @@ def my_signal_cb(data, signal, signal_data): hook = weechat.hook_signal("quit", "my_signal_cb", "") ---- -==== weechat_hook_signal_send +==== hook_signal_send _バージョン 1.0 で更新。_ @@ -8653,7 +8660,7 @@ weechat.hook_signal_send("irc_input_send", weechat.WEECHAT_HOOK_SIGNAL_STRING, "freenode;;2;;/whois FlashCode") ---- -==== weechat_hook_hsignal +==== hook_hsignal _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -8779,7 +8786,7 @@ def my_hsignal_cb(data, signal, hashtable): hook = weechat.hook_hsignal("test", "my_hsignal_cb", "") ---- -==== weechat_hook_hsignal_send +==== hook_hsignal_send _WeeChat バージョン 0.3.4 以上で利用可、バージョン 1.0 で更新。_ @@ -9010,7 +9017,7 @@ weechat.hook_hsignal_send("irc_redirect_pattern", # ... ---- -==== weechat_hook_config +==== hook_config 設定オプションをフック。 @@ -9076,7 +9083,7 @@ def my_config_cb(data, option, value): hook = weechat.hook_config("weechat.look.item_time_format", "my_config_cb", "") ---- -==== weechat_hook_completion +==== hook_completion 補完をフック。 @@ -9168,7 +9175,7 @@ hook = weechat.hook_completion("plugin_item", "my custom completion!", "my_completion_cb", "") ---- -==== weechat_hook_completion_get_string +==== hook_completion_get_string _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -9225,7 +9232,7 @@ def my_completion_cb(data, completion_item, buffer, completion): return weechat.WEECHAT_RC_OK ---- -==== weechat_hook_completion_list_add +==== hook_completion_list_add 補完用に単語を追加。 @@ -9261,7 +9268,7 @@ weechat.hook_completion_list_add(completion, word, nick_completion, where) # 例: 前の hook_completion 関数を参照 ---- -==== weechat_hook_modifier +==== hook_modifier 修飾子をフック。 @@ -9452,7 +9459,7 @@ def my_modifier_cb(data, modifier, modifier_data, string): hook = weechat.hook_modifier("weechat_print", "my_modifier_cb", "") ---- -==== weechat_hook_modifier_exec +==== hook_modifier_exec 修飾子を実行。 @@ -9494,7 +9501,7 @@ weechat.hook_modifier_exec(modifier, modifier_data, string) weechat.hook_modifier_exec("my_modifier", my_data, my_string) ---- -==== weechat_hook_info +==== hook_info 情報をフック (コールバックを呼び出し、文字列を返す)。 @@ -9561,7 +9568,7 @@ hook = weechat.hook_info("my_info", "Some info", "Info about arguments", "my_info_cb", "") ---- -==== weechat_hook_info_hashtable +==== hook_info_hashtable _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -9637,7 +9644,7 @@ hook = weechat.hook_info_hashtable("my_info_hashtable", "Some info", "my_info_hashtable_cb", "") ---- -==== weechat_hook_infolist +==== hook_infolist インフォリストをフック: コールバックは要求したインフォリストへのポインタを返す。 @@ -9720,7 +9727,7 @@ hook = weechat.hook_infolist("my_infolist", "Infolist with some data", "my_infolist_cb", "") ---- -==== weechat_hook_hdata +==== hook_hdata hdata をフック: コールバックは要求した hdata へのポインタを返す。 @@ -9775,7 +9782,7 @@ struct t_hook *my_hdata = weechat_hook_hdata ("my_hdata", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hook_focus +==== hook_focus フォーカス (マウスイベントやカーソルモード (カーソルが自由に移動出来る状態) でキーが押されたこと) をフック。 @@ -9911,7 +9918,7 @@ def my_focus_nicklist_cb(data, info): hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") ---- -==== weechat_hook_set +==== hook_set _WeeChat バージョン 0.3.9 以上で利用可 (スクリプト: WeeChat バージョン 0.4.3 以上で利用可)。_ @@ -9988,7 +9995,7 @@ weechat.hook_set(hook, "stdin", "data sent to stdin of child process") weechat.hook_set(hook, "stdin_close", "") # optional ---- -==== weechat_unhook +==== unhook フックを解除。 @@ -10023,7 +10030,7 @@ weechat.unhook(hook) weechat.unhook(my_hook) ---- -==== weechat_unhook_all +==== unhook_all 現在のプラグインで設定したフックをすべて解除。 @@ -10057,7 +10064,7 @@ weechat.unhook_all() バッファを作成/検索/閉じる関数 -==== weechat_buffer_new +==== buffer_new 新しいバッファを開く。 @@ -10144,7 +10151,7 @@ def my_close_cb(data, buffer): buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") ---- -==== weechat_current_buffer +==== current_buffer 現在のバッファへのポインタを返す (現在のウィンドウに表示されているバッファ)。 @@ -10177,7 +10184,7 @@ buffer = weechat.current_buffer() weechat.prnt(weechat.current_buffer(), "Text on current buffer") ---- -==== weechat_buffer_search +==== buffer_search _バージョン 1.0 で更新。_ @@ -10224,7 +10231,7 @@ buffer = weechat.buffer_search(plugin, name) buffer = weechat.buffer_search("my_plugin", "my_buffer") ---- -==== weechat_buffer_search_main +==== buffer_search_main WeeChat メインバッファ ('core' バッファ、WeeChat を実行して最初に表示されるバッファ) を検索。 @@ -10258,7 +10265,7 @@ buffer = weechat.buffer_search_main() buffer = weechat.buffer_search_main() ---- -==== weechat_buffer_clear +==== buffer_clear バッファの内容を消去。 @@ -10298,7 +10305,7 @@ if buffer != "": weechat.buffer_clear(buffer) ---- -==== weechat_buffer_close +==== buffer_close バッファを閉じる。 @@ -10337,7 +10344,7 @@ buffer = weechat.buffer_new("my_buffer", "my_input_cb", "", "my_close_cb", "") weechat.buffer_close(buffer) ---- -==== weechat_buffer_merge +==== buffer_merge バッファを他のバッファにマージする: 両方のバッファは同じバッファ番号を持つ独立したバッファになり、WeeChat @@ -10377,7 +10384,7 @@ weechat.buffer_merge(buffer, target_buffer) weechat.buffer_merge(weechat.current_buffer(), weechat.buffer_search_main()) ---- -==== weechat_buffer_unmerge +==== buffer_unmerge マージされたバッファからバッファのマージを解除する。 @@ -10413,7 +10420,7 @@ weechat.buffer_unmerge(buffer, number) weechat.buffer_unmerge(weechat.current_buffer(), 1) ---- -==== weechat_buffer_get_integer +==== buffer_get_integer バッファプロパティの整数値を返す。 @@ -10500,7 +10507,7 @@ value = weechat.buffer_get_integer(buffer, property) weechat.prnt("", "my buffer number is: %d" % weechat.buffer_get_integer(my_buffer, "number")) ---- -==== weechat_buffer_get_string +==== buffer_get_string バッファプロパティの文字列値を返す。 @@ -10560,7 +10567,7 @@ weechat.prnt("", "name / short name of buffer are: %s / %s" weechat.buffer_get_string(my_buffer, "short_name"))) ---- -==== weechat_buffer_get_pointer +==== buffer_get_pointer バッファプロパティのポインタ値を返す。 @@ -10603,7 +10610,7 @@ value = weechat.buffer_get_pointer(buffer, property) weechat.prnt("", "plugin pointer of my buffer: %s" % weechat.buffer_get_pointer(my_buffer, "plugin")) ---- -==== weechat_buffer_set +==== buffer_set バッファプロパティに文字列値を設定。 @@ -10816,7 +10823,7 @@ weechat.buffer_set(my_buffer, "localvar_set_toto", "abc") weechat.buffer_set(my_buffer, "localvar_del_toto", "") ---- -==== weechat_buffer_set_pointer +==== buffer_set_pointer バッファプロパティのポインタ値を設定。 @@ -10870,7 +10877,7 @@ weechat_buffer_set_pointer (my_buffer, "close_callback", &my_close_cb); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_buffer_string_replace_local_var +==== buffer_string_replace_local_var 文字列に含まれるバッファローカル変数をその値で展開する。 @@ -10915,7 +10922,7 @@ str = weechat.buffer_string_replace_local_var(my_buffer, "test with $toto") # str contains "test with abc" ---- -==== weechat_buffer_match_list +==== buffer_match_list _WeeChat バージョン 0.3.5 以上で利用可。_ @@ -10975,7 +10982,7 @@ if buffer: ウィンドウを操作する関数。 -==== weechat_current_window +==== current_window 現在のウィンドウへのポインタを返す。 @@ -11008,7 +11015,7 @@ window = weechat.current_window() current_window = weechat.current_window() ---- -==== weechat_window_search_with_buffer +==== window_search_with_buffer _WeeChat バージョン 0.3.5 以上で利用可。_ @@ -11050,7 +11057,7 @@ weechat.prnt("", "window displaying core buffer: %s" % weechat.window_search_with_buffer(weechat.buffer_search_main())) ---- -==== weechat_window_get_integer +==== window_get_integer ウィンドウプロパティの整数値を返す。 @@ -11111,7 +11118,7 @@ weechat.prnt("", "current window is at position (x,y): (%d,%d)" weechat.window_get_integer(weechat.current_window(), "win_y"))) ---- -==== weechat_window_get_string +==== window_get_string ウィンドウプロパティの文字列値を返す。 @@ -11135,7 +11142,7 @@ int weechat_window_get_string (struct t_gui_window *window, * プロパティの文字列値 -==== weechat_window_get_pointer +==== window_get_pointer ウィンドウプロパティのポインタ値を返す。 @@ -11179,7 +11186,7 @@ weechat.prnt("", "buffer displayed in current window: %s" % weechat.window_get_pointer(weechat.current_window(), "buffer")) ---- -==== weechat_window_set_title +==== window_set_title ターミナルのタイトルを設定。 @@ -11217,7 +11224,7 @@ weechat.window_set_title("new title here") バッファのニックネームリストを操作する関数。 -==== weechat_nicklist_add_group +==== nicklist_add_group ニックネームリストにグループを追加。 @@ -11283,7 +11290,7 @@ group = weechat.nicklist_add_group(my_buffer, my_parent_group, "test_group", "weechat.color.nicklist_group", 1) ---- -==== weechat_nicklist_search_group +==== nicklist_search_group ニックネームリストからグループを検索。 @@ -11326,7 +11333,7 @@ group = weechat.nicklist_search_group(buffer, from_group, name) group = weechat.nicklist_search_group(my_buffer, "", "test_group") ---- -==== weechat_nicklist_add_nick +==== nicklist_add_nick ニックネームをグループに追加。 @@ -11398,7 +11405,7 @@ else: nick = weechat.nicklist_add_nick(my_buffer, my_group, "test_nick", color, "@", "lightgreen", 1) ---- -==== weechat_nicklist_search_nick +==== nicklist_search_nick ニックネームリストからニックネームを検索。 @@ -11441,7 +11448,7 @@ nick = weechat.nicklist_search_nick(buffer, from_group, name) nick = weechat.nicklist_search_nick(my_buffer, "", "test_nick") ---- -==== weechat_nicklist_remove_group +==== nicklist_remove_group ニックネームリストからグループを削除。 @@ -11476,7 +11483,7 @@ weechat.nicklist_remove_group(buffer, group) weechat.nicklist_remove_group(my_buffer, my_group) ---- -==== weechat_nicklist_remove_nick +==== nicklist_remove_nick ニックネームリストからニックネームを削除。 @@ -11511,7 +11518,7 @@ weechat.nicklist_remove_nick(buffer, nick) weechat.nicklist_remove_nick(my_buffer, my_nick) ---- -==== weechat_nicklist_remove_all +==== nicklist_remove_all ニックネームリストから全てのグループおよびニックネームを削除。 @@ -11544,7 +11551,7 @@ weechat.nicklist_remove_all(buffer) weechat.nicklist_remove_all(my_buffer) ---- -==== weechat_nicklist_get_next_item +==== nicklist_get_next_item _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -11594,7 +11601,7 @@ while (ptr_group || ptr_nick) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_nicklist_group_get_integer +==== nicklist_group_get_integer _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11639,7 +11646,7 @@ value = weechat.nicklist_group_get_integer(buffer, group, property) visible = weechat.nicklist_group_get_integer(buffer, group, "visible") ---- -==== weechat_nicklist_group_get_string +==== nicklist_group_get_string _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11684,7 +11691,7 @@ value = weechat.nicklist_group_get_string(buffer, group, property) color = weechat.nicklist_group_get_string(buffer, group, "color") ---- -==== weechat_nicklist_group_get_pointer +==== nicklist_group_get_pointer _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11728,7 +11735,7 @@ value = weechat.nicklist_group_get_pointer(buffer, group, property) parent = weechat.nicklist_group_get_pointer(buffer, group, "parent") ---- -==== weechat_nicklist_group_set +==== nicklist_group_set _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11798,7 +11805,7 @@ weechat.nicklist_group_set(buffer, group, "color", "yellow") weechat.nicklist_group_set(buffer, group, "visible", "0") ---- -==== weechat_nicklist_nick_get_integer +==== nicklist_nick_get_integer _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11842,7 +11849,7 @@ value = weechat.nicklist_nick_get_integer(buffer, nick, property) visible = weechat.nicklist_nick_get_integer(buffer, nick, "visible") ---- -==== weechat_nicklist_nick_get_string +==== nicklist_nick_get_string _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11889,7 +11896,7 @@ value = weechat.nicklist_nick_get_string(buffer, nick, property) color = weechat.nicklist_nick_get_string(buffer, nick, "color") ---- -==== weechat_nicklist_nick_get_pointer +==== nicklist_nick_get_pointer _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -11933,7 +11940,7 @@ value = weechat.nicklist_nick_get_pointer(buffer, nick, property) group = weechat.nicklist_nick_get_pointer(buffer, nick, "group") ---- -==== weechat_nicklist_nick_set +==== nicklist_nick_set _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -12021,7 +12028,7 @@ weechat.nicklist_nick_set(buffer, nick, "visible", "0") バーを操作する関数。 -==== weechat_bar_item_search +==== bar_item_search バー要素を検索。 @@ -12058,7 +12065,7 @@ bar_item = weechat.bar_item_search(name) bar_item = weechat.bar_item_search("myitem") ---- -==== weechat_bar_item_new +==== bar_item_new _バージョン 0.4.2 で更新。_ @@ -12144,7 +12151,7 @@ def my_build_callback2(data, item, window, buffer, extra_info): bar_item2 = weechat.bar_item_new("(extra)myitem2", "my_build_callback2", "") # WeeChat ≥ 0.4.2 ---- -==== weechat_bar_item_update +==== bar_item_update build コールバックを呼び出してバー要素の内容を更新。 @@ -12177,7 +12184,7 @@ weechat.bar_item_update(name) weechat.bar_item_update("myitem") ---- -==== weechat_bar_item_remove +==== bar_item_remove バー要素を削除。 @@ -12210,7 +12217,7 @@ weechat.bar_item_remove(item) weechat.bar_item_remove(myitem) ---- -==== weechat_bar_search +==== bar_search バーを検索。 @@ -12247,7 +12254,7 @@ bar = weechat.bar_search(name) bar = weechat.bar_search("mybar") ---- -==== weechat_bar_new +==== bar_new 新しいバーを作成。 @@ -12348,7 +12355,7 @@ bar = weechat.bar_new("mybar", "off", "100", "window", "", "top", "horizontal", "0", "5", "default", "cyan", "blue", "off", "time,buffer_number+buffer_name") ---- -==== weechat_bar_set +==== bar_set バープロパティに新しい値を設定。 @@ -12390,7 +12397,7 @@ weechat.bar_set(bar, property, value) weechat.bar_set(my_bar, "position", "bottom") ---- -==== weechat_bar_update +==== bar_update スクリーン上のバーの内容を更新。 @@ -12423,7 +12430,7 @@ weechat.bar_update(name) weechat.bar_update("mybar") ---- -==== weechat_bar_remove +==== bar_remove バーを削除。 @@ -12461,7 +12468,7 @@ weechat.bar_remove(my_bar) WeeChat コマンドを実行する関数。 -==== weechat_command +==== command _バージョン 1.1 で更新。_ @@ -12511,7 +12518,7 @@ rc = weechat.command(weechat.buffer_search("irc", "freenode.#weechat"), "/whois ネットワーク関数。 -==== weechat_network_pass_proxy +==== network_pass_proxy プロキシへの接続および認証を確立する。 @@ -12557,7 +12564,7 @@ else [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_network_connect_to +==== network_connect_to _バージョン 0.4.3 で更新。_ @@ -12616,7 +12623,7 @@ else 情報を取得する関数。 -==== weechat_info_get +==== info_get 文字列型で WeeChat またはプラグインからの情報を返す。 @@ -12665,7 +12672,7 @@ weechat.prnt("", "Current WeeChat version is: %s (compiled on %s)" weechat.prnt("", "WeeChat home is: %s" % weechat.info_get("weechat_dir", "")) ---- -==== weechat_info_get_hashtable +==== info_get_hashtable _WeeChat バージョン 0.3.4 以上で利用可。_ @@ -12753,7 +12760,7 @@ weechat.prnt("", "message parsed: %s" * 'buffer': 任意のデータを含む固定長のバッファ * 'time': 時刻値 -==== weechat_infolist_new +==== infolist_new 新しいインフォリストを作成。 @@ -12786,7 +12793,7 @@ infolist = weechat.infolist_new() infolist = weechat.infolist_new() ---- -==== weechat_infolist_new_item +==== infolist_new_item インフォリストに要素を追加。 @@ -12823,7 +12830,7 @@ item = weechat.infolist_new_item(infolist) item = weechat.infolist_new_item(infolist) ---- -==== weechat_infolist_new_var_integer +==== infolist_new_var_integer インフォリストの要素に整数変数を追加。 @@ -12866,7 +12873,7 @@ var = weechat.infolist_new_var_integer(item, name, value) var = weechat.infolist_new_var_integer(item, "my_integer", 123) ---- -==== weechat_infolist_new_var_string +==== infolist_new_var_string インフォリストの要素に文字列変数を追加。 @@ -12909,7 +12916,7 @@ var = weechat.infolist_new_var_string(item, name, value) var = weechat.infolist_new_var_string(item, "my_string", "value") ---- -==== weechat_infolist_new_var_pointer +==== infolist_new_var_pointer インフォリストの要素にポインタ変数を追加。 @@ -12952,7 +12959,7 @@ var = weechat.infolist_new_var_pointer(item, name, pointer) var = weechat.infolist_new_var_pointer(item, "my_pointer", pointer) ---- -==== weechat_infolist_new_var_buffer +==== infolist_new_var_buffer インフォリストの要素にバッファ変数を追加。 @@ -12992,7 +12999,7 @@ struct t_infolist_var *var = weechat_infolist_new_var_buffer (item, [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_infolist_new_var_time +==== infolist_new_var_time インフォリストの要素に時刻変数を追加。 @@ -13035,7 +13042,7 @@ var = weechat.infolist_new_var_time(item, name, time) var = weechat.infolist_new_var_time(item, "my_time", int(time.time())) ---- -==== weechat_infolist_get +==== infolist_get WeeChat またはプラグインからインフォリストを返す。 @@ -13089,7 +13096,7 @@ infolist = weechat.infolist_get(infolist_name, pointer, arguments) infolist = weechat.infolist_get("irc_server", "", "") ---- -==== weechat_infolist_next +==== infolist_next "カーソル" をインフォリスト内の 1 つ後の要素に移動する。あるインフォリストに対するこの関数の呼び出し回数が 1 回目のの場合は、カーソルをインフォリスト内の最初の要素に移動する。 @@ -13138,7 +13145,7 @@ else: # no more item available ---- -==== weechat_infolist_prev +==== infolist_prev "カーソル" をインフォリスト内の 1 つ前の要素に移動する。あるインフォリストに対するこの関数の呼び出し回数が 1 回目のの場合は、カーソルをインフォリスト内の最後の要素に移動する。 @@ -13188,7 +13195,7 @@ else: # no more item available ---- -==== weechat_infolist_reset_item_cursor +==== infolist_reset_item_cursor インフォリストの"カーソル"をリセット。 @@ -13221,7 +13228,7 @@ weechat.infolist_reset_item_cursor(infolist) weechat.infolist_reset_item_cursor(infolist) ---- -==== weechat_infolist_search_var +==== infolist_search_var _WeeChat バージョン 0.4.3 以上で利用可。_ @@ -13268,7 +13275,7 @@ if weechat.infolist_search_var(infolist, "name"): # ... ---- -==== weechat_infolist_fields +==== infolist_fields 現在のインフォリストの要素に対するフィールドのリストを返す。 @@ -13311,7 +13318,7 @@ fields = weechat.infolist_fields(infolist) # "i:my_integer,s:my_string,p:my_pointer,b:my_buffer,t:my_time" ---- -==== weechat_infolist_integer +==== infolist_integer 現在のインフォリストの要素に含まれる整数変数の値を返す。 @@ -13350,7 +13357,7 @@ value = weechat.infolist_integer(infolist, var) weechat.prnt("", "integer = %d" % weechat.infolist_integer(infolist, "my_integer")) ---- -==== weechat_infolist_string +==== infolist_string 現在のインフォリストの要素に含まれる文字列変数の値を返す。 @@ -13389,7 +13396,7 @@ value = weechat.infolist_string(infolist, var) weechat.prnt("", "string = %s" % weechat.infolist_string(infolist, "my_string")) ---- -==== weechat_infolist_pointer +==== infolist_pointer 現在のインフォリストの要素に含まれるポインタ変数の値を返す。 @@ -13428,7 +13435,7 @@ value = weechat.infolist_pointer(infolist, var) weechat.prnt("", "pointer = 0x%s" % weechat.infolist_pointer(infolist, "my_pointer")) ---- -==== weechat_infolist_buffer +==== infolist_buffer 現在のインフォリストの要素に含まれるバッファ変数の値を返す。 @@ -13463,7 +13470,7 @@ weechat_printf (NULL, "buffer = 0x%lx, size = %d", [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_infolist_time +==== infolist_time 現在のインフォリストの要素に含まれる時刻変数の値を返す。 @@ -13502,7 +13509,7 @@ value = weechat.infolist_time(infolist, var) weechat.prnt("", "time = %ld" % weechat.infolist_time(infolist, "my_time")) ---- -==== weechat_infolist_free +==== infolist_free インフォリストの領域を開放。 @@ -13546,7 +13553,7 @@ hdata を使うことで読み取り専用でデータにアクセスできま データを更新する場合は必ず関数 <<_weechat_hdata_update,weechat_hdata_update>> を使ってください。 -==== weechat_hdata_new +==== hdata_new _WeeChat バージョン 0.3.6 以上で利用可、バージョン 0.3.9 と 0.4.0 で更新。_ @@ -13611,7 +13618,7 @@ struct t_hdata *hdata = weechat_hdata_new ("myplugin_list", "prev", "next", 0, 0 [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_new_var +==== hdata_new_var _WeeChat バージョン 0.3.6 以上で利用可、バージョン 0.3.9 で更新。_ @@ -13694,7 +13701,7 @@ WEECHAT_HDATA_VAR(struct t_myplugin_list, next, POINTER, 0, NULL, "myplugin_list [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_new_list +==== hdata_new_list _WeeChat バージョン 0.3.6 以上で利用可、バージョン 1.0 で更新。_ @@ -13756,7 +13763,7 @@ WEECHAT_HDATA_LIST(last_buffer, 0); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_get +==== hdata_get _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -13804,7 +13811,7 @@ hdata = weechat.hdata_get(hdata_name) hdata = weechat.hdata_get("irc_server") ---- -==== weechat_hdata_get_var_offset +==== hdata_get_var_offset _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -13844,7 +13851,7 @@ offset = weechat.hdata_get_var_offset(hdata, name) offset = weechat.hdata_get_var_offset(hdata, "name") ---- -==== weechat_hdata_get_var_type +==== hdata_get_var_type _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -13909,7 +13916,7 @@ switch (type) [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_get_var_type_string +==== hdata_get_var_type_string _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -13949,7 +13956,7 @@ type = weechat.hdata_get_var_type_string(hdata, name) weechat.prnt("", "type = %s" % weechat.hdata_get_var_type_string("name")) ---- -==== weechat_hdata_get_var_array_size +==== hdata_get_var_array_size _WeeChat バージョン 0.3.9 以上で利用可。_ @@ -13990,7 +13997,7 @@ array_size = weechat.hdata_get_var_array_size(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_array_size_string +==== hdata_get_var_array_size_string _WeeChat バージョン 0.3.9 以上で利用可。_ @@ -14033,7 +14040,7 @@ array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, name) array_size = weechat.hdata_get_var_array_size_string(hdata, pointer, "name") ---- -==== weechat_hdata_get_var_hdata +==== hdata_get_var_hdata _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14073,7 +14080,7 @@ hdata_name = weechat.hdata_get_var_hdata(hdata, name) weechat.prnt("", "hdata = %s" % weechat.hdata_get_var_hdata(hdata, "name")) ---- -==== weechat_hdata_get_var +==== hdata_get_var _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14108,7 +14115,7 @@ void *pointer = weechat_hdata_get_var (hdata, buffer, "name"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_get_var_at_offset +==== hdata_get_var_at_offset _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14144,7 +14151,7 @@ void *pointer = weechat_hdata_get_var_at_offset (hdata, buffer, offset); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_get_list +==== hdata_get_list _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14186,7 +14193,7 @@ hdata = weechat.hdata_get("buffer") buffers = weechat.hdata_get_list(hdata, "gui_buffers") ---- -==== weechat_hdata_check_pointer +==== hdata_check_pointer _WeeChat バージョン 0.3.7 以上で利用可、バージョン 1.0 で更新。_ @@ -14247,7 +14254,7 @@ else: # ... ---- -==== weechat_hdata_move +==== hdata_move _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14305,7 +14312,7 @@ if buffer: buffer = weechat.hdata_move(hdata, buffer, -1) ---- -==== weechat_hdata_search +==== hdata_search _WeeChat バージョン 0.4.1 以上で利用可。_ @@ -14365,7 +14372,7 @@ if server: # ... ---- -==== weechat_hdata_char +==== hdata_char _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -14407,7 +14414,7 @@ value = weechat.hdata_char(hdata, pointer, name) weechat.prnt("", "letter = %c" % weechat.hdata_char(hdata, pointer, "letter")) ---- -==== weechat_hdata_integer +==== hdata_integer _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14453,7 +14460,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "number = %d" % weechat.hdata_integer(hdata, buffer, "number")) ---- -==== weechat_hdata_long +==== hdata_long _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14495,7 +14502,7 @@ value = weechat.hdata_long(hdata, pointer, name) weechat.prnt("", "longvar = %ld" % weechat.hdata_long(hdata, pointer, "longvar")) ---- -==== weechat_hdata_string +==== hdata_string _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14541,7 +14548,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "name = %s" % weechat.hdata_string(hdata, buffer, "name")) ---- -==== weechat_hdata_pointer +==== hdata_pointer _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14587,7 +14594,7 @@ buffer = weechat.buffer_search_main() weechat.prnt("", "lines = %lx" % weechat.hdata_pointer(hdata, buffer, "lines")) ---- -==== weechat_hdata_time +==== hdata_time _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14655,7 +14662,7 @@ if ptr: weechat.prnt("", "time of first line displayed = %s" % time.strftime("%F %T", time.localtime(int(date)))) ---- -==== weechat_hdata_hashtable +==== hdata_hashtable _WeeChat バージョン 0.3.7 以上で利用可。_ @@ -14706,7 +14713,7 @@ for key in hash: weechat.prnt("", " %s == %s" % (key, hash[key])) ---- -==== weechat_hdata_set +==== hdata_set _WeeChat バージョン 0.3.9 以上で利用可。_ @@ -14746,7 +14753,7 @@ weechat_hdata_set (hdata, pointer, "message", "test"); [NOTE] スクリプト API ではこの関数を利用できません。 -==== weechat_hdata_update +==== hdata_update _WeeChat バージョン 0.3.9 以上で利用可。_ @@ -14832,7 +14839,7 @@ if own_lines: weechat.hdata_update(hdata, line_data, {"date": str(weechat.hdata_time(hdata, line_data, "date") - 3600)}) ---- -==== weechat_hdata_get_string +==== hdata_get_string _WeeChat バージョン 0.3.6 以上で利用可。_ @@ -14895,7 +14902,7 @@ weechat.prnt("", "lists in hdata: %s" % weechat.hdata_get_string(hdata, "list_ke WeeChat をアップグレードする (コマンド "/upgrade") 関数。 -==== weechat_upgrade_new +==== upgrade_new アップグレード用のファイルを作成または読み込み。 @@ -14936,7 +14943,7 @@ upgrade_file = weechat.upgrade_new(filename, write) upgrade_file = weechat.upgrade_new("my_file", 1) ---- -==== weechat_upgrade_write_object +==== upgrade_write_object アップグレードファイルにオブジェクトを書き込む。 @@ -14984,7 +14991,7 @@ rc = weechat.upgrade_write_object(upgrade_file, object_id, infolist) weechat.upgrade_write_object(upgrade_file, 1, infolist) ---- -==== weechat_upgrade_read +==== upgrade_read アップグレードファイルを読み込む。 @@ -15050,7 +15057,7 @@ def my_upgrade_read_cb(upgrade_file, object_id, infolist): weechat.upgrade_read(upgrade_file, "my_upgrade_read_cb", "")) ---- -==== weechat_upgrade_close +==== upgrade_close アップグレードファイルを閉じる。 diff --git a/doc/ja/weechat_quickstart.ja.asciidoc b/doc/ja/weechat_quickstart.ja.asciidoc index d817f5c77..5605361c4 100644 --- a/doc/ja/weechat_quickstart.ja.asciidoc +++ b/doc/ja/weechat_quickstart.ja.asciidoc @@ -1,8 +1,15 @@ = WeeChat クイックスタートガイド :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2009-2014 [[start]] diff --git a/doc/ja/weechat_relay_protocol.ja.asciidoc b/doc/ja/weechat_relay_protocol.ja.asciidoc index 8417da0f2..325f7006a 100644 --- a/doc/ja/weechat_relay_protocol.ja.asciidoc +++ b/doc/ja/weechat_relay_protocol.ja.asciidoc @@ -1,9 +1,16 @@ = WeeChat リレープロトコル :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2014 この文書は WeeChat リレープロトコルについて述べたものです: リレープロトコルとは、WeeChat diff --git a/doc/ja/weechat_scripting.ja.asciidoc b/doc/ja/weechat_scripting.ja.asciidoc index 2bc7822cf..0ea5e1e2b 100644 --- a/doc/ja/weechat_scripting.ja.asciidoc +++ b/doc/ja/weechat_scripting.ja.asciidoc @@ -1,9 +1,16 @@ = WeeChat スクリプト製作ガイド :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toclevels: 3 :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2014 このマニュアルは WeeChat チャットクライアントについて説明しており、WeeChat の一部です。 diff --git a/doc/ja/weechat_tester.ja.asciidoc b/doc/ja/weechat_tester.ja.asciidoc index 7e6446608..4f5953d75 100644 --- a/doc/ja/weechat_tester.ja.asciidoc +++ b/doc/ja/weechat_tester.ja.asciidoc @@ -1,8 +1,15 @@ = WeeChat テスターガイド :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2014 [[purpose]] diff --git a/doc/ja/weechat_user.ja.asciidoc b/doc/ja/weechat_user.ja.asciidoc index e6872e461..0a682b258 100644 --- a/doc/ja/weechat_user.ja.asciidoc +++ b/doc/ja/weechat_user.ja.asciidoc @@ -1,9 +1,16 @@ = WeeChat ユーザーズガイド :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 :toc-title: 目次 +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2014 このマニュアルは WeeChat チャットクライアントについての文書で、これは WeeChat の一部です。 diff --git a/doc/pl/CMakeLists.txt b/doc/pl/CMakeLists.txt index d090ed7a4..722262073 100644 --- a/doc/pl/CMakeLists.txt +++ b/doc/pl/CMakeLists.txt @@ -27,6 +27,7 @@ if(ENABLE_MAN) DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/weechat.1.pl.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat.1 (pl)" ) add_custom_target(doc-man-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) @@ -38,11 +39,13 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # user's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_USER} -o weechat_user.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.pl.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/cmdline_options.pl.asciidoc ${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_user.pl.html" ) add_custom_target(doc-user-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.pl.html) @@ -51,9 +54,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # scripting guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_SCRIPTING} -o weechat_scripting.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_scripting.pl.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_scripting.pl.html" ) add_custom_target(doc-scripting-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.pl.html) @@ -62,9 +67,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # FAQ add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.pl.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_FAQ} -o weechat_faq.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.pl.asciidoc DEPENDS + asciidoc-toc-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_faq.pl.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_faq.pl.html" ) add_custom_target(doc-faq-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.pl.html) @@ -73,9 +80,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.pl.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.pl.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.pl.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.pl.html" ) add_custom_target(doc-quickstart-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.pl.html) @@ -84,9 +93,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # tester's guide add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.pl.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.pl.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_TESTER} -o weechat_tester.pl.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.pl.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_tester.pl.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_tester.pl.html" ) add_custom_target(doc-tester-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_tester.pl.html) diff --git a/doc/pl/Makefile.am b/doc/pl/Makefile.am index 26851d795..746e391c7 100644 --- a/doc/pl/Makefile.am +++ b/doc/pl/Makefile.am @@ -57,23 +57,23 @@ weechat.1: weechat.1.pl.asciidoc cmdline_options.pl.asciidoc # user's guide weechat_user.pl.html: weechat_user.pl.asciidoc cmdline_options.pl.asciidoc $(wildcard autogen/user/*.asciidoc) - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_user.pl.html $(abs_top_srcdir)/doc/pl/weechat_user.pl.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_user.pl.html $(abs_top_srcdir)/doc/pl/weechat_user.pl.asciidoc # scripting guide weechat_scripting.pl.html: weechat_scripting.pl.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_scripting.pl.html $(abs_top_srcdir)/doc/pl/weechat_scripting.pl.asciidoc # FAQ weechat_faq.pl.html: weechat_faq.pl.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_faq.pl.html $(abs_top_srcdir)/doc/pl/weechat_faq.pl.asciidoc # quickstart weechat_quickstart.pl.html: weechat_quickstart.pl.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.pl.html $(abs_top_srcdir)/doc/pl/weechat_quickstart.pl.asciidoc # tester's guide weechat_tester.pl.html: weechat_tester.pl.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_tester.pl.html $(abs_top_srcdir)/doc/pl/weechat_tester.pl.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -o weechat_tester.pl.html $(abs_top_srcdir)/doc/pl/weechat_tester.pl.asciidoc # install man/docs diff --git a/doc/pl/weechat.1.pl.asciidoc b/doc/pl/weechat.1.pl.asciidoc index c036209f9..62bc8235c 100644 --- a/doc/pl/weechat.1.pl.asciidoc +++ b/doc/pl/weechat.1.pl.asciidoc @@ -90,6 +90,15 @@ $HOME/.weechat/weechat.log:: == AUTORZY +// TRANSLATION MISSING +This manpage was written by Sébastien Helleu <flashcode@flashtux.org>. + +// TRANSLATION MISSING +Translated by Krzysztof Korościk <soltys@szluug.org>. + +// TRANSLATION MISSING +== COPYRIGHT + WeeChat jest tworzony przez Sébastien Helleu i społeczność (pełna lista dostępna jest w pliku AUTHORS). diff --git a/doc/pl/weechat_faq.pl.asciidoc b/doc/pl/weechat_faq.pl.asciidoc index e455d1f7a..bbe0414c9 100644 --- a/doc/pl/weechat_faq.pl.asciidoc +++ b/doc/pl/weechat_faq.pl.asciidoc @@ -3,12 +3,20 @@ :email: flashcode@flashtux.org :toc: :toc-title: Spis treści +:toc-placement: manual +// TRANSLATION MISSING +Translators: + +* Krzysztof Korościk <soltys@szluug.org>, 2009-2014 + [NOTE] Ten dokument jest napisany dla WeeChat w wersji ≥ 0.3.0, ale powinien być używany dla najnowszej stabilnej wersji. +toc::[] + [[general]] == Ogólne diff --git a/doc/pl/weechat_quickstart.pl.asciidoc b/doc/pl/weechat_quickstart.pl.asciidoc index 908705cfe..623ad4ab0 100644 --- a/doc/pl/weechat_quickstart.pl.asciidoc +++ b/doc/pl/weechat_quickstart.pl.asciidoc @@ -1,8 +1,15 @@ = WeeChat szybki start :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toc-title: Spis treści +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Krzysztof Korościk <soltys@szluug.org>, 2009-2014 [[start]] diff --git a/doc/pl/weechat_scripting.pl.asciidoc b/doc/pl/weechat_scripting.pl.asciidoc index 14ba64ff2..63ef78b2a 100644 --- a/doc/pl/weechat_scripting.pl.asciidoc +++ b/doc/pl/weechat_scripting.pl.asciidoc @@ -1,9 +1,16 @@ = Poradnik pisania skryptów WeeChat :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toclevels: 3 :toc-title: Spis treści +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Krzysztof Korościk <soltys@szluug.org>, 2011-2014 Ten dokument opisuje klienta rozmów WeeChat, który jest częścią WeeChat. diff --git a/doc/pl/weechat_tester.pl.asciidoc b/doc/pl/weechat_tester.pl.asciidoc index 5c7bd17ec..dbe117346 100644 --- a/doc/pl/weechat_tester.pl.asciidoc +++ b/doc/pl/weechat_tester.pl.asciidoc @@ -1,8 +1,15 @@ = Poradnik testera WeeChat :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: +:toc2: :toc-title: Spis treści +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Krzysztof Korościk <soltys@szluug.org>, 2009-2014 [[purpose]] diff --git a/doc/pl/weechat_user.pl.asciidoc b/doc/pl/weechat_user.pl.asciidoc index d1f548f79..d9251a3d1 100644 --- a/doc/pl/weechat_user.pl.asciidoc +++ b/doc/pl/weechat_user.pl.asciidoc @@ -1,9 +1,16 @@ = Poradnik użytkownika WeeChat :author: Sébastien Helleu :email: flashcode@flashtux.org -:toc: -:toclevels: 4 +:toc2: +:toclevels: 3 :toc-title: Spis treści +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Krzysztof Korościk <soltys@szluug.org>, 2013-2014 Ten dokument opisuje klienta rozmów WeeChat, będącego częścią WeeChat. diff --git a/doc/ru/CMakeLists.txt b/doc/ru/CMakeLists.txt index 85d63fc2c..057355a38 100644 --- a/doc/ru/CMakeLists.txt +++ b/doc/ru/CMakeLists.txt @@ -22,9 +22,11 @@ if(ENABLE_DOC AND SOURCEHIGHLIGHT_FOUND) # quickstart add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html - COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -f ${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.conf -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.asciidoc + COMMAND ${ASCIIDOC_EXECUTABLE} ARGS ${ASCIIDOC_ARGS_QUICKSTART} -o weechat_quickstart.ru.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.asciidoc DEPENDS + asciidoc-toc2-css ${CMAKE_CURRENT_SOURCE_DIR}/weechat_quickstart.ru.asciidoc + WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building weechat_quickstart.ru.html" ) add_custom_target(doc-quickstart-ru ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.ru.html) diff --git a/doc/ru/Makefile.am b/doc/ru/Makefile.am index 7112d9689..79911953a 100644 --- a/doc/ru/Makefile.am +++ b/doc/ru/Makefile.am @@ -36,7 +36,7 @@ all-local: $(man_targets) $(doc_targets) # quickstart weechat_quickstart.ru.html: weechat_quickstart.ru.asciidoc - $(ASCIIDOC) -a revision="$(VERSION)" -a stylesheet=$(abs_top_srcdir)/doc/asciidoc.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.asciidoc + $(ASCIIDOC) -b html5 -a revision="$(VERSION)" -a stylesheet=$(abs_builddir)/../asciidoc_toc2.css -f $(abs_top_srcdir)/doc/asciidoc.conf -n -o weechat_quickstart.ru.html $(abs_top_srcdir)/doc/ru/weechat_quickstart.ru.asciidoc # install man/docs diff --git a/doc/ru/weechat_quickstart.ru.asciidoc b/doc/ru/weechat_quickstart.ru.asciidoc index 3b4266a01..e25271cb4 100644 --- a/doc/ru/weechat_quickstart.ru.asciidoc +++ b/doc/ru/weechat_quickstart.ru.asciidoc @@ -2,7 +2,16 @@ :author: Sébastien Helleu :email: flashcode@flashtux.org :lang: ru -:toc: +:toc2: +:max-width: 100% + + +// TRANSLATION MISSING +Translators: + +* Stalwart <stlwrt@gmail.com>, 2006 +* Алексей Бортник <thebosha@gmail.com>, 2009 +* Alexander Turenko Totktonada <totktonada.ru@gmail.com>, 2014 [[start]] diff --git a/doc/toc2.css b/doc/toc2.css new file mode 100644 index 000000000..7376480ce --- /dev/null +++ b/doc/toc2.css @@ -0,0 +1,21 @@ +/* asciidoc styles with table of contents on the left (toc2) */ + +body { + margin-left: 26em; + margin-right: 2em; +} +#toc { + width: 23em; +} +#toc .toclevel2 { + margin-left: 1.5em; + font-size: .9em; +} +#toc .toclevel3 { + margin-left: 3em; + font-size: .9em; +} +#toc .toclevel4 { + margin-left: 4.5em; + font-size: .9em; +} |