Browse Source

adding the xdex tool

master
manetta 5 years ago
parent
commit
671d629f53
  1. 0
      making-markers/LICENSE.txt
  2. 0
      making-markers/README.md
  3. 0
      making-markers/__pycache__/create_index.cpython-37.pyc
  4. 0
      making-markers/__pycache__/functions.cpython-37.pyc
  5. 0
      making-markers/__pycache__/readings.cpython-37.pyc
  6. 0
      making-markers/__pycache__/text.cpython-37.pyc
  7. 0
      making-markers/__pycache__/tfidf.cpython-37.pyc
  8. 0
      making-markers/colors.json
  9. 0
      making-markers/curves.json
  10. 0
      making-markers/functions.py
  11. 0
      making-markers/readings.py
  12. 9
      making-markers/start.py
  13. 0
      making-markers/static/contributions/BACK.md
  14. 0
      making-markers/static/contributions/COLOPHON.md
  15. 0
      making-markers/static/contributions/COVER.md
  16. 0
      making-markers/static/contributions/EMPTY.md
  17. 0
      making-markers/static/contributions/INDEX.md
  18. 0
      making-markers/static/contributions/README.md
  19. 0
      making-markers/static/contributions/TOC.md
  20. 0
      making-markers/static/contributions/collective-conditions.md
  21. 0
      making-markers/static/contributions/collective-intro-for-publication.md
  22. 0
      making-markers/static/contributions/holding-spell.md
  23. 0
      making-markers/static/contributions/iteration-5.md
  24. 0
      making-markers/static/contributions/rica-rickson.md
  25. 0
      making-markers/static/contributions/score-esc.md
  26. 0
      making-markers/static/contributions/spideralex.md
  27. 0
      making-markers/static/css/curves.css
  28. 0
      making-markers/static/css/stylesheet.css
  29. 0
      making-markers/static/css/text-scan.css
  30. 0
      making-markers/static/curves/014-Loren-Britton-Disclaimer_5000.jpg
  31. 0
      making-markers/static/curves/1.svg
  32. 0
      making-markers/static/curves/10.svg
  33. 0
      making-markers/static/curves/11.svg
  34. 0
      making-markers/static/curves/12.svg
  35. 0
      making-markers/static/curves/13.svg
  36. 0
      making-markers/static/curves/14.svg
  37. 0
      making-markers/static/curves/15.svg
  38. 0
      making-markers/static/curves/16.svg
  39. 0
      making-markers/static/curves/17.svg
  40. 0
      making-markers/static/curves/18.svg
  41. 0
      making-markers/static/curves/2.svg
  42. 0
      making-markers/static/curves/3.svg
  43. 0
      making-markers/static/curves/4.svg
  44. 0
      making-markers/static/curves/5.svg
  45. 0
      making-markers/static/curves/6.svg
  46. 0
      making-markers/static/curves/7.svg
  47. 0
      making-markers/static/curves/8.svg
  48. 0
      making-markers/static/curves/9.svg
  49. 0
      making-markers/static/curves/test.svg
  50. 0
      making-markers/static/fonts/Brazil/.uuid
  51. 0
      making-markers/static/fonts/Brazil/BRAZIL BERN 18.11.2010 SHP.png
  52. 0
      making-markers/static/fonts/Brazil/BRAZIL description and license.rtf
  53. 0
      making-markers/static/fonts/Brazil/Brazil-Regular.otf
  54. 0
      making-markers/static/fonts/Brazil/OFL Brazil.txt
  55. 0
      making-markers/static/fonts/Brazil/OFL-FAQ.txt
  56. 0
      making-markers/static/fonts/go-mono/Go-Mono-Bold-Italic.ttf
  57. 0
      making-markers/static/fonts/go-mono/Go-Mono-Bold.ttf
  58. 0
      making-markers/static/fonts/go-mono/Go-Mono-Italic.ttf
  59. 0
      making-markers/static/fonts/go-mono/Go-Mono.ttf
  60. 0
      making-markers/static/fonts/go-mono/README
  61. 0
      making-markers/static/js/bezpath.js
  62. 0
      making-markers/static/js/curves.js
  63. 0
      making-markers/static/js/splineui.js
  64. 0
      making-markers/static/visual-traces/0033d7f98e0a5c733b16013ecd8005fa.png
  65. 0
      making-markers/static/visual-traces/diversity-2019.png
  66. 0
      making-markers/static/visual-traces/etherpump.png
  67. 0
      making-markers/templates/base.html
  68. 0
      making-markers/templates/color.html
  69. 0
      making-markers/templates/curves.bak.html
  70. 0
      making-markers/templates/curves.html
  71. 0
      making-markers/templates/index.html
  72. 0
      making-markers/templates/text-scans.html
  73. 0
      making-markers/templates/text-specifics.html
  74. 61
      making-markers/templates/text.html
  75. 0
      making-markers/templates/visual-traces.html
  76. 7
      making-markers/text.json
  77. 0
      making-markers/text.py
  78. 0
      making-markers/tfidf.py
  79. 0
      making-markers/visual-traces.json
  80. 0
      text.json
  81. 1
      xdex

