Skip to content

Commit

Permalink
Handle "see also" as well as "also see" in index
Browse files Browse the repository at this point in the history
When cross-referencing, previous work only checked for either
"see" or "also see". This commit adds "see also".

Fixes #1285
  • Loading branch information
windymilla committed Dec 6, 2023
1 parent 0f61255 commit 4bc96a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

## Version 1.6.1

- New 'Add Index Cross-references' feature links "See"/"Also see" references
to the relevant location in the index. References that cannot be linked
automatically are listed for manual linking
- New 'Add Index Cross-references' feature links "See"/"Also see"/"See also"
references to the relevant location in the index. References that cannot be
linked automatically are listed for manual linking
- Several tools added to support LaTeX/HTML/SVG workflow
- CP Character Substitutions now include `¬` -> `-`
- Bad words are loaded when good words file is loaded
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Guiguts/HTMLConvert.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4248,7 +4248,7 @@ sub indexxref {
$textwindow->markSet( 'indexendmark', $indexend ); # Since row/col of indexend will change during insertions
my $indexstart = pop(@ranges);

my $SEESTR = '(also )*see'; # Change this if needed for different languages
my $SEESTR = '(also )?see( also)?'; # Change this if needed for different languages
my $SEESTRLEN = length($SEESTR); # Approx length just used for advancing search position
my $seepos = $indexstart;
my $seesawnum = 1;
Expand Down

0 comments on commit 4bc96a5

Please sign in to comment.