Skip to content
Discussion options

You must be logged in to vote

Hi, In Reports > Coding Reports you can tick the Text Context box to perform this function. In Project > Settings you can set how many characters before and after.
In SQL try this, which will show the preceding 100 characters and the postceding 100 characters:

select code_text.cid, substr(source.fulltext, iif(code_text.pos0+1-100 < 1,1,code_text.pos0+1-100), code_text.pos1 - code_text.pos0+1 +200) as "Extended", substr(source.fulltext, code_text.pos0+1, code_text.pos1 - code_text.pos0+1) as "Coded Text" from code_text join source on code_text.fid = source.id

You should add 1 as sqlite starts the string at the position of 1, and not 0 as python does. ( I added the 1 on separately just for…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ccbogel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants