Re: [NTG-context] A Metafun-Problem

2021-04-12 Thread Willi Egger
Hi,

Ok, changing the unitsquare into fullsquare is giving a better result, however 
it is still not the right drawing. I realise, that in this case probably the 
use of a vector in this way is not appropriate. — I have changed the drawing 
into something with rotating the top-line of the rectangle around the corner. 
If I am correct, then this is the right drawing.

Thank you again for your answer, it made me see the culprit correctly!

Kind regards

Willi

test.tex
Description: Binary data


test.pdf
Description: Adobe PDF document


> On 12 Apr 2021, at 23:22, Jairo A. del Rio  wrote:
> 
> Is this what you need? If so, change unitsquare by fullsquare.
> 
> Jairo
> 
> El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl) 
> escribió:
> Hi
> 
> can somebody tell me why I do not get a trapezoid with bottom angles of 120 
> degrees?
> 
> Please try the attached minimal example.
> 
> Thank you!
> 
> Willi
> ___
> 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] A Metafun-Problem

2021-04-12 Thread Willi Egger
Thank you Jairo for your immediate answer. Although it is not yet what I have 
in mind, I see now what to do.

Thanks!

Willi

> On 12 Apr 2021, at 23:22, Jairo A. del Rio  wrote:
> 
> Is this what you need? If so, change unitsquare by fullsquare.
> 
> Jairo
> 
> El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl) 
> escribió:
> Hi
> 
> can somebody tell me why I do not get a trapezoid with bottom angles of 120 
> degrees?
> 
> Please try the attached minimal example.
> 
> Thank you!
> 
> Willi
> ___
> 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] A Metafun-Problem

2021-04-12 Thread Jairo A. del Rio
Is this what you need? If so, change unitsquare by fullsquare.

Jairo

El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl)
escribió:

> Hi
>
> can somebody tell me why I do not get a trapezoid with bottom angles of
> 120 degrees?
>
> Please try the attached minimal example.
>
> Thank you!
>
> Willi
>
> ___
> 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
>
> ___
>


test.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] A Metafun-Problem

2021-04-12 Thread Willi Egger
Hican somebody tell me why I do not get a trapezoid with bottom angles of 120 degrees?Please try the attached minimal example.Thank you!Willi

test.tex
Description: Binary data


test.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] Sudoku module

2021-04-12 Thread Jairo A. del Rio
Hi, list! I've just finished a minimal module for sudoku puzzles based on
Peter Norvig's algorithm. The module and examples are in the link below:

https://github.com/JairoAdelRio/context-sudoku

My port is a sorta literal translation of Python's version, so improvements
are to be done. As always, I'm having trouble passing color data from TeX
to Lua so that sudokus have more customizable aesthetics. I'll gladly
accept any feedback and recommendations before I submit the module to the
Garden. Thank you very much. Stay safe.

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] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
Hi,
Is it possible that the first item is on the baseline of the definition
environment title ? Thank you.
Fabrice

\define\ItemCommand
{\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
[itemize]
[color=darkred,
style=bold,
 distance=\spaceamount]

  \setupitemgroup
[itemize:1]
[option={n,packed,fit,intext},
command=\ItemCommand]

  \setupitemgroup
[itemize:2]
[lefttext=,
righttext=,
option={a,text}]

\setupenumerations
  [before={},
   after={\blank},
   alternative=serried,
   number=no,
   title=yes,
   titleleft={(},
   titleright={)},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   titlestyle=bold,
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=normal]

\starttext
\startdefinition
  \input knuth
\stopdefinition
\startdefinition
  \startitemize[n]
\startitem
  First item
\stopitem
\startitem
  Second item
\stopitem
  \stopitemize
\stopdefinition
\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] Ligature suppression word list

2021-04-12 Thread denis.maier
Hi,

a small update on this one :
I’ve built a small python script that uses the patterns from the selnolig 
package to extract words with suspicious ligatures from the word list provided 
by the Uni Leipzig corpus project. Running the script over a corpus of over 1 
million words produces the attached word list. The resulting list of words is 
not huge. That corpus gives us a list of about 790 words. I’ll need to check 
whether they already are in the goodies file or if I need to add them.

Anyway, I was thinking about making such a script more generic. Think of 
something along the lines of:
pdftotext book.pdf | showIncorrectLigatures.py > incorrect-ligatures.txt

Denis


Von: ntg-context  Im Auftrag von rh...@t-online.de
Gesendet: Mittwoch, 7. April 2021 20:20
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Ligature suppression word list



Message: 2
Date: Tue, 6 Apr 2021 15:03:54 +
From: mailto:denis.ma...@ub.unibe.ch>>
To: mailto:j.ha...@xs4all.nl>>, 
mailto:ntg-context@ntg.nl>>
Subject: Re: [NTG-context] Ligature suppression word list
Message-ID: 
<41e6530172b54bffb7a82febff0a6...@ub.unibe.ch>
Content-Type: text/plain; charset="iso-8859-1"


