[NTG-context] Tikz calendar translation
Dear Sirs I need to represent a calendar in Portuguese language. You want to use the Tikz calendar package, but the result is unsatisfactory (please see attach). The problem is in the translation of the names of months and days of the week. How can I fix this problem? Thanks in advance. Jorge test code \usemodule[tikz] \usetikzlibrary[calendar] \language[pt] \starttext \tikz \calendar [dates=2014-09-01 to 2015-04-31, month list,month label left,month yshift=1.25em] if (Sunday) [black!50] % GROUP 1 if (between=2012-08-09 and 2012-08-12)[orange] if (between=2012-06-01 and 2012-06-03)[orange] if (between=2012-04-05 and 2012-04-07)[orange] if (between=2012-12-22 and 2012-12-27)[orange] % GROUP 2 if (between=2012-09-10 and 2012-09-15)[blue] if (between=2012-08-17 and 2012-08-21)[blue] if (between=2012-06-29 and 2012-07-02)[blue] if (between=2012-05-14 and 2012-05-21)[blue] % GROUP 3 if (between=2012-11-02 and 2012-11-09)[darkgreen] if (between=2012-01-01 and 2012-01-27)[darkgreen] ; \stoptext calendartest.pdf Description: Adobe PDF document ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two issues with new hyphenator
On 12/3/2014 7:48 PM, Pablo Rodriguez wrote: Many thanks for your new beta, Hans. From the previous beta with the new hyphenator, I have two issues. With the new hyphenator, \hyphenation isn’t honored, such as in this sample: \setuphyphenation[method=traditional] \hyphenation{Nietz-sche} \starttext \hsize\zeropoint Nietzsche \stoptext Has the command been deprecated with the new hyphenator? The next version will have: \starttext \setuphyphenation[method=traditional] \hsize 1mm ab \registerhyphenationexception[a-b] \blank ab \stoptext (the functionality is already there, this wraps it in a macro) The second issue is the ability to enable underscore hyphenation. Is there any way to apply the following definition to \hyphenatedurl? \unexpanded\def\underscorehyphenation#1% {\dontleavehmode \begingroup \prehyphenchar\minusone \localrightbox{\llap{\smash{\lower.1ex\hbox{_% \setbox\scratchbox\hbox{#1}% \prehyphenchar`-\relax \unhbox\scratchbox \endgroup} (This is adapted from the last sample in lang-url.mkiv.) Many thanks for your help, Pablo -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] two issues with new hyphenator
On 12/3/2014 7:48 PM, Pablo Rodriguez wrote: Many thanks for your new beta, Hans. From the previous beta with the new hyphenator, I have two issues. With the new hyphenator, \hyphenation isn’t honored, such as in this sample: \setuphyphenation[method=traditional] \hyphenation{Nietz-sche} \starttext \hsize\zeropoint Nietzsche \stoptext Has the command been deprecated with the new hyphenator? no, on the todo list is a variant (in fact you can add pretty complex patterns in different ways already) The second issue is the ability to enable underscore hyphenation. Is there any way to apply the following definition to \hyphenatedurl? \unexpanded\def\underscorehyphenation#1% {\dontleavehmode \begingroup \prehyphenchar\minusone \localrightbox{\llap{\smash{\lower.1ex\hbox{_% \setbox\scratchbox\hbox{#1}% \prehyphenchar`-\relax \unhbox\scratchbox \endgroup} (This is adapted from the last sample in lang-url.mkiv.) no need to mess like that: \startluacode local function addfunnyhyphen(tfmdata) local exheight = tfmdata.parameters.xheight local emwidth = tfmdata.parameters.quad local width= emwidth local height = exheight / 10 local depth= exheight / 2 tfmdata.characters[0xFE000] = { width= 0, height = 0, depth= 0, commands = { { "right", -width }, { "down", depth }, { "rule", height, width }, } } end fonts.constructors.newfeatures("otf").register { name= "funnyhyphen", description = "funny hyphen", manipulators = { base = addfunnyhyphen, node = addfunnyhyphen, } } \stopluacode \definefontfeature[default][default][funnyhyphen=yes] \starttext \prehyphenchar"FE000 \hsize 1mm averylongword \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On 12/03/2014 07:16 PM, Alan BRASLAU wrote: > On Wed, 3 Dec 2014 19:05:22 +0100 Peter Münster wrote: >> >> \def\myWords#1{\Words{\lowercase{#1}}} >> \starttext >> \myWords{A CCC} >> \stoptext > > This is because we want \Words{} to respect some upper case, for > example, \Words{Acronyms, such as DNA, should remain capitalized}. Many thanks for the info, Alan. Everything is clear to me now. Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On 12/03/2014 07:05 PM, Peter Münster wrote: > On Wed, Dec 03 2014, Pablo Rodriguez wrote: > >> I thought \Words{A} would do the same for the characters others >> than the first one in each word. > > \def\myWords#1{\Words{\lowercase{#1}}} > \starttext > \myWords{A CCC} > \stoptext Many thanks for your reply, Peter. This was exactly what I needed. I tried \Words{\words{AAA BBB CCC}}. Since it didn’t work, I was clueless about this. Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On 12/03/2014 07:01 PM, Hans Hagen wrote: > On 12/3/2014 5:52 PM, Pablo Rodriguez wrote: >> [...] >> \Words A CCC > > use this grouped: \Words{} My fault. >> Is there no way to get all words in lowercase characters and the initial >> uppercase characters? > > I'll add \camel Many thanks for the implementation. Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] two issues with new hyphenator
Many thanks for your new beta, Hans. From the previous beta with the new hyphenator, I have two issues. With the new hyphenator, \hyphenation isn’t honored, such as in this sample: \setuphyphenation[method=traditional] \hyphenation{Nietz-sche} \starttext \hsize\zeropoint Nietzsche \stoptext Has the command been deprecated with the new hyphenator? The second issue is the ability to enable underscore hyphenation. Is there any way to apply the following definition to \hyphenatedurl? \unexpanded\def\underscorehyphenation#1% {\dontleavehmode \begingroup \prehyphenchar\minusone \localrightbox{\llap{\smash{\lower.1ex\hbox{_% \setbox\scratchbox\hbox{#1}% \prehyphenchar`-\relax \unhbox\scratchbox \endgroup} (This is adapted from the last sample in lang-url.mkiv.) Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On Wed, 3 Dec 2014 19:05:22 +0100 Peter Münster wrote: > On Wed, Dec 03 2014, Pablo Rodriguez wrote: > > > I thought \Words{A} would do the same for the characters others > > than the first one in each word. > > \def\myWords#1{\Words{\lowercase{#1}}} > \starttext > \myWords{A CCC} > \stoptext This is because we want \Words{} to respect some upper case, for example, \Words{Acronyms, such as DNA, should remain capitalized}. Alan ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] White Space in Running Headers
On 12/1/2014 9:57 PM, Neal Lester wrote: What is the best way to obtain precise control over the space between lines in a multi-line running header. I need to be able to set the font size within each line by point size. Different lines may have different font sizes (indeed, there may be different font sizes within a single line). I've tried a number of approaches but always seem to end up with unexpected white space somewhere. if you want an answer you need to provide a minimal example showing the problem Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On Wed, Dec 03 2014, Pablo Rodriguez wrote: > I thought \Words{A} would do the same for the characters others > than the first one in each word. \def\myWords#1{\Words{\lowercase{#1}}} \starttext \myWords{A CCC} \stoptext -- Peter ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On 12/3/2014 5:52 PM, Pablo Rodriguez wrote: Dear list, the following sample doesn’t work as expected: \starttext \Words A CCC \stoptext use this grouped: \Words{} Is there no way to get all words in lowercase characters and the initial uppercase characters? I'll add \camel - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] new beta
Hi, I uploaded a new beta. This one has some new font code - the generic code now uses the context code as of 2014-12-01 - that code uses a slightly faster access method - it works in plain but for latex the wrapper might need to be adjusted (as the base pass is now integrated) The context code uses a newer font handler that has - more extensive discretionary support (esp kerning and ligatures) - a new injector (not faster, only cleaner and suitable for the newer code) that i have tested for quit a while now If there are problems they can probably be fixed fast. A side effect can be that the result of runs is slightly different (more kerning and so). I have no clue about performance but it should be ok. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
On 12/03/2014 06:09 PM, Henning Hraban Ramm wrote: > Am 2014-12-03 um 22:52 schrieb Pablo Rodriguez: >> [...] >> Is there no way to get all words in lowercase characters and the initial >> uppercase characters? > > > \Words{} uppercases the first character of the words in its brackets. > > What do you expect? Many thanks for your reply, Hraban. I expected that all other characters would be in lowercase. \word{AAA} does this for all characters, so I thought \Words{A} would do the same for the characters others than the first one in each word. Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \Words and uppercase letters
Am 2014-12-03 um 22:52 schrieb Pablo Rodriguez : > the following sample doesn’t work as expected: > > \starttext > \Words A CCC > \stoptext > > Is there no way to get all words in lowercase characters and the initial > uppercase characters? \Words{} uppercases the first character of the words in its brackets. What do you expect? See also http://wiki.contextgarden.net/Basic_Text_Formatting Greetlings, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \Words and uppercase letters
Dear list, the following sample doesn’t work as expected: \starttext \Words A CCC \stoptext Is there no way to get all words in lowercase characters and the initial uppercase characters? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___