Discussion:
[scribus] Alphabetical index in Scribus
Nick Schrader
2014-06-18 19:48:29 UTC
Permalink
Hi,
is there any method to sort "Table of Contents and Indexes"
alphabetically? When I create them, they are just sorted by page number
which is not very useful for a subject index...

Regards Nick

-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigr??e : 3758 bytes
Beschreibung: S/MIME Cryptographic Signature
URL : <http://lists.scribus.net/pipermail/scribus/attachments/20140618/ed0affbf/attachment.bin>
john Culleton
2014-06-19 23:04:19 UTC
Permalink
On Wed, 18 Jun 2014 21:48:29 +0200
Post by Nick Schrader
Hi,
is there any method to sort "Table of Contents
and Indexes" alphabetically? When I create
them, they are just sorted by page number which
is not very useful for a subject index...
Regards Nick
-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde
abgetrennt... Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigr??e : 3758 bytes
Beschreibung: S/MIME Cryptographic Signature
<http://lists.scribus.net/pipermail/scribus/attachments/20140618/ed0affbf/attachment.bin>
scribus at lists.scribus.net Edit your options or
http://lists.scribus.net/mailman/listinfo/scribus
See also: http://wiki.scribus.net
http://forums.scribus.net
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain
Hosting http://www.doteasy.com
Given the early state of indexing in Scribus I
will continue to use the makeindex program from
TeX to sort and format the index data. I have two
graphic front ends to the makeindex program,
tyro, a Tcl/Tk program, and a more recent COBOL
program. Both are of my own creation. Copies on
request, in Linux format.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html
Nick Schrader
2014-06-20 11:42:40 UTC
Permalink
Post by john Culleton
On Wed, 18 Jun 2014 21:48:29 +0200
Post by Nick Schrader
Hi,
is there any method to sort "Table of Contents
and Indexes" alphabetically? When I create
them, they are just sorted by page number which
is not very useful for a subject index...
Regards Nick
-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde
abgetrennt... Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigr??e : 3758 bytes
Beschreibung: S/MIME Cryptographic Signature
<http://lists.scribus.net/pipermail/scribus/attachments/20140618/ed0affbf/attachment.bin>
scribus at lists.scribus.net Edit your options or
http://lists.scribus.net/mailman/listinfo/scribus
See also: http://wiki.scribus.net
http://forums.scribus.net
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain
Hosting http://www.doteasy.com
Given the early state of indexing in Scribus I
will continue to use the makeindex program from
TeX to sort and format the index data. I have two
graphic front ends to the makeindex program,
tyro, a Tcl/Tk program, and a more recent COBOL
program. Both are of my own creation. Copies on
request, in Linux format.
Okay, so there ain't no simple method... I just used LibreOffice Calc to
sort the whole index, usable but not ideal.
Therefore generate ToCs, copy the whole generated register into Cell A1
and Calc will recognize tabs and put each entry in a new line with the
page numbers in column B. Then sort column A alphabetically and copy
columns A and B, paste them in your register text frame and apply your
register style with F2->Styles. Bob's your uncle!

Regards Nick


-------------- n?chster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname : smime.p7s
Dateityp : application/pkcs7-signature
Dateigr??e : 3758 bytes
Beschreibung: S/MIME Cryptographic Signature
URL : <http://lists.scribus.net/pipermail/scribus/attachments/20140620/c352741d/attachment.bin>
ale rimoldi
2014-06-20 13:29:20 UTC
Permalink
hi

as far i can tell scribus still does not have an index.

and i fear that nobody has yet specified how an index would work in
scribus.

does anybody want to start a specification?

