Compare commits

..

No commits in common. "4638efb0ebfcff3a66b2fbe0cbb8f5904f49110f" and "75ab3012f5f6844cfdebc71be0f563ade0f1f6f3" have entirely different histories.

2 changed files with 11 additions and 17 deletions

View File

@ -99,7 +99,3 @@ s=4: 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 -> 16,01.02,15 14,03.04,13 12,05.06,
- [ ] 2. translate (with gpt?) sowas von python - [ ] 2. translate (with gpt?) sowas von python
- Please analyze the following parallel text and create a detailed bilingual word pair list. Ensure that every significant word or phrase from the original language is included, even common connectors or conjunctions. Additionally, provide multiple English translations for each entry where applicable and order the list alphabetically (where ɛ comes after e and ɔ comes after o). Here's the text: [insert text]. - Please analyze the following parallel text and create a detailed bilingual word pair list. Ensure that every significant word or phrase from the original language is included, even common connectors or conjunctions. Additionally, provide multiple English translations for each entry where applicable and order the list alphabetically (where ɛ comes after e and ɔ comes after o). Here's the text: [insert text].
- [ ] make standard design https://en.wikipedia.org/wiki/Book_design - [ ] make standard design https://en.wikipedia.org/wiki/Book_design
- [ ] for rewrite of mkparallel.sh
- [ ] check if file available, if not, dont use
- [ ] check if md2parallel is available
- [ ] ultimately include md2XXX.sh into md2tex.py

View File

@ -23,23 +23,22 @@ if ! [[ -x $CONVERTER ]] ; then echo "$CONVERTER not executable! Exiting ..." &&
WD=$PWD WD=$PWD
TMPDIR=$(mktemp -d) TMPDIR=$(mktemp -d)
PATH=$PATH:$WD PATH=$PATH:$WD
pushd $TMPDIR # > /dev/null pushd $TMPDIR > /dev/null
# CONVERT MD TO TEX # CONVERT MD TO TEX
for md in $( echo "$INFILES" | grep '.md$' ) for tex in $( echo "$INFILES" | grep '.md$' )
do do
if [[ -f $WD/$md ]] if [[ -f $WD/$tex ]]
then then
# create parent dir if necassary # create parent dir if necassary
md_no_parent=$( echo $md | sed 's@\.\./@@g' ) mkdir -p $(dirname $tex)
mkdir -p $(dirname $md_no_parent) md=$( echo $tex | sed "s/.md/.tex/" )
tex=$( echo $md_no_parent | sed "s/\.md$/\.tex/" ) $CONVERTER $WD/$tex > $md
$CONVERTER $WD/$md > $tex echo "converted $tex to $md"
echo "converted $md to $tex"
else else
if [[ $md == *.md ]] if [[ $tex == *.md ]]
then then
echo "$WD/$md does not exist!!!" echo "$WD/$tex does not exist!!!"
fi fi
fi fi
done done
@ -157,12 +156,11 @@ for input in $INFILES
do do
if [[ $input == *.md ]] if [[ $input == *.md ]]
then then
tex=$( echo $input | sed 's/\.md$/\.tex/' | sed 's@\.\./@@g' )
if [[ $first_lang == "true" ]] ; then if [[ $first_lang == "true" ]] ; then
echo '\pagesinclude' "{ $tex }" >> $PROJECT.tex echo '\pagesinclude' "{ $( echo $input | sed 's/.md/.tex/' ) }" >> $PROJECT.tex
first_lang="false" first_lang="false"
else else
echo "{ $tex }" >> $PROJECT.tex echo "{ $( echo $input | sed 's/.md/.tex/' ) }" >> $PROJECT.tex
echo '\clearpage' >> $PROJECT.tex echo '\clearpage' >> $PROJECT.tex
fi fi
else else