![]() |
#16 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
|
Wow,
That is news to me! I am not a big user of index generation and so never learned that. Thank you! |
![]() |
![]() |
![]() |
#17 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
![]() @Doitsu Very nice. Thanks for your explanations. Thanks all for your replies. My apologies for these dumb questions but, as a Linux user, I have been out of the ball game quite a long time. Now because of the kindness of eschwartz who provides a very useful and up-to-date Arch package, I can taste the goodness of the new Sigil. Last edited by roger64; 12-22-2015 at 04:14 AM. Reason: corrected |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Oh, you're an Arch user?
![]() FWIW, the Arch Linux devs are very good at keeping it up-to-date, but 'tis true if you want to take advantage of bugfixes as they come in, my AUR package which builds from git is pretty handy. ![]() |
![]() |
![]() |
![]() |
#19 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Just a nephew (Antergos) but I use Arch and, from time to time Aur repos and packages.
A new question: my paperbook has one entry like this: Code:
noir(e) How should I write this entry under the "Text to include" tab? Last edited by roger64; 12-24-2015 at 03:55 AM. Reason: typo |
![]() |
![]() |
![]() |
#20 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
You can use regular expressions in the Text to include box. I.e. you could use:
Text to include: noir[es]* Index Entries: noir EDIT: I forgot the final asterisk; without it the regex won't mach "noir." I added it to this post. Last edited by Doitsu; 12-24-2015 at 07:26 AM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I am confused. In the online help, it is written [Ww]illow which means either Willow or willow
If I use: Text to include: noir[es] does not mean: index only noire and noirs ? or it will index noir noire noirs? In fact I am looking for noir and noire. the second one is feminine. Last edited by roger64; 12-24-2015 at 04:23 AM. Reason: confused |
![]() |
![]() |
![]() |
#22 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
|
![]() |
![]() |
![]() |
#23 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
noir[es]* will match noir, noire, noirs and noires if you don't want to include the masculine and feminine plural forms, simply use noir[e]*. Last edited by Doitsu; 12-24-2015 at 07:26 AM. |
|
![]() |
![]() |
![]() |
#24 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@Doitsu
Excellent! Thanks for your explanation and patience ![]() |
![]() |
![]() |
![]() |
#25 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
and noirse, and noireee, and noirsssessessese
Quote:
I'd use noire?s? or noire? (if I'm right with the regex dialect). The ? means that the previous item (previous letter in this case) may appear only 0 or 1 time. Or, if you don't want to think too much: noir|noire |
|
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
IMHO, that would be the safest option. @roger64: You might want to adopt Jellby's suggestion and simply search for all variants using the following syntax: noir|noire|noirs|noires Of course you could also simply generate one entry for each variation. For example: Code:
Text to include Index entries noir noir noire noir noirs noir noires noir |
|
![]() |
![]() |
![]() |
#27 | |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,549
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Quote:
? zero or one * zero or more |
|
![]() |
![]() |
![]() |
#28 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,729
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#29 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
|
![]() |
![]() |
![]() |
#30 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,625
Karma: 3120635
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
A practical test
Hi I did a test using 30 entries (out of a 550 medium-size index) from a French book. It was mostly successful though some quirks seem to need to be ironed out. Please find attached here in the zip file: - petiteliste.txt which is the text file I used to import and generate the index - index.xhtml which is the index output that Sigil 9.2. (Linux Arch build) produced. You can reproduce it by copying the text list in any EPUB text file. I also provided a screenshot of the index file in Sigil. I - Two points that probably need to be considered. 1. Entries sorted out of the beginning of the alphabetical order. For no reason than I can explain, some entries were classed right at the beginning of the alphabetical order under no heading. Here you can see it happen for Armani, but not Acton and for apparat and ascot but for not other words beginning with an a. In the medium-sized index, this phenomenon did happen too and the entries concerned (between 5 to 10% of the total amount) seemed to be chosen randomly. 2. Letters with diacritics classed at the end of the alphabetical order. Some words beginning with an accented letter (like âge or écossais) are sorted out under their own heading at the end of the alphabetical order. For the French language at least, they should be classed like if there was no diacritic: for example to be on the light side, in a French dictionary you can find âge between say affreux and agonie. II - Practical tips. 3. Using exclusively the vertical bar (pipe). In previous tries, I had problems with "Text to include" entries containing these very valid regex: (?i), [es] which were not dealt with but reproduced as such in the entry list. I dropped them totally and used exclusively the pipe (|) which works quite reliably for processing the index and can cope with all the cases I need. I do not know if this problem comes from my Linux build or can be reproduced with other instances of Sigil. 4. Using a fixed value for the tab. I used a Linux text editor named gedit to prepare the text file. I found handy to specify it in the Preferences to keep a fixed value for the tab (I chose 24). This allows for a more unified presentation. Last edited by roger64; 12-25-2015 at 05:56 AM. Reason: pipe and alphabetical order |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about indexing on basic e-reader | bonacker | Amazon Kindle | 9 | 02-01-2015 04:15 AM |
Troubleshooting Indexing | latepaul | Amazon Kindle | 13 | 01-15-2013 05:22 PM |
Question about disable indexing permanently by disabling access to "Search Indexes" | WS64 | Kindle Developer's Corner | 1 | 12-17-2011 05:51 PM |
kindle 3 indexing question | kpfeifle | Amazon Kindle | 2 | 09-06-2010 12:07 AM |
Question about indexing | Dragoro | Amazon Kindle | 4 | 02-25-2009 03:39 PM |