Code Monkey home page Code Monkey logo

govspeakify-tables's Introduction

govspeakify-tables

Project Status: Concept โ€“ Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept. Blog post

A demo R Shiny app (takes a few moments to load) to convert a pasted table to Govspeak Markdown.

This is a proof-of-concept for Shinylive, which means all the R code is executed within the user's browser without the need for a server. I wrote more about this in a blog post.

Gif of an app called 'Govspeakify Tables'. A table is pasted into a text box, then a checkbox is ticked to say that the table has row titles and the number 4 is written into a text box that asks for row numbers that contain totals. The 'convert to Govspeak' button is clicked and a special Markdown version of the pasted table is printed. A 'copy' button underneath it is clicked.

govspeakify-tables's People

Contributors

matt-dray avatar

Stargazers

 avatar  avatar

Watchers

 avatar

govspeakify-tables's Issues

Convert a single pasted table to Govspeak

  • Provide area to paste input
  • Text input for ignore_regex (defaults to ",|%|\\[.\\]")
  • Checkbox for has_row_titles (defaults to FALSE)
  • Numeric input/multiselect dropdown for totals_rows (defaults to NULL)
  • Button to convert
  • Verbatim output
  • Button to copy to clipboard

Tweak minor interface elements

  • Use 'e.g. 4' for text of placeholder (more obvious that it needs to be left alone/changed).
  • Use integers for the column in the example table that is fully numeric.
  • Is there a better icon for the 'Convert to Govspeak' button?
  • Rename 'Convert to Govspeak' to just 'Convert'?
  • Link to blog post about this app in particular.
  • Provide a brief description of the app's purpose.

Improve the UI

Doesn't matter too much as long as the app serves its purpose and is useable. But may want to prettify it once all the features are included.

Better explanation/interface for ignoring strings

You can ignore certain strings when assessing cell values for their type. At the moment this requires the user to provide a regular expression, though there is a pre-filled default. A better approach might be to allow the user to input individual sets of characters without needing to provide it as a regular expression directly. There could be a series of tickboxes in the form 'ignore square brackets', etc, but I don't know all the possible things that people might want to ignore, so we should keep the input relatively 'open', I think.

The app doesn't load

The app begins to load when you click the link (the hexagon loading animation plays), then it goes blank and finally 404s. This wasn't a problem when I used the Shinylive demo app.

Make all rows of each column the same width

So:

| Column 1              | Column 2 |
| :-------------------- | -------: |
| Text                  |    1,000 |
| Some much longer text |    2,000 |

Rather than:

| Column 1 | Column 2 |
| :---- | ----: |
| Text | 1,000 |
| Some much longer text | 2,000 |

The former will be easier to read and check by eye.

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.