Code Monkey home page Code Monkey logo

poesieland_back-office's Introduction

poesieland_back-office

Back-office tools for managing http://poesieland.free.fr French poems.

Data is privately stored in XML and is used to generate markdown files.

There is also a markdown to storage feature.

poesieland_back-office's People

Contributors

postb99 avatar

Watchers

 avatar

poesieland_back-office's Issues

Update verseLength format

We want to manage poems with variable verse length. Example: "4, 6".

xml to md: verseLength value is -1 and the verse length gets written to info.

Don't change anything for frontmatter format but add notice below selector "Put -1 here when variable length and add values in info". Then add "Vers variable : 4, 6" in info.

So that reading back from md to xml keeps the information.

To implement; importing a poem should detect "Vers variable :" in info and in this case should add this value to Info field and set VerseLength to -1.

Required for #25

Improve XML storage format

  • Update short dates to be full dates with day and month 01 ✅
  • Update XSD and data so the subcategories become categories and categories become tags 😒 finally no change but every category has a subcategory yet for more consistency ✅
  • Check for a simpler way of storing acrostiche metadata : an Acrostiche element with three attributes, "simple", "first" and "second".

Improve UT when poem has additional data

  • Visually check the .md generated, with an extensive set of poem properties set, not only random matching poems. Example "Bleu blanc larmes" seems to miss a line break.

Choose a JS lib to make simple statistics graphs

Best would be fed from JSON data or so, that would be generated from back-office.

  • pie charts (a season's poems tags)
  • histograms (for verse length)
  • spider chart (all poems by day of year, seems nice this way)

chartjs.org

Improve bubble charts

When lass than 50% of max bubble count, multiply bubble computed radius value by 2 but choose a lighter color for this bubble (2 colors for all bubbles).

Because we really have so small bubbles, almost not noticeable.

Update some charts or pages with EN poems info

Prerequisite: #40

  • ✅season's index file: add links to EN poems, when any, after the regular children.
  • ✅season's index file: update interval chart taking into account EN poems.
  • ✅main poem by day radar: take into account EN poems.
  • ✅white days pie chart: take into account EN poems.
  • ✅day of week pie chart: take into account EN poems.
  • ✅poems intensity pie chart: take into account EN poems.
  • ✅general interval chart: take into account EN poems.

Add locations taxonomy

Add "où je n'ai pas été" term for locations related to imaginary travels

Clean metadata processor code

Use existing method rather than buggy lighter implementation for extracting tags and date (fix tags import, this is not implemented yet, beware it's single-line or not).

Adapt unit and utility test.

Generate poems' .md

  • ✅ uncapitalize tags (check every one)
  • ✅ fix paragraph output
  • ✅ add menu entry
  • implement all seasons poems generation (las thing to do)

Generate seasons' .md

  • ✅ generate season's _index.md from an unit test
  • ✅ check every season's information formatting (whitespace)
  • ✅ generate season's _index.md from Program with menu
  • ✅ add submenu choice to input season id or all

Add new poem from .md to storage file

  • import TOML and YAML metadata ✅
  • import verses ✅
  • update Engine ✅
  • fix blocking issue with XML serialization ✅
  • update console program ✅
  • import poems of season 16, 17, 18 (all, replace) ✅

Small fixes

Replace metadata separator of 3 "+" by "-"

Add chart: histo chart for verse length

Need to add verse length to every poem.

Currently 290/832 poems (34 %) with verse length specified
First poem without verse length specified: l_enfance_doree_1

Markdown issues

content/fr/seasons/14_quatorzieme_saison/entre_tes_bras.md:15:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 16]
content/fr/seasons/15_quinzieme_saison/_index.md:10:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 6]
content/fr/seasons/15_quinzieme_saison/la_pluie_sur_les_toits.md:13:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 16]
content/fr/seasons/16_seizieme_saison/cours_amants.md:24 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]
content/fr/seasons/16_seizieme_saison/le_ciel_et_nous.md:20 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]
content/fr/seasons/7_septieme_saison/courir_a_perte_d_ame.md:19:21 MD009/no-trailing-spaces Trailing spaces [Expected: 0 or 2; Actual: 3]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.