0
LICENSE.txt → making-markers/LICENSE.txt

0
README.md → making-markers/README.md

0
__pycache__/create_index.cpython-37.pyc → making-markers/__pycache__/create_index.cpython-37.pyc

0
__pycache__/functions.cpython-37.pyc → making-markers/__pycache__/functions.cpython-37.pyc

0
__pycache__/readings.cpython-37.pyc → making-markers/__pycache__/readings.cpython-37.pyc

0
__pycache__/text.cpython-37.pyc → making-markers/__pycache__/text.cpython-37.pyc

0
__pycache__/tfidf.cpython-37.pyc → making-markers/__pycache__/tfidf.cpython-37.pyc

0
colors.json → making-markers/colors.json

0
curves.json → making-markers/curves.json

0
functions.py → making-markers/functions.py

0
readings.py → making-markers/readings.py

9
start.py → making-markers/start.py

@ -41,16 +41,19 @@ def text():
markertype = request.args.get('marker-type', '').strip() markertype = request.args.get('marker-type', '').strip()
db, x = load_db('text.json') db, x = load_db('text.json')
markers = [db[x]['marker'] for x in db.keys()] markers = [db[x]['marker'] for x in db.keys()]
if marker: if marker:
if marker not in markers: if marker not in markers:
x = str(x + 1) x = str(x + 1)
db[x] = {} db[x] = {}
db[x]['marker'] = marker db[x]['marker'] = marker
db[x]['type'] = markertype db[x]['type'] = markertype
write_db('text.json', db) # write_db('text.json', db)
markers.append(marker) markers.append(marker)
for i in range(1, int(x)):
# description = request.args.get('description-{}'.format(i), '').strip()
description = request.args.get('description-1', '').strip()
db[str(i)]['description'] = description
write_db('text.json', db)
return flask.render_template('text.html', tools=tools, tool='text', db=db) return flask.render_template('text.html', tools=tools, tool='text', db=db)

0
static/contributions/BACK.md → making-markers/static/contributions/BACK.md

0
static/contributions/COLOPHON.md → making-markers/static/contributions/COLOPHON.md

0
static/contributions/COVER.md → making-markers/static/contributions/COVER.md

0
static/contributions/EMPTY.md → making-markers/static/contributions/EMPTY.md

0
static/contributions/INDEX.md → making-markers/static/contributions/INDEX.md

0
static/contributions/README.md → making-markers/static/contributions/README.md

0
static/contributions/TOC.md → making-markers/static/contributions/TOC.md

0
static/contributions/collective-conditions.md → making-markers/static/contributions/collective-conditions.md

0
static/contributions/collective-intro-for-publication.md → making-markers/static/contributions/collective-intro-for-publication.md

0
static/contributions/holding-spell.md → making-markers/static/contributions/holding-spell.md

0
static/contributions/iteration-5.md → making-markers/static/contributions/iteration-5.md

0
static/contributions/rica-rickson.md → making-markers/static/contributions/rica-rickson.md

0
static/contributions/score-esc.md → making-markers/static/contributions/score-esc.md

0
static/contributions/spideralex.md → making-markers/static/contributions/spideralex.md

0
static/css/curves.css → making-markers/static/css/curves.css

0
static/css/stylesheet.css → making-markers/static/css/stylesheet.css

0
static/css/text-scan.css → making-markers/static/css/text-scan.css

0
static/curves/014-Loren-Britton-Disclaimer_5000.jpg → making-markers/static/curves/014-Loren-Britton-Disclaimer_5000.jpg

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

0
static/curves/1.svg → making-markers/static/curves/1.svg

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

0
static/curves/10.svg → making-markers/static/curves/10.svg

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

0
static/curves/11.svg → making-markers/static/curves/11.svg

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

0
static/curves/12.svg → making-markers/static/curves/12.svg

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
static/curves/13.svg → making-markers/static/curves/13.svg

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

0
static/curves/14.svg → making-markers/static/curves/14.svg

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

0
static/curves/15.svg → making-markers/static/curves/15.svg

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

0
static/curves/16.svg → making-markers/static/curves/16.svg

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

0
static/curves/17.svg → making-markers/static/curves/17.svg

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
static/curves/18.svg → making-markers/static/curves/18.svg

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

0
static/curves/2.svg → making-markers/static/curves/2.svg

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
static/curves/3.svg → making-markers/static/curves/3.svg

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

0
static/curves/4.svg → making-markers/static/curves/4.svg

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

0
static/curves/5.svg → making-markers/static/curves/5.svg

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

0
static/curves/6.svg → making-markers/static/curves/6.svg

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

0
static/curves/7.svg → making-markers/static/curves/7.svg

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

0
static/curves/8.svg → making-markers/static/curves/8.svg

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

0
static/curves/9.svg → making-markers/static/curves/9.svg

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

0
static/curves/test.svg → making-markers/static/curves/test.svg

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

