Re: [NTG-context] Quick way to proofread / check index entries?

2022-09-04 Thread Richard Mahoney via ntg-context
Bruce,

Did something of the sort a while back: redefined the index command to 
something short, in capitals; then adjusted the syntax highlighting to pick up 
the code. This was for emacs + auctex, so it was just a case of adjusting one 
of the stock auctex files. I think Scite may let one do something similar. 

Richard


--
*T* +6433121699  *M* +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

*Indica et Buddhica*
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809


- Original message -
From: Bruce Horrocks via ntg-context 
To: ntg-context mailing list 
Cc: Bruce Horrocks 
Subject: [NTG-context] Quick way to proofread / check index entries?
Date: Sunday, 4 September 2022 06:51

My own fault for not thinking head :-) but I have a largeish text with a lot of 
\index{...} entries. To make life easier for the proofreader I would like to 
temporarily redefine \index to wrap it or replace it with something that will 
highlight indexed items in the text where they occur, e.g. change their colour.

I could do this with a global find and replace (across many files) to replace 
\index with \MyIndex, say, and then define a \MyIndex that understands the 
various parameter options but this is a hassle. Before I do this, is there 
anything already pre-built?

The ultimate aim is to enable a proofreader to see each indexed term where it 
appears in order to judge whether the term deserves to be in the index at all. 
(Working backwards from the index itself is possible but clicking a page 
number, trying to find the term on the page, then reading the context to make a 
decision is quite hard work - much easier to read through and deal with the 
terms as they appear.)

—
Bruce Horrocks
Hampshire, UK

___
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] Crediting copyright on photographs

2022-05-05 Thread Richard Mahoney via ntg-context
Bruce,

I tend to do something such as the following:

\startplacefigure[reference={fig:0007},location={here},title={{\it
Vīkṣya}, 5b},list={Ch.\ {\sc ix}\TI {\it Vīkṣya}, 5b}]

\externalfigure[plates/01-09/01-09-07-
c.jpg][scale=1000,frame=off,equalwidth=325pt]

{{\NI}{\tfx \copyright\ 2012 Sylvain {\sc Brocquet}.}}

\stopplacefigure


You can find the result in v. 1, p. 257:

Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering
of Inscriptions:
South Indian Epigraphy and Art History: Papers from an International
Symposium in memory
of Professor Noboru Karashima (Paris, 12–13 October 2017). Oxford:
Indica et Buddhica.

OA PDF here:

https://indica-et-buddhica.org/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history



Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809


-Original Message-
From: Henning Hraban Ramm via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: ntg-context@ntg.nl
Cc: Henning Hraban Ramm 
Subject: Re: [NTG-context] Crediting copyright on photographs
Date: Thu, 5 May 2022 08:54:52 +0200
Mailer: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:91.0)
Gecko/20100101 Thunderbird/91.8.1
X-Spam-Score: 0.0

Am 04.05.22 um 23:59 schrieb Bruce Horrocks via ntg-context:
> I need to include the copyright acknowledgement / photographer
> credit on an image but I'm not sure what's the best way to do it.
> 
> Option 1: I can add the acknowledgement to the end of the
> \placefigure caption text:
> 
> e.g.   \placefigure{A picture of a cow. Image of a cow that may or
> may not be under copyright
> anymore.}{\externalfigure[cow][height=6cm]}
> 
> then the copyright bit will appear in the Table of Figures which I
> don't really want to happen. Is there a way to truncate this?

Using

\startplacefigure[title={complete caption}, list={description in the 
table of figures}]...\stopplacefigure

you can have different caption texts, like for titles.


> Option 2: some magazines print the copyright credit running up the
> side of the image, independently of the caption. I'd quite like to
> do this and wondered if anyone had already written something they
> could share?

I often use \ininner{\rotate[location=fit]{Copyright notice}}, but
it’s 
a hassle to get the placement right, don’t use it within the caption. 
Using \setlayer is most reliable.


