forked from amazingfate/help
Fix <embedvar> tags for better l10n (Part 1)
This is Part 1 of the fixes requested by translators concerning the use of the <embedvar>. Change-Id: Iee5ea4289034449c33156d4e20483943eb872ae0 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/123782 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
993399c7c5
commit
f025640e26
@ -1,33 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<helpdocument version="1.0">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
-->
|
||||
<meta>
|
||||
<topic id="toolsbasiclibrary" indexer="include" status="PUBLISH">
|
||||
<title id="tit" xml-lang="en-US">ScriptForge Libraries</title>
|
||||
<filename>/text/sbasic/shared/03/lib_ScriptForge.xhp</filename>
|
||||
</topic>
|
||||
</meta>
|
||||
<body>
|
||||
<h1 id="hd_id31529004750471" xml-lang="en-US"><variable id="ScriptForge_lib"><link href="text/sbasic/shared/03/lib_ScriptForge.xhp" name="ScriptForge library">The <literal>ScriptForge</literal> Library</link></variable></h1>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id491529070339774">
|
||||
<bookmark_value>BASIC ScriptForge library</bookmark_value>
|
||||
<bookmark_value>Python scriptforge module</bookmark_value>
|
||||
</bookmark>
|
||||
<section id="howtoget">
|
||||
<embed href="text/sbasic/shared/00000003.xhp#basiclibhowtoget"/>
|
||||
</section>
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
-->
|
||||
|
||||
<meta>
|
||||
<topic id="toolsbasiclibrary" indexer="include" status="PUBLISH">
|
||||
<title id="tit" xml-lang="en-US">ScriptForge Libraries</title>
|
||||
<filename>/text/sbasic/shared/03/lib_ScriptForge.xhp</filename>
|
||||
</topic>
|
||||
</meta>
|
||||
<body>
|
||||
<h1 id="hd_id31529004750471" xml-lang="en-US"><variable id="ScriptForge_lib"><link href="text/sbasic/shared/03/lib_ScriptForge.xhp" name="ScriptForge library">The <literal>ScriptForge</literal> Library</link></variable></h1>
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id491529070339774">
|
||||
<bookmark_value>BASIC ScriptForge library</bookmark_value>
|
||||
<bookmark_value>Python scriptforge module</bookmark_value>
|
||||
</bookmark>
|
||||
<section id="howtoget">
|
||||
<embed href="text/sbasic/shared/00000003.xhp#basiclibhowtoget"/>
|
||||
</section>
|
||||
<paragraph role="paragraph" id="par_id681619700336879">ScriptForge libraries build up an extensible collection of macro scripting resources for %PRODUCTNAME to be invoked from Basic macros or Python scripts.</paragraph>
|
||||
<note id="par_id901528999850603" localize="false">• Basic macros require to load <literal>ScriptForge</literal> library using the following statement:<br/> <literal>GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")</literal><br/><br/>• Python scripts require an import from <literal>scriptforge</literal> module:<br/>
|
||||
<literal>from scriptforge import CreateScriptService</literal>
|
||||
</note>
|
||||
<tip id="par_id1001623412767893">To learn more about how to create and execute Python scripts using the <literal>ScriptForge</literal> library, read the <embedvar href="text/sbasic/shared/03/sf_intro.xhp#title"/> help page.</tip>
|
||||
<tip id="par_id1001623412767893">To learn more about how to create and execute Python scripts using the <literal>ScriptForge</literal> library, read the help page <link href="text/sbasic/shared/03/sf_intro.xhp" name="sfintro_link">Creating Python Scripts with ScriptForge</link>.</tip>
|
||||
<paragraph role="paragraph" id="par_id781606153472028">The described modules and classes are invoked from user scripts as "Services". A generic constructor of those services has been designed for that purpose for each language:</paragraph>
|
||||
<bascode>
|
||||
<paragraph role="bascode" localize="false" id="bas_id901619770181787">GlobalScope.BasicLibraries.LoadLibrary("ScriptForge")</paragraph>
|
||||
@ -101,7 +102,7 @@
|
||||
<tablecell>
|
||||
<paragraph id="par_id441613885558931" localize="false" role="tablecontent">
|
||||
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#Form" name="Form service">Form</link><br/>
|
||||
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#FormControl" name="FormControl service">FormControl</link><br/>
|
||||
<link href="text/sbasic/shared/03/lib_ScriptForge.xhp#FormControl" name="FormControl service">FormControl</link><br/><br/>
|
||||
</paragraph>
|
||||
</tablecell>
|
||||
</tablerow>
|
||||
@ -194,4 +195,4 @@
|
||||
<warning id="par_id851506659675843">All <literal>ScriptForge</literal> Basic routines or identifiers that are prefixed with an underscore character "_" are reserved for internal use. They are not meant be used in Basic macros.</warning>
|
||||
</section>
|
||||
</body>
|
||||
</helpdocument>
|
||||
</helpdocument>
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
<paragraph id="par_id651623412069496" role="listitem"><emph>Debugging:</emph> Whenever an error occurs in Python scripts that use <literal>ScriptForge</literal>, the error message provided by the Python execution stack displays the line of code that triggered the error. In Basic error messages do not display this information.</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
<tip id="par_id31623411828158">Visit <embedvar href="text/sbasic/python/main0000.xhp#pythonscriptshelp"/> for more information on Python scripting using %PRODUCTNAME.</tip>
|
||||
<tip id="par_id31623411828158">Visit <link href="text/sbasic/python/main0000.xhp#" name="pyscripts_link">%PRODUCTNAME Python Scripts Help</link> for more information on Python scripting using %PRODUCTNAME.</tip>
|
||||
<h2 id="hd_id391623411150080">Running Python scripts on %PRODUCTNAME</h2>
|
||||
<paragraph role="paragraph" id="par_id411623364895100">Depending on what you intend to achieve, you may choose one of the following approaches to running Python scripts in %PRODUCTNAME:</paragraph>
|
||||
<list type="unordered">
|
||||
|
||||
@ -16,28 +16,24 @@
|
||||
</topic>
|
||||
</meta>
|
||||
<body>
|
||||
|
||||
<section id="abstract">
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id661582814720399">
|
||||
<bookmark_value>Session service</bookmark_value>
|
||||
</bookmark>
|
||||
|
||||
<h1 id="hd_id901582814720985" xml-lang="en-US"><variable id="SessionService"><link href="text/sbasic/shared/03/sf_session.xhp" name="Session service"><literal>ScriptForge</literal>.<literal>Session</literal> service</link></variable></h1>
|
||||
|
||||
<paragraph role="paragraph" id="par_id861582814720987" xml-lang="en-US">The <literal>Session</literal> service gathers various general-purpose methods about:</paragraph>
|
||||
<list type = "unordered">
|
||||
<listitem>
|
||||
<section id="abstract">
|
||||
<bookmark xml-lang="en-US" localize="false" branch="index" id="bm_id661582814720399">
|
||||
<bookmark_value>Session service</bookmark_value>
|
||||
</bookmark>
|
||||
<h1 id="hd_id901582814720985" xml-lang="en-US"><variable id="SessionService"><link href="text/sbasic/shared/03/sf_session.xhp" name="Session service"><literal>ScriptForge.Session</literal> service</link></variable></h1>
|
||||
<paragraph role="paragraph" id="par_id861582814720987" xml-lang="en-US">The <literal>Session</literal> service gathers various general-purpose methods about:</paragraph>
|
||||
<list type = "unordered">
|
||||
<listitem>
|
||||
<paragraph id="par_id34158281472051" role="listitem" xml-lang="en-US">the installation or execution environment</paragraph>
|
||||
</listitem>
|
||||
<listitem>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph id="par_id411582814720361" role="listitem" xml-lang="en-US">UNO introspection</paragraph>
|
||||
</listitem>
|
||||
<comment>** for 7.x ** clipboard management</comment>
|
||||
<listitem>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<paragraph id="par_id321582814720863" role="listitem" xml-lang="en-US">the invocation of external scripts or programs</paragraph>
|
||||
</listitem>
|
||||
</list>
|
||||
</section>
|
||||
</listitem>
|
||||
</list>
|
||||
</section>
|
||||
|
||||
<h2 id="hd_id91582814720116" xml-lang="en-US">Service invocation</h2>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#In_Basic"/>
|
||||
@ -326,7 +322,7 @@
|
||||
<paragraph role="pycode" localize="false" id="pyc_id231626817636935"> odd_list = [v for v in range(v1, v2 + 1) if v % 2 != 0]</paragraph>
|
||||
<paragraph role="pycode" localize="false" id="pyc_id901626817637127"> return odd_list</paragraph>
|
||||
</pycode>
|
||||
<tip id="par_id751626817335715">Read the help page <embedvar href="text/sbasic/python/python_locations.xhp#pythonlocations1"/> to learn more about where Python scripts can be stored.</tip>
|
||||
<tip id="par_id751626817335715">Read the help page <link href="text/sbasic/python/python_locations.xhp" name="pylocation_link">Python Scripts Organization and Location</link> to learn more about where Python scripts can be stored.</tip>
|
||||
<paragraph role="paragraph" id="par_id121626817725471">The following examples show how to call the function <literal>odd_integers</literal> from within Basic and Python scripts.</paragraph>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#In_Basic"/>
|
||||
<bascode>
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
<paragraph id="par_idm1341567920" role="bascode" localize="false">End Sub</paragraph>
|
||||
</bascode>
|
||||
|
||||
<note id="par_id491610993401822">The <literal>Timer</literal> function measures time in seconds. To measure time in milliseconds use the <embedvar href="text/sbasic/shared/03/sf_timer.xhp#TimerService"/>.</note>
|
||||
<note id="par_id491610993401822">The <literal>Timer</literal> function measures time in seconds. To measure time in milliseconds use the <link href="text/sbasic/shared/03/sf_timer.xhp" name="Timer_link">Timer service</link> available in the <literal>ScriptForge</literal> library.</note>
|
||||
|
||||
<section id="relatedtopics">
|
||||
<embed href="text/sbasic/shared/03/sf_timer.xhp#TimerService"/>
|
||||
|
||||
@ -1,38 +1,38 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<helpdocument version="1.0">
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
<!--
|
||||
* This file is part of the LibreOffice project.
|
||||
*
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* This file incorporates work covered by the following license notice:
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed
|
||||
* with this work for additional information regarding copyright
|
||||
* ownership. The ASF licenses this file to you under the Apache
|
||||
* License, Version 2.0 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
-->
|
||||
|
||||
<meta>
|
||||
<topic id="textsbasicshared03120102xml" indexer="include" status="PUBLISH">
|
||||
<title id="tit" xml-lang="en-US">Chr Function</title>
|
||||
<filename>/text/sbasic/shared/03120102.xhp</filename>
|
||||
</topic>
|
||||
</meta>
|
||||
<meta>
|
||||
<topic id="textsbasicshared03120102xml" indexer="include" status="PUBLISH">
|
||||
<title id="tit" xml-lang="en-US">Chr Function</title>
|
||||
<filename>/text/sbasic/shared/03120102.xhp</filename>
|
||||
</topic>
|
||||
</meta>
|
||||
|
||||
<body>
|
||||
<section id="chr">
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id3149205">
|
||||
<bookmark_value>Chr function</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph id="hd_id3149205" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03120102.xhp" name="Chr Function">Chr Function</link></paragraph>
|
||||
<paragraph id="par_id3153311" role="paragraph" xml-lang="en-US">Returns the character that corresponds to the specified character code.</paragraph>
|
||||
</section>
|
||||
<body>
|
||||
<section id="chr">
|
||||
<bookmark xml-lang="en-US" branch="index" id="bm_id3149205">
|
||||
<bookmark_value>Chr function</bookmark_value>
|
||||
</bookmark>
|
||||
<paragraph id="hd_id3149205" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03120102.xhp" name="Chr Function">Chr Function</link></paragraph>
|
||||
<paragraph id="par_id3153311" role="paragraph" xml-lang="en-US">Returns the character that corresponds to the specified character code.</paragraph>
|
||||
</section>
|
||||
|
||||
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
|
||||
|
||||
@ -49,7 +49,8 @@
|
||||
<paragraph id="par_id3159414" role="paragraph" xml-lang="en-US">Use the <emph>Chr$</emph> function to send special control sequences to a printer or to another output source. You can also use it to insert quotation marks in a string expression.</paragraph>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
|
||||
<paragraph role="paragraph" id="par_id111552916434071"><embedvar href="text/sbasic/shared/00000003.xhp#err6"/>, when VBA compatibility mode is enabled and expression is greater than 255.</paragraph>
|
||||
<embed href="text/sbasic/shared/00000003.xhp#err6"/>
|
||||
<note id="par_id81634652871848">An overflow error will occur when VBA compatibility mode is enabled and the expression value is greater than 255.</note>
|
||||
|
||||
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
|
||||
<bascode>
|
||||
|
||||
Reference in New Issue
Block a user