Commit Graph

15 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
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
32ed2dcd31 Documenting how to call Python routines from Basic macros
Change-Id: I904cafe91ad7c5e72d09209c68db401003dda556
Reviewed-on: https://gerrit.libreoffice.org/81412
Tested-by: Jenkins
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-10-24 17:23:33 +02:00
6880ed4b73 Python dialog handler new topic
'Dialog Handler' new topic
bunch of x-ref between pages
make & toc

OH:
- fixed broken file path
- fixed broken links

Change-Id: I37e94fea48c394310298ff6f4b13f22c71c523c4
Reviewed-on: https://gerrit.libreoffice.org/76191
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-07-26 13:30:28 +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
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
4ff9ffa9f7 New Python page + updates to existing pages to support embedded references
Change-Id: Ie7bd884db45e3ca59dee1ffa79b2ea14ced3d160
Reviewed-on: https://gerrit.libreoffice.org/70420
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-04-10 16:32:54 +02:00
5489ccad66 Python: Help pages on opening dialogs
Change-Id: Ib71ad229ff908c1bb7c426f2242729d53cb01ff8
Reviewed-on: https://gerrit.libreoffice.org/68100
Tested-by: Jenkins
Reviewed-by: LibreOfficiant <OpenOfficiant@sfr.fr>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-21 16:22:07 +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
675b040e84 Python: Help page for module import
Change-Id: I35ce948bbd0abcb2daeb272fe4d436cd05bb24ed
Reviewed-on: https://gerrit.libreoffice.org/67773
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-02-14 13:20:40 +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
de5dad498a Add more python examples
Change-Id: Id34674cd96d615b8613a35e18d96886a3d39bae0
Reviewed-on: https://gerrit.libreoffice.org/66763
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-01-23 12:39:28 +01: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
d6bc711d16 Fix typo
Change-Id: I503abdd631c5ee53466f9bc73be0650e69098806
Reviewed-on: https://gerrit.libreoffice.org/65880
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2019-01-05 06:10:10 +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