Hraban
__
_
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] LMTX | (.\) at end of line causes fatal error

2022-03-05 Thread Richard Mahoney via ntg-context
Something I've noticed for a little while now, although it may be
long standing, I'm not sure. If one ends some of the lines in
the input files with a full stop (.) and a back slash (\) then LMTX
will fail to compile with a fatal error. The only way to recover is
to go through each of the files and ensure that no line ends with
(.\).

Is this a bug?


Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809



___
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] LMTX-latest | SciTE 5.1.6 --- 5.2.1 | Not working with tex/texmf-context/context/data/scite

2022-03-03 Thread Richard Mahoney via ntg-context

Thank you for this Hans.


Best, Richard


-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809



-Original Message-
From: Hans Hagen via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: Richard Mahoney via ntg-context 
Cc: Hans Hagen 
Subject: Re: [NTG-context] LMTX-latest | SciTE 5.1.6 --- 5.2.1 | Not
working with tex/texmf-context/context/data/scite
Date: Thu, 3 Mar 2022 08:53:06 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0)
Gecko/20100101 Thunderbird/91.6.1
X-Spam-Score: 0.0

On 3/3/2022 12:08 AM, Richard Mahoney via ntg-context wrote:
> [Gentoo]
> 
> I've found that the config included with LMTX in:
> 
> tex/texmf-context/context/data/scite
> 
> does not work with SciTE 5.1.6+
> 
> The latest version that seems to be working is SciTE 5.1.5.
> 
> Version 5.1.5 Scintilla: 5.1.4 Lexilla: 5.1.3
> compiled for GTK:3.24.29
> Nov 14 2021 12:15:50
> 
> Is anyone else having any issues?
for long i time tried to keep up with the changes in the lpef plugin
but 
it kept changing to i quit using it; in the zip below is a version of 
scite with a built in lpeg ... i have adapted teh lexers but need to 
have a look at them again (i now go via some scite interfaces but
these 
sometimes have side effects i need to nail down more).

http://www.pragma-ade.com/context/latest/cont-sci.zip

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] LMTX-latest | SciTE 5.1.6 --- 5.2.1 | Not working with tex/texmf-context/context/data/scite

2022-03-02 Thread Richard Mahoney via ntg-context
[Gentoo]

I've found that the config included with LMTX in:

tex/texmf-context/context/data/scite

does not work with SciTE 5.1.6+

The latest version that seems to be working is SciTE 5.1.5.

Version 5.1.5 Scintilla: 5.1.4 Lexilla: 5.1.3
compiled for GTK:3.24.29
Nov 14 2021 12:15:50

Is anyone else having any issues? 


Best, Richard



-- 
T +6433121699  M +64210640216 
rmaho...@indica-et-buddhica.com
https://indica-et-buddhica.org/

Indica et Buddhica Publishers
Littledene  Bay Road  Oxford  NZ
NZBN: 9429041761809



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

2022-01-22 Thread Richard Mahoney via ntg-context
Thank you Kauśika, these details are v. helpful.


Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ




-Original Message-
From: kauśika via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Cc: kauśika 
Subject: Re: [NTG-context] new upload
Date: Sat, 22 Jan 2022 18:01:42 +0530
X-Spam-Score: 0.0

On Saturday, January 22, 2022 12:58:05 AM IST Hans Hagen via ntg-
context 
wrote:
> - initial indic transliteration support .. recent indic (font)
> experiences and transliteration tricks will be eplained by kauśika

Recently when we were troubled by incorrect rendering of certain
conjuncts in 
malayalam, Hans added a new font-feature. More below*, but first some 
background: from my testing, the main reason for the problems with
fonts seems 
to come from the varied interpretations and/or implementations of OTF 
specification. To add to this complexity there are two script tags
(v1, v2 in 
OTF and -one, -two in ConTeXt) for each writing system (script). While
there 
are fonts which work very well right away many others have issues and
the 
feature was added to somewhat alleviate these issues.

