[NTG-context] Re: How to stop ConTeXt from thinking period is at the end of a sentence?

2024-05-05 Thread Denis Maier via ntg-context


 
 
  
   https://wiki.contextgarden.net/French_spacing
   
   
   
Joel via ntg-context  hat am 05.05.2024 00:30 CEST geschrieben:

   
 

   
 



 I noticed that some code is being rendered wrong, most especially apparent in a column environment where sometimes the text can get stretched a bit more to fit the column width nicer.
 

  
 

 If a sentence says "They appeared between c. 1200 BCE and c. 1500 CE." it appears ConTeXt thinks that the period in "c." marks the end of a sentence. As such, when setting the text, sometimes it will give a large space between "c." and "1200 BCE".
 

  
 

 How do I correctly tell ConTeXt that that period doesn't mark the end of a sentence, so shouldn't be given extra space afterwards?
 

  
 

 --Joel
 
___
   If your question is of interest to others as well, please add an entry to the Wiki!
   
   maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
   webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
   archive : https://github.com/contextgarden/context
   wiki : https://wiki.contextgarden.net
   ___
  
 

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to stop

2024-01-28 Thread Bruce Horrocks


> On 27 Jan 2024, at 21:29, Joel via ntg-context  wrote:
> 
> I have a document that uses ~40 different TABLE configurations, each with 
> their own special requirements, such as these below, and in total, perhaps 
> 2000 tables appear in a file, using one of the configurations.
> 
> \setupTABLE[r][1][align=raggedleft]
> \setupTABLE[c][1][width=.1\textwidth]
> \setupTABLE[c][2][width=.33\textwidth]
> \setupTABLE[c][3][width=.37\textwidth]
> \setupTABLE[c][4][width=.1\textwidth]
> \setupTABLE[c][5][width=.1\textwidth]
> \setupTABLE[c][1,2,3,4,5][align=raggedleft, 
> frame=off]
> 
> %\setupTABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off]
> \setupTABLE[r][1][bottomframe=on]
> \bTABLE[split=yes]
> \bTR\bTD {\it Lesson}\eTD\bTD {\it 
> Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR
> \eTABLE
> 
> What I've been finding is that previous settings on TABLES appearing earlier 
> in the document is impacting later tables. For instance, if one has a frame 
> to the right of column 1, then the next table seems to acquire this setting 
> as well, even if it isn't expected to have any frames at all.
> 
> Note that each unique table is defined inside a macro.
> 
> How can I make these table settings only apply to the a specific table?

Use setups, one for each of your 40 variations:
e.g:

\startsetup formatA
  \setupTABLE[r][1][align=raggedleft]
  \setupTABLE[c][1][width=.1\textwidth]
\stopsetup
\startsetup formatB
  \setupTABLE[c][1,2,3,4,5][align=raggedleft, frame=off]
\stopsetup

\bTABLE[setups=formatA]
...
\eTABLE

\bTABLE[setups=formatB]
...
\eTABLE

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to stop

2024-01-27 Thread Hraban Ramm
Just use a group (\start ... \stop, \bgroup ... \egroup or {} ) around 
the setup commands and their table, or use \startsetup mytable ... 
\stopsetup and \startTABLE[setups=mytable] if you need the same settings 
for several tables.


HR

Am 27.01.24 um 22:29 schrieb Joel via ntg-context:
I have a document that uses ~40 different TABLE configurations, each 
with their own special requirements, such as these below, and in 
total, perhaps 2000 tables appear in a file, using one of the 
configurations.


\setupTABLE[r][1][align=raggedleft]
 \setupTABLE[c][1][width=.1\textwidth]
 \setupTABLE[c][2][width=.33\textwidth]
 \setupTABLE[c][3][width=.37\textwidth]
 \setupTABLE[c][4][width=.1\textwidth]
 \setupTABLE[c][5][width=.1\textwidth]
 \setupTABLE[c][1,2,3,4,5][align=raggedleft, frame=off]
 %\setupTABLE[r][2,3,4,5,6,8,9,11,12,14][bottomframe=off]
 \setupTABLE[r][1][bottomframe=on]
                            \bTABLE[split=yes]
                                \bTR\bTD {\it Lesson}  \eTD\bTD {\it 
Time} \\eTD\bTD {\it Date} \eTD\bTD {\it Page} \eTD\eTR

                            \eTABLE

What I've been finding is that previous settings on TABLES appearing 
earlier in the document is impacting later tables. For instance, if 
one has a frame to the right of column 1, then the next table seems to 
acquire this setting as well, even if it isn't expected to have any 
frames at all.


Note that each unique table is defined inside a macro.

How can I make these table settings only apply to the a specific table?

--Joel

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

maillist :ntg-context@ntg.nl  
/https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  :https://www.pragma-ade.nl  /https://context.aanhet.net  (mirror)
archive  :https://github.com/contextgarden/context
wiki :https://wiki.contextgarden.net
__
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___