16 Commits

Author SHA1 Message Date
77cb682cd1 convert plain paragraphs with role="heading" → h<level>
i.e. without child elements and also drop the language that was changed
to implied in the dtd 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'

(all permutations re order of attributes, and xml-lang="en-US" being
optional / implied)

Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:10 +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
f2055896d9 rename run to ok for per-desktop placement
Change-Id: I16d10fbf7edc4d0c3e572ef77d233908d400330a
2018-11-13 12:34:37 +00:00
f646b1bd27 Minor corrections and improvements
Begin of the next round of corrections regarding help texts in Pootle.

Change-Id: I92aea43afbbd02ff56398e665c7d13d3d63684b7
Reviewed-on: https://gerrit.libreoffice.org/53552
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-05-08 22:30:35 +02:00
eb9ec1c794 remove obsolete oldref attribute (removes one context line in pot)
also remove obsolete l10n attribute (doesn't affect translations/pot)

Change-Id: I809866ea7b16cb1cacad9efacb6fdeebae38ea9f
2017-05-09 16:37:41 +02:00
c20dde3497 The 'lastedited' element is useless, we have git. 2015-11-12 09:34:06 +01:00
5e109b09ca fix some ahelp ids of hid . where the current context is empty or wrong
related fdo#88970

Change-Id: Ib5aa5f5b608252216817b0e6f38c944e37786df5
2015-02-02 13:39:49 +00:00
e6b3e8a539 update help ids for macro and dialog tabpage .ui conversion
Change-Id: If959d52daf88c6d205cddb691b2426e33c741b88
2014-01-06 11:43:25 +00:00
30a52763d3 update help ids for lib page .ui conversion
Change-Id: I22fff4675a0b097b39bd23f87c19c61e615ef430
2014-01-06 10:08:18 +00:00
15adc2f98a update help ids for import lib dialog
Change-Id: I9603fbd28374686d9dafff80160ca295f4419718
2014-01-03 14:53:14 +00:00
a0c83959ba update help ids for new lib dialog .ui conversion
Change-Id: I0b590ce16c7bbb9fa74a7c4a3d5157a7b89a69d8
2013-12-31 21:11:18 +00:00
0b28df0715 update help ids for password dialog .ui conversion
Change-Id: Ife1ead8a20db8b86b5ec23642eacf1af189fa0f5
2013-10-01 11:35:45 +01:00
81f8e6cfb8 gbuildize helpcontent2
dmake is dead, long live gbuild!

Change-Id: I636ea4ed7ee08a748b96973ae076a5e47928d4ca
2013-02-26 15:29:47 +01:00
df4d4db740 re-base on ALv2 code. Includes:
Patch contributed by Oliver Rainer-Wittmann
    i#118572 - remove ui string and help content regarding
    usage of Java Mail in Writer's Mail Merge as Java
    Mail is not used.
    http://svn.apache.org/viewvc?view=revision&revision=1197035

    Patches contributed by Herbert Duerr
    updated help text for regexp word boundaries
    http://svn.apache.org/viewvc?view=revision&revision=1228026
    improved help text for word boundary regexp expression \b
    http://svn.apache.org/viewvc?view=revision&revision=1234738

    Patches contributed by Jurgen Schmidt
    remove onlineregistration with dependencies
    http://svn.apache.org/viewvc?view=revision&revision=1240245

    Patch contributed by Regina Henschel
    Extended tips for corner and cap style
    http://svn.apache.org/viewvc?view=revision&revision=1242287

* re-enable on-line update help, remove obsolete on-line purchasing.
2012-12-13 13:02:02 +00:00
6291844ea9 adapt macro help ids for .ui 2012-11-05 13:14:27 +00:00
61173c1b58 move help structure one directory up
Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc
2012-10-16 11:07:30 -05:00