*The feature is 'indic'. It has two aspects: 'movematra' and
'conjuncts'.

conjuncts takes values: mixed | continue | quit | auto
movematra takes values: default | leftbeforebase | auto

By default 
indic=auto 
for indic scripts. So this "should work" in most cases. 

In case there are issues, I have seen that the following approach
usually 
yields best result in debugging:
 • try to switch between the -one and -two version of the features
(i.e. use 
the v1 or v2 OTF script tag): some fonts may have some rules defined
only under 
one of the script tags. (I am not an expert in fonts but with my
testing of 
free fonts I have seen this). 
 • if that does not fix (the particular issue), revert to a working
feature and 
then set the indic feature as indic={movematra=default,conjuncts=quit}
to see
 • Please see:
 https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html
 issues usually have a pattern (across languages/scripts so some hacks
might 
work)

For conjuncts, 'mixed' and 'auto' are synonymous. Setting
conjuncts=mixed 
ensures that for some fonts conjuncts with the reph forms are rendered
correctly. (This was tested with a relatively new font in malayalam
using the 
mlm2 script tag).

For problematic fonts, if one can identify which conjuncts work under
which 
script tag and/or with what settings for indic, then, using ConTeXt
feature 
sets one can easily fix rendering in documents by doing, for instance
 {\feature[=][devanagari-two] …}, and/or
 {\feature[=][devanagari-one] …} accordingly
 See the comprehensive wiki page: 
 https://wiki.contextgarden.net/Featuresets 
for more details on how such feautresets might be built and applied.

Now, a brief note on the transliterations macros. First, one specifies
that 
indic transliteration is desired with:
\usetransliteration[indic]

Now, one can transliterate sanskrit to and from various forms by using

\transliterate[scheme]{ … }
where scheme is one of:
    • iast to deva
    • deva to iast
    • deva to mlym
which are respectively the following schemes :
    • IAST → Devanagari
    • Devanagari → IAST
    • Devanagari → Malayalam
More schemes will be added in the near future for various other indic
scripts 
as well. Currently there is only support for sanskrit language, which
we can 
extend to other languages (wherever the script allows).

Additionally, there is also 
\definetransliteration[…][…]
which can be used to define a specific transliteration block.

So, one just sets vector accordingly to get the desired
transliteration block. 
Please see below a minimal example for both:

% SOF
\usetransliteration[indic]
\definetransliteration
    [MyIASTtoDeva]
    [color=blue,
 style=bold,
 language=sa,
 vector={iast to deva}]

\starttransliteration[MyIASTtoDeva]%[color=green]   can set a new
color here 
idaṁ śarīraṁ kaunteya kṣetramityabhidīyate.
etadyo vetti taṁ prāhuḥ kṣetrajña iti tadvidaḥ. 
\stoptransliteration

\transliteration[MyIASTtoDeva]{idaṁ śarīraṁ kaunteya
kṣetramityabhidīyate}

% or directly 
\transliterate[iast to deva]{idaṁ śarīraṁ kaunteya
kṣetramityabhidīyate}
% EOF

kauśika


__
_
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 ot

Re: [NTG-context] new upload

2022-01-21 Thread Richard Mahoney via ntg-context
Kauśika,

I've been following this thread and the related critical edition
thread
with some interest. I'm wondering, how have you found the new
input/translation method with "Shobhika Regular," a font a few of us
might be keen to use?


Best, Richard



-- 
T +6433121699  M +64210640216
rmaho...@indica-et-buddhica.org
https://indica-et-buddhica.org/

Indica et Buddhica
Littledene  Bay Road  Oxford  NZ




-Original Message-
From: kauśika via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: Hans Hagen via ntg-context 
Cc: kauśika , Aditya Mahajan via ntg-context

Subject: Re: [NTG-context] new upload
Date: Sat, 22 Jan 2022 12:51:51 +0530
X-Spam-Score: 0.0