ciao
a.l.e
john Culleton
2014-06-21 13:10:59 UTC
Permalink
On Fri, 20 Jun 2014 15:29:20 +0200
Post by ale rimoldi
hi
as far i can tell scribus still does not have
an index.
and i fear that nobody has yet specified how an
index would work in scribus.
does anybody want to start a specification?
ciao
a.l.e
___
Scribus Mailing List: scribus at lists.scribus.net
http://lists.scribus.net/mailman/listinfo/scribus
http://wiki.scribus.net
http://forums.scribus.net
_______________________________________________________
Unlimited Disk, Data Transfer, PHP/MySQL Domain
Hosting http://www.doteasy.com
I do indexes for money. first one needs to
determine what level of integration with the DTP
is to to be used. There are three levels in use.

1. Most professional indexers use a
totally non-integrated approach. they receive a
final and paginated pdf from the publisher, print
it out, mark up the index items on the paper pages
and then enter the information using a separate
commercial program. The separate program
generates a file that can be added to
the book by the publisher or author.

2. The next level is semi-integration, or a tagged
index. TeX uses this technique. TeX is a
compilative system. The author works on a source
file with the suffix .tex. When a term is
encountered that needs indexing a tag is entered
at that spot. When the source file is compiled in
TeX a separate file of tagged indexed items with
the the suffix .idx is generated. This is run
through a separate program (usually makeindex)
and a file resembling the final index is created
with the suffix .ind. A command is placed at the
end of the original tex file that imports the
index and typesets it. Typically I set up a
script that runs TeX, runs makeindex, and then
runs TeX again to import the index into the pdf
document.

3. The third version used in programs such as
InDesign and Libre office, where the indexing
function is fully integrated into the main
program. Here is how Libre Office help describbes
the process:

Click in a word, or select the words in your
document that you want to use as an index
entry. Choose Insert - Indexes and Tables -
Entry, and do one of the following:

To change the text that appears in the index,
type the text that you want in the Entry box.
The text that you type here does not replace
the selected text in the document. To add an
index mark to similar words in your document,
select Apply to all similar texts. To add the
entries to a custom index, click the New
User-defined Index icon, enter the name of
the index, and then click OK.

There is a separate command that places the index
at the end of the document.

The third level is perhaps the most desirable but
is the hardest to implement. So I propose a
gradual approach. First, use my stand alone
program tyro.tcl This separate program actually
uses the makeindex program to generate the index,
but as you enter items the current version of
the index appears in a tk window.

I should mention that makeindex is not the only
TeX game in town. There is another indexing
program in the TeX suite called Xindy. It is
little used. It adds additional capabilities not
found in makeindex, principally foreign alphabet
sorting. It uses style files for various
languages. I can be used with TeX (usually LaTeX),
the nroff family, and even sgm/html systems. It
is a very geeky approach to the indexing task.
But where non-romance languages are involved its
feature set is worth inspecting.

In a little bit I will create packages for Linux
and MSwindows utilizing my Tyro program for a
stand-alone indexing capability.

Now I must go to the store before it rains :<)


John Culleton Wexford
Press Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html PDF
e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html
John Jason Jordan
2014-06-21 15:47:23 UTC
Permalink
On Sat, 21 Jun 2014 09:10:59 -0400
Post by john Culleton
I do indexes for money. first one needs to
determine what level of integration with the DTP
is to to be used. There are three levels in use.
...
Post by john Culleton
The third level is perhaps the most desirable but
is the hardest to implement. So I propose a
gradual approach. First, use my stand alone
program tyro.tcl This separate program actually
uses the makeindex program to generate the index,
but as you enter items the current version of
the index appears in a tk window.
...
Post by john Culleton
In a little bit I will create packages for Linux
and MSwindows utilizing my Tyro program for a
stand-alone indexing capability.
I am looking forward to taking tyro.tcl for a spin when it is ready.

