2021-05-16 20:01:36 +00:00
|
|
|
{
|
|
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
|
|
// for the documentation about the tasks.json format
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
|
|
|
"label": "latexmk",
|
|
|
|
"type": "shell",
|
2021-11-10 12:33:51 +00:00
|
|
|
"command": "./build.sh pandoc",
|
|
|
|
"windows": {
|
|
|
|
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh pandoc"
|
|
|
|
},
|
2021-05-16 20:01:36 +00:00
|
|
|
"group": {
|
|
|
|
"kind": "build",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
2021-11-10 12:33:51 +00:00
|
|
|
"problemMatcher": []
|
2021-05-16 20:01:36 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "clean",
|
|
|
|
"type": "shell",
|
2021-11-10 12:33:51 +00:00
|
|
|
"command": "./build.sh clean",
|
|
|
|
"windows": {
|
|
|
|
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest ./build.sh clean"
|
|
|
|
},
|
|
|
|
"group": "none",
|
|
|
|
"problemMatcher": []
|
2021-05-16 20:01:36 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "wordcount",
|
|
|
|
"type": "shell",
|
2021-11-10 12:33:51 +00:00
|
|
|
"command": "pandoc --lua-filter=wordcount.lua chapter/out.md",
|
|
|
|
"windows": {
|
|
|
|
"command": "docker run --rm -u 1000 -v '${workspaceFolder}:/work/' -w /work/ fastexitlane/pandoc-latex:latest pandoc --lua-filter=/work/wordcount.lua /work/chapter/out.md"
|
|
|
|
},
|
2021-05-16 20:01:36 +00:00
|
|
|
"group": "none",
|
|
|
|
"problemMatcher": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"label": "overusedwords",
|
|
|
|
"type": "shell",
|
|
|
|
"command": "cat chapter/out.md | tr 'A-ZÄÖÜ' 'a-zäöü' | sed --regexp-extended 's/\\\\acf?s?p?\\{([^}]+)\\}/\\1/g' | sed 's/-/ /g' | sed 's/[^a-zäöü ]//g' | tr -s '[[:space:]]' '\\n' | sort | uniq -c | sort -nr | head -n100 > words.txt",
|
|
|
|
"windows": {
|
|
|
|
"command": "wsl cat chapter/out.md `| tr 'A-ZÄÖÜ' 'a-zäöü' `| sed 's/-/ /g' `| sed 's/[^a-zäöü]//g' `> words.txt"
|
|
|
|
},
|
2021-11-10 12:33:51 +00:00
|
|
|
"osx": {
|
|
|
|
"command": "cat chapter/out.md | tr 'A-ZÄÖÜ' 'a-zäöü' | sed -E 's/\\\\acf?s?p?\\{([^}]+)\\}/\\1/g' | sed 's/-/ /g' | sed 's/[^a-zäöü ]//g' | tr -s '[[:space:]]' '\\n' | sort | uniq -c | sort -nr | head -n100 > words.txt"
|
|
|
|
},
|
2021-05-16 20:01:36 +00:00
|
|
|
"group": "none",
|
|
|
|
"problemMatcher": []
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|