ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Index items
       [not found] <mailman.128.1429191487.8971.ntg-context@ntg.nl>
@ 2015-04-16 18:08 ` Robert Blackstone
  2015-04-19  7:47 ` Index items (additional question) Robert Blackstone
  1 sibling, 0 replies; 10+ messages in thread
From: Robert Blackstone @ 2015-04-16 18:08 UTC (permalink / raw)
  To: ntg-context


On 16 Apr 2015, at 15:38 , Hans Hagen <pragma@wxs.nl> wrote
> To: mailing list for ConTeXt users <ntg-context@ntg.nl>
> Subject: Re: [NTG-context] Index items
> Message-ID: <552FBB35.9050707@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/15/2015 11:41 PM, Robert Blackstone wrote:
>> 
>> On 15 Apr 2015, at 19:51 ,  Alan BRASLAU <alan.braslau@cea.fr> wrote
>>> Hans Hagen <pragma@wxs.nl> wrote:
>>> 
>>>> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
>>>>> Dear all,
>>>>> 
>>>>> The book I am typesetting contains a very extensive and detailed
>>>>> index. The number of index items is probably around 1200, 16 pages.
>>>>> A fair number of them occur in more than one chapter.
>>>>> Like bibliography items, and for the sake of consistency, I have
>>>>> stored them in some auxiliary files and it is a matter of copy and
>>>>> paste to get them into the text in the proper place and way. (With
>>>>> always a risk of accidentally deleting or adding a spurious brace
>>>>> or bracket, with nasty results.)
>>>>> 
>>>>> I wonder therefore whether it would be possible to handle them like
>>>>> bibliography items, by means of a key, and leave their expansion to
>>>>> ConTeXt.
>>>>> 
>>>>> Would it be possible?
>>>>> And if it is not (yet) possible, how could I perhaps tackle it?
>>>> 
>>>> so you want to remap given index entries to new ones? at what moment?
>>> 
>>> We index pretty heavily now in the new bibliography dataset subsystem,
>>> that is one can create an index of authors, an index of keywords, an
>>> index of titles, etc. as well as index the pages on which a reference
>>> is cited. All of the information is there.
>>> 
>>> So say that you want to create a database of anything: words, images,
>>> phrases. You can put these into the database structure and then insert
>>> them or any associated information wherever you want in your text,
>>> later producing lists and indexes.
>>> 
>>> Can you give an example of what type of information you extensively
>>> index with detail?
>>> 
>>> Alan
>> Hi Alan,
>>  I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent).
>> 
>>  Hi Hans,
>> Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed.
>> 
>> In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example.
>> The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes.
> 
> \startluacode
> 
>     document.indexentries = {
>         ["rule"]          = [[Rule(s)]],
>         ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
>         ["galilei"]       = [[Galilei, Vincenzo]],
>     }
> 
>     function document.getindexentry(n)
>         context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" .. 
> n .. ">"))
>     end
> 
> \stopluacode
> 
> \unexpanded\def\InEn[#1]%
>   {\ctxlua{document.getindexentry("#1")}}
> 
> \starttext
> That this rule
> \InEn[rule]
> \InEn[ruleimperfect] was not applied by everybody is for example shown 
> in {\em Fronimo}%
> \InEn[galilei]
> 
> etc etc

Wow, this is super! Great improvement, also for the readability of the text.
Thank you very much, Hans.

Kind regards,
Robert

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items (additional question)
       [not found] <mailman.128.1429191487.8971.ntg-context@ntg.nl>
  2015-04-16 18:08 ` Index items Robert Blackstone
@ 2015-04-19  7:47 ` Robert Blackstone
  2015-04-19  9:50   ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2015-04-19  7:47 UTC (permalink / raw)
  To: ntg-context


On 16 Apr 2015, at 15:38 , Hans Hagen <pragma@wxs.nl> gave me the following:

> \startluacode
> 
>     document.indexentries = {
>         ["rule"]          = [[Rule(s)]],
>         ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
>         ["galilei"]       = [[Galilei, Vincenzo]],
>     }
> 
>     function document.getindexentry(n)
>         context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" .. 
> n .. ">"))
>     end
> 
> \stopluacode
> 
> \unexpanded\def\InEn[#1]%
>   {\ctxlua{document.getindexentry("#1")}}
> 
> \starttext
> That this rule
> \InEn[rule]
> \InEn[ruleimperfect] was not applied by everybody is for example shown 
> in {\em Fronimo}%
> \InEn[galilei]
> 
> etc etc

Hi Hans,
sorry to bother you again on this topic.

This code works beautifully in this way, with only a few index entries  at the top of the file, before \starttext. 
But how can I deal with the thousand or more index items in my project, which I have collected in four separate dedicated files with indexentries, like the three shown in the example-code.

I have really no idea  what else should be in these files,  what sort of name they should have, in particular extension,  and how and where I can input them.
I use TeXShop as my texteditor but that is probably not relevant here.

Can you give me some guidance, please?

Thanks in advance.

Best regards,
Robert Blackstone


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items (additional question)
  2015-04-19  7:47 ` Index items (additional question) Robert Blackstone
@ 2015-04-19  9:50   ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2015-04-19  9:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/19/2015 9:47 AM, Robert Blackstone wrote:
>
> On 16 Apr 2015, at 15:38 , Hans Hagen <pragma@wxs.nl> gave me the following:
>
>> \startluacode
>>
>>      document.indexentries = {
>>          ["rule"]          = [[Rule(s)]],
>>          ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
>>          ["galilei"]       = [[Galilei, Vincenzo]],
>>      }
>>
>>      function document.getindexentry(n)
>>          context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" ..
>> n .. ">"))
>>      end
>>
>> \stopluacode
>>
>> \unexpanded\def\InEn[#1]%
>>    {\ctxlua{document.getindexentry("#1")}}
>>
>> \starttext
>> That this rule
>> \InEn[rule]
>> \InEn[ruleimperfect] was not applied by everybody is for example shown
>> in {\em Fronimo}%
>> \InEn[galilei]
>>
>> etc etc
>
> Hi Hans,
> sorry to bother you again on this topic.
>
> This code works beautifully in this way, with only a few index entries  at the top of the file, before \starttext.
> But how can I deal with the thousand or more index items in my project, which I have collected in four separate dedicated files with indexentries, like the three shown in the example-code.
>
> I have really no idea  what else should be in these files,  what sort of name they should have, in particular extension,  and how and where I can input them.
> I use TeXShop as my texteditor but that is probably not relevant here.
>
> Can you give me some guidance, please?

\startluacode

     document.indexentries = {
         ["rule"]          = [[Rule(s)]],
         ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
         ["galilei"]       = [[Galilei, Vincenzo]],
     }

     function document.loadindexentries(filename)
         local fullname = resolvers.findfile(filename)
         if fullname ~= "" then
             local data = io.loaddata(fullname)
             for a, b  in string.gmatch(data,"%s*(%S+)%s+([^\n\r]+)") do
                 document.indexentries[a] = b
             end
         end
     end

     function document.getindexentry(n)
         local ie = document.indexentries[n]
         if not ie then
             logs.report("index","missing entry %a",n)
         end
         context("\\index[%s]{%s}",n,ie or ("<" .. n .. ">"))
     end

\stopluacode

\unexpanded\def\LoadInEn[#1]{\ctxlua{document.loadindexentries("#1")}}
\unexpanded\def\InEn    [#1]{\ctxlua{document.getindexentry("#1")}}

\LoadInEn[whatever.txt]

\starttext
That this rule
\InEn[rule]
\InEn[ruleimperfect] was not applied by everybody is for example shown 
in {\em Fronimo}%
\InEn[galilei]

\InEn[unknown]

etc etc

\InEn[GalileiFronimo]
\InEn[Cadence]
\InEn[CadenceP]
\InEn[PlagalCad]
\index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's 
treatise on lute playing and the intabulation%
\index[Intabulation]{intabulation}  of vocal music.
\page

whatever.txt:

GalileiFronimo +{\em Fronimo}
Cadence        cadence(s)
CadenceP       + plagal
PlagalCad      plagal cadence


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
  2015-04-15 21:41 ` Robert Blackstone
@ 2015-04-16 13:37   ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2015-04-16 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/15/2015 11:41 PM, Robert Blackstone wrote:
>
> On 15 Apr 2015, at 19:51 ,  Alan BRASLAU <alan.braslau@cea.fr> wrote
>> Hans Hagen <pragma@wxs.nl> wrote:
>>
>>> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
>>>> Dear all,
>>>>
>>>> The book I am typesetting contains a very extensive and detailed
>>>> index. The number of index items is probably around 1200, 16 pages.
>>>> A fair number of them occur in more than one chapter.
>>>> Like bibliography items, and for the sake of consistency, I have
>>>> stored them in some auxiliary files and it is a matter of copy and
>>>> paste to get them into the text in the proper place and way. (With
>>>> always a risk of accidentally deleting or adding a spurious brace
>>>> or bracket, with nasty results.)
>>>>
>>>> I wonder therefore whether it would be possible to handle them like
>>>> bibliography items, by means of a key, and leave their expansion to
>>>> ConTeXt.
>>>>
>>>> Would it be possible?
>>>> And if it is not (yet) possible, how could I perhaps tackle it?
>>>
>>> so you want to remap given index entries to new ones? at what moment?
>>
>> We index pretty heavily now in the new bibliography dataset subsystem,
>> that is one can create an index of authors, an index of keywords, an
>> index of titles, etc. as well as index the pages on which a reference
>> is cited. All of the information is there.
>>
>> So say that you want to create a database of anything: words, images,
>> phrases. You can put these into the database structure and then insert
>> them or any associated information wherever you want in your text,
>> later producing lists and indexes.
>>
>> Can you give an example of what type of information you extensively
>> index with detail?
>>
>> Alan
> Hi Alan,
>   I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent).
>
>   Hi Hans,
> Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed.
>
> In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example.
> The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes.