In the meantime, are there any other free, open source standalone
programs out there?
john Culleton
2014-06-21 15:57:03 UTC
Permalink
On Sat, 21 Jun 2014 08:47:23 -0700
Post by John Jason Jordan
On Sat, 21 Jun 2014 09:10:59 -0400
Post by john Culleton
I do indexes for money. first one needs to
determine what level of integration with the
DTP is to to be used. There are three levels
in use.
...
Post by john Culleton
The third level is perhaps the most desirable
but is the hardest to implement. So I propose a
gradual approach. First, use my stand alone
program tyro.tcl This separate program actually
uses the makeindex program to generate the
index, but as you enter items the current
version of the index appears in a tk window.
...
Post by john Culleton
In a little bit I will create packages for
Linux and MSwindows utilizing my Tyro program
for a stand-alone indexing capability.
I am looking forward to taking tyro.tcl for a
spin when it is ready.
In the meantime, are there any other free, open
source standalone programs out there?
Well there is Xindy but it is not simple to set
up.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html
john Culleton
2014-06-23 12:25:30 UTC
Permalink
On Sat, 21 Jun 2014 11:57:03 -0400
Post by john Culleton
On Sat, 21 Jun 2014 08:47:23 -0700
Post by John Jason Jordan
On Sat, 21 Jun 2014 09:10:59 -0400
Post by john Culleton
I do indexes for money. first one needs to
determine what level of integration with the
DTP is to to be used. There are three levels
in use.
...
Post by john Culleton
The third level is perhaps the most desirable
but is the hardest to implement. So I
propose a gradual approach. First, use my
stand alone program tyro.tcl This separate
program actually uses the makeindex program
to generate the index, but as you enter
items the current version of the index
appears in a tk window.
...
Post by john Culleton
In a little bit I will create packages for
Linux and MSwindows utilizing my Tyro program
for a stand-alone indexing capability.
I am looking forward to taking tyro.tcl for a
spin when it is ready.
In the meantime, are there any other free,
open source standalone programs out there?
Well there is Xindy but it is not simple to set
up.
Today I will put together document describing
phase 2, still using makeindex to do the heavy
lifting.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html
pygmee
2014-06-20 13:58:51 UTC
Permalink
the days we will have a search engine that :
1. check in all the document
2. check for character styles

it will be very easy to do this. Right now we are missing both. Some might be done in python page by page and frame by frame or search in the source in which object a world with particular "invisible" car style is applied, make a list of it and then check with the API in which page they own.

challenging !

----- Mail original -----
De: "ale rimoldi" <ale.comp_06 at xox.ch>
?: scribus at lists.scribus.net
Envoy?: Vendredi 20 Juin 2014 15:29:20
Objet: Re: [scribus] Alphabetical index in Scribus

hi

as far i can tell scribus still does not have an index.

and i fear that nobody has yet specified how an index would work in
scribus.

does anybody want to start a specification?

ciao
a.l.e

___
Scribus Mailing List: scribus at lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
John Jason Jordan
2014-06-20 17:15:36 UTC
Permalink
On Fri, 20 Jun 2014 15:58:51 +0200 (CEST)
Post by pygmee
1. check in all the document
2. check for character styles
it will be very easy to do this. Right now we are missing both. Some
might be done in python page by page and frame by frame or search in
the source in which object a world with particular "invisible" car
style is applied, make a list of it and then check with the API in
which page they own.
Having written and published numerous textbooks, and having been a
student where I needed to use an index, let me point out that a good
index is not a mere afterthought. Here are some things to consider:

1) Nesting. This means making subtopics under a larger topic. If you do
want nesting, then each subtopic needs to have its own individual
entry, with a reference to the larger topic, e.g., "see <larger
topic>."

2) Main entries. Sometimes a term will appear in numerous places in the
book, but there is one place where the term is first defined for the
reader, or where the discussion is the most complete. I used to bold
the page number(s) for the main entry, but you could do italics or some
other scheme instead. And if you do this, tell the user what the bold,
etc. means with a comment at the start of the index.

3) Cross references. These are entries that say "See also."

4) With indexes, more is better. Nothing is more frustrating to the
reader than trying to find something in a book and the term is not
listed in the index. This means not only should you make an entry for
everything that you think a reader might need to look up, but you also
need to duplicate the entry under other terms that the user might use.

5) I have never found an indexing tool that did not require at least
a little manual cleanup after the index was created.

