19 Commits

Author SHA1 Message Date
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
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
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
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
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
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
35cef5c725 Restrict warning to sys=UNIX
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-10-15 15:54:41 +02:00
accc6a9e14 Add a warning detailing how to check Python's presence.
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-09-19 16:58:34 +02:00
c11400b40e tdf#126528 Add Python in Organize scripts page
Change-Id: I8d18f5e264fe11924a8ea234e82355913b0417d2
Reviewed-on: https://gerrit.libreoffice.org/76382
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-28 15:33:38 +02: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
85757c5b58 Fix some typos
Change-Id: Ife8c609e1db336417077a31d8a549614e00bd91b
2019-01-23 15:25:58 -06:00
daa9a2d6cf Remove extra line
Change-Id: Ice99f7fe5e46bb823b1e27bb857d3fcb5575e3a5
Reviewed-on: https://gerrit.libreoffice.org/65891
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-05 17:00:42 +01:00
b01f85baef tdf#121736 More Help pages on Python
Entry page for examples. Comments left intentionally for
later fill.

Change-Id: Ifacad703097187180cc3909be4ba9a81f80244be
Reviewed-on: https://gerrit.libreoffice.org/65866
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-04 20:54:18 +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
59404eb5ca Python: fix location description / references
Change-Id: I0b6339716d8a26dda84d0904c4a536d2173d3f1e
Reviewed-on: https://gerrit.libreoffice.org/65347
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-18 16:01:34 +01:00
0fa7f6f53a Adjust bookmarks for python
place bookmarks at the right page

Change-Id: Ia5ce242ab9d21be2ca1b7b4f078af0b824d00c3a
Reviewed-on: https://gerrit.libreoffice.org/65187
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-14 18:35:18 +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
949606895b tdf#121736 initial Help pages for Python scripts
Work in progress, initial addition of help pages for python
scripts in LO.

Change-Id: Iee95b1340c821fdb08524fdedeca3817b0de1459
Reviewed-on: https://gerrit.libreoffice.org/64137
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-11-28 10:48:08 +01:00