Commit Graph

11 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
d5ef41a2b8 String updates…
... to remove some hardcoded product names and to bring the help
in line with recent UI changes

Kudos to Celia and Olivier

Change-Id: If83039fce0612e04d59c5a5bebba6993c1e5a044
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/136445
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2022-06-26 02:10:56 +02:00
8763bde02f Review some outdated text in the Access2Base help page
Change-Id: I61c4b9f4b66750eab2e5724add50865719b13576
Reviewed-on: https://gerrit.libreoffice.org/53382
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-04-24 15:25:36 +02:00
f7ed5d8cb7 Improve wording and formatting of help text
Change-Id: Ic06c6eebc08729b3131db1c213a661c2306d69a9
Reviewed-on: https://gerrit.libreoffice.org/53287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-04-23 13:28:05 +02:00
bb320c4e73 Expand some useless “MS” abbreviations to “Microsoft”
Abbreviations should be used only when we lack space
(e.g., in UI), but there’s plenty of it here

Change-Id: Ib0ac97b2003ca96e4bc286a1a1436bda0f81bd8a
2017-06-26 14:31:39 -05: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
bb4361c2e7 link is no valid child of emph
Change-Id: I24009c8eb766d2e99ff96b8ba803e0d92ee73387
2016-01-25 15:45:46 +01:00
c20dde3497 The 'lastedited' element is useless, we have git. 2015-11-12 09:34:06 +01:00
d7a29031ad fix help xml syntax in access2base.xhp
Change-Id: Id1cc4ed9a9be1db0c4ffda0196439ae39c5643bf
2014-02-20 12:50:35 +01:00
db8f7521f1 Access2Base - Help file
Summary description + reference to official doc site
1 entry in index
1 entry in Macros & Programming - Guides

Change-Id: I26587292b4daff035779fc197522af7dc600279a
Reviewed-on: https://gerrit.libreoffice.org/6522
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-05 01:24:24 -06:00