хозяйственная работа: некоторый младший щипает здесь и там
This commit is contained in:
parent
1d4bb2a118
commit
7f7d10aeee
7 changed files with 60 additions and 30 deletions
|
|
@ -1,9 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
format() {
|
||||
sed -e 's/^fix:/доза:/' \
|
||||
-e '/^# ------------------------ >8 ------------------------$/,$d' \
|
||||
-e '/^#/d'
|
||||
}
|
||||
|
||||
translated="$(curl -s \
|
||||
http://localhost:9000/translate \
|
||||
-H 'Content-Type: text/html' \
|
||||
--data-binary @- -o- < <(sed 's,^fix:,доза:,' < "$1") | \
|
||||
--data-binary @- -o- < <(format < "$1") | \
|
||||
tail -n +2 | \
|
||||
perl -pe 's,<SPAN CLASS=UNKNOWN_WORD>(.*?)</SPAN>,\1,g')"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue