[NTG-context] Replacer based on function rathen than tables

2023-05-18 Thread Jairo A. del Rio via ntg-context
Hi, list. There's lang-rep.mkxl and lang-tra.mkxl in the distribution which
allows replacing a list of words and applying transliteration,
respectively. Both are based on tables. I want to know if there's a way to
use a function instead, say

local function nice(str)
   return str .. " is nice"
end

Thanks in advance. Best regards,

Jairo
___
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] Module authors: please update your metadata

2023-05-15 Thread Jairo A. del Rio via ntg-context
El lun, 15 may 2023 a la(s) 11:45, Henning Hraban Ramm via ntg-context (
ntg-context@ntg.nl) escribió:

> Am 15.05.23 um 17:51 schrieb Jairo A. del Rio via ntg-context:
> > Hi, Hraban. I updated the sudoku module to remove the top redundant
> > folder and added LICENSE, README, and VERSION files. What should I do
> > if I want my module in CTAN? I asked two years ago and it was told to me
> > synchronization with ConTeXt was automatic. Any comments? Thanks in
> advance.
>
> Hi Jairo & thank you!
>
> Yes, CTAN sync should happen automatically.
>
> The metadata for your module looks good, except the missing license.
>
> The file list also looks good:
> https://modules.contextgarden.net/cgi-bin/module.cgi/action=view/id=107
> But the download file is not to be found in the download section.


Check again, please.


>
> Directory and VERSION has the new change date, but nothing more:
> https://modules.contextgarden.net/dl/
>
> I don’t know what happened, would you please try to upload again and/or
> send me your release file?
>

I reuploaded my module. Let me know if problems persist. Thank you very
much!


> 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] Module authors: please update your metadata

2023-05-15 Thread Jairo A. del Rio via ntg-context
Hi, Hraban. I updated the sudoku module to remove the top redundant folder
and added LICENSE, README, and VERSION files. What should I do if I want my
module in CTAN? I asked two years ago and it was told to me synchronization
with ConTeXt was automatic. Any comments? Thanks in advance.

Best regards,

Jairo

El vie, 14 abr 2023 a la(s) 06:53, Henning Hraban Ramm via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
> I just updated the module writing guidelines, since I couldn’t find a
> description of the necessary structure of a module release file:
> https://wiki.contextgarden.net/Modules#Module_writing_guidelines
>
> I also added an explanation how the publishing via
> https://modules.contextgarden.net works.
>
> If you ever published a module, please check if its metadata is still
> correct, e.g. if the module works for MkIV / LMTX and how it should be
> published – some modules aren’t installable via rsync as outlined in
> https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
>
> (For me, the “simplified version” works.)
>
> These modules get installed that way:
>
> f-urwgaramond
> f-urwgothic
> t-account
> t-algorithmic
> t-animation
> t-annotation
> t-bnf
> t-chromato
> t-cmscbf
> t-cmttbf
> t-construction-plan
> t-cyrillicnumbers
> t-degrade
> t-fancybreak
> t-filter
> t-fixme
> t-french
> t-fullpage
> t-games (not in dl)
> t-gantt
> t-gnuplot
> t-handlecsv (newer than in dl)
> t-layout
> t-letter
> t-lettrine
> t-lilypond (not in dl, obsolete)
> t-mathsets
> t-rst
> t-ruby
> t-simplefonts
> t-simpleslides
> t-tikz
> t-title
> t-transliterator
> t-typearea
> t-typescripts
> t-vim
> t-visualcounter
>
> Some of these are probably outdated, I didn’t check.
> If you know something is obsolete, please let us know or remove it
> yourself, if you still know your account data.
>
>
> Several more modules are available via
> https://modules.contextgarden.net/dl/ (mentioned as "dl" above).
> I added a comment where the directory structure isn’t quite right:
>
> PocketDiary-V2.zip (module folder on top)
> Collection-of-calendars-based-on-PocketDiary-module.zip (module folder
> on top)
> Date-driven-lists.zip (module folder on top)
> Environment-for-collating-marks.zip (module folder on top)
> aquamints (no structure)
> bibmod-doc (looks right)
> gfsdidot (looks right)
> grph-downsample.lua  (looks right, except .lua in folder name)
> enigma.zip (looks right, except .zip in folder name)
> handlecsv (not unzipped, no VERSION file, but newer version in dl)
> high (looks right)
> karnaugh (looks right)
> lua-widow-control (looks right)
> lucida-cint.zip (looks right, except .zip in folder name)
> metaducks (metaducks folder on top)
> presvoz (looks right)
> pret-c.lua (looks right, except .lua in folder name)
> stormfontsupport (looks right)
> sudoku (sudoku folder on top)
> t-gm (looks right)
> t-greek (looks right)
> t-gs (looks right)
> t-inifile (looks right)
> t-layout (looks right)
> t-letterspace.mkiv (looks right, except .mkiv in folder name)
> t-rsteps (looks right)
> t-simplebib (looks right)
> t-taspresent (looks right)
> u-texshow (looks right)
>
> (“looks right” only means that the structure looks like TDS, many are
> old and probably obsolete, but a few are quite new, like the first four
> by Willi)
>
>
> All the best & happy TeXing,
> 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] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
This is weird, but documents compile just fine if I comment the following
line in node-pag.mkxl:

\registerctxlua{node-pag}{}

Maybe leftovers from some experiment here?

Best regards.

El mié, 26 abr 2023 a la(s) 21:25, Rik Kabel via ntg-context (
ntg-context@ntg.nl) escribió:

