Re: [NTG-context] Flushright problems with Japanese

2023-05-15 Thread 李延瑞
Gerben Wierda via ntg-context  于2023年5月15日周一 16:43写道:

> When I use flushright, my Japanese characters get widely spaced as if
> flushing right doesn't work
>
> Minimal example:
>
> % ===
>  \definefallbackfamily
>   [archimate]
>   [ss]
>   [Hiragino Sans]
>   [preset=range:japanese,
>tf=style:W3,
>it=style:W3,
>bf=style:W5,
>bi=style:W5,
>force=yes]
>
> \definefontfamily [archimate] [ss] [Optima]
>
> \setupbodyfont[archimate]
>
> \startsetups [japanese]
>   \setscript [nihongo]
> \stopsetups
> \setuplanguage [ja] [setups=japanese]
> \mainlanguage [ja]
>
> \starttext
> \setupindenting[none]
> \setupindenting[no]
> \framed[width=\textwidth,frame=off,align=flushleft]{作図:A bit of text}
> \framed[width=\textwidth,frame=off,align=flushright]{作図:A bit of text}
> \framed[width=\textwidth,frame=off,align=flushright]{作図: A bit of text}
> \framed[width=\textwidth,frame=off]{作図: A bit of text}
> \stoptext
> % ===
>
>
Hi,

