With \definecharacterspacing [test] \setupcharacterspacing [test] ["00AB] [right=.1, alternative=1] \setupcharacterspacing [test] ["00BB] [left=.1, alternative=1] \startsetups[test] \setcharacterspacing[test] \stopsetups \starttext «anyword» \stoptext there is no additional space after and before the guillemets. I am using lmtx in the ConTeXt ver: 2021.04.29 23:09 standalone Alan
Alan Bowen schrieb am 17.05.2021 um 20:38:
With \definecharacterspacing [test] \setupcharacterspacing [test] ["00AB] [right=.1, alternative=1] \setupcharacterspacing [test] ["00BB] [left=.1, alternative=1]
\startsetups[test] \setcharacterspacing[test] \stopsetups
\starttext «anyword» \stoptext there is no additional space after and before the guillemets.
\starttext \setup[test] «anyword» \stoptext Wolfgang
Wolfgang—Thank you. That works very nicely! Alan On Mon, May 17, 2021 at 2:44 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Alan Bowen schrieb am 17.05.2021 um 20:38:
With \definecharacterspacing [test] \setupcharacterspacing [test] ["00AB] [right=.1, alternative=1] \setupcharacterspacing [test] ["00BB] [left=.1, alternative=1]
\startsetups[test] \setcharacterspacing[test] \stopsetups
\starttext «anyword» \stoptext there is no additional space after and before the guillemets.
\starttext \setup[test] «anyword» \stoptext
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
Alan Bowen schrieb am 17.05.2021 um 20:57:
Wolfgang—Thank you. That works very nicely!
You can also remove the \startsetups and \stopsetups commands to enable the spacing. When you want the spacing only for certain languages you can use \setuplanguage to load the setups-block for them: \setuplanguage [fr] [setups=test] \starttext «anyword» {\fr «anyword»} \stoptext Wolfgang
That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr][setups=test] is in the component file. Is this expected behavior? (Before I just \setcharacterspacing[test] in the env file but now it only works when in the component file) Alan On Mon, May 17, 2021 at 3:11 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Alan Bowen schrieb am 17.05.2021 um 20:57:
Wolfgang—Thank you. That works very nicely!
You can also remove the \startsetups and \stopsetups commands to enable the spacing.
When you want the spacing only for certain languages you can use \setuplanguage to load the setups-block for them:
\setuplanguage [fr] [setups=test]
\starttext
«anyword»
{\fr «anyword»}
\stoptext
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
Alan Bowen schrieb am 17.05.2021 um 21:50:
That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr][setups=test] is in the component file.
Is this expected behavior?
(Before I just \setcharacterspacing[test] in the env file but now it only works when in the component file)
Can you make a simple example, it's possible there is a reset somewhere which disables the feature at the end of the environment or the start of the component file. Wolfgang
Hi, Wolgang— The mwe files in a product/component structure are attached. Everything works as desired with the current env file. If one comments out the startsetups...\stopsetups, the guillemets are not properly spaced in the body text, while those in the footnote are fine. If one comments out the \setup line, the guillemets are not properly placed anywhere. Please let me know if this is expected behavior— and I will try troubleshooting my own files to see why my env file has to have the \startsetups...\stopsetups line and the component file, the \setup line if I am to get what I need. Alan On Mon, May 17, 2021 at 4:00 PM Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote:
Alan Bowen schrieb am 17.05.2021 um 21:50:
That is very good to know and it works in simple cases. But I am finding that in a product/component structure, I get the proper spacing only when • the environment file has the \startsetups...\stopsetups • either \setup[test] or \setuplanguage[fr][setups=test] is in the component file.
Is this expected behavior?
(Before I just \setcharacterspacing[test] in the env file but now it only works when in the component file)
Can you make a simple example, it's possible there is a reset somewhere which disables the feature at the end of the environment or the start of the component file.
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (2)
-
Alan Bowen
-
Wolfgang Schuster