Am 05.06.22 um 16:30 schrieb Albert Krewinkel via ntg-context:
2. Similarly, I'd like to start wrapping paragraphs with
     `\startparagraph`/`\stopparagraph`. It is important for me to get
    properly tagged PDF,

\startparagraph can lead to unwanted side effects (I can't remember the details)
and \bpar ... \epar is the safer alternative to add tags.

Thank you Wolfgang, I wasn't aware! Searching the wiki brought me to
<https://wiki.contextgarden.net/Epub_Sample>. It states:

In places where \startparagraph does not work, such as itemizations,
where it causes a blank line after the bullet and before the item
text, use \bpar (and closing \epar) to tag paragraphs.

It's probably more consistent then to use \bpar ... \epar everywhere.

If I understood Hans right, \start/stopparagraph is not necessary any more to get properly tagged XML. I didn’t check it yet myself – my DOCX-to-ConTeXt converter still produces this markup.

One case where it’s probably in the way is if you need settings like \looseness – before \startparagraph is too early, and after it is too late (in LMTX), you need \updateparagraphproperties in such cases, but you can possible avoid that without \startparagraph – need to check...

Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to