git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] Add optional targets for documentation l10n

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 7, 2019, 19:29 UTC
Message-ID
<xmqqh8ek8dw8.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<220955359.FqXrlbFPp5@cayenne>
Jean-Noël AVILA <jn.avila@free.fr> writes:
Show 13 quoted lines
>> The idea is to use $(filter PATTERN..., TEXT) that removes words in
>> TEXT that do not match any of the words in PATTERN, and for normal
>> build, MAN_FILTER is set identical to TMP_MAN_TXT (which is the
>> original MAN_TXT), so there is no filtering happen, but in a build
>> that does tweak MAN_FILTER, MAN_TXT can become a subset of the
>> original MAN_TXT.
>> 
>> Am I on the right track?
>>
>
> Yes that's exactly the purpose of this trick. In fact, $(filter) in this 
> configuration is equivalent to an intersection of lists, so the order does not 
> change the end result.

That is only true if MAN_FILTER is literally a list of "I want exactly these things", without any pattern. Once a future caller wants to say "We now have translations for pages from [a-m]*", it becomes apparent again that the order is wrong.

And if the caller is supposed to have a literal list of pages, not a pattern, then it may be sufficient to update our Makefile so that the caller can override the literal list of pages we (incrementally) compute with its own list without any filtering.

> Ah, I see. The filter from MAN{1,5,7}_TXT would ripple the same way as MAN_TXT, 
> just one level upstream.  The filtering at this level would no longer be 
> needed.
Yup.  I see you sent v2; let me read it.
Thanks.
Previous: Jean-Noël AVILANext: Jean-Noël Avila
Message 5 of 8 in “i18n: add framework for localizing the manpages”
  1. 0/1 i18n: add framework for localizing the manpagesJean-Noël Avila, Jan 4, 2019
  2. 1/1 Add optional targets for documentation l10nJean-Noël Avila, Jan 4, 2019
  3. Junio C HamanoJan 4, 2019
  4. Jean-Noël AVILAJan 5, 2019
  5. Junio C HamanoJan 7, 2019
  6. Add optional targets for documentation l10nJean-Noël Avila, Jan 5, 2019
  7. Junio C HamanoJan 7, 2019
  8. Add optional targets for documentation l10nJean-Noël Avila, Jan 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.