Files
help/helpers/calc_text_func.pl
Pierre F 3b6506e4e1 tdf#143846 split PROPER REPLACE REPT RIGHT SEARCH ...
...  SUBSTITUTE T TEXT TRIM UNICHAR UNICODE UPPER

Change-Id: I2ef1a659fbaf481dac1329f86178b8cd9b786ce2
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/175912
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Tested-by: Jenkins
2024-11-02 17:47:51 +01:00

36 lines
698 B
Perl

use 5.010;
$hlp='helpers/calc_text_func.xsl'; #extract section
$hlp0='helpers/calc_text_func0.xsl'; #replace section
$source= 'source/text/scalc/01/04060110.xhp';
$tmp = $source . '.tmp';
@todo = qw/ LEFTB LENB MIDB RIGHTB /;
for $F ( @ARGV) {
$f=lc $F;
say $F
$fOut = "source/text/scalc/01/func_$f.xhp";
system qq( xsltproc --stringparam func $F $hlp $source > $fOut );
if ( -z $fOut ) {
warn "$F empty";
unlink $fOut;
next;
}
system qq( xsltproc --stringparam func $f $hlp0 $source > $tmp );
rename $tmp, $source;
$mk .= qq( helpcontent2/source/text/scalc/01/func_$f \\\n);
}
say qq(TODO. add to git and AllLangHelp_scalc.mk :
$mk)
if $mk;