>
> On 2023-04-26 19:54, Jairo A. del Rio via ntg-context wrote:
> > Hi, Hans. The following happens with the last update:
> >
> > loading > ConTeXt Node Macros / Page Building
> > resolvers   > lua > unknown file 'node-pag.lua'
> >
> > error loading file: node-pag.lua (aborting)
> >
> > Indeed, the file is missing in the distribution (there's only
> > node-pag.mkxl). Regards
>
>
> Same here, Windows 11 x64.
>
> --
> Rik
>
>
> ___
> 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] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
Hi, Hans. The following happens with the last update:

loading > ConTeXt Node Macros / Page Building
resolvers   > lua > unknown file 'node-pag.lua'

error loading file: node-pag.lua (aborting)

Indeed, the file is missing in the distribution (there's only
node-pag.mkxl). Regards

El mié, 26 abr 2023 a la(s) 16:56, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> I uploaded a new version with some new features discussed at the end of
> this mail.
>
> - A next version of luatex will break context (format making etc) but
> the change is unavoidable because of other macro package demands wrt
> security (context does that differently). The low level start up command
> has been adapted so unless you update indepdently thinsg should work ok.
>   Of course this has no consequences for lmtx.
>
> - I've done a bit of callback cleanup (like getting rid of some mkiv
> luatex left-overs). It should have no effect on regular usage.
>
> - There again a few improvements wrt math (this time dealing with
> accents artifacts in some fonts). We check all the free math fonts for
> potential issues and then try to fix it (read: deal with it). It's a lot
> of work but we're getting there.
>
> - A few reported buglets have been fixed.
>
> - The biggest addition is however a new number model. In metapost one
> can now use 'posit' (positfun instance) as number mode which will use
> (currently 32 bit but at some point 64 bit) posit unums. It's also bit
> of a playground because 32 bit posits are not more accurate than 64 bit
> doubles. It anyhow exposed some potential issues that we'll look into.
>
> - There's also a (again currently 32 bit) posit library at the Lua end
> as playground.
>
> - However, 32 bit posits come in handy at the tex end because they pack
> better accuracy in 32 bits than floats and it makes it possible to have
> native floats, so we have:
>
> \newfloat  (uses \floatdef, register like \dimendef is used in \newdimen)
>
> \newposit  (uses \positdef, like \dimensiondef etc)
>
> \floatexpr (like \numexpr)
>
> \iffloat   (like \ifnum) (also \ifabsfloat and i'll add the others too)
>
> Actually it adds an extra range of registers so it bumps memory usage a
> bit. I'm considering lowering the number of registers (currently 64K per
> category) because after all, if 64K is not enough then we can as well
> stick to 32K or 16K (for some even less). There's always Lua for
> unlimited storage of quantities.
>
> So,
>
> \newfloat\fooA
>
> \scratchdimen=123.456pt\relax[\type{dim:}
> \the\scratchdimen==123.456pt]\par
> \fooA=123.456\relax  [\type{pos:} \the\fooA
> ==123.456]  \par
> \fooA=\scratchdimen\relax[\type{pos:} \the\fooA
> ==123.456]  \par
> \scratchdimen=\fooA\relax[\type{dim:}
> \the\scratchdimen==123.456pt]\par
> \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:}
> \the\scratchdimen==133.456pt]\par
>
> produces
>
> [dim: 123.456pt==123.456pt]
> [pos: 123.45600128173828==123.456]
> [pos: 123.45599365234375==123.456]
> [dim: 123.456pt==123.456pt]
> [dim: 133.456pt==133.456pt]
>
> As you can see dimens will get mapped onto floats not as integers
> (scaled points) but in pt units. Counts stay numbers. I need to handle
> glue too (not yet done).
>
> In the future I might use this for fractions but there might be some
> rough ends so for now it's experimental.
>
> 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 /
> 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] Textadept no longer supported?

2022-08-26 Thread Jairo A. del Rio via ntg-context
Sorry for the noise. I found Textadept files in the GitHub repo. However,
it would be nice to have them in the distribution. Have a nice day.

Cordially,

Jairo

El vie, 26 ago 2022 a la(s) 19:01, Jairo A. del Rio (jairoadelr...@gmail.com)
escribió:

> Hi, list.
>
> Last time I installed my ConTeXt distribution from scratch, I've noticed
> Textadept files are no longer in the distribution. I've tried SciTE but
> it's broken in Ubuntu as code highlighting just doesn't work. Has something
> changed? Is it possible to get those files from an older version? Thanks in
> advance.
>
> Best regards,
>
> Jairo
>
___
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] Textadept no longer supported?

2022-08-26 Thread Jairo A. del Rio via ntg-context
Hi, list.

Last time I installed my ConTeXt distribution from scratch, I've noticed
Textadept files are no longer in the distribution. I've tried SciTE but
it's broken in Ubuntu as code highlighting just doesn't work. Has something
changed? Is it possible to get those files from an older version? Thanks in
advance.

Best regards,

Jairo
___
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] Sudoku module

2022-07-18 Thread Jairo A. del Rio via ntg-context
Hi. Sorry. I didn't see your message and I had forgotten the very existence
of the module. I'll check it later (final exam weeks for me) so that it
works with MkIV and LMTX properly again. By the way, thanks for the
interest.

Best regards

Jairo

El lun., 18 de jul. de 2022 10:00 a. m., Otared Kavian 
escribió:

