Skip to content

Commit

Permalink
[upmendex] add "kana_head" to style file option (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-tk committed Jun 5, 2021
1 parent 9dc78ab commit 5bf039b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/texk/upmendex/exvar.h
Expand Up @@ -31,7 +31,7 @@ extern char symhead_positive[],symhead_negative[];
extern char numhead_positive[],numhead_negative[];
extern int symbol_flag;
extern int letter_head;
extern UChar atama[],tumunja[],hanzi_head[];
extern UChar atama[],tumunja[],hanzi_head[],kana_head[];
extern char page_compositor[],page_precedence[];
extern char character_order[];
extern char icu_locale[],icu_rules[];
Expand Down
1 change: 1 addition & 0 deletions source/texk/upmendex/main.c
Expand Up @@ -281,6 +281,7 @@ int main(int argc, char **argv)
default:
break;
}
if (u_strlen(kana_head)>0) u_strcpy(atama,kana_head);

/* read idx file */

Expand Down
4 changes: 2 additions & 2 deletions source/texk/upmendex/styfile.c
Expand Up @@ -132,8 +132,8 @@ void styread(const char *filename)
letter_head=atoi(&buff[cc]);
continue;
}
if (getparam(buff,"atama",tmp)) {
multibyte_to_widechar(atama,STYBUFSIZE,tmp);
if (getparam(buff,"kana_head",tmp)) {
multibyte_to_widechar(kana_head,STYBUFSIZE,tmp);
continue;
}
if (getparam(buff,"tumunja",tmp)) {
Expand Down
2 changes: 1 addition & 1 deletion source/texk/upmendex/var.h
Expand Up @@ -32,7 +32,7 @@ char symhead_positive[STYBUFSIZE]={"Symbols"},symhead_negative[STYBUFSIZE]={"sym
char numhead_positive[STYBUFSIZE]={"Numbers"},numhead_negative[STYBUFSIZE]={"numbers"};
int symbol_flag=1;
int letter_head=1;
UChar atama[STYBUFSIZE],tumunja[STYBUFSIZE],hanzi_head[STYBUFSIZE]={L'\0'};
UChar atama[STYBUFSIZE],tumunja[STYBUFSIZE],hanzi_head[STYBUFSIZE]={L'\0'},kana_head[STYBUFSIZE]={L'\0'};
char page_compositor[STYBUFSIZE]={"-"},page_precedence[STYBUFSIZE]={"rnaRA"};
char character_order[STYBUFSIZE]={"SNLGCJKH"};
char icu_locale[STYBUFSIZE]={"root"},icu_rules[STYBUFSIZE]={""};
Expand Down

0 comments on commit 5bf039b

Please sign in to comment.