Commit Graph

15 Commits

Author SHA1 Message Date
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
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
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
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
172b0593aa Mute Pootle complain on reserved words
Change-Id: I8e0832a8be6a5118aa1d8b306a250a87434088ca
Reviewed-on: https://gerrit.libreoffice.org/68252
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-26 13:04:22 +01:00
7a6c121a39 Mutual references (links) in Session & Locations help pages for Python
Change-Id: I96c55ca44c1b04598fcdd663a394c68211f4a29d
Reviewed-on: https://gerrit.libreoffice.org/68310
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-25 17:30:26 +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
85757c5b58 Fix some typos
Change-Id: Ife8c609e1db336417077a31d8a549614e00bd91b
2019-01-23 15:25:58 -06: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
c87f47920f Python: Remove wrong statement on modules.
Change-Id: Ie8c8e9617807a27b2a152abaff0dbcafc03e9c2a
Reviewed-on: https://gerrit.libreoffice.org/65255
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-17 11:06:40 +01:00
193f79464c Fix typo
Change-Id: If125b22f4d77670b82a8951ad72e07d3d7e82364
Reviewed-on: https://gerrit.libreoffice.org/65120
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-13 18:47:33 +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
ff95264637 Add info on python location in filesystem
Change-Id: Iae5f0cc2d95f8f24d2ba7d5ee8e9013d87c851f6
Reviewed-on: https://gerrit.libreoffice.org/65096
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-13 14:04:16 +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