-Ursprüngliche Nachricht-
Von: Hans Hagen mailto:j.ha...@xs4all.nl>>
Gesendet: Samstag, 3. April 2021 17:58
An: mailing list for ConTeXt users 
mailto:ntg-context@ntg.nl>>; Maier, Denis
Christian (UB) mailto:denis.ma...@ub.unibe.ch>>
Betreff: Re: [NTG-context] Ligature suppression word list

[…]




2. A bigger solution might be to use selnoligs patterns in a script
   that can be run over a large corpus, such as the DWDS (Digitales
   Wörterbuch der deutschen Sprache). That should produce us a more
   complete list of words where ligatures must be suppressed.

where is that DWDS ... i can write some code to deal with it (i'd rather start
from the source than from some interpretation; who know what more there
is to uncover)

As it turn out, the linguists that helped with the selnolig package did use 
another corpus: Stuttgart "Deutsch" Web as Corpus
They describe their approach in that paper: 
https://raw.githubusercontent.com/SHildebrandt/selnolig-check/master/selnolig-check-documentation.pdf

A lot of  corpora can be found here: https://wortschatz.uni-leipzig.de/de
especially here: https://wortschatz.uni-leipzig.de/de/download/German

There are corpora of many other languages, too, such as English, French, Dutch, 
Spanish, Russian, Japanese, Latin, …

HTH

Ralf

Auftrag
Auftritt
Auftakt
Auflage
Auflösung
Aufträge
fünften
Auftraggeber
Auflagen
Auffassung
fünfte
Aufführung
Auftragseingang
auftreten
Auftritte
Fünftel
Straftaten
Auftragsbestand
Aufforderung
Auftreten
Auflistung
Auftrieb
Aufführungen
Straftat
auffällig
Auftragsvolumen
Auftragsbücher
Auffällig
Auftragseingänge
Schieflage
Auftragslage
auflösen
Auftragsbestätigung
Aufträgen
Cheftrainer
Fünfte
Auffinden
Kopftuch
auffallend
auffällige
elften
Auffassungen
Auflaufform
Auftraggebers
Auftritten
auffangen
offline
Auffahrt
Auftragswert
Fünfter
Auftaktveranstaltung
Auftragserteilung
Straftatbestand
auffüllen
Auflauf
Auftragnehmer
Dorffest
Kaufinteresse
Straftäter
auftauchen
elfte
Auffallend
fünften Mal
fünfter
Auffälligkeiten
Auftragsvergabe
Kaufinteressenten
auffindbar
auftretenden
Auffahrunfall
Prüfling
aufladen
auflaufen
Auftrages
Auftrags
Dampflokomotiven
auffälliges
fünftägigen
Auflösungen
Auftragen
Hofladen
Schlaflosigkeit
auftretende
Aufladen
Aufladung
Auflockerung
Auftaktspiel
Auftragsbüchern
Auftritts
Briefträger
Prüflinge
Schlaflabor
Schlaftabletten
kampflos
Auftaktquartal
Auftauchen
Auftragsabwicklung
Auftragseingängen
Dampflok
Hoffest
Tiefflug
auffallen
auffrischen
auffälliger
auffälligsten
schlaflose
Auffrischung
Auffällige
Auflehnung
Auflieger
Auftraggebern
Auftragssumme
Brieftasche
Elfter
Straftätern
auffälligste
fünftes
schlaflose Nächte
tarifliche
Auffahrunfälle
Auflagenhöhe
Auflassung
Auftaktsieg
Auftragsbearbeitung
Auftragseingangs
Auftragsmord
Auftragsrückgang
Auftretens
Kopfteil
Kopftuchverbot
Scheffler
Tariflohn
Tieflader
auffälligen
auftragsbezogen
Auffanglager
Aufführungspraxis
Auflockerungen
Auflösungsvertrag
Auftanken
Auftragnehmers
Auftragsbestände
Auftragsbuch
Auftragseinbruch
Auftragsplus
Auftrittsmöglichkeiten
Brieffreund
Golffahrer
Kopftücher
Offline
Tiefladern
auffallende
auffordern
aufführen
auflegen
auftauen
auftragen
auftreiben
fünftägige
schlaflosen
Auffahrten
Auffahrunfällen
Auffanggesellschaft
Aufforderungscharakter
Aufforstung
Auffälligstes
Auffüllen
Auflagefläche
Auflaufen
Auflösungserscheinungen
Auftauen
Auftragsannahme
Auftragsarbeiten
Auftragskomposition
Auftragsminus
Auftragsmorde
Auftrittsort
Brieffreundin
Brieffreundschaft
Brieftaschen
Brieftauben
Cheftrainer Andreas Hirsch
Fünften
Fünftes
Kampffeld
Kaufinteressent
Kopfleiste
Surftipps
Surftips
Tiefland
aufleben
auflockern
auftanken
auftrumpfen
stoffliche
tiefliegenden
Auffanglösung
Auffindung
Auffliegen
Aufforderung zum Tanz
Aufforderungen