0
static/fonts/Brazil/.uuid → making-markers/static/fonts/Brazil/.uuid

0
static/fonts/Brazil/BRAZIL BERN 18.11.2010 SHP.png → making-markers/static/fonts/Brazil/BRAZIL BERN 18.11.2010 SHP.png

Before

Width:  |  Height:  |  Size: 789 KiB

After

Width:  |  Height:  |  Size: 789 KiB

0
static/fonts/Brazil/BRAZIL description and license.rtf → making-markers/static/fonts/Brazil/BRAZIL description and license.rtf

0
static/fonts/Brazil/Brazil-Regular.otf → making-markers/static/fonts/Brazil/Brazil-Regular.otf

0
static/fonts/Brazil/OFL Brazil.txt → making-markers/static/fonts/Brazil/OFL Brazil.txt

0
static/fonts/Brazil/OFL-FAQ.txt → making-markers/static/fonts/Brazil/OFL-FAQ.txt

0
static/fonts/go-mono/Go-Mono-Bold-Italic.ttf → making-markers/static/fonts/go-mono/Go-Mono-Bold-Italic.ttf

0
static/fonts/go-mono/Go-Mono-Bold.ttf → making-markers/static/fonts/go-mono/Go-Mono-Bold.ttf

0
static/fonts/go-mono/Go-Mono-Italic.ttf → making-markers/static/fonts/go-mono/Go-Mono-Italic.ttf

0
static/fonts/go-mono/Go-Mono.ttf → making-markers/static/fonts/go-mono/Go-Mono.ttf

0
static/fonts/go-mono/README → making-markers/static/fonts/go-mono/README

0
static/js/bezpath.js → making-markers/static/js/bezpath.js

0
static/js/curves.js → making-markers/static/js/curves.js

0
static/js/splineui.js → making-markers/static/js/splineui.js

0
static/visual-traces/0033d7f98e0a5c733b16013ecd8005fa.png → making-markers/static/visual-traces/0033d7f98e0a5c733b16013ecd8005fa.png

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

0
static/visual-traces/diversity-2019.png → making-markers/static/visual-traces/diversity-2019.png

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

0
static/visual-traces/etherpump.png → making-markers/static/visual-traces/etherpump.png

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

0
templates/base.html → making-markers/templates/base.html

0
templates/color.html → making-markers/templates/color.html

0
templates/curves.bak.html → making-markers/templates/curves.bak.html

0
templates/curves.html → making-markers/templates/curves.html

0
templates/index.html → making-markers/templates/index.html

0
templates/text-scans.html → making-markers/templates/text-scans.html

0
templates/text-specifics.html → making-markers/templates/text-specifics.html

61
templates/text.html → making-markers/templates/text.html

@ -22,35 +22,36 @@
</select> </select>
<input class="submit" type="submit" value="submit"/> <input class="submit" type="submit" value="submit"/>
<input class="reset" type="reset"> <input class="reset" type="reset">
</form> <hr>
<hr> <div id="markers">
<div id="markers"> <h2><strong class="annotation">textual markers</strong> gathered so far include:</h2>
<h2><strong class="annotation">textual markers</strong> gathered so far include:</h2> <br>
<br> <table>
<table> <thead>
<thead> <th>marker</th>
<th>marker</th> <th>description</th>
<th>description</th> <th>status</th>
<th>status</th> </thead>
</thead> <tbody>
<tbody> {% for x in db.keys() %}
{% for x in db.keys() %} <tr>
<tr> <td>
<td> <div>({{ db[x]['type'] }}) {{ db[x]['marker'] }}</div>
<div>({{ db[x]['type'] }}) {{ db[x]['marker'] }}</div> </td>
</td> <td>
<td> <textarea cols="100" rows="5" name="description-{{x}}">{% if db[x]['description'] %}{{ db[x]['description'] }}{% endif %}</textarea>
<textarea cols="100" rows="5" name="description-{{x}}"></textarea> </td>
</td> <td>
<td> <select name="status-{{x}}">
<select name="status-{{x}}"> <option value="delete">delete</option>
<option value="delete">delete</option> <option value="unsure">unsure</option>
<option value="unsure">unsure</option> <option value="include" selected="selected">include</option>
<option value="include" selected="selected">include</option> </select>
</select> </td>
</td> {% endfor %}
{% endfor %} </tbody>
</tbody> </table>
</table> <input class="submit" type="submit" value="submit"/>
</form>
</div> </div>
{% endblock %} {% endblock %}

0
templates/visual-traces.html → making-markers/templates/visual-traces.html

7
making-markers/text.json

@ -0,0 +1,7 @@
{
"1": {
"marker": "test",
"type": "question",
"description": ""
}
}

0
text.py → making-markers/text.py

0
tfidf.py → making-markers/tfidf.py

0
visual-traces.json → making-markers/visual-traces.json

0
text.json

1
xdex

@ -0,0 +1 @@
Subproject commit 0b76ffb1503d870586ec70858f8b00ca5ce3f441
Loading…
Cancel
Save