LOCALE::PO4A::TEX.3PM(1) User Contributed Perl Documentation Locale::Po4a::TeX - TeX / PO Po4a (PO For Anything) gettext () Locale::Po4a::TeX TeX [] TeX LaTeX TeX LaTeX PO4A::TEX TeX () There are some options (described in the next section) that can customize this behavior. If this doesn't fit to your document format you're encouraged to write your own derivative module from this, to describe your format's details. See the section WRITING DERIVATE MODULES below, for the process description. TeX "% po4a:" INLINE CUSTOMIZATION debug no_wrap no_wrap po4a exclude_include \input \include definitions po4a INLINE CUSTOMIZATION verbatim po4a TeX % po4a: % po4a: command command1 alias command2 command1 command2 % po4a: command command1 parameters command1 command1 (*) po4a () (+) () po4a (-) () The parameters argument is a set of [] (to indicate an optional argument) or {} (to indicate a mandatory argument). You can place an underscore (_) between these brackets to indicate that the parameter must be translated. For example: % po4a: command *chapter [_]{_} This indicates that the chapter command has two parameters: an optional (short title) and a mandatory one, which must both be translated. If you want to specify that the href command has two mandatory parameters, that you don't want to translate the URL (first parameter), and that you don't want this command to be separated from its paragraph (which allow the translator to move the link in the sentence), you can use: % po4a: command -href {}{_} href % po4a: environment env parameters This defines the parameters accepted by the env environment and specifies the ones to be translated. This information is later used to check the number of arguments of the \begin command. The syntax of the parameters argument is the same as described for the others commands. The first parameter of the \begin command is the name of the environment. This parameter must not be specified in the list of parameters. Here are some examples: % po4a: environment multicols {} % po4a: environment equation i (+) \begin % po4a: separator env "regex" (?:) LaTeX "(?:&|\\\\)" ( '\\' '&' ) PO title "\\\\" title{#1} % po4a: verbatim environment env env po4a pre_trans post_trans add_comment texinfo TeX translate PO get_leading_command($buffer) %separated_command sections (*) "*" '{' () '[' () get_trailing_command($buffer) get_leading_command translate_buffer () %translate_buffer_env translate_buffer() read read() read_file @exclude_include KpathSea kpseWhich parse_definition_file po4a () parse_definition_line "% po4a: " INLINE CUSTOMIZATION is_closed parse docheader ( $self ) () 3 get_leading_command get_trailing_command \begin \begin TeX generic_command generic_environment generic_command uses the information specified by register_generic_command or by adding definition to the TeX file: % po4a: command command1 parameters generic_environment uses the information specified by register_generic_environment or by adding definition to the TeX file: % po4a: environment env parameters ( '_')generic_environment generic_command ( {#7} [#2]) Python PO4AXML Tex newcommand \item item These commands should be specified by couples. This can be used to specify commands beginning or ending a verbatim environment. TODO FIXME Locale::Po4a::LaTeX(3pm), Locale::Po4a::TransTractor(3pm), po4a(7) Nicolas Francois taotieren (C) 2004, 2005 Nicolas FRANCOIS . This program is free software; you may redistribute it and/or modify it under the terms of GPL v2.0 or later (see the COPYING file). perl v5.42.0 2025-11-22 LOCALE::PO4A::TEX.3PM(1)