16 Commits

Author SHA1 Message Date
9bbf0db168 Mute L10N when <embedvar> is a singleton in text
+ some refactor

Change-Id: I071758f139a7f6e9ab91ca277a420c8283b1eae0
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/178833
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-12-19 19:17:29 +01:00
33ffaf1eaa tdf#160197 remove mention of removed GetLocale BASIC function
Change-Id: Icc3223e4f6ceb83abe542beb538f5ade052e495e
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/170313
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2024-07-10 16:51:14 +02:00
d2beb0a613 Fix error in string for TOOLS BASIC library
Change-Id: Iaedecb8ab3b65df5be98aea9004f003549ede0fc
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/164490
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-03-06 17:08:13 +01:00
ea59b72bfa Add example on how to get user data from registry
Special thanks to Rafael Lima and and Mike Kaganski

Change-Id: I6bd04949680a2f11468debacd23be686e38fdf25
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/154228
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-07-11 12:38:50 +02:00
4453c0b2ed convert paragraphs with role="heading" & childelements to → h<level>
and also drop the language that was changed to implied 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'

and manually undoing the one that uses <sup>in body that's not valid
according to the dtd in the h tags.

Change-Id: Ibd4aed3157ed168cd5005161575672a392e59202
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148797
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2023-03-16 15:18:30 +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
26cd9a5e8b Fix typo
Change-Id: I624ec6267f5a72105c3d600d390849586b839da6
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133154
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2022-04-19 09:05:21 +02:00
24828f91e2 tdf#148621 Improve Basic Help layout
- Get rid of tables
- Add normalize-whitespace Prism plugin to get rid of useless indents
- Fix code blocks poking through sticky header
- Add some word wrapping CSS to fix mobile-unfriendliness

Change-Id: I73fd1e0678624b0d4bd5561f50e80990db5567be
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/133096
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2022-04-17 16:38:31 +02:00
a8a0ba510b - Pages mutual x-Refs
- Relate Tools help page to Basic Dialog page
- Basic page title change
- extra bookmark(s)
- Basic code change
  - loadLibrary code change
  - loadDialog with full path (as best practice)

Change-Id: Ia9a449b1dc8cb3a5acc7a921feeedebe7ce9cefb
Reviewed-on: https://gerrit.libreoffice.org/72946
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-05-27 02:17:31 +02:00
4f954243e7 - Partial refactoring using API calls
- New bookmarks
- Link from Basic Adv libraries to Platform page

Caution: Please fix GlobalScope miss in </bascode> parser in the first place!

Change-Id: Ifeaa98d5491b659a1dddbdbe3dddc417779374cf
Reviewed-on: https://gerrit.libreoffice.org/72583
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2019-05-20 15:35:09 +02:00
3e81e4c583 Related: tdf#121173 double spaces
Change-Id: I9e923e6e67393ed460b7641c5c478c00a2a36e0b
Reviewed-on: https://gerrit.libreoffice.org/64888
Tested-by: Jenkins
Reviewed-by: Sophie Gautier <gautier.sophie@gmail.com>
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-13 18:48:22 +01:00
8e718f78ec Fix typo
Change-Id: Id8405664e2045529826ba634986c414db742cc3b
Reviewed-on: https://gerrit.libreoffice.org/64702
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-12-06 12:18:00 +01:00
4c0b3129e3 Refactor BASIC code layout
Change-Id: Ica3743e859f244a2344e0b51848460c5c4f3ead6
Reviewed-on: https://gerrit.libreoffice.org/64651
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-12-05 22:12:30 +01:00
ded57f986f Mute l10n in some BASIC lines help pages
Change-Id: I04674ec739e8fb538aaa22c19c358c2df3ed057e
Reviewed-on: https://gerrit.libreoffice.org/56833
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-07-03 13:14:07 +02:00
bedb482f8d Fix typos
Change-Id: Idf4ffe077bd71dc8170a20df93d714e581ef02b2
Reviewed-on: https://gerrit.libreoffice.org/55963
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-06-18 08:39:25 +02:00
79ed6797fc Add help pages for internal Basic libraries (WIP)
LibreOffice ships Basic libraries with many nice Functions and
Subs that are not documented at all. These pages shed some
light to these libraries and is a work in progress.

Change-Id: Icb237bf552b785e576e984e47fd0c5cf4f7e29d7
Reviewed-on: https://gerrit.libreoffice.org/55876
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2018-06-15 17:18:51 +02:00