Compare commits
2 Commits
75ab3012f5
...
4638efb0eb
Author | SHA1 | Date | |
---|---|---|---|
4638efb0eb | |||
e7397c00ce |
@ -99,3 +99,7 @@ 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
|
||||
- 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
|
||||
- [ ] 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
|
||||
|
@ -23,22 +23,23 @@ if ! [[ -x $CONVERTER ]] ; then echo "$CONVERTER not executable! Exiting ..." &&
|
||||
WD=$PWD
|
||||
TMPDIR=$(mktemp -d)
|
||||
PATH=$PATH:$WD
|
||||
pushd $TMPDIR > /dev/null
|
||||
pushd $TMPDIR # > /dev/null
|
||||
|
||||
# CONVERT MD TO TEX
|
||||
for tex in $( echo "$INFILES" | grep '.md$' )
|
||||
for md in $( echo "$INFILES" | grep '.md$' )
|
||||
do
|
||||
if [[ -f $WD/$tex ]]
|
||||
if [[ -f $WD/$md ]]
|
||||
then
|
||||
# create parent dir if necassary
|
||||
mkdir -p $(dirname $tex)
|
||||
md=$( echo $tex | sed "s/.md/.tex/" )
|
||||
$CONVERTER $WD/$tex > $md
|
||||
echo "converted $tex to $md"
|
||||
md_no_parent=$( echo $md | sed 's@\.\./@@g' )
|
||||
mkdir -p $(dirname $md_no_parent)
|
||||
tex=$( echo $md_no_parent | sed "s/\.md$/\.tex/" )
|
||||
$CONVERTER $WD/$md > $tex
|
||||
echo "converted $md to $tex"
|
||||
else
|
||||
if [[ $tex == *.md ]]
|
||||
if [[ $md == *.md ]]
|
||||
then
|
||||
echo "$WD/$tex does not exist!!!"
|
||||
echo "$WD/$md does not exist!!!"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
@ -156,11 +157,12 @@ for input in $INFILES
|
||||
do
|
||||
if [[ $input == *.md ]]
|
||||
then
|
||||
tex=$( echo $input | sed 's/\.md$/\.tex/' | sed 's@\.\./@@g' )
|
||||
if [[ $first_lang == "true" ]] ; then
|
||||
echo '\pagesinclude' "{ $( echo $input | sed 's/.md/.tex/' ) }" >> $PROJECT.tex
|
||||
echo '\pagesinclude' "{ $tex }" >> $PROJECT.tex
|
||||
first_lang="false"
|
||||
else
|
||||
echo "{ $( echo $input | sed 's/.md/.tex/' ) }" >> $PROJECT.tex
|
||||
echo "{ $tex }" >> $PROJECT.tex
|
||||
echo '\clearpage' >> $PROJECT.tex
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user