Re: [NTG-context] Problem with lucida fonts (again)
You're this guy, right? https://mailman.ntg.nl/pipermail/ntg-context/2016/087522.html https://tex.stackexchange.com/questions/338849 Sorry, but as last time, we can't help you without you posting a reproducible example. The following works fine for me on TL2016, TL2017, and latest beta. \setupbodyfont[lucidaot] \starttext \input knuth \stoptext On Tue, 2017-06-27 at 21:45 +0200, Eric Détrez wrote: > Hello > > I already had this problem with lucida fonts. > When I type text the letter are shifted : "b" becomes "a", "c" becomes > "b", ... > I solved it with using the stable version. > > I updated my system and I downloaded again context-minimal. > The problem came back with both versions (last or stable). > ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.6.27 int: > english/english > ConTeXt ver: 2017.06.27 18:05 MKIV beta fmt: 2017.6.27 int: > english/english > > If I use the tex-live version all is fine > ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2017.6.27 int: > english/english > > It seems current version does provide a beta. > > I'm afraid I'll can use Lucida soon > ___ 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 ___
[NTG-context] Problem with lucida fonts (again)
Hello I already had this problem with lucida fonts. When I type text the letter are shifted : "b" becomes "a", "c" becomes "b", ... I solved it with using the stable version. I updated my system and I downloaded again context-minimal. The problem came back with both versions (last or stable). ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.6.27 int: english/english ConTeXt ver: 2017.06.27 18:05 MKIV beta fmt: 2017.6.27 int: english/english If I use the tex-live version all is fine ConTeXt ver: 2016.05.17 19:20 MKIV current fmt: 2017.6.27 int: english/english It seems current version does provide a beta. I'm afraid I'll can use Lucida soon -- Eric Détrez Informatique Lycée Faidherbe, Lille http://eric-detrez.fr ___ 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 ___
Re: [NTG-context] Problem with macro with optional parameter
Thanx Henri for answer. Maybe I have been explaining wrong my problem. I would need a variant without a parameter and concurrently without braces. Command without braces swallows the break of the paragraph. \def\Command#1% {\expdoifelse{#1}{}{100}{#1}} \starttext 1. \Command{5} % OK 2. \Command % OK 3. As You see, Command without braces swallows the break of the paragraph. 1. \dorecurse{\Command{5}}{\recurselevel\crlf} % not working 2. \dorecurse{\Command{}}{\recurselevel\crlf} % not working \stoptext Jaroslav Hajtmar Dne 27.06.17 13:05, ntg-context za uživatele Henri Menke napsal(a): On Tue, 2017-06-27 at 08:58 +, Jaroslav Hajtmar wrote: > Hello ConTeXist. > I'm not able to solve a macros problem with one optional argument. I need the macro to return a > value that can be used as a dorecurse loop parameter. > Is there possibility create macro with optional parameter and parameter is concurrently inside in > braces? (in nonsquare brackets)? > I've tried to experiment with examples from the wiki, but I'm not clear about it. > > Thanx for help. > Jaroslav Hajtmar > > Here is minimal example: > > \def\DoCommand[#1]% > {\iffirstargument#1\else100\fi} > > \def\Command% > {\dosingleargument\DoCommand} > > %\def\DoAnotherCommand{#1}% > % {\iffirstargument#1\else100\fi} > > %\def\AnotherCommand% > % {\dosingleargument\DoAnotherCommand} > > \starttext > > 1. \Command[5] % OK > > 2. \Command % OK > > > > > %1. \dorecurse{\Command[5]}{\recurselevel\crlf} % not working > > %2. \dorecurse{\Command}{\recurselevel\crlf} % not working The first argument to \dorecurse has to expand to a number. Therefore it has to be fully- expandable. Scanning for optional brackets is never expandable. You have to do it this way: \def\Command#1% {\expdoifelse{#1}{}{100}{#1}} \starttext 1. \Command{5} % OK 2. \Command{} % OK 1. \dorecurse{\Command{5}}{\recurselevel\crlf} % not working 2. \dorecurse{\Command{}}{\recurselevel\crlf} % not working \stoptext > \stoptext > ___ > 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 > ___ ___ 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 ___ ___ 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 ___
Re: [NTG-context] Problem with macro with optional parameter
On Tue, 2017-06-27 at 08:58 +, Jaroslav Hajtmar wrote: > Hello ConTeXist. > I'm not able to solve a macros problem with one optional argument. I need the > macro to return a > value that can be used as a dorecurse loop parameter. > Is there possibility create macro with optional parameter and parameter is > concurrently inside in > braces? (in nonsquare brackets)? > I've tried to experiment with examples from the wiki, but I'm not clear about > it. > > Thanx for help. > Jaroslav Hajtmar > > Here is minimal example: > > \def\DoCommand[#1]% > {\iffirstargument#1\else100\fi} > > \def\Command% > {\dosingleargument\DoCommand} > > %\def\DoAnotherCommand{#1}% > % {\iffirstargument#1\else100\fi} > > %\def\AnotherCommand% > % {\dosingleargument\DoAnotherCommand} > > \starttext > > 1. \Command[5] % OK > > 2. \Command % OK > > > > > %1. \dorecurse{\Command[5]}{\recurselevel\crlf} % not working > > %2. \dorecurse{\Command}{\recurselevel\crlf} % not working The first argument to \dorecurse has to expand to a number. Therefore it has to be fully- expandable. Scanning for optional brackets is never expandable. You have to do it this way: \def\Command#1% {\expdoifelse{#1}{}{100}{#1}} \starttext 1. \Command{5} % OK 2. \Command{} % OK 1. \dorecurse{\Command{5}}{\recurselevel\crlf} % not working 2. \dorecurse{\Command{}}{\recurselevel\crlf} % not working \stoptext > \stoptext > ___ > 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 > ___ ___ 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 ___
[NTG-context] Problem with macro with optional parameter
Hello ConTeXist. I'm not able to solve a macros problem with one optional argument. I need the macro to return a value that can be used as a dorecurse loop parameter. Is there possibility create macro with optional parameter and parameter is concurrently inside in braces? (in nonsquare brackets)? I've tried to experiment with examples from the wiki, but I'm not clear about it. Thanx for help. Jaroslav Hajtmar Here is minimal example: \def\DoCommand[#1]% {\iffirstargument#1\else100\fi} \def\Command% {\dosingleargument\DoCommand} %\def\DoAnotherCommand{#1}% % {\iffirstargument#1\else100\fi} %\def\AnotherCommand% % {\dosingleargument\DoAnotherCommand} \starttext 1. \Command[5] % OK 2. \Command % OK %1. \dorecurse{\Command[5]}{\recurselevel\crlf} % not working %2. \dorecurse{\Command}{\recurselevel\crlf} % not working \stoptext ___ 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 ___
Re: [NTG-context] italian index: "I" and "J" under "I", "U" and "V" under "V"
> On 27 Jun 2017, at 09:06, Hans Hagen wrote: > > On 6/26/2017 11:39 PM, Hans Åberg wrote: >> >> In Swedish, originally, "w" is sorted the same as "v", but it has changed >> lately, though there is a recommendation to still use the old style in >> tables of personal names, in view they phonetically identical in Swedish. So >> there are two different sortings in use. > it's no problem to have several vectors because one can configure what > vector(set) to choose Indeed, that is what I think might be required in general. ___ 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 ___
Re: [NTG-context] italian index: "I" and "J" under "I", "U" and "V" under "V"
On 6/26/2017 11:39 PM, Hans Åberg wrote: On 26 Jun 2017, at 15:34, Hans Hagen wrote: On 6/26/2017 2:48 PM, MF wrote: there's a bug in the way ConTeXt groups the items of a register when "indicator=yes" and mainlanguage is "it": - items starting with the J letter are grouped under the I letter - items starting with the V letter are grouped under the U letter This is not what one would expect from an index in modern italian. If you browse an italian dictionary, you will find all the 26 letters. Is there a way to get around this bug and get all the 26 distinct letters in a register keeping "it" as the main language? in sort-lan.lua you can fix the table: definitions["it"] = { entries = { (not sure which italian is responsible for it) In Swedish, originally, "w" is sorted the same as "v", but it has changed lately, though there is a recommendation to still use the old style in tables of personal names, in view they phonetically identical in Swedish. So there are two different sortings in use. it's no problem to have several vectors because one can configure what vector(set) to choose Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___