> Hi Jairo,
>
> You sent a message last year about your Sudoku module, and today, out of
> curiosity, I wanted to test it. Unfortunately it stops with an error
> message at line 76 of the file t-sudoku.mkiv, where you have:
>
> \def\sudokufunction_direct[#name][#parameters]#content
>
> I would appreciate if you could tell me whether you have a working version
> of you module, or what one has to change in order to typeset your examples.
>
> Best regards: Otared
___
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] Interaction broken for formulas in LMTX

2022-07-14 Thread Jairo A. del Rio via ntg-context
Hi, list!

Sorry, I don't have a MWE, but it looks like interactive references for
formulas (via \in) are not working after the update. I mean, labels are
fine, but they do nothing when clicked. References for tables and figures
are fine, though.

Best regards,

Jairo
___
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] Harfbuzz plugin and colors

2022-02-13 Thread Jairo A. del Rio via ntg-context
Hi, list! I've tested the Harfbuzz plugin in ConTeXt and it works nicely
for most cases. However, color doesn't seem to work. Is this intended? I
know this plugin won't be supported, but I'll be fine with pointers to
solve this issue. Thanks in advance.

\usemodule[fonts-plugins]
\definefontfeature[harf]
  [mode=plug,
   features=harfbuzz,
   shaper=native]
%Just to test Harfbuzz is actually working
\definefontfeature[devaA][harf]
  [language=dflt,
   script=deva]
\definefontfeature[devaB][default]
  [script=deva]
\definefontfeature[colored][harf]
  [language=dflt,script=arab,
   colr=yes] %doesn't do anything
\startbuffer[hindi]
%From a Wikipedia page
हिन्‍दी भाषा का इतिहास लगभग एक सहस्र वर्ष पुराना माना गया है। हिन्‍दी भाषा
व साहित्‍य के जानकार अपभ्रंश की अन्तिम अवस्‍था 'अवहट्ठ से हिन्‍दी का उद्भव
स्‍वीकार करते हैं। चन्द्रधर शर्मा 'गुलेरी' ने इसी अवहट्ठ को 'पुरानी हिन्दी'
नाम दिया।

अपभ्रंश की समाप्ति और आधुनिक भारतीय भाषाओं के जन्मकाल के समय को
संक्रान्तिकाल कहा जा सकता है। हिन्दी का स्वरूप शौरसेनी और अर्धमागधी
अपभ्रंशों से विकसित हुआ है। 1000 ई॰ के आसपास इसकी स्वतन्त्र सत्ता का परिचय
मिलने लगा था, जब अपभ्रंश भाषाएँ साहित्यिक सन्दर्भों में प्रयोग में आ रही
थीं। यही भाषाएँ बाद में विकसित होकर आधुनिक भारतीय आर्य भाषाओं के रूप में
अभिहित हुईं। अपभ्रंश का जो भी कथ्य रूप था - वही आधुनिक बोलियों में विकसित
हुआ।
\stopbuffer
\starttext
{\righttoleft\definedfont[file:AmiriQuranColored.ttf*colored]\input{khatt-ar}}

{\definedfont[file:Lohit-Devanagari.ttf*devaA]\getbuffer[hindi]}
\blank[line]
{\definedfont[file:Lohit-Devanagari.ttf*devaB]\getbuffer[hindi]}
\stoptext


harfbuzz-tests.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Engine mismatch in Windows 8.1 (32 bits)

2022-01-21 Thread Jairo A. del Rio via ntg-context
Hi everyone! I've just installed ConTeXt on an old machine running Windows
8.1 (x86) and I've noticed the format is regenerated each time I process a
file. It can be read on the log (third line):

warning: engine mismatch (luv: This is LuaMetaTeX 2.09.36 <> bin: This is
LuaMetaTeX 2.09.34), forcing remake

grep -r '09.34' finds a coincidence in mtxrun.exe. Is anyone else facing
this issue?

Jairo
___
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] Getting ONE, TWO... for chapters

2022-01-01 Thread Jairo A. del Rio via ntg-context
El sáb, 1 ene 2022 a la(s) 15:37, jbf via ntg-context (ntg-context@ntg.nl)
escribió:

> Am typesetting a book that has 'STUDY ONE', 'STUDY TWO' etc. in place of
> CHAPTER ONE, etc. I have no difficulty getting 'STUDY' with
> \setuplabeltext[chapter=STUDY~], and I can achieve 'STUDY One' with the
> key conversion=Words in \setuphead[chapter].
>
> My question: how do I get ONE instead of One.
>
> I tried conversion=WORDS (or WORD), but that is not recognised and the
> output then becomes STUDY 1, which I don't want.
>
> I also tried playing with \definestructureconversionset[myconversion][
> ,A,] then adding the numberconversionset=myconversion to \setuphead.
>
> There must be a simple way to achieve the desire result, and to be
> honest I'm wondering why WORD does not work? Any thoughts?
>
>
Like this?

\setuplabeltext[chapter={Study~,}]
\setuphead[chapter][conversion=words,numberstyle=\WORDS]
\starttext
\startchapter[title=Feliz año nuevo!]
\input{tufte}
\stopchapter
\stoptext

I hope it helps. Happy new year!

Jairo

Julian
>
>
> ___
> 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] upload

2021-12-24 Thread Jairo A. del Rio via ntg-context
Hi, Hans. In Ubuntu 20.04:

resolvers   > lua > loading file
'/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt'
succeeded

fatal error: storage cannot be marked

Jairo


