Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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
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
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
0e323bedb1 Current help page does not provide focus on UNO
...introspection that Python console is offering.

Change-Id: Ic35833d7658d3ae9d465c1f3f7cc7a2ea1ecfa1a
Reviewed-on: https://gerrit.libreoffice.org/69831
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-02 15:02:34 +02:00
86716b1007 remove empty paragraph, fixes a helpex warning
Helpex warning: invalid po attributes extracted from /home/timar/libreoffice-master/helpcontent2/source/text/sbasic/python/python_shell.xhp
No string specified!
GroupID: N0120

Change-Id: Ia3fa7d88f4756fd700eebcceb4480e0a553a5482
2019-03-19 13:49:11 +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
9edd5ad5fc Mute l10n in lines of Basic and Python code
Change-Id: I8cebb9a0132d430242ae32be9b7fdac10e4e7da2
Reviewed-on: https://gerrit.libreoffice.org/66242
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-13 23:48:03 +01:00
d439868081 2 typos corrected
Change-Id: Ic3e2524861d91480da0cdb53400f22ca46d10e45
Reviewed-on: https://gerrit.libreoffice.org/65499
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-20 15:34:15 +01:00
eea4d307ec More pages on Python scripts
Change-Id: I5d8db28da384f52ee835195d3eb889fde0fe33b3
Signed-off-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/65117
Tested-by: Jenkins
2018-12-13 18:21:03 +01:00