\startluacode

     document.indexentries = {
         ["rule"]          = [[Rule(s)]],
         ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
         ["galilei"]       = [[Galilei, Vincenzo]],
     }

     function document.getindexentry(n)
         context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" .. 
n .. ">"))
     end

\stopluacode

\unexpanded\def\InEn[#1]%
   {\ctxlua{document.getindexentry("#1")}}

\starttext
That this rule
\InEn[rule]
\InEn[ruleimperfect] was not applied by everybody is for example shown 
in {\em Fronimo}%
\InEn[galilei]

etc etc

> Kind regards,
>
> Robert Blackstone
> ====================================================================================
> \starttext
> That this rule%
> \index[Rule]{Rule(s)}%%
> \index[RuleImperfect]{ + \quote{imperfect to perfect, from}} was not applied by everybody is for example shown in {\em Fronimo}%
> \index[Galilei]{Galilei, Vincenzo}%
> \index[GalileiFronimo]{ +{\em Fronimo}}%
> \index[Cadence]{cadence(s)}%%
> \index[CadenceP]{ + plagal}%
> \index[PlagalCad]{plagal cadence}%
> \index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's treatise on lute playing and the intabulation%
> \index[Intabulation]{intabulation}  of vocal music.
> \page
> Artusi\index[Artusi]{Artusi, Giovanni Maria}  showed examples (Ex.~4.34) with parallel 4th%
> \index[Dissonance]{dissonance(s)}%
> \index[Dissonance4]{ + 4th(s)}%
> \index[Dissonance4Parall]{ + + 	parallel}s and 7th%
> \index[Dissonance]{dissonance(s)}%
> \index[Dissonance7]{ + 7th(s)}%
> \index[Dissonance7Paral]{ + + 	parallel}s in a contrapuntally oriented fashion. These parallels were to appear in works with basso continuo around 1610 but now between the bass and the solo part. They occur in vocal and instrumental music as well as in works for keyboard solo. Most examples have parallel 7th%
> \index[Dissonance]{dissonance(s)}%
> \index[Dissonance7]{ + 7th(s)}%
> \index[Dissonance7Paral]{ + + 	parallel}s but some examples of parallel 4th%
> \index[Dissonance]{dissonance(s)}%
> \index[Dissonance4]{ + 4th(s)}%
> \index[Dissonance4Parall]{ + + 	parallel}s and 2nd%
> \index[Dissonance]{dissonance(s)}%
> \index[Dissonance2Parall]{ + + parallel}s can be found as well.
>
> \setupregister[index][indicator=yes]
> \completeindex[compress=yes]
> \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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________
>


-- 

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
  2015-04-16  7:50 Index items Robert Blackstone
@ 2015-04-16 10:48 ` Alan BRASLAU
  0 siblings, 0 replies; 10+ messages in thread
From: Alan BRASLAU @ 2015-04-16 10:48 UTC (permalink / raw)
  To: Robert Blackstone; +Cc: ntg-context

On Thu, 16 Apr 2015 09:50:23 +0200
Robert Blackstone <blackstone.robert@gmail.com> wrote:

> Hi,
> Same subject as in my previous post but a new question:
> On the ConTeXt wiki-page Command\index one finds:
> 
> \index[...][...][…]
> […] text
> […] text
> […] text
> 
> What is the first argument for? Could it somehow be used to provide a
> key?

The key is used allow proper alphabetization of the entries,
also for alternate formatting of some entries.
I do not know about three (or two) argument variants.

\index{entry}
\index[key]{entry}
\index[form::]{entry}
\index[form::key]{entry}
\index{form::entry}
\index[key]{form::entry}
\index[form::]{form::entry}
\index[form::key]{form::entry}

(p.176 of The Manual)


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.braslau@cea.fr
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
@ 2015-04-16  7:50 Robert Blackstone
  2015-04-16 10:48 ` Alan BRASLAU
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2015-04-16  7:50 UTC (permalink / raw)
  To: ntg-context


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

Hi,
Same subject as in my previous post but a new question:
On the ConTeXt wiki-page Command\index one finds:

\index[...][...][…]
[…] text
[…] text
[…] text

What is the first argument for? Could it somehow be used to provide a key?

Another point, just for the sake of completeness: the example in my previous post yesterday, in ntg-context Digest, Vol 130, Issue 51,
contains a small error, or rather an omission. Not damaging for the example. Corrected in the book.

Best regards,
Robert Blackstone





 

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

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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
       [not found] <mailman.120.1429120262.8971.ntg-context@ntg.nl>
@ 2015-04-15 21:41 ` Robert Blackstone
  2015-04-16 13:37   ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2015-04-15 21:41 UTC (permalink / raw)
  To: ntg-context


On 15 Apr 2015, at 19:51 ,  Alan BRASLAU <alan.braslau@cea.fr> wrote
> Hans Hagen <pragma@wxs.nl> wrote:
> 
>> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
>>> Dear all,
>>> 
>>> The book I am typesetting contains a very extensive and detailed
>>> index. The number of index items is probably around 1200, 16 pages.
>>> A fair number of them occur in more than one chapter.
>>> Like bibliography items, and for the sake of consistency, I have
>>> stored them in some auxiliary files and it is a matter of copy and
>>> paste to get them into the text in the proper place and way. (With
>>> always a risk of accidentally deleting or adding a spurious brace
>>> or bracket, with nasty results.)
>>> 
>>> I wonder therefore whether it would be possible to handle them like
>>> bibliography items, by means of a key, and leave their expansion to
>>> ConTeXt.
>>> 
>>> Would it be possible?
>>> And if it is not (yet) possible, how could I perhaps tackle it?  
>> 
>> so you want to remap given index entries to new ones? at what moment?
> 
> We index pretty heavily now in the new bibliography dataset subsystem,
> that is one can create an index of authors, an index of keywords, an
> index of titles, etc. as well as index the pages on which a reference
> is cited. All of the information is there.
> 
> So say that you want to create a database of anything: words, images,
> phrases. You can put these into the database structure and then insert
> them or any associated information wherever you want in your text,
> later producing lists and indexes.
> 
> Can you give an example of what type of information you extensively
> index with detail?
> 
> Alan
Hi Alan,
 I realize that I have not yet reacted to Hans’ reply. So let me do that first (it was written but not yet sent).

 Hi Hans, 
Do I want to remap given index entries? Assuming I understand your reply correctly the answer is: Yes, in principle. I would want to be able to change them if there are errors, or if some publisher has different views about the presentation of titles of items that are in the index (titles of songs, for instance). And also when (parts of) the text has (have) to be reused for other purposes. Change them in one operation, that is, not by digging up all occurrences in the book of the item that has to be changed.

In answer to Alan’s question: names, theoretical treatises and manuscripts, musical works, musical terms. Nearly all examples in the book have several features that have to be indexed: composer’s name, title of the published work (an opera for instance), title of the particular aria of which the example shows a fragment, and the special features that are shown in the example, parallel 7ths, for example.
The not-so-minimal example below (best processed iwth mkiv) gives an impression, also of the optical clumsiness that makes the unprocessed text practically unreadable. That is another reason why I would like to be able to call an index entry by means of some sort of key, like in bibliographic items for footnotes.

Kind regards,

Robert Blackstone
====================================================================================
\starttext
That this rule%
\index[Rule]{Rule(s)}%%
\index[RuleImperfect]{ + \quote{imperfect to perfect, from}} was not applied by everybody is for example shown in {\em Fronimo}%
\index[Galilei]{Galilei, Vincenzo}%
\index[GalileiFronimo]{ +{\em Fronimo}}%
\index[Cadence]{cadence(s)}%%
\index[CadenceP]{ + plagal}%
\index[PlagalCad]{plagal cadence}%
\index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's treatise on lute playing and the intabulation%
\index[Intabulation]{intabulation}  of vocal music.
\page
Artusi\index[Artusi]{Artusi, Giovanni Maria}  showed examples (Ex.~4.34) with parallel 4th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance4]{ + 4th(s)}%
\index[Dissonance4Parall]{ + + 	parallel}s and 7th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance7]{ + 7th(s)}%
\index[Dissonance7Paral]{ + + 	parallel}s in a contrapuntally oriented fashion. These parallels were to appear in works with basso continuo around 1610 but now between the bass and the solo part. They occur in vocal and instrumental music as well as in works for keyboard solo. Most examples have parallel 7th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance7]{ + 7th(s)}%
\index[Dissonance7Paral]{ + + 	parallel}s but some examples of parallel 4th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance4]{ + 4th(s)}%
\index[Dissonance4Parall]{ + + 	parallel}s and 2nd%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance2Parall]{ + + parallel}s can be found as well. 

\setupregister[index][indicator=yes]
\completeindex[compress=yes]
\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
  2015-04-14 16:50 ` Hans Hagen
@ 2015-04-15 16:58   ` Alan BRASLAU
  0 siblings, 0 replies; 10+ messages in thread
From: Alan BRASLAU @ 2015-04-15 16:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 14 Apr 2015 18:50:49 +0200
Hans Hagen <pragma@wxs.nl> wrote:

> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
> > Dear all,
> >
> > The book I am typesetting contains a very extensive and detailed
> > index. The number of index items is probably around 1200, 16 pages.
> > A fair number of them occur in more than one chapter.
> > Like bibliography items, and for the sake of consistency, I have
> > stored them in some auxiliary files and it is a matter of copy and
> > paste to get them into the text in the proper place and way. (With
> > always a risk of accidentally deleting or adding a spurious brace
> > or bracket, with nasty results.)
> >
> > I wonder therefore whether it would be possible to handle them like
> > bibliography items, by means of a key, and leave their expansion to
> > ConTeXt.
> >
> > Would it be possible?
> > And if it is not (yet) possible, how could I perhaps tackle it?  
> 
> so you want to remap given index entries to new ones? at what moment?

We index pretty heavily now in the new bibliography dataset subsystem,
that is one can create an index of authors, an index of keywords, an
index of titles, etc. as well as index the pages on which a reference
is cited. All of the information is there.

So say that you want to create a database of anything: words, images,
phrases. You can put these into the database structure and then insert
them or any associated information wherever you want in your text,
later producing lists and indexes.

Can you give an example of what type of information you extensively
index with detail?

Alan
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Index items
  2015-04-14 11:48 Robert Blackstone
@ 2015-04-14 16:50 ` Hans Hagen
  2015-04-15 16:58   ` Alan BRASLAU
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2015-04-14 16:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 4/14/2015 1:48 PM, Robert Blackstone wrote:
> Dear all,
>
> The book I am typesetting contains a very extensive and detailed index.
> The number of index items is probably around 1200, 16 pages.
> A fair number of them occur in more than one chapter.
> Like bibliography items, and for the sake of consistency, I have stored
> them in some auxiliary files and it is a matter of copy and paste to get
> them into the text in the proper place and way. (With always a risk of
> accidentally deleting or adding a spurious brace or bracket, with nasty
> results.)
>
> I wonder therefore whether it would be possible to handle them like
> bibliography items, by means of a key, and leave their expansion to ConTeXt.
>
> Would it be possible?
> And if it is not (yet) possible, how could I perhaps tackle it?

so you want to remap given index entries to new ones? at what moment?



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Index items
@ 2015-04-14 11:48 Robert Blackstone
  2015-04-14 16:50 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2015-04-14 11:48 UTC (permalink / raw)
  To: ntg-context


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

Dear all,

The book I am typesetting contains a very extensive and detailed index. The number of index items is probably around 1200, 16 pages. 
A fair number of them occur in more than one chapter.
Like bibliography items, and for the sake of consistency, I have stored them in some auxiliary files and it is a matter of copy and paste to get them into the text in the proper place and way. (With always a risk of accidentally deleting or adding a spurious brace or bracket, with nasty results.)

I wonder therefore whether it would be possible to handle them like bibliography items, by means of a key, and leave their expansion to ConTeXt.

Would it be possible?
And if it is not (yet) possible, how could I perhaps tackle it?

Thanks for any advice.

Best regards,

Robert Blackstone

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

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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2015-04-19  9:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.128.1429191487.8971.ntg-context@ntg.nl>
2015-04-16 18:08 ` Index items Robert Blackstone
2015-04-19  7:47 ` Index items (additional question) Robert Blackstone
2015-04-19  9:50   ` Hans Hagen
2015-04-16  7:50 Index items Robert Blackstone
2015-04-16 10:48 ` Alan BRASLAU
     [not found] <mailman.120.1429120262.8971.ntg-context@ntg.nl>
2015-04-15 21:41 ` Robert Blackstone
2015-04-16 13:37   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2015-04-14 11:48 Robert Blackstone
2015-04-14 16:50 ` Hans Hagen
2015-04-15 16:58   ` Alan BRASLAU

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