El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> When wrapping up before the weekend I uploaded a new lmtx (bottom floats
> fixed afaiks, but hat mechanism might see some improvements anyway next
> year; exit codes more reliable; some low level tracing; side float
> coming loose from section head issue solved; ...).
>
> I'm experimenting with some more efficient low level state info and in
> the process ran into an issue / interference with (also low level)
> attributes. I'm not sure if I solved it (work in progress, i need to run
> into another border case first which may take ages) but the test suite
> runs ok so ...
>
> 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
>
> ___
>
___
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] [DKIM] Primes too high in New Computer Modern

2021-12-07 Thread Jairo A. del Rio via ntg-context
Thank you very much! That's exactly what I needed.

Regards,

Jairo

El mar, 7 dic 2021 a la(s) 03:56, Mikael Sundqvist via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> We changed so that newcomputermodern-book (which is bolder than
> newcomputermodern) uses the same lfg file as lm, which works. I attach
> an updated version of the type-imp-newcomputermodern.mkiv, which also
> adds the lfg file to newcomputermodern.
>
> /Mikael
>
> PS If one wants to play with modernlatin, is there a simple way to
> play with the boldness (for example make it just slightly less bold)?
>
>
> On Tue, Dec 7, 2021 at 9:45 AM Hans Hagen via ntg-context
>  wrote:
> >
> > On 12/7/2021 2:39 AM, Jairo A. del Rio via ntg-context wrote:
> > > Hi, list. See the following:
> > >
> > > \starttext
> > > $\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$}
> > > \stoptext
> > there is no lfg file for it but if you just want a bolder latin modern
> > you can also do this (there is an old bachotex presentation about it
> > somewhere):
> >
> > \setupbodyfont[modernlatin]
> >
> > \starttext
> >  $\alpha'$
> > \stoptext
> >
> > 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
> >
> ___
>
> ___
> 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] Primes too high in New Computer Modern

2021-12-06 Thread Jairo A. del Rio via ntg-context
Hi, list. See the following:

\starttext
$\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$}
\stoptext

Thank you in advance.

Best regards,

Jairo
___
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] upload

2021-12-05 Thread Jairo A. del Rio via ntg-context
Hi, Hans. I've got a question. Negative steps are treated as positive:

\starttext
\expandedloop 10 0 -2 {\the\currentloopiterator\ }
\stoptext

gives

0 2 4 6 8 10

Is this expected behavior? If so, it would be fine to have something more
alike to MetaPost's "for ... step ... until" loop. Thank you in advance.

Regards,

Jairo

El vie, 3 dic 2021 a la(s) 09:29, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> a new upload
>
> - some keywords renamed in the engine and therefore more split between
> mkiv and lmtx (hopefully i included all files) .. if something doesn't
> work any more it might be because i missed a rename.
>
> - i finally decied that it does make sense to have native loops at the
> primitive level (after all, metapost as macro language also has them)
> and although much is possible in macros it doesn't mean we have to do it
> the (often ugly and showing-off-by-abusing-side-effects way).
>
> We have just a constructor:
>
>\unexpandedloop  1 100 1 {.}
>
> and a fully expandable one for e.g. use in \edef:
>
>\expandedloop1 100 1 {.}
>
> plus an also fully expandable one for anywhere but with potential side
> effects (out of order local loops):
>
>\localcontrolledloop 1 100 1 {.}
>
> complemented by a few status primitives (integers, use \the or \number
> to serialize them):
>
>\currentloopiterator
>\currentloopnesting
>
> and a quitter that aborts at the next iteration:
>
>\quitloop
>
> as usual it's experimental for a while. Among the rationales are 'less
> tracing clutter', 'performance' and 'more natural primitive tex coding'
> (but that one is personal).
>
> 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
>
> ___
>
___
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] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
Nice. Looks interesting and, if I understand correctly, entries are
open-ended, which turns out to be useful to customize dictionaries. It
would be a profitable addition! Thank you very much.

Regards,

Jairo

El vie, 26 de nov. de 2021 a la(s) 08:16, Hans Hagen via ntg-context (
ntg-context@ntg.nl) escribió:

> Hi,
>
> kind of like this but maybe we need to go setups as we do with lists and
> sections adn such
>
> 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
>
> ___
>
___
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] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
Hi, list. I want to know how I should handle alphabetically sorted data in
ConTeXt. So far, I'm abusing registers in order to get simple glossaries,
but I prefer to manage data with tools such as JabRef rather than manually
typing entries inside a document. I attach an example of what I achieved:

\unprotect
\mainlanguage[\s!es]
\enableexperiments[fonts.compact]
\setupbodyfont[computer-modern-unicode]
\setuphead[chapter]
  [\c!alternative=\v!middle]
\defineregister[Russian]
\setupregister[Russian]
  [\c!expansion=\v!yes,
   \c!balance=\v!no,
   \c!n=2,
   \c!command=\Words,
   \c!pagenumber=\v!no,
   \c!language=\s!ru]