The last time I needed to create an index for a book laid out with
Scribus I was fortunate in that almost all the text was in one story. I
copied the text in that story and pasted it into LibreOffice Writer,
then manually went through the Writer document and forced page breaks
at exactly the same places as the pages broke in Scribus. Having done
this I could use the LibreOffice indexing function, which offered me
most of the above features. When I finished the index (which Writer
places at the end of the text) I made some manual edits, then copied
and pasted it into Scribus as a separate story at the end of the book.

If you want a rudimentary indexing tool for Scribus it might be possible
with a script. I can envision a script that copies a selected word in
a text frame, pastes it into another text frame at the top of the frame
(so you can see it easily, bearing in mind that the index text will
quickly overflow its frame). Then the script can add a tab at the end of
the pasted entry, insert the page number, then move to the beginning of
the entry and enter a line feed and move up to the new blank line so
you'll be ready for the next entry. When finished you can copy and paste
the entire index into a Writer document and sort it, plus make other
manual edits as desired. Writer can sort text by line, so it is not
necessary to use Calc or a Writer table for the sorting.

If someone wants to embellish the script it could have an option to
bold or italicize the page number for main entries and an option to add
"see also" instead of a page number. Nesting might be more difficult to
script.

Another script could sort a story on a line by line basis, eliminating
the need for a LibreOffice detour.

A script such as I envision above should not be difficult to implement,
but a true indexing tool would have the ability to change the page
numbers if the entry moves to a different page. In other words, you'd
have to be sure you used the script only after you were sure that there
were going to be no further edits to the book that might alter the
pagination..

It might also be possible to create a script that would generate an
index by searching for a specific character style. For example, I could
create a character style called Index_entry, then go through the book
and apply it to every term that I want in the index. When I have
finished I can use the script, which would search the entire work and
generate the index in a separate frame. If you want the capability of
having main entries you could create two character styles; one for
regular entries and one for main entries, so the script would bold or
italicize the page number when it finds a main entry character style.
An advantage of this approach is that if the page numbers change you
can just regenerate the index, although you'd lose any manual edits to
the index.

Yet another option might be to create a separate indexing program that
would work on a PDF file. I dont know if such programs currently exist,
but if so they are probably not free and open source. Note, however,
that if you index based on a PDF you'd have to be sure that you didn't
outline any fonts when exporting from Scribus. An advantage of a
separate PDF indexer is that it could be used on any PDF file, not just
PDFs created from Scribus. This would increase its popularity, and
concomitantly the number of potential developers.

I offer the above just as thoughts for further discussion. It would be
cool to have an indexing tool for Scribus, even if it is not as fully
capable as we might wish.
Jean-Paul Gendner
2014-06-20 19:15:20 UTC
Permalink
I completely agree with you on the importance and the difficulty to
make a good Index.
I have created books with a two levels index by using the Microsoft
Word well possibilities.
I found very well your idea to use two different style names to
specify two index levels.

Regards,
Jean-Paul

****************
Jean-Paul Gendner
Site : f5bu.fr

-----Message d'origine-----
De?: John Jason Jordan [mailto:johnxj at comcast.net]
Envoy??: vendredi 20 juin 2014 19:16
??: scribus at lists.scribus.net
Objet?: Re: [scribus] Alphabetical index in Scribus

On Fri, 20 Jun 2014 15:58:51 +0200 (CEST)
Post by pygmee
1. check in all the document
2. check for character styles
it will be very easy to do this. Right now we are missing both. Some
might be done in python page by page and frame by frame or search in
the source in which object a world with particular "invisible" car
style is applied, make a list of it and then check with the API in
which page they own.
Having written and published numerous textbooks, and having been a
student where I needed to use an index, let me point out that a good
index is not a mere afterthought. Here are some things to consider:

1) Nesting. This means making subtopics under a larger topic. If you do
want nesting, then each subtopic needs to have its own individual
entry, with a reference to the larger topic, e.g., "see <larger
topic>."

