From 09408da7ca9e2760f80234069325432e33df8ea2 Mon Sep 17 00:00:00 2001 From: Hartmut Seichter Date: Thu, 9 Nov 2023 18:45:12 +0100 Subject: [PATCH] fix for lines --- coursebuilder/__main__.py | 17 +++- test/simple/mod.interactsys.yaml | 154 ++++++++++++++++++------------- 2 files changed, 107 insertions(+), 64 deletions(-) diff --git a/coursebuilder/__main__.py b/coursebuilder/__main__.py index e61952f..2065554 100644 --- a/coursebuilder/__main__.py +++ b/coursebuilder/__main__.py @@ -38,16 +38,28 @@ class MarkdownGenerator: headline = False + # + # this implements a Markdown Grid-Table + # + for k,v in ti: if v == None: v = '' + # row head h = textwrap.wrap(k, h_len, break_long_words=False) wrapper = textwrap.TextWrapper(d_len) - t = [wrapper.wrap(i) for i in v.split('\n') if i != ''] + + # t = [wrapper.wrap(line) for line in v.split('\n')] # if line != '' + # t = list(itertools.chain.from_iterable(t)) + + t = [wrapper.wrap(line) for line in v.split('\n')] + + t = list(map(lambda e: [""] if e == [] else e, t)) t = list(itertools.chain.from_iterable(t)) - + + # get rows rows = list(itertools.zip_longest(h,t,fillvalue="")) @@ -61,6 +73,7 @@ class MarkdownGenerator: print(''.join(['+',"".ljust(h_len,'='),'+',"".ljust(d_len,'='),'+'])) headline = True + # to control pagebreaks for pandoc if pagebreak: print('\n\\newpage') diff --git a/test/simple/mod.interactsys.yaml b/test/simple/mod.interactsys.yaml index 80a5fd7..4849091 100644 --- a/test/simple/mod.interactsys.yaml +++ b/test/simple/mod.interactsys.yaml @@ -1,78 +1,108 @@ -# German -de: - name: Interactive Systems - id: InteractSys - instructor: Prof. Hartmut Seichter, PhD - goal: | + +name: + de: Interaktive Systeme + en: Interactive Systems + +instructor: + de: Prof. Hartmut Seichter, PhD + en: Prof. Hartmut Seichter, PhD + +id: + value: InteractSys + +credits: + value: 5 + +form-of-exam: + value: written + +form-of-instruction: + value: { 'lecture': 2, 'exersise': 2 } + +term: + value: 3 + +duration: + value: 1 + +kind: + value: compulsory + +goal: + de: | Studierende lernen vertieftes Wissen um grafische Nutzeroberflächen zu analysieren und informierte Designentscheidungen zu treffen. Dabei werden auch Grundlagen der Wahrnehmung vermittelt. Studierende entwickeln anhand von Prototypen anwendbares Wissen Interaktionen zu messen und anhand von wissenschaftlichen Methoden zu bewerten. - content: | + en: | + Students acquire in-depth knowledge how to analyze graphical user interfaces and make informed design decisions. + Participants will acquire basics of human perception and locomotion. Using graphical prototypes, students develop + actionable knowledge to measure interactions and to evaluate them using recent scientific methods. + +content: + de: | * Wahrnehmung * Visuelle Gestaltung von Graphischen Nutzerschnittstellen * Applikationsdesign mit Fokus auf GUI Konzepte * Nutzerstudien - * Evaluierungsmethoden mit interaktiven visuellen Systemen - form: flipped classroom mit digitalen Lermodulen und wöchentlichen Lernforum, Übungen am PC - prerequisites: Grundlagen Statistik, IETLS score 6.0 oder äquivalent - media-of-instruction: | - * H5P Lernmodule, Lernforum und Übungen am PC - * Auszug aus der Literaturliste: + * Evaluierungsmethoden mit interaktiven Systemen + * Statistikmethoden für UX-Design + en: | + * visual perception + * design of graphical user interfaces + * application design with focus on GUI concepts + * user studies + * evaluation methods of interactive systems + * statistical methods for UX design + +media-of-instruction: + de: | + H5P Lernmodule, Lernforum und Übungen am PC + + Auszug aus der Literaturliste: + + * Card, Stuart K., Thomas P. Moran, and Allen Newell. The Psychology of Human-Computer Interaction. Repr. Mahwah, NJ: Erlbaum, 2008. + * Cooper, Alan. About Face: The Essentials of Interaction Design, 4th Edition. 4th edition. Indianapolis, IN: John Wiley and Sons, 2014. + * Dix, Alan, Janet Finlay, Gregory D Abowd, and Russell Beale. Human-Computer Interaction. Pearson Education, 2003 + * Krug, Steve. Don't Make Me Think, Revisited: A Common Sense Approach to Web Usability. Third edition. Berkeley, Calif.: New Riders, 2014. + * Nielsen, Jakob. Usability Engineering. Boston: Academic Press, 1993. + en: | + H5P learing modules, lerning forum and exersises + + excerpt from literature: + * Card, Stuart K., Thomas P. Moran, and Allen Newell. The Psychology of Human-Computer Interaction. Repr. Mahwah, NJ: Erlbaum, 2008. * Cooper, Alan. About Face: The Essentials of Interaction Design, 4th Edition. 4th edition. Indianapolis, IN: John Wiley and Sons, 2014. * Dix, Alan, Janet Finlay, Gregory D Abowd, and Russell Beale. Human-Computer Interaction. Pearson Education, 2003 * Krug, Steve. Don't Make Me Think, Revisited: A Common Sense Approach to Web Usability. Third edition. Berkeley, Calif.: New Riders, 2014. * Nielsen, Jakob. Usability Engineering. Boston: Academic Press, 1993. - author-of-indenture: - used-in: Master Applied Computerscience - workload: | - - Vorlesung/Lernforum 2SWS - - Übung 2SWS - - Workload: Präsenz (Vorlesung + Übungen) 120h Projektbearbeitung 30h - credits: 5CP (5/120) - form-of-exam: Projekt - term: Wintersemester - frequency: einmal im Studienjahr - duration: 1 Semester - kind: Wahlpflicht - remarks: Lehrsprache ist Englisch - -# English -en: - name: Interactive Systems - id: InteractSys - instructor: Prof. Hartmut Seichter, PhD - goal: | - Students acquire in-depth knowledge how to analyze graphical user interfaces and make informed design decisions. - Participants will acquire basics of human perception and locomotion. Using graphical prototypes, students develop - actionable knowledge to measure interactions and to evaluate them using recent scientific methods. - content: Content and Topics - form: flipped classroom with interactive learning modules and weekly learning forum, lab exersies - prerequisites: foundations of statistics, IETLS score 6.0 or equivalent - media-of-instruction: | - * H5P Lernmodule - * learning forum - * exersises - * excerpt from literature list: - * Card, Stuart K., Thomas P. Moran, and Allen Newell. The Psychology of Human-Computer Interaction. Repr. Mahwah, NJ: Erlbaum, 2008. - * Cooper, Alan. About Face: The Essentials of Interaction Design, 4th Edition. 4th edition. Indianapolis, IN: John Wiley and Sons, 2014. - * Dix, Alan, Janet Finlay, Gregory D Abowd, and Russell Beale. Human-Computer Interaction. Pearson Education, 2003 - * Krug, Steve. Don't Make Me Think, Revisited: A Common Sense Approach to Web Usability. Third edition. Berkeley, Calif.: New Riders, 2014. - * Nielsen, Jakob. Usability Engineering. Boston: Academic Press, 1993. +prerequisites: + de: "Keine formalen Voraussetzungen. Vorhandenes Wissen in der Programmierung ist wünschenswert." + en: "No formal prerequisites. Programming knowledge is desireable." - author-of-indenture: - used-in: Master Applied Computer Science - workload: | - - lecture/learning forum 2SWS - - exersises 2SWS - - workload: in-person (lecture + exersises) 120h project work 30h - credits: 5CP (5/180) - form-of-exam: project - term: winter term - frequency: once per study year - duration: one semester - kind: elective - remarks: taught in English +author-of-indenture: + de: + en: + +used-in: + de: "Master Applied Computerscience" + en: "Master Applied Computerscience" + +workload: + de: "150h Gesamt mit 90h Präsenz und 60h Projektarbeit" + en: "overall 150h Gesamt mit 90h Präsenz und 60h Projektarbeit" + +form-of-exam: + value: alternative + +frequency: + value: once_per_year + +kind: + value: elective + +remarks: + de: + en: