18 Commits

Author SHA1 Message Date
478b658345 ScriptForge (SF_Array) arrays and data arrays
Page sf_array.xhp reviewed according to
   https://gerrit.libreoffice.org/c/core/+/177620

Change-Id: Iacc285b4672d88b8763457e0592074edd2742a6a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/195303
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2025-12-09 17:18:49 +01:00
bd899b607e Create TOC with all ScriptForge methods and properties
Change-Id: I32be401689efce0cba70216458bc7c8ba4a405c5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144309
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-12-17 12:02:57 +00:00
7e42394ecb tdf#152323 drop name attribute from <link> elements
Replacement done with

find . -name \*.xhp -print0 |xargs -0 -P 0 perl -CS -pi -e \
        's#(<link[^>]*?) +name *="[^"]*" *( [^>]+|) *>#$1$2>#g'

(note some inconsistencies with space between name and = and also having
empty value, and some more complicated expression to also clear up
double space before/after the attribute)

translation files will be prepped with:

find */helpcontent2 -name \*.po -print0 |xargs -0 -P 0 perl -CS -pi -e \
    $'s#(<link[^>]*?) +name=(?:\\\\"[^"]*\\\\"|\'[^\']*\') *( [^>]+|) *(/?>)#$1$2$3#g unless /^#/'

(note that not all languages use the " as quote character for the
attributes, but that also single quotes appera in the po file. Hence
the use of the shell $'string' syntax to be able to quote ' as \'
It also requires to quote the backslash, so that it needs to be escaped
once for the shell, then another time for perl. Also don't work on
obsolete strings (those are prefixed with #~ in the po files)
Also note that <link..></link> gets turned into <link ../> during
translation extraction (along with removal of the space between the
attribute name and the value), so the pattern needs to be slightly
different here)

Change-Id: I95e53a08e6b0095cd894109ea0de154cc4859d8f
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143713
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2022-12-07 17:39:02 +00:00
35461b4c43 SF ImportFromCSVFile: allow localization of data and date format in example
Change-Id: If089e461708cf483d963aae8876b386504b6e6c8
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/127453
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-12-28 14:26:32 +01:00
d25f1958da fix typo in importing/exporting from/to
Change-Id: Icc7b9379bde2bc11bbdaed1844838e48101b0e9e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/127100
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2021-12-19 20:31:20 +01:00
43abde3c6b Remove avail_release <notes> from SF documentation
Change-Id: Iab4c6ecba7f4db57bed82a29c5c4b9434b4efbb4
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126295
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-12-04 21:32:05 +01:00
c8c6952d80 Minor fixes in help files (sbasic)
Change-Id: Ifb4a91bfeb1ca8f7e67e9affa30b1e29028b4731
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122071
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-09-16 12:06:37 +02:00
4373f58e83 Fix example in SF_Array
Change-Id: Ib52749668ada9c1b250cb0eb5f9c530808475fd2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119439
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-07-26 17:11:35 +02:00
1cd02ab17d Adapt SF_Array to the new method signature notation
This patch updates the syntax and arguments in all methods according to the new notation used in other SF services. It also introduces the ImportFromCSVFile method to Python scripts.

This patch also updates a few examples in Basic.

Change-Id: Ib565f31ad13f5455ff1df260ec60cae5d8848cd9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/119437
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-07-26 11:48:14 +02:00
d5eb6397f3 sf_session new help page
- extra bookmark & link in sf_array
 - typo in py2bas
 - typo in sf-string

Change-Id: I508722de9b4cb1e55e203ba97b470b28f1ba03ae
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110678
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-02-12 18:42:16 +01:00
6abb464fb6 Recreates SF_String Help page (ScriptForge)
SF_Array:
- Adds a <variable> tag

SF_Document:
- Fixes localization issues pointed out by translators on WebLate

00000003.xhp:
- Fixes the message explaining how to load libraries

Change-Id: I9361f86e7907b95e0546197203e2d23c6211fd4d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110366
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-02-07 23:04:54 +01:00
57222f5d47 Revert "Create Help page for the SF_String service"
This reverts commit a6f6fa2254ced7120ac0fb0075b4fd5195c334af.

Reason for revert: was not yet ready

Change-Id: Ibc95e08e2cb2a1f2220b503f3ab472518f98a047
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110365
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-02-04 15:54:14 +01:00
a6f6fa2254 Create Help page for the SF_String service
SF_Array:
- Adds a <variable> tag

SF_Document:
- Fixes localization issues pointed out by translators on WebLate

Change-Id: Ifa0a3c7665796ea2e5464dc3f2bd9508b3f7847c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110360
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-02-04 15:31:36 +01:00
7c1c258ce3 Fixes localization issues in ScriptForge Help pages
Some code blocks with comments need translation and therefore need to have the localize="false" removed.

Also, other parts of the text shouldn't be localized, so localize="false" was added.

Change-Id: Id072eb88f95ee8759f86d2ca3736698855b50b4b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/109801
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-23 14:06:17 +01:00
9a888e136a Remove reference to Calc sheets in Array service
Within ScriptForge services,
import/export methods between arrays and Calc sheets
are in the SF_Calc module and, hence, in the sf_calc.xhp help

Change-Id: I95386bfa83a8c15e84b9f097ce9cd5401f5abf45
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/108993
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-01-10 01:13:09 +01:00
90ff361318 Update SF_Array Help page
Change-Id: I91312284137f9d5bf6394724960003ea2366a3fb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/108907
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-01-07 23:01:46 +01:00
165f2eb082 ScriptForge library modules - WiP
- sf_array page restored after being overwritten
- self-links in both pages on H1 tag

Change-Id: I9c3d47447124d5c7199a03c9a7d76e0e337244ef
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/107695
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-12-17 13:53:39 +01:00
24db503333 ScriptForge library modules - WiP
+ Array module
+ Dictionary module

Change-Id: Ida2290005befb59f2b7c3699744ff49b32226e24
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106513
Tested-by: Jenkins
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-12-08 00:30:40 +01:00