2) Main entries. Sometimes a term will appear in numerous places in the
book, but there is one place where the term is first defined for the
reader, or where the discussion is the most complete. I used to bold
the page number(s) for the main entry, but you could do italics or some
other scheme instead. And if you do this, tell the user what the bold,
etc. means with a comment at the start of the index.

3) Cross references. These are entries that say "See also."

4) With indexes, more is better. Nothing is more frustrating to the
reader than trying to find something in a book and the term is not
listed in the index. This means not only should you make an entry for
everything that you think a reader might need to look up, but you also
need to duplicate the entry under other terms that the user might use.

5) I have never found an indexing tool that did not require at least
a little manual cleanup after the index was created.

The last time I needed to create an index for a book laid out with
Scribus I was fortunate in that almost all the text was in one story. I
copied the text in that story and pasted it into LibreOffice Writer,
then manually went through the Writer document and forced page breaks
at exactly the same places as the pages broke in Scribus. Having done
this I could use the LibreOffice indexing function, which offered me
most of the above features. When I finished the index (which Writer
places at the end of the text) I made some manual edits, then copied
and pasted it into Scribus as a separate story at the end of the book.

If you want a rudimentary indexing tool for Scribus it might be possible
with a script. I can envision a script that copies a selected word in
a text frame, pastes it into another text frame at the top of the frame
(so you can see it easily, bearing in mind that the index text will
quickly overflow its frame). Then the script can add a tab at the end of
the pasted entry, insert the page number, then move to the beginning of
the entry and enter a line feed and move up to the new blank line so
you'll be ready for the next entry. When finished you can copy and paste
the entire index into a Writer document and sort it, plus make other
manual edits as desired. Writer can sort text by line, so it is not
necessary to use Calc or a Writer table for the sorting.

If someone wants to embellish the script it could have an option to
bold or italicize the page number for main entries and an option to add
"see also" instead of a page number. Nesting might be more difficult to
script.

Another script could sort a story on a line by line basis, eliminating
the need for a LibreOffice detour.

A script such as I envision above should not be difficult to implement,
but a true indexing tool would have the ability to change the page
numbers if the entry moves to a different page. In other words, you'd
have to be sure you used the script only after you were sure that there
were going to be no further edits to the book that might alter the
pagination..

It might also be possible to create a script that would generate an
index by searching for a specific character style. For example, I could
create a character style called Index_entry, then go through the book
and apply it to every term that I want in the index. When I have
finished I can use the script, which would search the entire work and
generate the index in a separate frame. If you want the capability of
having main entries you could create two character styles; one for
regular entries and one for main entries, so the script would bold or
italicize the page number when it finds a main entry character style.
An advantage of this approach is that if the page numbers change you
can just regenerate the index, although you'd lose any manual edits to
the index.

Yet another option might be to create a separate indexing program that
would work on a PDF file. I dont know if such programs currently exist,
but if so they are probably not free and open source. Note, however,
that if you index based on a PDF you'd have to be sure that you didn't
outline any fonts when exporting from Scribus. An advantage of a
separate PDF indexer is that it could be used on any PDF file, not just
PDFs created from Scribus. This would increase its popularity, and
concomitantly the number of potential developers.

I offer the above just as thoughts for further discussion. It would be
cool to have an indexing tool for Scribus, even if it is not as fully
capable as we might wish.

