summaryrefslogtreecommitdiff
path: root/source/text/sbasic/python
AgeCommit message (Collapse)Author
2023-12-03Python example shared macros documentationAlain Romedenne
Change-Id: If312091c487fd062ec7af24bc4c368bae7b0d748 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/160172 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2023-08-05tdf#155193 Fill indexer= when omitted in Help filesOlivier Hallot
Change-Id: I10f3c9e1e698619dcace7c4314f2bd37adf698de Reviewed-on: https://gerrit.libreoffice.org/c/help/+/155363 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16convert paragraphs with role="heading" & childelements to → h<level>Christian Lohmaier
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-02-28Fix broken links in helpRafael Lima
Change-Id: I77413b0a66d7851d7c79e5f83ed72dd5f42f1c00 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/147975 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-12-19Fix duplicate IDs in non-localized contentIlmari Lauhakangas
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-08Fix to python script sampleAlain Romedenne
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-07tdf#152323 drop name attribute from <link> elementsIlmari Lauhakangas
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-10-26index correctionAlain Romedenne
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-25tdf141474 CreateUnoListener function accepts keyword argumentsAlain Romedenne
- 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-21Bracketed hidden <help text> gets shownAlain Romedenne
Change-Id: I30a459a5445e7e42bf762fe081cfe7e7474188f1 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/141576 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-09-19Reuse and sync help contentAlain Romedenne
Change-Id: Ia95c3da543efd8dddfdcfa635d316b3c10fa52eb Reviewed-on: https://gerrit.libreoffice.org/c/help/+/139569 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2022-08-02Update bookmarks for python_programming.xhpRafael Lima
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-06-24Toc update to document Python resourcesAlain Romedenne
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-04-05Minor string fixesAdolfo Jayme Barrientos
Change-Id: If1f76eacb11216a0b647948e956c7c99711f4c35
2022-01-25Related: tdf#146971 rename %PRODUCTNAME Macros to Application MacrosCaolán McNamara
Change-Id: I83393ec16732482deade1694c6a1a8e2b92f3944 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128916 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2021-12-11Silence strings for l10n in sbasic/shared (Part 1)Rafael Lima
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-11-12Simplify location descriptionflywire
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-06Fixing linksAlain Romedenne
Change-Id: Iaffff844cfa18b2d3a8715e01d236e2d49ebe74a Reviewed-on: https://gerrit.libreoffice.org/c/help/+/124702 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
2021-10-21Fixing L10N issuesAlain Romedenne
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-11Running Python Interactive Console:Alain Romedenne
- 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-09-22Fix localization in some help pagesRafael Lima
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-04Fix in Basic macro exampleAlain Romedenne
Change-Id: Ia73865f59fc5b605853b5c1ff6232349fd186771 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/121456 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2021-06-11Create introductory ScriptForge help pageRafael Lima
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-08Remove literals that prevent proper L10NAlain Romedenne
- 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-04-29sf_basic py2bas bridgeAlain Romedenne
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-03-16Fixups of things missed in reviewAdolfo Jayme Barrientos
Change-Id: I6190d21bef297077e6a7685b59b58804cce60bca
2021-03-04Remove more improper ellipses and fix a couple of capitalizationsAdolfo Jayme Barrientos
Change-Id: I3cea0b968dd38d93381268c6b0ede5c90dc8a5a9 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/111945 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2021-02-18Another random typo grab bagAdolfo Jayme Barrientos
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-12sf_session new help pageAlain Romedenne
- 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-01-27Minor copyeditsAdolfo Jayme Barrientos
Change-Id: Id238b9ae6987152c7759cac21154b61a495b8685 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/110027 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2020-10-01Fix spelling from UK English to US EnglishTravis Stewart
Change-Id: I5b1f9a65581945e8ec79f83728175d36f38a63eb Reviewed-on: https://gerrit.libreoffice.org/c/help/+/103662 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2020-07-25tdf#132643 Translate German section IDsJohnny_M
Change-Id: I2d4a6e0a672db21ce316180b02938a118283183a Reviewed-on: https://gerrit.libreoffice.org/c/help/+/99437 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-06-29typoAlain Romedenne
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-11Typo in Basic scriptAlain🐍Romedenne
Change-Id: I73108c42e82a1e11606e373f1fce0f6a94198f7e Reviewed-on: https://gerrit.libreoffice.org/c/help/+/96094 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2020-03-05Fix a couple of product namesAdolfo Jayme Barrientos
Change-Id: I7d1fffadc0bcaec4ec9e9d43c9d9bb3351d570b7
2020-02-08fix name of APSO extensionStanislav Horacek
Change-Id: I17a1b9f0a6b67c05a77b328a06b9e4091e7c0c26 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/88263 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2019-12-12tdf#127919 link Assign Component dialog to 'Creating A Dialog Handler'Caolán McNamara
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-11-28related topics section title missLibreOfficiant
+ 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-10-25Fix links for basic_2_python pageOlivier Hallot
Change-Id: I7ffd91ea10b22a5215a77be9639dd8d9c27c9ed0 Reviewed-on: https://gerrit.libreoffice.org/81509 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-24Documenting how to call Python routines from Basic macrosLibreOfficiant
Change-Id: I904cafe91ad7c5e72d09209c68db401003dda556 Reviewed-on: https://gerrit.libreoffice.org/81412 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-15Restrict warning to sys=UNIXOlivier Hallot
Warning applies only to UNIX like systems Change-Id: I1fe93eef298bb7f3f00d0318edb4413672e93d1f Reviewed-on: https://gerrit.libreoffice.org/80831 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-09-19Add a warning detailing how to check Python's presence.LibreOfficiant
Change-Id: I31a1f4a99742b05f6f7a0c1b9904e78475ea9a4e Reviewed-on: https://gerrit.libreoffice.org/79177 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-26The exact context where Basic IDE is absent needs to be clarifiedLibreOfficiant
Change-Id: I722b5d37dcb6b6ea772ab6c8b6022484346ab29d Reviewed-on: https://gerrit.libreoffice.org/78117 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-19TypoOlivier Hallot
Change-Id: I450b7d1c0b860f17cdd7a2ee36993fe90c58310f Reviewed-on: https://gerrit.libreoffice.org/77731 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-17Python console examples work better this wayLibreOfficiant
Change-Id: I0c325b7fed727f398c11eea41d7c46a061c3a837 Reviewed-on: https://gerrit.libreoffice.org/77598 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-07Don't translate example code snippetsGabor Kelemen
Also avoid errors at 'make translations' such as: Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0344 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0382 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0387 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0393 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0395 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0400 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0405 Helpex warning: invalid po attributes extracted from /home/gabor/src/core/helpcontent2/source/text/sbasic/python/python_2_basic.xhp No string specified! GroupID: N0417 Change-Id: I0715209dd8cf7b044a2914cfbcd3cfabdeab66ed Reviewed-on: https://gerrit.libreoffice.org/77073 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org> Tested-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-28tdf#126528 Add Python in Organize scripts pageOlivier Hallot
Change-Id: I8d18f5e264fe11924a8ea234e82355913b0417d2 Reviewed-on: https://gerrit.libreoffice.org/76382 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-27Fix typoAndrea Gelmini
Change-Id: Ib92a4ba3f7b5dc41930e788c061c70fc74ab18f7 Reviewed-on: https://gerrit.libreoffice.org/76467 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2019-07-26Python dialog handler new topicLibreOfficiant
'Dialog Handler' new topic bunch of x-ref between pages make & toc OH: - fixed broken file path - fixed broken links Change-Id: I37e94fea48c394310298ff6f4b13f22c71c523c4 Reviewed-on: https://gerrit.libreoffice.org/76191 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-16TypoLibreOfficiant
Change-Id: I854c7a4112eda552122fa37f15bcf9752ad302ae Reviewed-on: https://gerrit.libreoffice.org/75627 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>