\def\Ruso[#1]%
  {\begingroup
   \getdummyparameters[word=,category=,meaning=,#1]%
   \Russian[\dummyparameter{word}]%
   {\bold{\dummyparameter{word}}
   \italic{\dummyparameter{category}}
   \dummyparameter{meaning}}%
   \endgroup}
\protect
\Ruso
[word=исчисление,
 category=n. neutr.,
 meaning=cálculo]
\Ruso
[word=вероятность,
 category=n. fem.,
 meaning=probabilidad]
\Ruso
[word=обозначать,
 category=v.,
 meaning=denotar]
\Ruso
[word=область,
 category=n. fem,
 meaning={región, área}]
\Ruso
[word=событие,
 category=n. neutr.,
 meaning=evento]
\Ruso
[word=определение,
 category=n. neutr.,
 meaning=definición]
\Ruso
[word=знание,
 category=n. neutr,,
 meaning=conocimiento]
\Ruso
[word=бесконечно,
 category=adv.,
 meaning=infinitamente]
\Ruso
[word=сборник,
 category=n. masc.,
 meaning={colección, compilación, compendio}]
\Ruso
[word=неравенство,
 category=n. neutr.,
 meaning=desigualdad]
\starttext
\starttitle[title=Ruso-español]
\placeRussian
\stoptitle
\stoptitle
\stoptext

Reading the manuals, I find that the publication mechanism for bibliography
kinda fits my needs (using ConTeXt to sort and type data generated via
external software) but, unlike registers, it doesn't seem to include
options for alphabetical headers. Is it fine to keep using registers in
this case? Is there a better mechanism for this task in ConTeXt? Thank you
in advance.

Best regards,

Jairo
___
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] Macro for a comma separated list of authors

2021-11-24 Thread Jairo A. del Rio via ntg-context
Hola.

Maybe you need \commalistsentence?

\def\Autores{%
  {Luis David Gómez-Méndez, Ph. D.},
  {Adriana del Pilar Pulido-Villamarín, M. Sc.},
  {Rubiela Castañeda-Salazar, M. Sc.},
  {Juan Carlos Ulloa-Rubiano, Ph. D.},
  {Adriana Matiz-Villamil, M. Sc.},
  {Fidson Juarismy Vesga-Pérez, Ph. D}%
}
\starttext
\commalistsentence[\Autores][{;\space},{\space\letterampersand\space}]
\stoptext

Check lang-lab.mkxl for other goodies and examples.

Best regards,

Jairo

El mié, 24 de nov. de 2021 a la(s) 19:10, Andres Conrado Montoya via
ntg-context (ntg-context@ntg.nl) escribió:

> I'm trying to produce a document with several authors, using macros for
> comma separated lists. My MWE is as follows:
>
> %%
> \def\autores{%
>   {Luis David Gómez-Méndez, Ph. D.},
>   {Adriana del Pilar Pulido-Villamarín, M. Sc.},
>   {Rubiela Castañeda-Salazar, M. Sc.},
>   {Juan Carlos Ulloa-Rubiano, Ph. D.},
>   {Adriana Matiz-Villamil, M. Sc.}%
> }
>
> \def\lastAutor{Fidson Juarismy Vesga-Pérez, Ph. D}
>
> \def\autorParaLista#1{#1;\space}
> \def\listaAutores{\processcommacommand[\autores]\autorParaLista &
> \lastAutor: autores.}
>
> \starttext
>
> \listaAutores
>
> \stoptext
> %%%
>
> So far, no luck trying to extract the last item from a comma separated
> list. That's the reason I created a "\lastAutor" macro, so I can treat the
> last one differently.
>
> This produces:
>
> %%
> Luis David Gómez-Méndez, Ph.D.; Adriana del Pilar Pulido-Villamarín, M.
> Sc.; Rubiela Castañeda-Salazar, M. Sc.; Juan Carlos Ulloa-Rubiano, Ph.D.;
> Adriana Matiz-Villamil, M. Sc.; & Fidson Juarismy Vesga-Pérez, Ph.D:
> autores.
> %%
>
> However, what I'm trying to get is:
>
> %%
> Luis David Gómez-Méndez, Ph.D.; Adriana del Pilar Pulido-Villamarín, M.
> Sc.; Rubiela Castañeda-Salazar, M. Sc.; Juan Carlos Ulloa-Rubiano, Ph.D.;
> Adriana Matiz-Villamil, M. Sc. & Fidson Juarismy Vesga-Pérez, Ph.D: autores.
> %%
>
> Which is very close to what I need, except the ";" just before the "&". So
> the question is: is it possible to do this in a more effective or simpler,
> or better way, and write a macro that outputs something like "Author1;
> Author2; Author3 & Author4: authors.", given a comma separated list of
> authors?
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>
> ___
> 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] Checking for a macro in a string without expanding it

2021-11-16 Thread Jairo A. del Rio via ntg-context
If I understand it correctly, you may need something like this...?

