Commit Graph

10 Commits

Author SHA1 Message Date
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
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
5ea3a748d1 typo
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-29 11:26:40 +02:00
3f98a5fd44 Monitoring document events with Python & Basic
-Mutual help pages x-refs
-tree addition
-new bookmarks for
--Advanced Basic Libraries
--Appl. Progr. Interface

NB: I wish I could create new </img> in gerrit

OH:
moved  new xhp to right position
New image
Update makefiles
several x-ref fixes

libO: Added language-driven <switch/> and <case/> tags for 3 different img captures
that XHP Editor doesn't propose but that are documented
Couldn't validate such switches.. crossing fingers..

OH: Languages are not switchable, as explained in comments.
Removed reference to image for good (not l10n full support).
fix missing apostrophe.

Change-Id: I97c92fc879df19f9e8de73e828cd3324ba2163fa
Reviewed-on: https://gerrit.libreoffice.org/70896
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-27 15:36:58 +02: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
7bb0e54187 Copying/Pasting sample code results in compiler error.
Embed tags in place of link within relatedtopics

Change-Id: I05d899e77a51c15d69e066bc94bd5bbb9ed69c8f
Reviewed-on: https://gerrit.libreoffice.org/68142
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-21 12:25:25 +01:00
96e5f8c505 Mute l10n for python uncomented code lines
Change-Id: Ia5bc3debed55813c9481acf360b96731266e7000
Reviewed-on: https://gerrit.libreoffice.org/67822
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-14 15:23:43 +01:00
dfc93df5d7 Corrections + link activation
Change-Id: I99d8a012ff51bf43a96d15450cfaeb02d56ffea9
Reviewed-on: https://gerrit.libreoffice.org/67669
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-11 14:32:51 +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
ae3c8a0a8a Add Help page for Python session
Change-Id: I01f1448176f5c95a5151bb3040e9c2ef53fcb7f1
Reviewed-on: https://gerrit.libreoffice.org/67214
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-01 13:25:59 +01:00