check-markup revision cbf637def79d04da4a4cfa87f165fda951e8706b
259N/Amy $span_attr = qr/(?:\ +(?:font_(?:desc|family)|face|size|style|weight|variant|stretch|(?:fore|back)ground|underline|rise|strikethrough|fallback|lang)\=\\\"[^\\\"]*\\\")/;
my $rc = 0;
my ($msg) = @_;
$name =~ s,.*/,,;
$rc = 1;
my ($certainly_pango_str, $str) = @_;
if ($str =~ /\AProject-Id-Version:.*POT-Creation-Date/
or $str =~ /\A<[^<>]*>\Z/) {
my $is_xml = 0;
while ($str =~ s{<([bisu]|big|su[bp]|small|tt|span)(${attrsRE})>[^<>]*</\1>}{}) {
$is_xml = 1;
if ($tag eq 'span') {
$attrs =~ s/${span_attr}*//g;
if ($attrs ne '') {
$attrs =~ s/\A *//;
$str =~ s/<[ 01]//g;
$str =~ s/\A>+//;
$str =~ s/<+\Z//;
$str =~ s/\([<>][01]\)//g;
$str =~ s/ -> //g;
$str =~ s/\[[<>]\]//g;
$str =~ s/\A[^<>]*//;
$str =~ s/[^<>]*\Z//;
my $is_pango_str = shift(@_);
or $is_pango_str == 0)
foreach my $str (@_) {
$str eq '""' or check_str($is_pango_str - 1, $str) or return 0;
my $is_pango_format = 1;
$is_pango_format = ( defined($1) ? 0 : 2 );
$is_pango_format = ( defined($1) ? 0 : 2 );
if (m{\n\#:\ \.\./share/extensions/[-a-zA-Z0-9_]+\.inx(?:\.h)?:}) {
$is_pango_format = 0;
check_strs($is_pango_format, $1, $2) or next ENTRY;
while ($rest =~ s/\A${com}*msgstr\[\d+\]\ (${str})\n${com}*//) {
next ENTRY;
# Some makefiles (currently the top-level Makefile.am) expect this script to
exit $rc;