113 Commits

Author SHA1 Message Date
d98542a85b more omissions in Python help
- incl. code change

Change-Id: Ifef19fdc11352355dead1fab7b4c6f21aaec8608
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184214
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Tested-by: Jenkins
2025-04-15 13:26:29 +02:00
49f57fc09c multiple omissions/bugs in Python help
Change-Id: I92603f09f832d11720112b129445a74c2f2d63ee
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/184055
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2025-04-11 17:17:37 +02:00
49f82528ae Precisions about OS recognition in scripts
plus a few invitations to go Python 
Change-Id: I0c58b9f35638c0d609727e6ef4affffac8fce971
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/183441
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Tested-by: Jenkins
2025-03-31 16:46:50 +02:00
3542a6dade tdf#162607 Remove dup's in hid2file.js
+ Case of placeholder "zzzz" left here and there
+ refactor

Change-Id: I048ad7a9db45a8931ffca0ed801cb49c7888e02a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/172356
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-08-24 16:36:16 +02:00
f06edc4d07 Document python comparison operators for UNO objects
Referenced from

https://gerrit.libreoffice.org/c/help/+/65828/2/source/text/sbasic/python/python_programming.xhp#241

Change-Id: I2d28a2d1f432656258fade03a9af0b3ffab119f7
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/171804
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2024-08-13 14:05:11 +02:00
1658fb55de Update Basic/Python TOC with Calc samples
Change-Id: I1ce9b023b0e90dae868cc323af3e9d0296a66bdc
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168534
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Tested-by: Jenkins
2024-06-10 18:51:06 +02:00
842cf7acf0 Precision about Win environment variable
Change-Id: I2105960d58fa0342dde9d7f762ecc1a18b3e9bb5
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/168448
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2024-06-07 09:24:30 +02:00
99537726ec fix Helpex warnings: 'No string specified!'
Change-Id: I70ad73b6859cd989e6046c3bd5a76c54c27f416d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/164631
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-03-10 17:48:46 +01:00
3eac551bbc Corrections/precisions in ScriptForge help pages
- removing outdated comments
- deprecation and omissions in sf_form, sf_formcontrol, sf_formdocument

Change-Id: Id5b1abdb812edc13a1489f0b01fff7f34a17416c
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/163548
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2024-03-06 15:11:06 +01:00
636cd8ca29 Fix typo
Change-Id: Ic6ed414c95a6a1c08884ea8ee55323a10bc36fe0
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/163636
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-02-20 16:26:12 +01:00
d4aff35aba Python Shell script update for macOS
- Eases the identification of embedded Python with Basic
- Launching Python console with Python remains to be improved

Change-Id: I4b581770166701cccca664d0b5209ccbe8362282
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/163172
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2024-02-19 18:07:13 +01:00
3b321caecd Python example shared macros documentation
Change-Id: If312091c487fd062ec7af24bc4c368bae7b0d748
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/160172
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-12-03 10:09:40 +01:00
1c3257e391 tdf#155193 Fill indexer= when omitted in Help files
Change-Id: I10f3c9e1e698619dcace7c4314f2bd37adf698de
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155363
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-08-05 11:42:52 +02:00
4453c0b2ed convert paragraphs with role="heading" & childelements to → h<level>
and also drop the language that was changed to implied previously/defaults to
en-US unless specified.

This change doesn't affect translations, only the content of the
paragraph/headings is extracted.

done with:
perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?<level>\d+)"|(?<id>id="[^"]+")/;} s#<paragraph(((\s+($base)){3})|(\s+($base|xml-lang="en-US")){4})>(?<body>.*?)</paragraph>#<h$+{level} $+{id}>$+{body}</h$+{level}>#g'

and manually undoing the one that uses <sup>in body that's not valid
according to the dtd in the h tags.

Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:30 +00:00
dfd3deea66 Fix broken links in help
Change-Id: I77413b0a66d7851d7c79e5f83ed72dd5f42f1c00
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/147975
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-02-28 11:45:48 +00:00
1445fa8fda Fix duplicate IDs in non-localized content
Change-Id: I759b05a2ba10671700c9222f54e61edf39f5baff
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/144538
Tested-by: Jenkins
Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2022-12-19 16:22:00 +00:00
0ae4510ed1 Fix to python script sample
Change-Id: I9e79c85aecde08225212fd7985d32bd55a5f7bf1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/143724
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-12-08 14:15:48 +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
ca05a2e1e9 index correction
Change-Id: I9580f8bef5138364667df66eb950f1d205b5e9a2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141837
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-10-26 10:42:20 +02:00
b122dcc35b tdf141474 CreateUnoListener function accepts keyword arguments
-  literals and links added to improve page legibility
-  'related to' items added
-  Multiple text clarifications and additionss
Change-Id: I0d7515783cb53f382ff2246a4a377ffb871a8284
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141578
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-10-25 16:32:42 +02:00
b9be28ffef Bracketed hidden <help text> gets shown
Change-Id: I30a459a5445e7e42bf762fe081cfe7e7474188f1
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141576
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-10-21 10:16:49 +02:00
30682f2fa4 Reuse and sync help content
Change-Id: Ia95c3da543efd8dddfdcfa635d316b3c10fa52eb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/139569
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-09-19 16:36:52 +02:00
b97f163be7 Update bookmarks for python_programming.xhp
This patch also fixes all duplicated IDs that existed in this file.

Change-Id: I186f54d44a3863e2ead5f8e5ea33d4262e665f46
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/137529
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-08-02 14:56:58 +02:00
68e39672b4 Toc update to document Python resources
Python modules deserve to be highlited:
- scriptforge
- uno
- msgbox

