diff options
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/upmendex/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/upmendex/styfile.c | 17 |
2 files changed, 17 insertions, 7 deletions
diff --git a/Build/source/texk/upmendex/ChangeLog b/Build/source/texk/upmendex/ChangeLog index a105b375f9b..39ebf28ffdb 100644 --- a/Build/source/texk/upmendex/ChangeLog +++ b/Build/source/texk/upmendex/ChangeLog @@ -1,3 +1,10 @@ +2021-08-28 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * styfile.c: + Add a alias "headings_flag" of the keyword "heading_flag" + in style file for compatibility with makeindex. + Warn if specifier in style file is unknown. + 2021-08-26 TANAKA Takuji <ttk@t-lab.opal.ne.jp> * sort.c: diff --git a/Build/source/texk/upmendex/styfile.c b/Build/source/texk/upmendex/styfile.c index 619e4a5625e..f7f00bab5ca 100644 --- a/Build/source/texk/upmendex/styfile.c +++ b/Build/source/texk/upmendex/styfile.c @@ -76,13 +76,9 @@ void styread(const char *filename) if (getparam(buff,"symhead_negative",symhead_negative)) continue; if (getparam(buff,"numhead_positive",numhead_positive)) continue; if (getparam(buff,"numhead_negative",numhead_negative)) continue; - cc=scompare(buff,"lethead_flag"); - if (cc!= -1) { - lethead_flag=atoi(&buff[cc]); - continue; - } - cc=scompare(buff,"heading_flag"); - if (cc!= -1) { + if ( (cc=scompare(buff,"lethead_flag")) != -1 || + (cc=scompare(buff,"heading_flag")) != -1 || + (cc=scompare(buff,"headings_flag")) != -1 ) { lethead_flag=atoi(&buff[cc]); continue; } @@ -164,6 +160,13 @@ void styread(const char *filename) continue; } if (getparam(buff,"icu_attributes", icu_attr_str )) continue; + + cc=strcspn(buff," \t\r\n"); + if (cc>0) buff[cc]='\0'; + if (buff[0]=='%' || buff[0]=='\n') continue; + if (strlen(buff)>0) { + verb_printf(efp,"\nWarning: Unknown specifier (%s).", buff); + } } fclose(fp); |