You can try `align={flushright,broad}'.

-- 
Best regards,

Li Yanrui
___
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] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 01:37:53 + (UTC)
Joel via ntg-context  wrote:

> Such a way would make it so \index{dogs} places an entry for "dog"
> under "d" and "animals --> dogs" under "a".

Might I suggest that an alternate way of handling this could be:

\seeindex{dogs}{animals+dogs}

with

\index{animals+dogs}


It's the author's choice, but this avoids redundant page entries and a very 
long \placeindex.

(Note that we recently extended \seeindex to handle the {...+...}
syntax for both arguments.)

Alan
___
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] 17th ConTeXt Meeting, Prague, 10.–16. 9. 2023: Registration Open

2023-05-15 Thread Alan Braslau via ntg-context
ConTeXt users,

All ConTeXt Meetings are great fun, and the meeting organized by Jano
near Prague is particularly not to be missed!

I have been to a number of ConTeXt meetings (and organized one in 2015)
and each one has been quite memorable. I strongly recommend trying to
attend if at all possible. (Regretfully, Jano, I do not see how I would
be able to attend this year :-(

Alan 



On Mon, 15 May 2023 19:15:59 +0200
Jano Kula via ntg-context  wrote:

> Dear list members!
> 
> Registration for the 17th ConTeXt Meeting
>  is now open.
> 
> We will meet at our favourite place close to Prague for the 3rd time.
> Come and join us to hear all the great news about new developments of
> ConTeXt and LuaMetaTex, meet developers and friends from this list.
> Better come in person, though registration for online participation
> for the small fee is open, too.
> 
> Important dates:
> 
>- *May 15th 2023,* beginning of registration
>- *July 31st, 2023,* deadline for early bird payment
>- *August 20th, 2023,* registration closes, ask for options after
> this deadline
>- *September 10th–16th, 2023,* 17th ConTEXt Meeting
> 
> Never been to the ConTeXt Meeting? Don't worry, the group of regular
> participants is open and friendly, and you don't know what you are
> missing, unless you come at least once. Different discounts
>  are available.
> 
> See you in September!
> 
> Jano
> on behalf of the ConTeXt Group Board
___
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] 17th ConTeXt Meeting, Prague, 10.–16. 9. 2023: Registration Open

2023-05-15 Thread Jano Kula via ntg-context
Dear list members!

Registration for the 17th ConTeXt Meeting
 is now open.

We will meet at our favourite place close to Prague for the 3rd time.
Come and join us to hear all the great news about new developments of
ConTeXt and LuaMetaTex, meet developers and friends from this list. Better
come in person, though registration for online participation for the small
fee is open, too.

Important dates:

   - *May 15th 2023,* beginning of registration
   - *July 31st, 2023,* deadline for early bird payment
   - *August 20th, 2023,* registration closes, ask for options after this
   deadline
   - *September 10th–16th, 2023,* 17th ConTEXt Meeting

Never been to the ConTeXt Meeting? Don't worry, the group of regular
participants is open and friendly, and you don't know what you are missing,
unless you come at least once. Different discounts
 are available.

See you in September!

Jano
on behalf of the ConTeXt Group Board
___
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 Henning Hraban Ramm via ntg-context

Am 15.05.23 um 18:57 schrieb Jairo A. del Rio via ntg-context:
I reuploaded my module. Let me know if problems persist. Thank you very 
much!

Check again, please.


Now it’s there.

CTAN sync should happen every night.

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
___


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 Henning Hraban Ramm via ntg-context

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. 
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?


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
___


[NTG-context] \placeinitial inside \framed?

2023-05-15 Thread Gerben Wierda via ntg-context
I'd like to use a drop cap inside a \framed, but it doesn't work.

Minimal example:

%==
\starttext
\setupinitial[n=2,text=Knuth]\placeinitial\input knuth

\framed[align=flushleft]{\setupinitial[n=2,text=Knuth]\placeinitial\input knuth 
}
\stoptext
%==

The first drop cap works, the second is empty.

Gerben Wierda (LinkedIn , Mastodon 
)
R IT Strategy  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Alan Braslau via ntg-context
On Mon, 15 May 2023 09:40:22 +0200
Hans Hagen via ntg-context  wrote:

> \starttexdefinition tolerant protected IndexB[#1]#:#*#2
>  \index{#2}
>  \doloopoverlist {#1} {
>  \index{##1+#2}
>  }
> \stoptexdefinition

Awesome!

However, I think that Joel was looking for a solution closer to what
Hraban suggested, creating automatic subcategories. I would do that
through a additional macros:

\starttexdefinition protected Animals#1
\index{#1}
\index{animals+#1}
#1
)
\starttexdefinition protected Plants#1
\index{#1}
\index{plants+#1}
#1
)
\Animals{dogs}
\Plants{trees}





I use as a general indexing macro:

\starttexdefinition tolerant protected Index[#1]#:#*#2
 \index[#1]{#2}
 #2
\stoptexdefinition

Alan
___
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
___


[NTG-context] Flushright problems with Japanese

2023-05-15 Thread Gerben Wierda via ntg-context
When I use flushright, my Japanese characters get widely spaced as if flushing 
right doesn't work

Minimal example:

% ===
 \definefallbackfamily
  [archimate]
  [ss]
  [Hiragino Sans]
  [preset=range:japanese,
   tf=style:W3,
   it=style:W3,
   bf=style:W5,
   bi=style:W5,
   force=yes]

\definefontfamily [archimate] [ss] [Optima]

\setupbodyfont[archimate]

\startsetups [japanese]
  \setscript [nihongo]
\stopsetups
\setuplanguage [ja] [setups=japanese]
\mainlanguage [ja]

\starttext
\setupindenting[none]
\setupindenting[no]
\framed[width=\textwidth,frame=off,align=flushleft]{作図:A bit of text}
\framed[width=\textwidth,frame=off,align=flushright]{作図:A bit of text}
\framed[width=\textwidth,frame=off,align=flushright]{作図: A bit of text}
\framed[width=\textwidth,frame=off]{作図: A bit of text}
\stoptext
% ===

Output:




Gerben Wierda (LinkedIn , Mastodon 
)
R IT Strategy  (main site)
Book: Chess and the Art of Enterprise Architecture 
Book: Mastering ArchiMate 

___
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] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Hans Hagen via ntg-context

On 5/15/2023 3:37 AM, Joel via ntg-context wrote:


I have a document like this:

     \starttext
     \index{dogs}

     \index{cats}

     \index{flowers}

     \index{snails}

     \index{trees}

     \placeindex

     \stoptext

As I understand, if you use \index{animals+dogs}, it will place dogs as 
a sub-category of dogs.


Is there any way to control this centrally, for instance:

\addtosub[animals]{dogs, cats, snails}
\addtosub[plants]{flowers, trees}

Such a way would make it so \index{dogs} places an entry for "dog" under 
"d" and "animals --> dogs" under "a".

\starttexdefinition protected IndexA#1#2
\index{#2}
\doloopoverlist {#1} {
\index{##1+#2}
}
\stoptexdefinition

\starttexdefinition tolerant protected IndexB[#1]#:#*#2
\index{#2}
\doloopoverlist {#1} {
\index{##1+#2}
}
\stoptexdefinition

\starttext
a\IndexA{animals}{dogs}
a\IndexA{animals}{cats}
a\IndexA{plants}{flowers}
a\IndexA{animals,small}{snails}
a\IndexA{plants,huge}{trees}
\page
b\IndexB[animals]  {dogs}
b\IndexB[animals]  {cats}
b\IndexB[plants]   {flowers}
b\IndexB[animals,small]{snails}
b\IndexB[plants,huge]  {trees}
\page
c\IndexB{dogs}
c\IndexB{cats}
c\IndexB{flowers}
c\IndexB{snails}
c\IndexB{trees}
\page
\placeindex
\stoptext



-
  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
___


Re: [NTG-context] Is there a way to centrally add a list of indexed items to a sub category?

2023-05-15 Thread Henning Hraban Ramm via ntg-context

Am 15.05.23 um 03:37 schrieb Joel via ntg-context:


I have a document like this:

     \starttext
     \index{dogs}

     \index{cats}

     \index{flowers}

     \index{snails}

     \index{trees}

     \placeindex

     \stoptext

As I understand, if you use \index{animals+dogs}, it will place dogs as 
a sub-category of dogs.


Is there any way to control this centrally, for instance:

\addtosub[animals]{dogs, cats, snails}
\addtosub[plants]{flowers, trees}

Such a way would make it so \index{dogs} places an entry for "dog" under 
"d" and "animals --> dogs" under "a".


I’d suggest to cook your own macro, e.g. for a book with a lot of person 
index entries, I used a lookup table to unify different spellings or 
name changes (married, titles etc.) like this:


"""% environment:
\loadluafile[lookups] % Index lookups

\defineregister[Person][]
\defineprocessor[italics][style=italicface]
\define[1]\Passim{\emph{passim}}
\defineprocessor[passim][command=\Passim]

\define[1]\nPerson{%
  \expanded{\Person{\ctxlua{userdata.Lookup("#1")}}}%
}

\define[1]\TPerson{%
  \expanded{\Person[kursiv->]{\ctxlua{userdata.Lookup("#1")}}}%
}#1}
\define[1]\nCPerson{\expanded{\Person[italics->]{\ctxlua{userdata.Lookup("#1")%
\define[1]\TCPerson{\expanded{\Person[italics->]{\ctxlua{userdata.Lookup("#1")}}}#1}%
"""

"""lookups.lua:
userdata = userdata or { }

userdata.Lookups = {
…
  ["Pauline, geb. Fichtner Erdmannsdörfer"] = "Erdmannsdörfer, Pauline, 
geb. Fichtner",

  ["Pauline Erdmannsdörfer"] = "Erdmannsdörfer, Pauline, geb. Fichtner",
  ["Pauline Erdmannsdörfer-Fichtner"] = "Erdmannsdörfer, Pauline, geb. 
Fichtner",

…
}

function userdata.Lookup(name)
   context(userdata.Lookups[name] or name)
end
"""

In a similar way you could setup an \Animal macro to use a lookup table 
how the entry should get indexed.


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
___