Change-Id: I6d0cad668527b17b1f3ca898d5001768cb30a318
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/135947
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-06-24 16:08:35 +02:00
bf9c6c2a2b Minor string fixes
Change-Id: If1f76eacb11216a0b647948e956c7c99711f4c35
2022-04-05 08:57:36 -05:00
e1da23a649 Related: tdf#146971 rename %PRODUCTNAME Macros to Application Macros
Change-Id: I83393ec16732482deade1694c6a1a8e2b92f3944
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128916
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2022-01-25 13:23:56 +01:00
bba53dc2eb Silence strings for l10n in sbasic/shared (Part 1)
These strings are appearing for translation in Weblate
but they're pure Basic code/syntax that does not need translation.

Change-Id: I8a3f16fcb23f18a2b2b46eb7eaf8bbf74023dd84
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/126606
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-12-11 01:57:15 +01:00
6d3d8f1f52 Simplify location description
Change-Id: I943bdd1ab68d0f73f3e7735b62c8ef228eecd72a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124700
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-11-12 16:46:58 +01:00
8278dc648a Fixing links
Change-Id: Iaffff844cfa18b2d3a8715e01d236e2d49ebe74a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124702
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-11-06 10:47:13 +01:00
993399c7c5 Fixing L10N issues
Change-Id: I45c83f083b861fbe594cb83a82b419aa51b29526
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/123786
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-10-21 19:36:49 +02:00
79cf3e922b Running Python Interactive Console:
- Provide a non ambiguous capture
- Present APSO console as optional
- Provide GNU/Linux appropriate information

Change-Id: Ice7069242fc900b5c7c60a576671f62f841a313d
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122732
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-10-11 01:28:36 +02:00
38c34032f7 Fix localization in some help pages
Change-Id: I59e2ea89dd81c76ee4efee6a154082a56289b524
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/122289
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-09-22 06:29:33 +02:00
bd31d03c6a Fix in Basic macro example
Change-Id: Ia73865f59fc5b605853b5c1ff6232349fd186771
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/121456
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-09-04 01:16:11 +02:00
38ce99f801 Create introductory ScriptForge help page
Change-Id: I5fd00cc05b0c28b600974c005a81804c1c6d5e74
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116906
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-06-11 22:42:55 +02:00
cfd0aa4ba1 Remove literals that prevent proper L10N
- extra index
- index relocation

Change-Id: Ia52c0db88406dd5b24514280c663cfb5de157091
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/116169
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2021-06-08 14:15:19 +02:00
4ee2f0f82f sf_basic py2bas bridge
It includes Basic functions rework in order to
- share content,
- correct Basic keywords argument names tdf#141474
- accommodate Python lowercased arguments.

Change-Id: If59a82444a8e001b02d085f5e10e0053666f8485
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/114008
Tested-by: Jenkins
Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-04-29 18:15:58 +02:00
65d0ce6b57 Fixups of things missed in review
Change-Id: I6190d21bef297077e6a7685b59b58804cce60bca
2021-03-16 01:55:37 -06:00
bfc4754528 Remove more improper ellipses and fix a couple of capitalizations
Change-Id: I3cea0b968dd38d93381268c6b0ede5c90dc8a5a9
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/111945
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-03-04 04:32:05 +01:00
1f290dca1d Another random typo grab bag
Change-Id: Ib548ab7e25600fc693d7a9d6319104f431eb8e8e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/111167
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-02-18 23:50:23 +01: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
1a2b300263 Minor copyedits
Change-Id: Id238b9ae6987152c7759cac21154b61a495b8685
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110027
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-01-27 18:13:57 +01:00
a9deae83c3 Fix spelling from UK English to US English
Change-Id: I5b1f9a65581945e8ec79f83728175d36f38a63eb
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/103662
Tested-by: Jenkins
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-10-01 09:07:47 +02:00
4967b699ba tdf#132643 Translate German section IDs
Change-Id: I2d4a6e0a672db21ce316180b02938a118283183a
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/99437
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-07-25 23:08:21 +02:00
5ea3a748d1 typo
Change-Id: I1bcca86f97f87ae5a5240adbea7055bf669afbf6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/97145
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-29 11:26:40 +02:00
7c39ebe635 Typo in Basic script
Change-Id: I73108c42e82a1e11606e373f1fce0f6a94198f7e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96094
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-11 13:58:55 +02:00
9be45efd58 Fix a couple of product names
Change-Id: I7d1fffadc0bcaec4ec9e9d43c9d9bb3351d570b7
2020-03-05 16:29:47 -06:00
1fa3873428 fix name of APSO extension
Change-Id: I17a1b9f0a6b67c05a77b328a06b9e4091e7c0c26
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88263
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-02-08 20:59:29 +01:00
08fa68db86 tdf#127919 link Assign Component dialog to 'Creating A Dialog Handler'
Change-Id: Ie0f7b0e45ebf0e39d67abc36640cdffd22e08e29
Reviewed-on: https://gerrit.libreoffice.org/85064
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2019-12-12 17:05:17 +01:00
d17d3ef38a related topics section title miss
+ related topics legibility improvement in compatible.xhp
Change-Id: I59ce332560d99b949f180cd37cfd61c40d9ff3f9
Reviewed-on: https://gerrit.libreoffice.org/83981
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-11-28 12:45:14 +01:00
aa272bf2b9 Fix links for basic_2_python page
Change-Id: I7ffd91ea10b22a5215a77be9639dd8d9c27c9ed0
Reviewed-on: https://gerrit.libreoffice.org/81509
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-25 18:03:40 +02:00