ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Creating a module for calligraphy practice templates
@ 2024-03-12  7:57 Andres Conrado Montoya
  2024-03-12  8:52 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 2+ messages in thread
From: Andres Conrado Montoya @ 2024-03-12  7:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3922 bytes --]

Hello, list!

I've been working on a module to typeset calligraphy practice templates
using ConTeXt and MetaPost. You are welcome to check it out on github:
https://github.com/conradolandia/pauta
I'm not including a MWE because the repository has all the current code. I
hope this is fine. I did not want to clutter the list with too much text.
The module is only a single file (t-pauta.mkxl) and some examples of use
and documentation that are still somewhat unfinished, but I've tried to
document the source code as much as I could. If you need clarification
about anything, please let me know.

(At the root of the repository, there is a file build.lua, that is not
really part of the project, just a custom tool I use to process the files,
a sort of minimal build system. You can ignore it.)

I welcome any kind of suggestions and dire warnings. I've tried to read the
wiki and the manuals carefully and made as many tests as possible, and in
general it works fine, but I have ADHD and things frequently get over
my head. There are still some things that don't work as they should, and
things that need improvement:

1. I use top/bottom areas to display some info. These areas are not being
handled properly so far. For example, if I place a chapter before the Pauta
macro invocation, there will be data on the top and bottom areas in the
last page of the chapter. I've tried using \page and clearing the areas,
which feels like cheating, but still does not work well. Any ideas on how
to better handle this are more than welcome.

2. I'm using what I found at
https://wiki.contextgarden.net/System_Macros/Handling_Arguments and
\getparameters to handle the arguments for my Pauta macro, but today I
found out about \processaction at
https://wiki.contextgarden.net/Module_Parameters and I'm not really sure if
I should change my module to work with this instead of \getparameters. In
general, after checking the source code of several modules, I'm not really
sure how much I have to follow the guidelines at
https://wiki.contextgarden.net/Module_Parameters or if those are the most
current recommendations.

3. I'm including in my module the code of the file hatching.mp that can be
found at
https://ctan.org/tex-archive/graphics/metapost/contrib/macros/hatching. I
did this for portability reasons, since it's less than 70 lines and has not
been updated in 20 years. But if it's better to have this in a separate
file, please let me know. Also, if a better method to create pattern filled
paths is available, please let me know, I confess I didn't look too much
into it yet. This has solved my requirement so far.

4. I want to be as close as possible to the new LMTX syntax and way of
doing things. so If you think I'm doing something in anachronistic ways,
please let me know.

In general, if someone wants to check it out and provide feedback so I can
improve it, with the objective of eventually being shared on
modules.contextgarden.net, will be much appreciated.

Thank you for your time, and have a great week!

-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@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

[-- Attachment #1.2: Type: text/html, Size: 5107 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [NTG-context] Re: Creating a module for calligraphy practice templates
  2024-03-12  7:57 [NTG-context] Creating a module for calligraphy practice templates Andres Conrado Montoya
@ 2024-03-12  8:52 ` Henning Hraban Ramm
  0 siblings, 0 replies; 2+ messages in thread
From: Henning Hraban Ramm @ 2024-03-12  8:52 UTC (permalink / raw)
  To: ntg-context

Am 12.03.24 um 08:57 schrieb Andres Conrado Montoya:
> Hello, list!
> 
> I've been working on a module to typeset calligraphy practice templates 
> using ConTeXt and MetaPost. You are welcome to check it out on github: 
> https://github.com/conradolandia/pauta 
> <https://github.com/conradolandia/pauta>

Hi Andrés,

this looks interesting (even if I don’t do calligraphy any more).

Sorry, I can’t help you with your questions.

The structure of the module looks good and should work well with the 
module system.

Hraban

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-12  8:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-12  7:57 [NTG-context] Creating a module for calligraphy practice templates Andres Conrado Montoya
2024-03-12  8:52 ` [NTG-context] " Henning Hraban Ramm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).