% Protection is key
\protected\def\inner[#1]{\empty}
% \outer is (or was) already defined in \CONTEXT
% Please use another name
\def\Outer{\inner[123] and \inner[some text] etc.}
\startluacode
local implement = interfaces.implement
local argument = tokens.scanners.argument
local function parseinner()
  local r = {}
  local str = argument()
  str = str:gsub("\\inner%s*(%b[])",function(s)r[#r+1] = s:sub(2,#s-1)end)
  context(table.concat(r," ")) -- Change " " by another spacer if needed
end
implement{name = "parseinner", public = true, actions = parseinner}
\stopluacode
\starttext
\parseinner{\Outer}
\stoptext

However, this will only work with very simple cases (no nesting, etc.).
Hope this helps.

Best regards,

Jairo

El mar, 16 de nov. de 2021 a la(s) 14:22, Joey McCollum via ntg-context (
ntg-context@ntg.nl) escribió:

> As the subject of this question suggests, this is really more of a
> question about expansion control (a topic that is still a bit obscure to
> me). Suppose I have a macro \inner that expects a single argument or an
> assignment of parameters in brackets. For my purposes, I don't want this
> macro to do anything when it is typeset, so I'll just define it as empty:
>
> ```
> \def\inner[#1]\empty
> ```
>
> Now suppose I have another macro \outer that invokes this macro with some
> specific input and sets some plain text after it:
>
> ```
> \def\outer{\inner[123] etc.}
> ```
>
> What I'd like to do is parse the argument of \inner in \outer. I was
> hoping that a string search in Lua would work, but I'm not having any luck.
> A minimal (non)-working example is included below:
>
> ```
>
> \def\inner[#1]\empty
>
> \def\outer{\inner[123] etc.}
>
>
> \startluacode
>
> local userdata = userdata or {}
>
> function userdata.parseinner(str)
>
> local innerparams = ""
>
> if string.find(str, "\\inner(%b[])") then
>
>   i, j = string.find(str, "\\inner(%b[])")
>
>   innerparams = string.sub(str, i+1, j-1) -- we just want the content
> inside the brackets
>
> end
>
> context(innerparams)
>
> return
>
> end
>
> \stopluacode
>
> \def\parseinner#1{\ctxlua{userdata.parseinner([==[#1]==])}}
>
>
> \starttext
>
> Testing:\blank
>
> \parseinner{\outer}
>
> \stoptext
> ```
>
> My problem is that when I pass \outer to the \parseinner macro, it gets
> fully expanded, so there isn't anything left to match "\\inner%b[]". Is
> there a way to expand \outer when I pass it to the \parseinner macro
> without also expanding the \inner macro inside it? Or is there some other
> preferred way of doing this?
>
> Joey
>
> ___
> 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] Concerning \installparameterhashhandler and family

2021-11-09 Thread Jairo A. del Rio via ntg-context
Hi. Reading at mult-aux.mkxl, I've seen command handlers define, among
others,  \installparameterhashhandler, However, in files such as those
related with symbol management, only \installparameterhandler and
\installsetuphandler are. When writing basic modules, sometimes only the
"raw" macros above are actually needed. So, what are "parameterset",
"hashhander", "rootparameterhandler", etc. for? Where would they ease
module writing? Thank you a lot and sorry for the long question.

Best regards,

Jairo
___
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] Hyphenation on digits

2021-11-03 Thread Jairo A. del Rio via ntg-context
Hi again. I've noticed \hyphenateddigits fails with alphabetical symbols,
e.g. with hexadecimal numbers. Maybe there's a better solution, but
something like

--From phys-dim.lua
actions   = function(filler, digits)
digits = gsub(digits,"(%d)","%1\\digitsbreak ") --space added.
Would a "\relax " do better?
digits = gsub(digits,"\\-$",filler)
context(digits)
end

would fix it.

Best regards,

Jairo

El jue, 28 de ene. de 2021 a la(s) 09:00, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> > Hi, list.
> >
> > I want to know if ConTeXt provides an option to automatically
> > hyphenate/break digits as if they were alphabetic characters. Example,
> > in a narrow page I expect something like that (I've used (-) for an
> > optional hyphen):
> >
> > *π = *3.141592653(-)
> > 58979323846264(-)
> > 33832795028841(-)
> > 97169399375105(-)
> > ...
> >
> > I found myself unable to read a satisfactory solution in the mailing
> > list archive nor other TeX related resources. Maybe LMTX has some magic
> > for that?
>
> I'll add support for:
>
> \starttext
>
> \hsize6cm
>
> \pi\ =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
>
>   \blank
> \pi\ =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}
> \blank
> x $\pi  =
> \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
>
> \blank
> x $\pi  =
> \hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$
>   \blank
>
> \stoptext
>
> A quick and dirty hack as we don't need some full blown mechanism for
> such a rare case.
>
> 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
___


Re: [NTG-context] getting number from context.figurewidth

2021-10-27 Thread Jairo A. del Rio via ntg-context
Hi, Pablo. I have no idea of what you need to do, but in grph-inc.lua you
find the following (line 709):

implement { name = "figurestatus",   actions = { get, context }, arguments
= { "'status'",  "string", "string" } }

So that \figureheight calls this function via \clf_figurestatus and, in
turn, it calls figures.get. If I'm right,

figures.get('status','height','0') -- or '"status"' ?

would have to return the value you're asking for (at the TeX end, "sp"
units are added). A MWE wouldn't hurt. I hope this helps or, at least, it
leads you through the right direction.

Cordially,

Jairo

El mié, 27 de oct. de 2021 a la(s) 14:20, Pablo Rodriguez via ntg-context (
ntg-context@ntg.nl) escribió:

> On 10/26/21 6:31 PM, Pablo Rodriguez via ntg-context wrote:
> > [...]
> > Is there a way that I can get a number from context.figureheight, such
> > as I get it from tex.dimen.paperheight?
>
> Sorry for insisting, I need it for a Lua script that in the relevant
> line reads:
>
>   loader_times:write('.box placeholder width=' .. context.figurewidth
>  .. ' height=' .. context.figureheight)
>
> I cannot concatenate string and function (and I need the number, not the
> unit).
>
> Is there no way of doing it?
>
> 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://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] Romanization of ancient greek

2021-10-26 Thread Jairo A. del Rio via ntg-context
Ugly hack: add this before loading transliterator:

\startluacode
unicode = unicode and unicode or _G
\stopluacode

I get the following output:

kakon anagkē, all' udemia anagkē zēn meta anagkēs

I hope this helps. I also think you should mail Philipp so that he fixes it
(the Lua code looks pretty old).

Cordially,

