> For the complete documentation index, see [llms.txt](https://autoedit.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://autoedit.gitbook.io/documentation/transcriptions/papercuts/selections.md).

# Selections

## Component/part description

Make text selection of transcription

To look into <https://github.com/timdown/rangy>\
<https://developer.mozilla.org/en-US/docs/Web/API/Selection>

## Related projects

Hyperaudio, palestinian remix

## Implementations Options considered

### Palestinaian remix drag and drop

Palestinaian remix drag and drop

### Other

How to do text selection for highlight paper cuts. Currently in transcription show it traverse the DOM to update those.

Eg see selecting words function. That recognises uses selection.

<https://github.com/OpenNewsLabs/autoEdit_2/blob/paperedit/lib/app/views/transcription_view.js#L488>

And this function to update the dom with selections.

<https://github.com/OpenNewsLabs/autoEdit_2/blob/paperedit/lib/app/views/transcription_view.js#L91>\
There might be a better way to do this? Using rangy ?<br>

## Current implementation

## What needs refactoring


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://autoedit.gitbook.io/documentation/transcriptions/papercuts/selections.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