On Saturday, January 22, 2022 11:36:57 AM IST Aditya Mahajan via ntg-
context 
wrote:
> I finally thought that I'd try out how typesetting Hindi works with
> ConTeXt,
> but I don't get the correct output.
> 
> Input: आदित्य (See complete attached file)
> 
> Output: See attached.
> 
> Note that ि  "vowel sign I" should be attached to  द "letter  da"
> but it is
> attached to  य "letter ya". Do I need to enable a particular
> feature?

Unfortunately some fonts don't work properly in ConTeXt. Noto Sans
Devanagari 
is one of them. The accompanying serif font (Noto Serif Devanagari)
works just 
fine (mostly, there are problems with that as well). 

In this specific case, there does not seem to be any fix (at least
that I could 
find).

I am trying to test many fonts and come up with a list of fonts which
work, 
partially work, don't work, etc. and fixes wherever possible.

kauśika


__
_
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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Richard Mahoney via ntg-context

Brilliant, just what was needed. Thank you.

Richard



-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/

Indica et Buddhica  Littledene  Bay Road  Oxford  NZ

-Original Message-
From: Taco Hoekwater 
To: Richard Mahoney , mailing list
for ConTeXt users 
Subject: Re: [NTG-context] Control of Titles appearing in
\completelistoftables and \completelistoffigures
Date: Wed, 25 Aug 2021 08:48:24 +0200
Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: 0.0

Hi,

There is \startplacefigure / \startplacetable , which has a ‘list’ key

  https://wiki.contextgarden.net/Command/_startplacefloat

Best wishes,
Taco

> On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context
>  wrote:
> 
> List,
> 
> I've been wondering if there is some syntax that one can use in:
> 
> \placetable or \placefigure
> 
> to control the Table of Figure Title appearing in:
> 
> \completelistoftables and \completelistoffigures
> 
> 
> At the moment one can do this for the output of:
> 
> \completecontent
> 
> with something such as the following:
> 
> \startsection[title={Title in body},list={Title in contents}]
> 
> 
> Such a thing would be *extremely* useful for a current 
> publication. :)
> 
> 
> Best, Richard
> 
> 
> 
> -- 
> T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
> IM https://t.me/rmahoney  W https://indica-et-buddhica.org/
> 
> Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
> 
> ___
> 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
> 
> ___

Taco Hoekwater
Elvenkind BV




___
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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-24 Thread Richard Mahoney via ntg-context
List,

I've been wondering if there is some syntax that one can use in:

\placetable or \placefigure

to control the Table of Figure Title appearing in:

\completelistoftables and \completelistoffigures


At the moment one can do this for the output of:

\completecontent

with something such as the following:

\startsection[title={Title in body},list={Title in contents}]


Such a thing would be *extremely* useful for a current 
publication. :)


Best, Richard



-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/

Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
___
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] Losing a character during line break at a hyphen

2021-08-21 Thread Richard Mahoney via ntg-context
List,

I can confirm that this is also an issue for me with LMTX-20210819;
"off" is typeset as "of". Is this an problem with ligatures?


Best, Richard



-- 
T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
IM https://t.me/rmahoney  W https://indica-et-buddhica.org/

Indica et Buddhica  Littledene  Bay Road  Oxford  NZ

-Original Message-
From: Bruce Horrocks via ntg-context 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Cc: Bruce Horrocks 
Subject: Re: [NTG-context] Losing a character during line break at a
hyphen
Date: Sun, 22 Aug 2021 00:27:02 +0100
Mailer: Apple Mail (2.3654.120.0.1.13)
X-Spam-Score: 0.0



> On 22 Aug 2021, at 00:12, Bruce Horrocks via ntg-context
>  wrote:
> 
> Not sure whether this is a ligature problem or a hyphenation problem
> or both!

Smaller MWE - it's not hyphenation:

\starttext Diffe \stoptext

gives "Dife".

—
Bruce Horrocks
Hampshire, UK

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