___
Scribus Mailing List: scribus at lists.scribus.net
Edit your options or unsubscribe:
http://lists.scribus.net/mailman/listinfo/scribus
See also:
http://wiki.scribus.net
http://forums.scribus.net
Kunda Loves Scribus
2014-06-21 02:18:38 UTC
Permalink
On Fri, Jun 20, 2014 at 12:15 PM, John Jason Jordan <johnxj at comcast.net>
Post by John Jason Jordan
On Fri, 20 Jun 2014 15:58:51 +0200 (CEST)
Post by pygmee
1. check in all the document
2. check for character styles
it will be very easy to do this. Right now we are missing both. Some
might be done in python page by page and frame by frame or search in
the source in which object a world with particular "invisible" car
style is applied, make a list of it and then check with the API in
which page they own.
Having written and published numerous textbooks, and having been a
student where I needed to use an index, let me point out that a good
1) Nesting. This means making subtopics under a larger topic. If you do
want nesting, then each subtopic needs to have its own individual
entry, with a reference to the larger topic, e.g., "see <larger
topic>."
2) Main entries. Sometimes a term will appear in numerous places in the
book, but there is one place where the term is first defined for the
reader, or where the discussion is the most complete. I used to bold
the page number(s) for the main entry, but you could do italics or some
other scheme instead. And if you do this, tell the user what the bold,
etc. means with a comment at the start of the index.
3) Cross references. These are entries that say "See also."
4) With indexes, more is better. Nothing is more frustrating to the
reader than trying to find something in a book and the term is not
listed in the index. This means not only should you make an entry for
everything that you think a reader might need to look up, but you also
need to duplicate the entry under other terms that the user might use.
5) I have never found an indexing tool that did not require at least
a little manual cleanup after the index was created.
The last time I needed to create an index for a book laid out with
Scribus I was fortunate in that almost all the text was in one story. I
copied the text in that story and pasted it into LibreOffice Writer,
then manually went through the Writer document and forced page breaks
at exactly the same places as the pages broke in Scribus. Having done
this I could use the LibreOffice indexing function, which offered me
most of the above features. When I finished the index (which Writer
places at the end of the text) I made some manual edits, then copied
and pasted it into Scribus as a separate story at the end of the book.
If you want a rudimentary indexing tool for Scribus it might be possible
with a script. I can envision a script that copies a selected word in
a text frame, pastes it into another text frame at the top of the frame
(so you can see it easily, bearing in mind that the index text will
quickly overflow its frame). Then the script can add a tab at the end of
the pasted entry, insert the page number, then move to the beginning of
the entry and enter a line feed and move up to the new blank line so
you'll be ready for the next entry. When finished you can copy and paste
the entire index into a Writer document and sort it, plus make other
manual edits as desired. Writer can sort text by line, so it is not
necessary to use Calc or a Writer table for the sorting.
If someone wants to embellish the script it could have an option to
bold or italicize the page number for main entries and an option to add
"see also" instead of a page number. Nesting might be more difficult to
script.
Another script could sort a story on a line by line basis, eliminating
the need for a LibreOffice detour.
A script such as I envision above should not be difficult to implement,
but a true indexing tool would have the ability to change the page
numbers if the entry moves to a different page. In other words, you'd
have to be sure you used the script only after you were sure that there
were going to be no further edits to the book that might alter the
pagination..
It might also be possible to create a script that would generate an
index by searching for a specific character style. For example, I could
create a character style called Index_entry, then go through the book
and apply it to every term that I want in the index. When I have
finished I can use the script, which would search the entire work and
generate the index in a separate frame. If you want the capability of
having main entries you could create two character styles; one for
regular entries and one for main entries, so the script would bold or
italicize the page number when it finds a main entry character style.
An advantage of this approach is that if the page numbers change you
can just regenerate the index, although you'd lose any manual edits to
the index.
Yet another option might be to create a separate indexing program that
would work on a PDF file. I dont know if such programs currently exist,
but if so they are probably not free and open source. Note, however,
that if you index based on a PDF you'd have to be sure that you didn't
outline any fonts when exporting from Scribus. An advantage of a
separate PDF indexer is that it could be used on any PDF file, not just
PDFs created from Scribus. This would increase its popularity, and
concomitantly the number of potential developers.
I offer the above just as thoughts for further discussion. It would be
cool to have an indexing tool for Scribus, even if it is not as fully
capable as we might wish.
I learn so much from this ML. Thanks for taking the time to elaborate John!
Cheers,
/Kunda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20140620/79258c6a/attachment.html>
Loading...