Coder Social home page Coder Social logo

thecdil / dramaturgy Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 10.18 MB

Home Page: https://thecdil.github.io/dramaturgy/

License: MIT License

HTML 72.05% Ruby 0.03% SCSS 8.84% JavaScript 10.09% CSS 9.00%
collectionbuilder digital-collection collection-metadata

dramaturgy's People

Contributors

dcnb avatar dekingraham avatar evanwill avatar owikle avatar sarahfocam avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rgalas1

dramaturgy's Issues

could use recogito.js to create annotations and download, then integrate into project

i.e. sort of like the workflow we talked about using hypothes.is

workflow:

  • click button "annotate mode"
  • create/edit some annotations displayed in recogito style mode
  • click "download annotations" button
  • js creates a CSV of annotations with id, text, text position start and end
  • the CSV can be added to project annotation CSV, which is then used to generate annotations on the live public page

uses r.getAnnotations(),
transforms the objects into csv-like form,
download as file using something like filesaver.js

advantages: this gets us the sort of detailed markup annotation, with built in method to create/edit (without a database), with the data necessary to create a detailed highlight for the annotation (i.e. start/end character numbers).

disadvantage: sort of odd work around workflow? (but maybe not as odd as trying to fit detailed annotation into a csv line by line)

script version outputs

output different views / printable versions of script

  • clean text
  • diff text
  • annotations only
  • annotations as footnotes

character appearance visualization

visualize where each character's lines appear in the text to give overview of appearances
(similar to OHD colored bar viz)
each unit of bar is line, highlighted if the line matches the character.

use CSS to add line numbers?

something like:

<style> 
    body { counter-reset: section; }
    #contents-container .textline::before {
        counter-increment: section;
        content: counter(section);
    }
</style> 

The count is auto generated by counting some element selector, so would need to tweak which container it is counting to get line numbers that match what we want.

advantage = when you select text, you don't get the line numbers (is this good?). might simplify markup and layout and getting auto numbered lines for display.

disadvantage = potentially doesn't correspond to line # as listed in csv. However, that might get confusing in the text display if the line numbers are off in the csv in general anyway.

column for edited line / cut lines

in script lines spreadsheet, each line can be edited by adding updated version (or cut) to edited column.
display page has way to toggle between original and edited version.

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.