Commit Graph

11 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
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
1e20b35158 Python console examples work better this way
Change-Id: I0c325b7fed727f398c11eea41d7c46a061c3a837
Reviewed-on: https://gerrit.libreoffice.org/77598
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-08-17 15:00:43 +02:00
3d1c811073 Python to Basic Help page
- Python x Basic inter-language calls
- Dialog handlers with Basic or Python

Amend 1
- place page at right path
- inter-page link calls
- entry in Contents
- Some changes in passive voice, articles in text

Change-Id: I5bb54150f534486c092036a8ed4fa7cc38cc9ef0
Reviewed-on: https://gerrit.libreoffice.org/75057
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-15 02:23:47 +02:00
821b9724fe Let's cope with help index idiosyncrasies
Change-Id: I2cd538428cf91dc0c0802389b4db26e07ab33073
Reviewed-on: https://gerrit.libreoffice.org/75501
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-13 14:15:06 +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
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
1002c14fea Remove Britishism
That’s what we have the en-GB localization for.

Change-Id: I43cf1231fbc82e7467562f4fe16cfba44db83553
2019-02-12 02:05:15 -06:00
f601cf7f5d Python Help page for screen IO
Change-Id: I0a1fc11a23c6f48eb058d42541e1f22c57ddb26d
Reviewed-on: https://gerrit.libreoffice.org/66442
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-18 11:06:27 +01:00