Commit Graph

17 Commits

Author SHA1 Message Date
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
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
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
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
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
dcedbce9f5 Prevent L10n issue when building Help
Pootle does not convert back &lt; and &gt; into the same entities, thus
disturbing XML parsing of string. Changed to ().

Change-Id: I4e754313a2c51c6b5b190a7e236768fe84ec8672
Reviewed-on: https://gerrit.libreoffice.org/73444
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-06-05 14:46:30 +02:00
4ee8b6f475 added hasUnoInterfaces()
Change-Id: I41e521c34c4dbf161b0bd4316da75d6db7ec4314
Reviewed-on: https://gerrit.libreoffice.org/71214
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-26 15:33:08 +02:00
4ff9ffa9f7 New Python page + updates to existing pages to support embedded references
Change-Id: Ie7bd884db45e3ca59dee1ffa79b2ea14ced3d160
Reviewed-on: https://gerrit.libreoffice.org/70420
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-10 16:32:54 +02:00
8e550a4a31 minor correction
Change-Id: I900e7175a028599f320d80ff30822fcad55d9046
Reviewed-on: https://gerrit.libreoffice.org/68620
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-03-02 16:00:44 +01:00
f134b8cd96 Spelling offence made to BeanShell requires correction
+ link cleanup

Change-Id: If186f97bfd4ae8c4ccc2220ea8af9f1a6d1d8a2d
Reviewed-on: https://gerrit.libreoffice.org/68064
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2019-02-20 18:03:38 +01:00
5f787a1f2d Python: improve navigation between Help pages
add links between python pages
add links from Contents section

Change-Id: Ifc6704862c8213008eeb5d6e6baf86aa7c7be50b
Reviewed-on: https://gerrit.libreoffice.org/67778
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-14 13:21:02 +01:00
e3a09f8bc5 Improve scripts legibility for Python newbies
Change-Id: I6adee2c58d4030c433a9fdf0c070069264564742
Reviewed-on: https://gerrit.libreoffice.org/67439
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-06 12:44:07 +01:00
9d3ac18650 Improper Python code requiring update
Change-Id: Ia59f0e5d67718771152cca49704173701bf1f0f8
Reviewed-on: https://gerrit.libreoffice.org/66957
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-26 12:09:31 +01:00
4df68585db tdf#121736 Python programming Help pages
Change-Id: I6307a9f5e5ae27931ca12d8268d825afcee58539
Reviewed-on: https://gerrit.libreoffice.org/65828
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-03 11:45:06 +01:00