Hi Pablo,
Thank you, it's very clear and it finally corresponds to what I want.
The road is long in the learning of this formidable tool !
Fabrice

2017-08-27 12:43 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:
On 08/27/2017 12:29 PM, Fabrice Couvreur wrote:
> Hi Pablo,
>
> " You have to define a new conversion set and use it for the prefix
> segments "
> It seems to me that's what I did.

Hi Fabrice,

I don’t think so. Two different conversion sets are required: one for
\setupheads[sectionconversionset=numbers] and a different one for
\defineenumeration[remark][prefixconversionset=digits].

If there is no different conversion set for the enumeration, you get the
default for the head.

Here is the full sample:

    \mainlanguage[fr]
    \setuphead[chapter][commandbefore={: }]
    \setuphead[section][distance=\zeropoint,
        commandbefore={\space\endash\space}]
    \setuplabeltext[fr][chapter=Chapitre ]

    \definestructureconversionset
      [structure]
      [n, R, n, n, n]

    \definestructureconversionset
      [digits]
      [n, n, n, n, n]

    \setupheads[sectionconversionset=structure]

    \defineenumeration
      [remark]
      [
        text=Remark,
        location=serried,
        width=fit,
        right={.~},
        prefix=yes,
        prefixsegments=chapter,
        prefixconversionset=digits,
        %~ prefixsegments=section
      ]

    \setupnumber[remark][way=bychapter]


    \starttext
    \dorecurse{3}{\startchapter
      [title={First chapter}]
    \dorecurse{3}{\startsection
      [title={First section}]
      \dorecurse{3}{\startremark \input ward \stopremark}
    \stopsection}
    \stopchapter}
    \stoptext

I hope it is clear now. Let me know if it isn’t.

Cheers,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________