Re: [NTG-context] Hyphenation in multi-language projects
On 9/14/22 16:54, Denis Maier via ntg-context wrote: >> [...] >> Isn’t there a way to list exceptions that will work in *all* >> languages? > > I thought that \hyphenation would work like that, or \startexceptions > without a language code. Apparently that's not the case. \hyphenation only works for the given language: \hyphenation{macOS} \starttext \startTEXpage[offset=1em] \currentlanguage: \hyphenatedword{macOS} \startlanguage[fr] \currentlanguage: \hyphenatedword{macOS} \stoplanguage \stopTEXpage \stoptext But I’d say that \registerhyphenationexception[macOS] was language-independent for me some time ago. (Now it seems to work like \hyphenation.) In any case, \registerhyphenationexception seems to have issues with ligatures: \setuphyphenation[method=traditional] \registerhyphenationexception[steff-en macOS] \registerhyphenationexception[it][steff-en macOS] \starttext \startTEXpage[offset=1em] \currentlanguage: \hyphenatedword{steffen macOS} \startlanguage[it] \currentlanguage: \hyphenatedword{steffen macOS} \stoplanguage \stopTEXpage \stoptext If there isn’t a command to add language-indepented hyphenation exceptions or patterns, one for proper names (for people, products or companies) would be really useful. Just in case Hans or other wizard may take a look at this, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
a bug? st. > Am 14.09.2022 um 16:54 schrieb denis.ma...@unibe.ch: > >> -Ursprüngliche Nachricht- >> Von: ntg-context Im Auftrag von Steffen >> Wolfrum via ntg-context >> Gesendet: Mittwoch, 14. September 2022 16:45 >> An: mailing list for ConTeXt users >> Cc: Steffen Wolfrum ; Hans Hagen >> >> Betreff: Re: [NTG-context] Hyphenation in multi-language projects >> >> Isn’t there a way to list exceptions that will work in *all* languages? > > I thought that \hyphenation would work like that, or \startexceptions without > a language code. Apparently that's not the case. > > Denis > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] [secure site not available]
On 9/14/22 16:43, Floris van Manen via ntg-context wrote: > When trying to download the context distribution for linux and 64 > > https://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip > > i get a warning about missing security: > [...] > Is there a (simple) solution? Hi Florian, I only have a simple explanation: https://lmtx.pragma-ade.nl, https://pragma-ade.nl and https://pragma-ade.com seem to use a certificate that is only valid for https://lmtx.pragma-ade.com (according to Firefox). Each domain (and subdomain) requires its own certificate. (And non-automatic certificate renewal is a real pain [I have to add].) Right now, Hans will be the whole week @ https://meeting.contextgarden.net/2022/programme.shtml. So, you will have to wait or use https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip (right now, it seems to work ). I hope it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Steffen > Wolfrum via ntg-context > Gesendet: Mittwoch, 14. September 2022 16:45 > An: mailing list for ConTeXt users > Cc: Steffen Wolfrum ; Hans Hagen > > Betreff: Re: [NTG-context] Hyphenation in multi-language projects > > Isn’t there a way to list exceptions that will work in *all* languages? I thought that \hyphenation would work like that, or \startexceptions without a language code. Apparently that's not the case. Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] [secure site not available]
When trying to download the context distribution for linux and 64 https://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip i get a warning about missing security: HTTPS-Only Mode Alert Secure Site Not Available You’ve enabled HTTPS-Only Mode for enhanced security, and a HTTPS version of lmtx.pragma-ade.nl is not available. Learn More… What could be causing this? Most likely, the website simply does not support HTTPS. It’s also possible that an attacker is involved. If you decide to visit the website, you should not enter any sensitive information like passwords, emails, or credit card details. If you continue, HTTPS-Only Mode will be turned off temporarily for this site. Is there a (simple) solution? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
Isn’t there a way to list exceptions that will work in *all* languages? Steffen > Am 14.09.2022 um 09:19 schrieb Denis Maier via ntg-context > : > >> -Ursprüngliche Nachricht- >> Von: ntg-context Im Auftrag von Max >> Chernoff via ntg-context >> Gesendet: Mittwoch, 14. September 2022 08:51 >> An: ntg-context@ntg.nl >> Cc: Max Chernoff ; cont...@st.estfiles.de >> Betreff: Re: [NTG-context] Hyphenation in multi-language projects >> >> Hi Steffen, >> >>> … \replaceword should be the correct way for proper hyphenation?? >> >> Well I'm not sure if it's "correct", but it seems to work. Based on my >> testing, >> having three subsequent sets of groups ({A}{B}{C}) is converted to a >> discretionary. The discretionary hyphen "\-" is equivalent to the Plain TeX >> command "\discretionary{-}{}{}", so >> >> \replaceword[hyphenations][steffen][steff{-}{}{}en] >> >> acts just like "steff\-en". TeX won't otherwise hyphenate a word with >> discretionaries, so this means that "steff-en" will be the only allowable >> hyphenation. > > Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is > slower than using the hyphenation engine directly. (That's why he has > reimplemented the ligature suppression mechanism on the hyphenation level, > rather than acting on the node list.) > > Best, > Denis > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] \startcolumnset ... \stopcolumnset is working.
Dear all, I didn’t test “\startcolumnset … \stopcolumnset” for some time, because I got error whenever I tested it under Mac OS Big Sur. However, two days ago, I tested it, and found that it was working. I install updated version today and run a test file again. Finally, I get an output without error! I don't know what is happened, but it is a good news. Here is a sample file which I simplified one that is given by one of the experts. Someone may modify it better. Thanks to ConTeXt team. Best regards, Dalyoung \startuseMPgraphic{squareBox} draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm; draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm; draw rightboundary OverlayBox shifted (1mm,0); draw leftboundary OverlayBox shifted (-1mm,0); \stopuseMPgraphic \defineoverlay [headerBox] [\useMPgraphic{squareBox}] \startuseMPgraphic{verticalrule3} draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ; draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ; draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm; \stopuseMPgraphic \defineoverlay [verticalrule] [\useMPgraphic{verticalrule3}] \definecolumnset [exam] [n=2, background=verticalrule] \setuplayout[width=19cm, height=26cm, header=1cm, footer=.5cm,backspace=1cm] \setupheader[before=\vfil, after=\vfil] \setupbackgrounds[header][text][frame=off, background=headerBox, align=lohi]%topframe= \setupbackgrounds[footer][text][frame=off, background=screen] \define[3]\headTitle{\setupheadertexts[][\bf #1 \hfill #2 \hfill #3 \hfill ID: \hskip 2cm Name: \hskip 2cm]} \setupmathematics[autopunctuation=no, integral=nolimits] \setupbodyfont[rm,10pt] \setuppagenumbering[location=footer] \setupcolors[state=start] %\setupexternalfigure[directory={/Users/graph/Documents/figures,}] \headTitle{2021. 12. 12.}{Set Theory}{Final Exam} \starttext \startcolumnset[exam] \startitemize[n] \item The first problem. \column \item The second problem. \column \item The third problem. \column \item The third problem. \stopitemize \stopcolumnset \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] meeting not online
At the moment, audio is working. Won't promise for how long. Who's interested, just stay logged in to BBB, and we'll see. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] meeting not online
Too bad, but thanks for letting us know. Have a nice meeting! Best, Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Henning > Hraban Ramm via ntg-context > Gesendet: Mittwoch, 14. September 2022 09:23 > An: jbf via ntg-context > Cc: Henning Hraban Ramm > Betreff: [NTG-context] meeting not online > > Hi everyone who was interested in participating in the meeting remotely, > > I just recognized I forgot to include some addresses in the participants > address, thus some information didn’t reach the adressees. > > The DSL connection here in Dreifelden is very weak and unreliable – even if > streaming works sometimes, usually it’s just enough for email. > > Yesterday we streamed for one guy via mobile connections, but those who > offered their phones for it have now mostly used up their data volume and > need the rest for themselves. > > We suspected the Wifi to be the bottleneck, but when I bought and installed > an ethernet cable, it wouldn’t get better. > > I’m very sorry, but we can’t keep that up. > > Hraban > > __ > _ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg- > context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive > : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://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://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Latest ConTeXt won't "--make"
Hi Mikael, > I don't see this problem with the latest. Moreover, I think the > version of luametatex was pushed to 2.10, so there might be a > mis-match in your case. I hope it helps. I just tried updating again, and it says that I'm up to date, but: $ luametatex --version This is LuaMetaTeX, Version 2.09.62 Execute 'luametatex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaMetaTeX source. Functionality : level 20220825 Support : cont...@ntg.nl Copyright : The Lua(Meta)TeX Team(s) (2005-2022+) The LuaMetaTeX project is related to ConTeXt development. This macro package tightly integrates TeX and MetaPost in close cooperation with Lua. Updates will happen in sync with ConTeXt and when needed. Don't be fooled by unchanged dates: long term stability is the objective. $ context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2022.09.11 20:44 mtx-context | main context file: /opt/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2022.09.11 20:44 the engine/format appear to be mismatched. Manually updating the engine with: $ sudo wget http://lmtx.pragma-ade.nl/install-lmtx/tex/texmf-linux-64/bin/luametatex $ luametatex --version This is LuaMetaTeX, Version 2.10.00 Execute 'luametatex --credits' for credits and version details. There is NO warranty. Redistribution of this software is covered by the terms of the GNU General Public License, version 2 or (at your option) any later version. For more information about these matters, see the file named COPYING and the LuaMetaTeX source. Functionality : level 20220918 Support : cont...@ntg.nl Copyright : The Lua(Meta)TeX Team(s) (2005-2022+) The LuaMetaTeX project is related to ConTeXt development. This macro package tightly integrates TeX and MetaPost in close cooperation with Lua. Updates will happen in sync with ConTeXt and when needed. Don't be fooled by unchanged dates: long term stability is the objective. has solved the issue. I'm not sure why the the engine wasn't updating, but it appears to be fixed now. Thanks, -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] meeting not online
Hi everyone who was interested in participating in the meeting remotely, I just recognized I forgot to include some addresses in the participants address, thus some information didn’t reach the adressees. The DSL connection here in Dreifelden is very weak and unreliable – even if streaming works sometimes, usually it’s just enough for email. Yesterday we streamed for one guy via mobile connections, but those who offered their phones for it have now mostly used up their data volume and need the rest for themselves. We suspected the Wifi to be the bottleneck, but when I bought and installed an ethernet cable, it wouldn’t get better. I’m very sorry, but we can’t keep that up. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Latest ConTeXt won't "--make"
Hi, On Wed, Sep 14, 2022 at 8:43 AM Max Chernoff via ntg-context wrote: > > Hi all, > > I've just updated to the latest ConTeXt, but I'm unable to make the > format: > >$ context --make >resolvers | resolving | configuration files already identified >resolvers | resolving | loading configuration file > 'selfautoparent:/texmf/web2c/texmfcnf.lua' >[...] >resolvers | formats | using tex source file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl' >resolvers | formats | using lua stub file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt' >resolvers | formats | changing to format path > '/home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex' >resolvers | formats | executing runner 'make luametatex format': > /opt/context/tex/texmf-linux-64/bin/luametatex --ini > --lua=/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt > /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl >This is LuaMetaTeX, Version 2.09.62 (INITEX) >[...] >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-spa.lmt' succeeded >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt' succeeded >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-pre.lmt' succeeded >tex error > tex error on line 559 in file math-ini.mkxl: Undefined > control sequence \undefined > > > +\removeitaliccorrectionclassoptioncode > > >The control sequence at the end of the top line of your error message was > never >\def'ed. You can just continue as I'll forget about whatever was undefined. >resolvers | formats | >resolvers | formats | binary path : > /opt/context/tex/texmf-linux-64/bin >resolvers | formats | format path : > /home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex >resolvers | formats | luatex engine: luametatex >resolvers | formats | lua startup file : > /opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt >resolvers | formats | context file : > /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl >resolvers | formats | run time : 0.573 seconds >resolvers | formats | return value : error >resolvers | formats | >system | total runtime: 0.610 seconds of 0.647 seconds > > Commenting out line 559 of math-ini.mkxl fixes the issue. > > Thanks, > -- Max I don't see this problem with the latest. Moreover, I think the version of luametatex was pushed to 2.10, so there might be a mis-match in your case. I hope it helps. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Max > Chernoff via ntg-context > Gesendet: Mittwoch, 14. September 2022 08:51 > An: ntg-context@ntg.nl > Cc: Max Chernoff ; cont...@st.estfiles.de > Betreff: Re: [NTG-context] Hyphenation in multi-language projects > > Hi Steffen, > > > … \replaceword should be the correct way for proper hyphenation?? > > Well I'm not sure if it's "correct", but it seems to work. Based on my > testing, > having three subsequent sets of groups ({A}{B}{C}) is converted to a > discretionary. The discretionary hyphen "\-" is equivalent to the Plain TeX > command "\discretionary{-}{}{}", so > >\replaceword[hyphenations][steffen][steff{-}{}{}en] > > acts just like "steff\-en". TeX won't otherwise hyphenate a word with > discretionaries, so this means that "steff-en" will be the only allowable > hyphenation. Just one caveat though. IIRC, Hans has mentioned that this kind of stuff is slower than using the hyphenation engine directly. (That's why he has reimplemented the ligature suppression mechanism on the hyphenation level, rather than acting on the node list.) Best, Denis ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
Hi Steffen, > … \replaceword should be the correct way for proper hyphenation?? Well I'm not sure if it's "correct", but it seems to work. Based on my testing, having three subsequent sets of groups ({A}{B}{C}) is converted to a discretionary. The discretionary hyphen "\-" is equivalent to the Plain TeX command "\discretionary{-}{}{}", so \replaceword[hyphenations][steffen][steff{-}{}{}en] acts just like "steff\-en". TeX won't otherwise hyphenate a word with discretionaries, so this means that "steff-en" will be the only allowable hyphenation. -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Latest ConTeXt won't "--make"
Hi all, I've just updated to the latest ConTeXt, but I'm unable to make the format: $ context --make resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file 'selfautoparent:/texmf/web2c/texmfcnf.lua' [...] resolvers | formats | using tex source file '/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl' resolvers | formats | using lua stub file '/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt' resolvers | formats | changing to format path '/home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex' resolvers | formats | executing runner 'make luametatex format': /opt/context/tex/texmf-linux-64/bin/luametatex --ini --lua=/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl This is LuaMetaTeX, Version 2.09.62 (INITEX) [...] resolvers > lua > loading file '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-spa.lmt' succeeded resolvers > lua > loading file '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt' succeeded resolvers > lua > loading file '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-pre.lmt' succeeded tex error > tex error on line 559 in file math-ini.mkxl: Undefined control sequence \undefined +\removeitaliccorrectionclassoptioncode The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. resolvers | formats | resolvers | formats | binary path : /opt/context/tex/texmf-linux-64/bin resolvers | formats | format path : /home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex resolvers | formats | luatex engine: luametatex resolvers | formats | lua startup file : /opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt resolvers | formats | context file : /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl resolvers | formats | run time : 0.573 seconds resolvers | formats | return value : error resolvers | formats | system | total runtime: 0.610 seconds of 0.647 seconds Commenting out line 559 of math-ini.mkxl fixes the issue. Thanks, -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
… \replaceword should be the correct way for proper hyphenation?? st. > Am 14.09.2022 um 08:35 schrieb Max Chernoff : > > > Hi Steffen, > >> The idea is to set the hyphenation for certain words regardless of the >> language that is used in the surrounding paragraphs. >> >> In this example it should stay: «steff-en» >> >> How do i set this to all non-english paragraphs (without using >> \hyphenation on each language-switch)? > > You can use \replaceword: > > \starttext > > \setuppapersize[A6][A6] > > \mainlanguage[en] > > \replaceword[hyphenations][steffen][steff{-}{}{}en] > \setreplacements[hyphenations] > > english text english text english teste: steffen steffen > > \start\language[it] > italian text italian text italian teste: steffen steffen > \stop > > \stoptext > > -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Hyphenation in multi-language projects
Hi Steffen, > The idea is to set the hyphenation for certain words regardless of the > language that is used in the surrounding paragraphs. > > In this example it should stay: «steff-en» > > How do i set this to all non-english paragraphs (without using > \hyphenation on each language-switch)? You can use \replaceword: \starttext \setuppapersize[A6][A6] \mainlanguage[en] \replaceword[hyphenations][steffen][steff{-}{}{}en] \setreplacements[hyphenations] english text english text english teste: steffen steffen \start\language[it] italian text italian text italian teste: steffen steffen \stop \stoptext -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___