Coder Social home page Coder Social logo

ironing-board's Introduction

Chat transcript ironing board

Reads in a username file and a transcript, (or a folder full of transcripts)
and renders the alignment in a pleasant fashion.

Usage

If you only have a single transcript to parse

$ chatscript-iron.rb path/to/usernames path/to/transcript

Or if there's a whole batch sitting in a folder

$ chatscript-iron.rb path/to/usernames path/to/transcript-folder

The usernames file can be in the same folder as the transcript folder.

When it's done go check the exported folder specified in the preferences.

Example

From this mess:

Amelia Mintz  Guess what we're having for dinner?
Tony Chu  Don't tell me.
Amelia Mintz  You eat and I'll write.
Colby    Well, the both of you can dine on beets, but I'm out for some steak
Poyo bok bok
Tony Chu  Who invited him?
Poyo bok bok
bok

The ironing board will render this:

Amelia Mintz   Guess what we're having for dinner?
Tony Chu       Don't tell me.
Amelia Mintz   You eat and I'll write.
Colby          Well, the both of you can dine on beets, but I'm out
               for some steak
Poyo           bok bok
Tony Chu       Who invited him?
Poyo           bok bok
               bok

License

BSD 3-Clause License.

License for demo files

Demo Campfire chat transcripts and list of users come from the class notes of GitHub's teach.github.com and are licensed under Creative Commons Attribution 3.0 Unported.

ironing-board's People

Contributors

randomecho avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ironing-board's Issues

Usernames matches first found, not best

If there are two similar usernames the script will assume for the first match on the line it finds, regardless if it actually belongs to another.

Example

List of users

Paul
Paul H.

Transcript

Paul H.  We've run out of prawns
Paul   Call everything off

When the script runs through it will see the first message as belonging to the user Paul and not to Paul H.

Currently the hodge is to have the more unique name appear first in the usernames file so that the script sees that first and jumps out when it matches.

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.