Re: Upstream docbook issues

"Bruce Dubbs" ([email protected] via blfs-dev Mailing List) <[email protected]> Sat, 3 Jan 2026 09:58:45 -0600
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On 1/3/26 6:15 AM, Jamenson Espindula ([email protected] via blfs-dev Mailing List) wrote:
> Em sáb., 3 de jan. de 2026 às 01:20, Bruce Dubbs
> <[email protected]> escreveu:
>>
>> I was looking at our currency tonight and there was a problem with docbook.  In
>> checking, none of the URLs pointing to the following work:
>>
> I am not sure if it is a related issue, but on the 'All Packages' and
> on the 'Needed Patches' Brazilian Portuguese pages, the totalization
> of the packages is wrong.
> 
> I believe it is related to the decimal separator and the thousands
> separator issue: in Brazilian Portuguese, the comma is the decimal
> separator while the period is the thousands separator.
> 
> Maybe I already reported that issue here, but I do not remember for sure.

The totals are actually calculated in stylesheets/lfs-xsl/common.xsl.  See the 
templates returnvalue and calculation at the bottom of the file.

I suggest not changing the commas and dots in the file sizes in Chapter 3 before 
generating the html version of the Brazilian Portuguese book and then using a sed to 
change the html files that are generated.

Note that all the file sizes are specified in packages.ent and patches.ent in KB 
where K=1024.  The thousands separator are commas.  In patches.ent, if the file size 
is is less than 10 KB, then a dot is used to specify the size (e.g. x.y). There are
no commas in the patch sizes because the largest size there is 128 KB.

   -- Bruce

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-dev
Unsubscribe: See the above information page