Re: Types of quotes in xref linkend references

"Xi Ruoyao" ([email protected] via blfs-dev Mailing List) <[email protected]> Sun, 01 Mar 2026 21:07:26 +0800
Newsgroups gmane.linux.lfs.beyond.devel
Message-ID <[email protected]>
On Sun, 2026-03-01 at 12:58 +0100, Rainer Fiebig wrote:
> Am 01.03.26 um 08:44 schrieb Pierre Labastie ([email protected]
> via blfs-dev Mailing List):
> 
> / snip /
> 
> > 
> > Well, thanks for this thread, because I did not know about this
> > translation problem with double quotes. Even recently I've been using
> > double quotes, so single quotes cropping in has been delayed. Will try
> > to stick to single quotes now...
> > 
> > For grepping, I suppose linkend=['"]... is enough as a regexp...
> 
> I'm afraid that won't work.  The quotes need to be escaped, like in
> 
> grep -o linkend=[\'\"] xorg-config.xml
> linkend="
> linkend='
> linkend="
> [...]
> 
> or
> 
> grep -o "linkend=[\'\"]" xorg-config.xml
> 
> Same for sed.

I just use two dots for = and whatever the quote is, like
"linkend..libxml2" to avoid the necessity of the outer quote.

> Personally, I doubt the usefulness/value of translations of LFS/BLFS
> anyway because sooner or later the user will have to deal with English -
> when asking for support or reporting bugs elsewhere etc.  And any
> translation carries the risk of mistakes.  I also think that
> translations of the books are based on the _assumption_ that there is
> some demand for it.  But is there?

I've got some enhancement and support requests about LFS in Chinese, and
at least one of those enhancements is really implemented for the
(original English) book.  There's also a request for the BLFS
translation but I don't have time to do that.

From what I can remember, the frequency of mistakes in the LFS Chinese
translation is not above the frequency of mistakes in the English text.


-- 
Xi Ruoyao <[email protected]>

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