Questions tagged [slate]

Slate is a Python package that can extract text from a PDF file.

Slate, available at https://pypi.python.org/pypi/slate, takes as input a file-like object representing a PDF file and returns the text from the file.

78 questions
8
votes
1 answer

In Slate.js editor.apply(operation) is not applying "split_node" operations correctly

I am designing a google-doc like collaborative tool with latest React + Slate as Frontend and Flask in Backend. I am using socket-io in React and flask_socketio in Python to emit and listen content from other collaborators. React app code: const…
HoneyBeer
  • 432
  • 6
  • 14
6
votes
1 answer

Slate Editor Issue: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":30}

Description: The error is thrown when I add a custom link into a slate editor at current cursor position and use tab or space after the inserted link. This is the code I am using to add my custom link DOM element into slate editor at current cursor…
roshan1892
  • 81
  • 1
  • 7
6
votes
1 answer

Best way to convert SlateJs to pdf

I don't know if is the best way, but i trying to converte slate js to pdf using jspdf. o realized that it is not easy. convert slate js 'Value' to jspdf can be very complicate. someone know if there is some other way to converte slate js to pdf, a…
Edison Junior
  • 320
  • 1
  • 6
5
votes
1 answer

Markdown not interpreted by Ruby redcarpet correctly

I have a following markdown for my slate project: --- title: API Reference language_tabs: - http - javascript search: true --- # Getting Started ## Logout # Call Management ## Call States ```javascript { } ``` ## Call Notification ## Caller ID…
Joy
  • 9,430
  • 11
  • 44
  • 95
4
votes
1 answer

What is the meaning of "universal: true" from a slate.js example?

What is the "universal: true" statement in the following code for? isAziendaMarkActive(editor) { const [match] = Editor.nodes(editor, { match: n => n.isAzienda === true, universal: true, }) Thanks so much, Elena
elena
  • 123
  • 1
  • 11
4
votes
1 answer

Text selection in React Slate no longer marked when focus changes to React Select

I don't know if this is a common issue or a mistake on our part but maybe someone has an idea: We're building an HTML editor with react and slate. The User can select a textbox and then change attributes. This works fine for simple buttons. …
Pete
  • 10,720
  • 25
  • 94
  • 139
4
votes
1 answer

Fixed page header and in-page anchors vs. Tripit Slate

This question is about getting hashed URLs (like mydomain.com/somepage#SomeAnchor) to scroll out from under a fixed page header, when those URLs are jump targets. It's an offshoot of this answered question – but I'm wondering whether anyone has…
4
votes
3 answers

Extracting text of Pdf on windows 8 using python 3.5.0

I want to extract texts from Pdf file using python 3.5.0 with the help of slate package on windows8. Problem: Although I have installed slate package successfully still when i am trying to import slate there are certain errors.Please suggest what i…
B Singh
  • 93
  • 1
  • 10
3
votes
0 answers

How to externally edit SlateJS editor values

I'm recreating Discord chat. I'm using SlateJS to achieve this. I have many editors displayed on the page, and I have an Emoji Button. I'd like to be able to externally edit the value of the editors, so when a click on an emoji, the name of it is…
3
votes
1 answer

Can I create nested list in SlateJs?

I need to create nested list objects like : 1. Abc 2. def a. abc i. lmn ii. opq b. def 3. ghi I am using Slate Js as my editor where when a user presses tab I have added the code where the node is updated with its level : if…
Sonu Kumar
  • 31
  • 4
3
votes
1 answer

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 386: character maps to

I'm trying to read a pdf file with the slate library but it throws this error: import slate pdf = 'tabla9.pdf' with open(pdf,encoding="utf-8") as f: doc = slate.PDF(f) for page in doc[:2]: print(page) complete error: File…
3
votes
1 answer

Shopify variant swatches or radio buttons instead of dropdowns in Slate

Shopify's tutorial for color swatches isn't supported yet for Slate, and the select callback referenced no longer exists in the code base. Is it possible to modify this tutorial to work on Slate themes to create radio buttons or swatches instead of…
sophie f
  • 499
  • 5
  • 12
3
votes
1 answer

Shopify Slate won't build, zip or start?

Trying to get running with Shopify's Slate, it installs a new theme without errors but then we I navigate into the theme and try to run slate start or slate zip, I get this…
Laura
  • 355
  • 1
  • 4
  • 13
3
votes
0 answers

Combining/Integrating Swagger & Slate with Spring Microservices

I have a set of dockerized microservices (spring boot with jersey application) deployed on EC2 instances. Each service exposes rest apis which i need to create a spec for. As a first step, i have included swagger-core in all the spring boot apps…
Bharath
  • 1,787
  • 1
  • 20
  • 37
2
votes
0 answers

Convert value of old format to new format, react slate

I am migrating to newer version of react slate editor. But the data format of the new version is different than old one(0.47.x). Is there any function given by slate-react or slate itself for the conversion? The old data stored in the db is not…
Bhuwan Adhikari
  • 879
  • 1
  • 9
  • 21
1
2 3 4 5 6