Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
research-topics-mat-tuhh research-topics-mat-tuhh
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Fabian Nuraddin Alexander Gabel
  • research-topics-mat-tuhhresearch-topics-mat-tuhh
  • Wiki
  • Preprocessors

Last edited by Fabian Nuraddin Alexander Gabel Aug 29, 2021
Page history

Preprocessors

Markdown Preprocessing

The heart of this application is a markdown preprocessor for pandoc that allows to link research topics to working groups and individual institute members. The basic routines are

  • preproc_wg.sh
  • preproc_staff.sh

Further the auxiliary routine

  • extract_title.sh

ist used.

The main routine for preprocessing is

  • preproc_topic.sh

The main tools for the preprocessor are regular expressions and sed. These tools are used in order to translate keys for working groups or staff members into predefined values. These values are extracted from the corresponding files in /static.

The following image shows the header of a markdown file before and after the preprocessor run

image

preproc_wg.sh

This subroutine is responsible for substituting the keys of the working groups: aa, cm, dm, nm, st by their full name and a link in markdown syntax.

More precisely, when calling preproc_wg.sh on a markdown file, the line

### Working Groups: aa

is translated into

### Working Groups: [Lehrstuhl Angewandte Analysis](aa.html)

Furthermore a file aa.md is created containing the line

## [Finite Sections of Aperiodic Schrödinger Operators](aperiodSchr.html)

See the command line help for further information regarding the options, or type

preproc_wg.sh --help

preproc_staff.sh

This subroutine is responsible for substituting the keys of the staff members: dgallaun, fgabel by their full name and a link in markdown syntax.

More precisely, when calling preproc_staff.sh on a markdown file, the line

### Collaborators (MAT): dgallaun, fgabel

is translated into

 ### Collaborators (MAT): [Dennis Gallaun, M. Sc.](dgallaun.html), [Fabian Gabel, M. Sc.](fgabel.html)

Furthermore a files dgallaun.md and fgabel.md are created containing the line

## [Finite Sections of Aperiodic Schrödinger Operators](aperiodSchr.html)

See the command line help for further information regarding the options or type

preproc_staff.sh --help

extract_title.sh

For a given markdown file topic.md containing the line

# Title of my topic

this routine returns

## [Title of my topic](topic.html)

to stdout. See the command line help for further information regarding the options or type

extract_title.sh --help

preproc_topic.sh

This routine calls preproc_wg.sh and preproc_staff.sh. See the command line help for further information regarding the options or type

preproc_topic.sh --help

Clone repository
  • Continuous Integration and Continuous Deployment
  • Dependencies
  • Editing Markdown
  • Getting Started
  • Integrations
  • Maintenance
  • Postprocessing
  • Preprocessors
  • Program Flow
  • Repository Structure
  • Styleguide
  • Testing
  • Workflow
  • Home