Jairo

El mar, 26 de oct. de 2021 a la(s) 05:08, Marcus Vinicius Mesquita via
ntg-context (ntg-context@ntg.nl) escribió:

> I tried the MWE example below with the transliterator module, but context
> throws an error:
> token call, execute:
> ...ules/tex/context/third/transliterator/transliterator.lua:20: attempt to
> index a nil value (global 'unicode')
>
> \usemodule[transliterator]
> \starttext
> \transliterate[mode=gr]{κακὸν ἀνάγκη, ἀλλ' οὐδεμία ἀνάγκη ζῆν μετὰ ἀνάγκης}
> \stoptext
>
> I'm using context current version: 2021.10.24 21:45
> Marcus Vinicius
>
>
>
>
> On Tue, Oct 26, 2021 at 5:13 AM Marcus Vinicius Mesquita <
> marcusvinicius.mesqu...@gmail.com> wrote:
>
>> Thank you, Wolfgang. I'll look into it.
>>
>> Regards
>>
>> Marcus Vinicius
>>
>> On Tue, Oct 26, 2021 at 1:22 AM Wolfgang Schuster <
>> wolfgang.schuster.li...@gmail.com> wrote:
>>
>>> Marcus Vinicius Mesquita via ntg-context schrieb am 26.10.2021 um 00:38:
>>> > Dear list,
>>> >
>>> > Is there anything in ConTeXt that could help me with automatic
>>> > romanization of ancient greek words?
>>>
>>> Is the Transliterator module from Philipp Gesang what you're looking for?
>>>
>>>
>>> https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=5025059042/action=view/id=50
>>>
>>> Wolfgang
>>>
>>>
>>
>> --
>> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
>> corpo nem seus membros, por ser descanso da alma, primavera do coração,
>> distração do aflito, entretenimento do solitário, e viático do viajante.
>>
>> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>>
>
>
> --
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o
> corpo nem seus membros, por ser descanso da alma, primavera do coração,
> distração do aflito, entretenimento do solitário, e viático do viajante.
>
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
>
> ___
> 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] Metafun's utflen not working in certain contexts

2021-10-05 Thread Jairo A. del Rio via ntg-context
Nice, thanks.

Jairo

El lun, 4 de oct. de 2021 a la(s) 13:23, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 10/3/2021 9:28 PM, Jairo A. del Rio via ntg-context wrote:
> > Hi, list. The following works for MkIV, but not LMTX (adapted from here:
> >
> https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function
> > <
> https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function
> >):
> >
> > \startMPinclusions
> >
> > vardef MotMystere(expr taille, speciale, index) =
> >
> > save avant,apres,case;
> >
> > numeric avant,apres;
> >
> > path case;
> >
> > case := fullsquare scaled 13;
> >
> > avant := speciale-1;
> >
> > %For Unicode, use "utflen" instead
> >
> > apres := utflen(taille) - speciale;
> >
> > if avant >= 1:
> >
> > for j=1 upto avant:
> >
> > draw (case rotated 180
> >
> > cutafter point 3 of case rotated 180)
> >
> > shifted (-13j,-13*index);
> >
> > endfor;
> >
> > fi;
> >
> > label.lft (index,point 3.5 of
> >
> > case shifted (-13*avant,-13*index));
> >
> > draw case yshifted (-13*index);
> >
> > fill case yshifted (-13*index)
> >
> > withcolor \MPcolor{gray-8};
> >
> > if apres > 0:
> >
> > for j=1 upto apres:
> >
> > draw (case cutafter point 3 of case)
> >
> > shifted (13j,-13*index);
> >
> > endfor;
> >
> > fi;
> >
> > enddef;
> >
> > \stopMPinclusions
> >
> > \starttext
> >
> > An example with "enigma"
> >
> >
> > \startMPcode
> >
> > MotMystere("enigma",4,1)
> >
> > \stopMPcode
> >
> > \stoptext
> for the moment use ()
>
> apres := (utflen(taille)) - speciale;
>
>
>
> -
>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
___


[NTG-context] Metafun's utflen not working in certain contexts

2021-10-03 Thread Jairo A. del Rio via ntg-context
Hi, list. The following works for MkIV, but not LMTX (adapted from here:
https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function
):

\startMPinclusions

vardef MotMystere(expr taille, speciale, index) =

save avant,apres,case;

numeric avant,apres;

path case;

case := fullsquare scaled 13;

avant := speciale-1;

%For Unicode, use "utflen" instead

apres := utflen(taille) - speciale;

if avant >= 1:

for j=1 upto avant:

draw (case rotated 180

cutafter point 3 of case rotated 180)

shifted (-13j,-13*index);

endfor;

fi;

label.lft (index,point 3.5 of

case shifted (-13*avant,-13*index));

draw case yshifted (-13*index);

fill case yshifted (-13*index)

withcolor \MPcolor{gray-8};

if apres > 0:

for j=1 upto apres:

draw (case cutafter point 3 of case)

shifted (13j,-13*index);

endfor;

fi;

enddef;

\stopMPinclusions

\starttext

An example with "enigma"


\startMPcode

MotMystere("enigma",4,1)

\stopMPcode

\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] Getting Textadept to open pdf?

2021-09-26 Thread Jairo A. del Rio via ntg-context
El dom, 26 de sep. de 2021 a la(s) 22:29, jbf (roma83...@gmail.com)
escribió:

