Система контроля версий GitLab использует язык форматирования GitHub Flavored Markdown (форматирование текста в Issues (топики). Краткое руководство: https://gitlab.igrnt.info/bible/igrnt/wikis/gitlab-markdown

различные правки кода компиляции

parent 1fdf7c66
This diff is collapsed.
This diff is collapsed.
......@@ -26,7 +26,7 @@
\RequirePackage{xifthen}%
\RequirePackage{xstring}%
\newif\ifdebugmode\debugmodefalse% НЕ ТРОГАТЬ!
\newif\iffirstpass\firstpasstrue% НЕ ТРОГАТЬ!
\newif\iffirstpass\firstpassfalse% НЕ ТРОГАТЬ!
\newif\ifIGRLXX\IGRLXXtrue% НЕ ТРОГАТЬ!
\newif\ifgreekntonly\greekntonlyfalse% НЕ ТРОГАТЬ!
\newif\ifincludeinterlineartrans\includeinterlineartranstrue% НЕ ТРОГАТЬ!
......
......@@ -34,6 +34,8 @@
%
\protect\newcommand{\UBSFOUR}{{\EngLangK{\addfontfeatures{FakeStretch=0.92,LetterSpace=1.02}\textsc{The Greek New Testament, UBS\rq4}}}}%
%
\protect\newcommand{\LXXSWETE}{{\EngLangK{\addfontfeatures{FakeStretch=0.92,LetterSpace=1.02}\textsc{The Old Testament in Greek According to the Septuagint\br[0.25ex]\smaller[1.25]by Henry Barclay Swete, 1896-1905}}}}%
%
%%% Специальные символы для меток в разночтениях
\protect\newcommand{\astx}{{\mdseries\raisebox{0.1ex}{$^{*}$}}}%$% астериск
\protect\newcommand{\astxx}{{\mdseries\raisebox{0.1ex}{$^{**}$}}}%$% двойной астериск
......
......@@ -116,7 +116,7 @@
%
\protect\newcommand{\ntbook}[6]{% \ntbook{название книги на греческом}{название книги на русском}{абревиатура}{кратко на греческом}{кратко на русском}{разночтения в заглавии}%
\edef\bibbookabbr{#3}% Задаем значение переменной с аббревиатурой текущей книги, для использования при подсчете сносок...
{\textcolor{white}{\scalebox{0.001}{\auxtruncateigrnt}}}% подчищаем aux файл предыдущей книги НЗ, чтобы LaTeX не выбрасывал ошибку о переполнении буфера. TeX почему-то печатаем единичку, после выполнения кода, так что мы ее красим в белый цвет и уменшаем до 1 процента, чтобы не занимала места на странице.
{\textcolor{white}{\scalebox{0.001}{\auxtruncateigrntlxx}}}% подчищаем aux файл предыдущей книги НЗ, чтобы LaTeX не выбрасывал ошибку о переполнении буфера. TeX почему-то печатаем единичку, после выполнения кода, так что мы ее красим в белый цвет и уменшаем до 1 процента, чтобы не занимала места на странице.
%
\thispagestyle{empty}% начинаем каждую книгу печатного издания с четной страницы
\ifforprint\clpentbook\fi%
......
......@@ -18,7 +18,8 @@
\NeedsTeXFormat{LaTeX2e}[2018/04/01]% TeX Live 2019 as of 2018/04/01
\ProvidesPackage{IGRNTgrdict}[2018/06/06 Greek-Russian Lexicon for IGRNT]%
\RequirePackage[2018/04/01]{latexrelease}% Force to use kernel of TeX Live 2019 as of 2018/04/01
\input{tex-misc/IGRNT_words_counting}% Вкрапляем количественные показатели по греческим словам для каждого слова по номеру Стронга
\input{tex-misc/IGR_NT_words_counting}% Вкрапляем количественные показатели по греческим словам для каждого слова по номеру Стронга
\input{tex-misc/IGR_LXX_words_counting}% Вкрапляем количественные показатели по греческим словам для каждого слова по номеру Стронга
%
\usepackage{leading}%
%
......@@ -65,7 +66,7 @@
\greekpronounceswitch{#1}% произношение
}}}}\ispace\raisebox{0.1ex}{\scalebox{0.8}{\textcolor{lightergrayever}{$\|$}}}\ispace% произношение
\rusdict{\smaller[0.75]\greekdictpartofspeachswitch{#1},\ }% определение части речи
\rusdict{\smaller[1.0]\grwrdcnt{#1}}% кол-во слов в тексте TR'1894
\rusdict{\smaller[1.0]\grwrdcntNT{#1},\grwrdcntLXX{#1}}% кол-во слов в тексте TR'1894 и LXX
{\ElLang{\smaller\rbn}}% закрывающая квадратная скобка
\par\noparindent\hspace{-15pt}%
{{\raisebox{0.1ex}{\scalebox{0.8}{\ElLang{$\circledless$}}}}}\sspace\ignorespaces\rusdict{%
......@@ -89,7 +90,7 @@
\greekpronounceswitch{#1}% произношение
}}}}\ispace\raisebox{0.1ex}{\scalebox{0.8}{\textcolor{lightergrayever}{$\|$}}}\ispace% произношение
\rusdict{\smaller[0.75]\greekdictpartofspeachswitch{#1},\ }% определение части речи
\rusdict{\smaller[1.0]\grwrdcnt{#1}}% кол-во слов в тексте TR'1894
\rusdict{\smaller[1.0]\grwrdcntNT{#1},\grwrdcntLXX{#1}}% кол-во слов в тексте TR'1894 и LXX
{\ElLang{\smaller\rbn}}% закрывающая квадратная скобка
\par\noparindent\hspace{-15pt}%
{{\raisebox{0.1ex}{\scalebox{0.8}{\ElLang{$\circledless$}}}}}\sspace\ignorespaces\rusdict{%
......
This diff is collapsed.
......@@ -33,8 +33,7 @@
%%%%% Определяем команды для чистки .aux файлов во время компиляции, чтобы избежать переполнение буферов LaTeX
%%%%%%%%
% Нам нужно урезать aux файлы, чтобы избавиться от грязи, которую пакет пакет babel пишет, иначе выбросит ошибку о переполнении буфера сохранения save_size...
\def\auxtruncateigrnt{\immediate\write18{/bin/bash .utils/IGRNT_aux_trunc.sh}}%
\def\auxtruncateigrlxx{\immediate\write18{/bin/bash .utils/IGRLXX_aux_trunc.sh}}%
\def\auxtruncateigrntlxx{\immediate\write18{/bin/bash .utils/IGR_NT_LXX_aux_trunc.sh}}%
\def\auxtruncatelexicon{\immediate\write18{/bin/bash .utils/LEXICON_aux_trunc.sh}}%
%
%%%%%%%%
......
......@@ -3,18 +3,28 @@
# finalize lines in range
# LUK
sed -r -i '3200,3294 s/%([[:space:]]+)✓/%\1✓\!/' ./Luk.tex
sed -r -i '3200,3294 s/^\\intb(.*)%($| \*$)/\\intb\1% ✓\!\2/' ./Luk.tex
sed -r -i '5000,5570 s/%([[:space:]]+)✓/%\1✓\!/' ./Luk.tex
sed -r -i '5000,5570 s/^\\intb(.*)%($| \*$)/\\intb\1% ✓\!\2/' ./Luk.tex
# ACT
#sed -r -i '15,15 s/%([[:space:]]+)✓/%\1✓\!/' ./Act.tex
#sed -r -i '15,15 s/^\\intb(.*)%($| \*$)/\\intb\1% ✓\!\2/' ./Act.tex
# finalize lines in range
# GEN
sed -r -i '200,667 s/%([[:space:]]+)✓/%\1✓\!/' ./Gen.tex
sed -r -i '200,667 s/^\\ilxxb(.*)%($| \*$)/\\ilxxb\1% ✓\!\2/' ./Gen.tex
#############################################################
## IGRNT
#############################################################
# remove empty ssc tags in final lines
sed -r -i 's/\[\* \]([[:punct:][:alnum:][:space:]]+) \}\{([A-Z])(.*)✓\x21/\1 }{\2\3✓\x21/g' ./*.tex
sed -r -i 's/\[\*\]([[:punct:][:alnum:][:space:]]+) \}\{([A-Z])(.*)✓\x21/\1 }{\2\3✓\x21/g' ./*.tex
sed -r -i 's/✓\!\!/✓\!/g' ./*.tex
# remove extras on markers
......@@ -71,4 +81,67 @@ sed -r -i 's/\\intb(.{82})\}\{([VACPTNDXORAQI])/\\intb\1
sed -r -i 's/\\intb(.{81})\}\{([VACPTNDXORAQI])/\\intb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\intb(.{80})\}\{([VACPTNDXORAQI])/\\intb\1 \}\{\2/g' ./*.tex
#############################################################
## IGRLXX
#############################################################
# greek adjust one space for comma
sed -r -i 's/\\ilxxb(.{17})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{18})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{19})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{20})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{21})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{22})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{23})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{24})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{25})\}\{/\\ilxxb\1 \}\{/g' ./*.tex
#
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
#
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
sed -r -i 's/\\ilxxb(.{26}) \}\{/\\ilxxb\1\}\{/g' ./*.tex
# pull morph column into place
sed -r -i 's/\\ilxxb(.{106})([[:space:]]+)\}\{([VACPTNDXORAQI])/\\ilxxb\1\}\{\3/g' ./*.tex
#sed -r -i 's/\\ilxxb(.{110})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
#sed -r -i 's/\\ilxxb(.{109})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
#sed -r -i 's/\\ilxxb(.{108})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
#sed -r -i 's/\\ilxxb(.{107})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
#sed -r -i 's/\\ilxxb(.{106})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{105})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{104})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{103})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{102})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{101})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{100})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{99})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{98})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{97})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{96})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{95})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{94})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{93})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{92})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{91})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{90})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{89})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{88})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{87})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{86})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{85})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{84})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{83})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{82})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{81})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
sed -r -i 's/\\ilxxb(.{80})\}\{([VACPTNDXORAQI])/\\ilxxb\1 \}\{\2/g' ./*.tex
exit 0;
#!/bin/bash
echo " " ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {russian}}\n\\@writefile{lof}{\\select@language {russian}}\n\\@writefile{lot}{\\select@language {russian}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {russian}}\n\\@writefile{lof}{\\select@language {russian}}\n\\@writefile{lot}{\\select@language {russian}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {english}}\n\\@writefile{lof}{\\select@language {english}}\n\\@writefile{lot}{\\select@language {english}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {english}}\n\\@writefile{lof}{\\select@language {english}}\n\\@writefile{lot}{\\select@language {english}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {greek}}\n\\@writefile{lof}{\\select@language {greek}}\n\\@writefile{lot}{\\select@language {greek}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {greek}}\n\\@writefile{lof}{\\select@language {greek}}\n\\@writefile{lot}{\\select@language {greek}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {hebrew}}\n\\@writefile{lof}{\\select@language {hebrew}}\n\\@writefile{lot}{\\select@language {hebrew}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\@writefile{toc}{\\select@language {hebrew}}\n\\@writefile{lof}{\\select@language {hebrew}}\n\\@writefile{lot}{\\select@language {hebrew}}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
rrep -q -E "\n\\select@language {russian}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {english}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {greek}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ; rrep -q -E "\n\\select@language {hebrew}\n" "\n" ./tex-igrbible/*.aux > /dev/null 2>&1 ;
exit 0;
#!/bin/bash
echo "" ; echo -e "\t\e[1;32mСоздаём временную копию tex-igrbible и убираем всё, что не должно войти в минускульный вариант IGRNT компиляции\e[0m"
#
rm -rf "$PWD/tex-igrbible.tmp"
mkdir "$PWD/tex-igrbible.tmp"
cp "$PWD/tex-igrbible/"*.tex "$PWD/tex-igrbible.tmp/"
chmod 644 "$PWD/tex-igrbible.tmp"/*.tex
#
### Возвращаем в LaTeX формат теги \ssc{}, \lrb{}, \it{}
i="0" ; while [ $i -lt 15 ]
do
# [*..] > \ssc{..}
sed -r -i 's/\\intb(.*)\[\*\]/\\intb\1/g' "$PWD/tex-igrbible.tmp/"*.tex # пустой ssc
sed -r -i 's/\\intb(.*)\[\*([[:digit:]\,]+)\]/\\intb\1\\ssc\{\2\}/g' "$PWD/tex-igrbible.tmp/"*.tex # возвращаем в нормальный \ssc{}, а потом продолжим манипуляции с этим макросом
# [/... > \it{...
sed -r -i 's/\\intb(.*)\[\//\\intb\1\\it\{/g' "$PWD/tex-igrbible.tmp/"*.tex
# [?... > \lrb{...
sed -r -i 's/\\intb(.*)\[\?/\\intb\1\\lrb\{/g' "$PWD/tex-igrbible.tmp/"*.tex
i=$[$i+1]
done
i="0" ; while [ $i -lt 15 ]
do
# ] > }
sed -r -i 's/\\intb(.*)\]/\\intb\1\}/g' "$PWD/tex-igrbible.tmp/"*.tex
i=$[$i+1]
done
#
### Чистим файлы для верстки подстрочного перевода в минускульном стиле
sed -r -i 's/\}\{[[:space:]]+([[:digit:]]+)\}\{/\}\{\1\}\{/g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\ssc\{\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\ssc\{([[:digit:]\,]+)\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\sscr\{([[:digit:]\,]+)\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\ssch\{([[:digit:]\,]+)\}//g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\LDASH//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\MDASH//g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\frq//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\rqq//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\rq//g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\flq //g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lqq //g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lq //g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\flq//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lqq//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lq//g' "$PWD/tex-igrbible.tmp/"*.tex
#
rrep -q -F "|" "-" "$PWD/tex-igrbible.tmp/"*.tex
#
i="0" ; while [ $i -lt 3 ] ; do
sed -r -i 's/\\it\{([а-яА-Я\x5C\ \,\-]+)\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\HBR\{([а-яА-Я\x5C\ \,\-]+)\}\{([а-яА-Я\x5C\ \,\-]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\HBR\{\\Hebhamashiah\{([а-я]+)\}\}\{([а-яА-Я\x5C\ \,\-]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\HBR\{\\Hebhamashiah\{\}\}\{([а-яА-Я\x5C\ \,\-]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\HBR\{\\hebha ([а-яА-Я\x5C\ \,\-]+)\}\{([а-яА-Я\x5C\ \,\-]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\hebyeshuaintb\{([NILа-я]+)\}\{([а-я]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\it\{\\hebjerusalemintb\{([NILе]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\lrb\{([а-яА-Я\x5C\x27\ \,\(\)\-]+)\}//g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrb\{\\HBR\{([а-яА-Я\x5C\x27\ \,\(\)\-]+)\}\{([а-яА-Я\x5C\x27\ \,\(\)\-]+)\}\}//g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/\\flrq\{([а-яА-Я\x5C\x27\,\(\)\!\?\ \-]+)\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrqq\{([а-яА-Я\x5C\x27\,\(\)\!\?\ \-]+)\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrq\{([а-яА-Я\x5C\x27\,\(\)\!\?\ \-]+)\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\flrq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})([\!\?])\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrqq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})([\!\?])\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})([\!\?])\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\flrq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrqq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrq\{(\\HBR\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\flrq\{(\\HBRN\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrqq\{(\\HBRN\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\\lrq\{(\\HBRN\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\}\{([а-яА-Я\x5C\x27\,\(\)\ \-]+)\})\}/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/([а-яА-Я])([\.\,\;\:\(\)\!\?]+) /\1 /g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([а-яА-Я])\}([\.\,\;\:\(\)\!\?]+) /\1\} /g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([а-яА-Я])([\.\,\;\:\(\)\!\?]+)\}\{/\1\}\{/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([а-яА-Я])\}([\.\,\;\:\(\)\!\?]+)\}\{/\1\}\}\{/g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/([а-яА-Я])\)/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\(([а-яА-Я])/\1/g' "$PWD/tex-igrbible.tmp/"*.tex
#
sed -r -i 's/ ([\.\,\;\:\(\)\!\?]+) / /g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([а-яА-Я]) ([\.\,\;\:\(\)\!\?]+)\}/\1 \}/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([а-яА-Я])([\.\,\;\:\(\)\!\?]+)\}/\1 \}/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\{([\.\,\;\:\(\)\!\?]+) /\{/g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/\}([\.\,\;\:\(\)\!\?]+) /\} /g' "$PWD/tex-igrbible.tmp/"*.tex
sed -r -i 's/([\.\,\;\:\(\)\!\?]{2})//g' "$PWD/tex-igrbible.tmp/"*.tex
#
rrep -F -q "{HBR{" "{\HBR{" "$PWD/tex-igrbible.tmp/"*.tex
#
rrep -F -q " }{ " " }{" "$PWD/tex-igrbible.tmp/"*.tex
i=$[$i+1] ; done
......@@ -8,6 +8,24 @@ cp "$PWD/tex-igrbible/"*.tex "$PWD/tex-igrbible.tmp/"
chmod 644 "$PWD/tex-igrbible.tmp"/*.tex
#
### Возвращаем в LaTeX формат теги \ssc{}, \lrb{}, \it{}
i="0" ; while [ $i -lt 15 ]
do
# [*..] > \ssc{..}
sed -r -i 's/\\intb(.*)\[\*\]/\\intb\1/g' "$PWD/tex-igrbible.tmp/"*.tex # пустой ssc
sed -r -i 's/\\intb(.*)\[\*([[:digit:]\,]+)\]/\\intb\1\\ssc\{\2\}/g' "$PWD/tex-igrbible.tmp/"*.tex # возвращаем в нормальный \ssc{}, а потом продолжим манипуляции с этим макросом
# [/... > \it{...
sed -r -i 's/\\intb(.*)\[\//\\intb\1\\it\{/g' "$PWD/tex-igrbible.tmp/"*.tex
# [?... > \lrb{...
sed -r -i 's/\\intb(.*)\[\?/\\intb\1\\lrb\{/g' "$PWD/tex-igrbible.tmp/"*.tex
i=$[$i+1]
done
i="0" ; while [ $i -lt 15 ]
do
# ] > }
sed -r -i 's/\\intb(.*)\]/\\intb\1\}/g' "$PWD/tex-igrbible.tmp/"*.tex
i=$[$i+1]
done
#
i="0" ; while [ $i -lt 15 ]
do
# [*..] > \ssc{..}
......
#!/bin/bash
rm -f ../tex-misc/IGRLXX_words_counting.tex
echo "\\newcommand{\\grwrdcnt}[1]{{% Здесь пропускаем данные с подсчетом количества слов по каждому номеру Стронга, сгенерированные файлом IGRNT_words_counting.sh" >> ../tex-misc/IGRNT_words_counting.tex
#
STREND=999
for S in $(seq 1 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"ilxxb{\" | grep -c -E \"\}\{([ ]+$S)\}\{\"`}{}%"
done >> ../tex-misc/IGRLXX_words_counting.tex
STREND=5624
for S in $(seq 1000 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"ilxxb{\" | grep -c -E \"\}\{($S)\}\{\"`}{}%"
done >> ../tex-misc/IGRLXX_words_counting.tex
echo "}}%" >> ../tex-misc/IGRLXX_words_counting.tex
echo "\\endinput%" >> ../tex-misc/IGRLXX_words_counting.tex
#!/bin/bash
echo "" ; echo -e "\t\e[1;32m Парсим весь текст НЗ для морфологической части Лексикона\e[0m"
#
cd ../
/bin/bash ./.utils/IGRNT_trim_for_interlinear_pdf_compilation.sh # Подчищаем временные файлы,...
cd ./.utils/
#
rm -rf "../tex-igrbible-lcvr-lcvh-words.tmp"
mkdir "../tex-igrbible-lcvr-lcvh-words.tmp"
#
STREND=9
for S in $(seq 1 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "intb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.tex
done
#
STREND=99
for S in $(seq 10 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "intb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.tex
done
#
STREND=999
for S in $(seq 100 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "intb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.tex
done
#
STREND=5624
for S in $(seq 1000 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "intb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex
done
#
sed -r -i 's/^\\intb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{([A-Za-z\ ]+)\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/^\\intb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\}\{\}%$/\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/\}\{\}%(.*)$/\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\}\{([[:digit:]]{1,4})\}/\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/([’··\.\,\:\;\(\)\!\?]+)([\ \}])/\2/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/([[:space:]]+)\}/\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F "\grtrstart" "" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
rrep -q -F "\grtrend" "" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F "<greek>" "\\grwrdlcvuse{TRANSCOUNT}{" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/([[:space:]]+)\}/\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/\{([[:space:]]+)/\{/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\{([[:digit:]]{5})([[:digit:]]{2})\}%/\{\1\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\\grwrdlcvuse(\{TRANSCOUNT\})(\{[[:alpha:]᾽᾿῾`´ʹ\ \x5C\-]+\})(.*)(\{[A-Z123\+\.\-]+\})(\{[[:digit:]]{5}\}%)/\\grwrdlcvuse\1\2\4\,\3\,\5/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F " " " " ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
rrep -q -F " " " " ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex ; rrep -q -F " " " " ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F "},{},{" "},{\NILL},{" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
# начальная сортировка
####
STREND=9
for S in $(seq 1 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.sa.tex
done
#
STREND=99
for S in $(seq 10 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.sa.tex
done
#
STREND=999
for S in $(seq 100 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.sa.tex
done
#
STREND=5624
for S in $(seq 1000 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex
done
#
# вторая сортировка с объединением мест в НЗ
sed -r -i 's/\\grwrdlcvuse(\{TRANSCOUNT\})(\{[[:alpha:]᾽᾿῾`´ʹ\ \x5C\-]+\})(\{[A-Z123\+\.\-]+\})\,/\\grwrdlcvuse\1\2\3/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sa.tex
#
STREND=9
for S in $(seq 1 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.sb.tex
done
#
STREND=99
for S in $(seq 10 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.sb.tex
done
#
STREND=999
for S in $(seq 100 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.sb.tex
done
#
STREND=5624
for S in $(seq 1000 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex
done
#
sed -r -i 's/\}\,\{/ \\lbn\{/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
sed -r -i 's/\}%$/\}\\rbn\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
rrep -q -F "}%,{" "}COMMA {" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
#
#####
#
# третья сортировка с объединением мест в НЗ
sed -r -i 's/\\grwrdlcvuse(\{TRANSCOUNT\})(\{[[:alpha:]᾽᾿῾`´ʹ\ \x5C\-]+\})(\{[A-Z123\+\.\-]+\})(\{)/\\grwrdlcvuse\1\2\3\,\4/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
#
STREND=9
for S in $(seq 1 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
STREND=99
for S in $(seq 10 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
STREND=999
for S in $(seq 100 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
STREND=5624
for S in $(seq 1000 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
rm -f ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F "}%,{" "; " ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "},{" "}{" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "COMMA " ", " ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F " " " " ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
#
# Убирает статические морфологические маркеры
rrep -q -F "{T.A}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{T.H}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{T.P}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{T.N}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{T.L}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{T.O}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{C}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{P}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{I}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{A}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{Q.C}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{Q.O}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.I}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.O}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
#
sed -r -i 's/\{([[:digit:]]{5})\}/\\grdictntrefswitch\{\1\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{TRANSCOUNT}" "" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "\lbn\grdictntrefswitch" "\lbn\grdictntreffirstswitch" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "}, \grdictntrefswitch" "}\grdictntrefswitch" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
exit 0;
#!/bin/bash
rm -f ../tex-misc/IGRNT_words_counting.tex
echo "\\newcommand{\\grwrdcnt}[1]{{% Здесь пропускаем данные с подсчетом количества слов по каждому номеру Стронга, сгенерированные файлом IGRNT_words_counting.sh" >> ../tex-misc/IGRNT_words_counting.tex
#
STREND=999
for S in $(seq 1 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"intb{\" | grep -c -E \"\}\{([ ]+$S)\}\{\"`}{}%"
done >> ../tex-misc/IGRNT_words_counting.tex
STREND=5624
for S in $(seq 1000 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"intb{\" | grep -c -E \"\}\{($S)\}\{\"`}{}%"
done >> ../tex-misc/IGRNT_words_counting.tex
echo "}}%" >> ../tex-misc/IGRNT_words_counting.tex
echo "\\endinput%" >> ../tex-misc/IGRNT_words_counting.tex
......@@ -4,7 +4,7 @@ echo "" ; echo -e "\t\e[1;32m Парсим весь текст НЗ для мо
#
cd ../
/bin/bash ./.utils/IGRLXX_trim_for_interlinear_pdf_compilation.sh # Подчищаем временные файлы,...
/bin/bash ./.utils/IGR_NT_LXX_trim_for_interlinear_pdf_compilation.sh # Подчищаем временные файлы,...
cd ./.utils/
#
rm -rf "../tex-igrbible-lcvr-lcvh-words.tmp"
......@@ -12,31 +12,40 @@ mkdir "../tex-igrbible-lcvr-lcvh-words.tmp"
#
STREND=9
for S in $(seq 1 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "ilxxb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.tex
do cat ../tex-igrbible.tmp/*.tex | grep -E "i(nt|lxx)b{" | grep -E "\}\{( )?$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G000$S.tex
done
#
STREND=99
for S in $(seq 10 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "ilxxb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.tex
do cat ../tex-igrbible.tmp/*.tex | grep -E "i(nt|lxx)b{" | grep -E "\}\{( )?$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G00$S.tex
done
#
STREND=999
for S in $(seq 100 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "ilxxb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.tex
do cat ../tex-igrbible.tmp/*.tex | grep -E "i(nt|lxx)b{" | grep -E "\}\{( )?$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G0$S.tex
done
#
STREND=5624
for S in $(seq 1000 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep "ilxxb{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex
do cat ../tex-igrbible.tmp/*.tex | grep -E "i(nt|lxx)b{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex
done
#
#
STREND=714176
for S in $(seq 700000 $STREND)
do cat ../tex-igrbible.tmp/*.tex | grep -E "i(nt|lxx)b{" | grep -E "\}\{$S\}\{" > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex
done
#
sed -r -i 's/^\\intb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{([A-Za-z\ ]+)\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/^\\intb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/^\\ilxxb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{([A-Za-z\ ]+)\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/^\\ilxxb\{([A-Z\ ]+)\}\{([A-Za-z0-9\ ]+)\}\{\}\{/<greek>/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\}\{\}%$/\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/\}\{\}%(.*)$/\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/\}\{([[:digit:]]{1,4})\}/\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
sed -r -i 's/\}\{([[:digit:]]{1,6})\}/\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
sed -r -i 's/([’··\.\,\:\;\(\)\!\?]+)([\ \}])/\2/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
......@@ -81,6 +90,11 @@ for S in $(seq 1000 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex
done
#
STREND=714176
for S in $(seq 700000 $STREND)
do cat ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.tex | LC_ALL=C sort -k1,3n -k1f,2 > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex
done
#
# вторая сортировка с объединением мест в НЗ
sed -r -i 's/\\grwrdlcvuse(\{TRANSCOUNT\})(\{[[:alpha:]᾽᾿῾`´ʹ\ \x5C\-]+\})(\{[A-Z123\+\.\-]+\})\,/\\grwrdlcvuse\1\2\3/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sa.tex
#
......@@ -112,6 +126,13 @@ for S in $(seq 1000 $STREND)
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex
done
#
STREND=714176
for S in $(seq 700000 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sa.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex
done
#
sed -r -i 's/\}\,\{/ \\lbn\{/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
sed -r -i 's/\}%$/\}\\rbn\}%/g' ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
rrep -q -F "}%,{" "}COMMA {" ../tex-igrbible-lcvr-lcvh-words.tmp/G*.sb.tex
......@@ -149,6 +170,13 @@ for S in $(seq 1000 $STREND)
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
STREND=714176
for S in $(seq 700000 $STREND)
do awk -F, 'NR!=1 && p1!=$1{print prev;prev=""}
{p1=$1;prev=(prev"")?prev FS substr($0,index($0,$2)):$0}
END{if(prev"") print prev}' ../tex-igrbible-lcvr-lcvh-words.tmp/G$S.sb.tex > ../tex-igrbible-lcvr-lcvh-words.tmp/$S.tex
done
#
rm -f ../tex-igrbible-lcvr-lcvh-words.tmp/G*.tex
#
rrep -q -F "}%,{" "; " ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
......@@ -169,8 +197,9 @@ rrep -q -F "{I}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{A}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{Q.C}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{Q.O}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.I}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.O}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.Q}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.N}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{X.P}" "{}" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
#
sed -r -i 's/\{([[:digit:]]{5})\}/\\grdictntrefswitch\{\1\}/g' ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
rrep -q -F "{TRANSCOUNT}" "" ../tex-igrbible-lcvr-lcvh-words.tmp/*.tex
......
#!/bin/bash
rm -f ../tex-misc/IGR_NT_words_counting.tex
rm -f ../tex-misc/IGR_LXX_words_counting.tex
#
#
echo "\\newcommand{\\grwrdcntNT}[1]{{% Здесь пропускаем данные с подсчетом количества слов по каждому номеру Стронга, сгенерированные файлом IGR_NT_LXX_words_counting.sh" >> ../tex-misc/IGR_NT_words_counting.tex
#
STREND=999
for S in $(seq 1 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"intb{\" | grep -c -E \"\}\{([ ]+$S)\}\{\"`}{}%"
done >> ../tex-misc/IGR_NT_words_counting.tex
#
STREND=5624
for S in $(seq 1000 $STREND)
do echo " \\ifthenelse{\\equal{#1}{$S}}{`cat ./../tex-igrbible/*.tex | grep \"intb{\" | grep -c -E \"\}\{($S)\}\{\"`}{}%"
done >> ../tex-misc/IGR_NT_words_counting.tex
#
echo "}}%" >> ../tex-misc/IGR_NT_words_counting.tex
echo "\\endinput%" >> ../tex-misc/IGR_NT_words_counting.tex
#
#
echo "\\newcommand{\\grwrdcntLXX}[1]{{% Здесь пропускаем данные с подсчетом количества слов по каждому номеру Стронга, сгенерированные файлом IGR_NT_LXX_words_counting.sh" >> ../tex-misc/IGR_LXX_words_counting.tex
#
STREND=999