uni-ausarbeitung/templates/markdown/tasks.json

47 lines
2.1 KiB
JSON
Raw Permalink Normal View History

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",
2022-09-14 07:52:15 +00:00
// "command": "./build.sh pandoc",
"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
},
"problemMatcher": []
2021-05-16 20:01:36 +00:00
},
{
"label": "clean",
"type": "shell",
2022-09-14 07:52:15 +00:00
// "command": "./build.sh clean",
"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",
2022-09-14 07:52:15 +00:00
// "command": "pandoc --lua-filter=wordcount.lua chapter/out.md",
"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"
},
"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": []
}
]
}