dhaun / scrivx2pltr

Creates a Plottr file from a Scrivener 3 project
MIT License
1 stars 1 forks source link

Reading RTF #3

Open dhaun opened 3 years ago

dhaun commented 3 years ago

So Scrivener uses RTF for most files, eg. the descriptions of character and places. Plottr not only cannot read RTF, it doesn't seem to be using any other well-known format. Instead, it uses something that I can only describe as a convoluted mess:

[{"text":"Text "},{"text":"bold","bold":true},{"text":" "},{"text":"italic","italic":true},{"text":" "},{"text":"underlined","underline":true},{"text":" "},{"text":"strikethrough","strike":true},{"text":" Text"}]

The above is Plottr's internal format for this:

plottr-text

Not sure how to go from here. Maybe try and strip all the formatting for now.

dhaun commented 3 years ago

Currently thinking of going with https://github.com/joshy/striprtf It would strip all formatting. Stil better than not having your content at all.