> Hmm. I'm not using evince (could, I suppose) but I see that in the file
> you mention there is already:
>
> ['okular']= [[okular --unique "%filename%"]], and I have already
> adapted the init.lua file in /.texadept to use okular rather than sumatra,
> with textadept.run.compile_commands.tex =
> '/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script
> context --autopdf=okular "%f"'
>
> So, following your logic, I should then only need to add, further on,
> pdfview.method = "okular", which I have done, but still no joy.
>
> In such a case, you only need to comment on the second option, i. e.
Sumatra:

--The last one wins
pdfview.method = "okular"
--pdfview.method = "sumatra" -- faster and more complete

I haven't edited textadept settings btw, so it works for me with --autopdf
alone.

> Julian
>
>
> On 27/9/21 1:06 pm, Jairo A. del Rio wrote:
>
> Hi. Maybe there's an easier way to do it without changing any file or via
> mtxrun's command line, but the following is what I do:
>
> In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are
> available. I've added
>
> ['evince']= [[evince "%filename%"]] -- My favorite viewer
>
> And then, after pdfview.method assignments,
>
> pdfview.method = "evince"
>
> Now textadept opens the .tex file once compiled. I don't know if making
> the format again is mandatory, but it doesn't hurt, anyways. I hope this
> helps.
> Best regards,
>
> Jairo
>
>
>
> El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context (
> ntg-context@ntg.nl) escribió:
>
>> The occasional response to a similar question can be found, e.g. on
>> stackexchange, but none of the responses work for me.
>>
>> Textadept is very fast at compiling (and does compile correctly). I can
>> certainly open the pdf independently in various pdf viewers, but I
>> cannot get Textadept to automatically open, say, Okular (installed on
>> Linux Mint), at the end of the process.
>>
>> The last part of the log reads:
>>
>> mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8 shipped
>> pages, 12.492 pages/second
>> mtx-context | pdfview methods: auto default okular pdfxcview
>> sumatra, current method: okular (directives_pdfview_method)
>> pdfview | command: okular --unique "test1.pdf" 1>/dev/null
>> 2>/dev/null &
>> mtx-context | pdfview overhead: 0.001 seconds
>> system  | total runtime: 0.649 seconds of 0.701 seconds
>>
>>  > exit status: 0
>>
>> Have tried setting up a custom text editor on okular with:
>> /home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as
>> suggested by one response, but to no avail. Current version of ConTeXt
>> is 2021.09.17 10:01
>>
>> Anyone tried Textadept successfully and might have a suggestion?
>>
>> Julian
>>
>>
>> ___
>> 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] Getting Textadept to open pdf?

2021-09-26 Thread Jairo A. del Rio via ntg-context
Hi. Maybe there's an easier way to do it without changing any file or via
mtxrun's command line, but the following is what I do:

In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are
available. I've added

['evince']= [[evince "%filename%"]] -- My favorite viewer

And then, after pdfview.method assignments,

pdfview.method = "evince"

Now textadept opens the .tex file once compiled. I don't know if making the
format again is mandatory, but it doesn't hurt, anyways. I hope this helps.
Best regards,

Jairo



El dom, 26 de sep. de 2021 a la(s) 20:54, jbf via ntg-context (
ntg-context@ntg.nl) escribió:

> The occasional response to a similar question can be found, e.g. on
> stackexchange, but none of the responses work for me.
>
> Textadept is very fast at compiling (and does compile correctly). I can
> certainly open the pdf independently in various pdf viewers, but I
> cannot get Textadept to automatically open, say, Okular (installed on
> Linux Mint), at the end of the process.
>
> The last part of the log reads:
>
> mkiv lua stats  > runtime: 0.640 seconds, 8 processed pages, 8 shipped
> pages, 12.492 pages/second
> mtx-context | pdfview methods: auto default okular pdfxcview
> sumatra, current method: okular (directives_pdfview_method)
> pdfview | command: okular --unique "test1.pdf" 1>/dev/null
> 2>/dev/null &
> mtx-context | pdfview overhead: 0.001 seconds
> system  | total runtime: 0.649 seconds of 0.701 seconds
>
>  > exit status: 0
>
> Have tried setting up a custom text editor on okular with:
> /home/me/.textadept "%f" -e textadept.editing.goto_line(%l-1), as
> suggested by one response, but to no avail. Current version of ConTeXt
> is 2021.09.17 10:01
>
> Anyone tried Textadept successfully and might have a suggestion?
>
> Julian
>
>
> ___
> 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] Passing colors to Metafun and TeX's bitmapimage macros

2021-09-01 Thread Jairo A. del Rio via ntg-context
Hi, list!
I want to know if there's a handy way to pass predefined colors, either RGB
or CMYK, e.g. those in svg or crayola, to Metafun's bitmapimage. Say,
something like:

\startMPpage

% svg's gold definition

draw bitmapimage(2, 2, "ffd700 ffd700 ffd700 00") scaled 3cm;

\stopMPpage

using "gold" instead of its definition so that I can set bitmap image
colors by name rather than numbers. In a similar vein, I wonder if
something analogous is possible for ConTeXt's \bitmapimage macro. Thank you
in advance.

Cordially,

Jairo
___
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] Using ConTeXt Lua libraries

2021-07-28 Thread Jairo A. del Rio via ntg-context
Hi everyone!

I want to know the proper way to load ConTeXt Lua modules/libraries *en
masse*. such as those listed in cld-mkiv, without actual typesetting in
order to write some scripts. I thought about creating a .cld file with no
output, but I suspect there's a better way. Thanks in advance.

Regards,
Jairo
___
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
___