I trying to stylish index. I want to implement one cool template in my project and edit it a lot for my pleasure. In order to begin that, I want to implement it without any changes. But in that template makeindex was used. Now I reaslise that it sorts only latin. But I want to sort cyrillic things. So, I consider using xindy programm. I want it to look as following
(But with cyrillic letters)
I can say that I want to play with xindy programms. I want to style it like It can be done using makeindex and special .ist (.mst) files. But my own tryings are all fails. I get the following pretty usual index:
AS you see even FIRST MAIN letters are incorrect, Because there is no N and S in these words.
Here is MWE of main.ist which works with makeindex. But, as I said I can't use makeindex bacause of latin sorting words. So, I want to get this tikz-rectangle-effect repeated in xindy with cyrillic. The questions are
How to add this tikz-beaty to a xindy program of making index?
How to fix wrong letters N S for such cyrillic input.
MWE _main.ist:
delim_0 "\\dotfill\ "
delim_1 "\\dotfill\ "
headings_flag 1
heading_prefix "\\nopagebreak\n\\tikz\\node at (0pt,0pt) [draw=none,fill=ocre!50,line width=1pt,inner sep=5pt]{\\parbox{\\linewidth-2\\fboxsep-2\\fboxrule-2pt}{\\centering\\large\\sffamily\\bfseries\\textcolor{white}{" heading_suffix "}}};\\vspace*{0.2cm}\\nopagebreak\n"
And here is MWE:
\documentclass{book}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english, russian]{babel}
\usepackage{tikz}
\usepackage{xcolor}
\definecolor{ocre}{RGB}{150, 120, 182}
\usepackage{calc}
\usepackage[xindy]{imakeidx}
\makeindex
\makeatletter
\newcommand{\rindex}[2][\imki@jobname]{%
\index[#1]{\detokenize{#2}}%
}
\makeatother
\begin{document}
\chapter{Первая}
\rindex{notepad}
\rindex{apple}
\rindex{часть}
\rindex{дерево}
\rindex{электрон}
\printindex
\end{document}
I using texindy.exe -L russian -C utf8 %.idx



xindy -M texindy -L russian -C utf8 filename.idx– michal.h21 Nov 29 '16 at 10:24