invoice2data icon indicating copy to clipboard operation
invoice2data copied to clipboard

Chunks Plugin

Open sam-slater opened this issue 6 years ago • 1 comments

Chunks Plugin

more specific multi-lined version of lines.

  • "start" and "end" declares the global section where all chunks will be in (Not mandatory. if not stated then uses whole invoice text)

-"chunk_start" and "chunk_end" similar to "start" and "end" but defines the start and end of the single or repeating chunk, e.g start of each meter reading in an invoice (Mandatory)

  • "chunk" similar to the "line" key in the lines plugin but allows for multi-line regex expressions (Mandatory)

-"repeat" loops through the content to find every chunk that matches (Not mandatory - defaults to "False")

sam-slater avatar Aug 28 '19 09:08 sam-slater

I wand and/or need this.

rhbvkleef avatar Oct 22 '19 15:10 rhbvkleef

Hi guys, if you find time to further work on this feature, please feel free to reopen this pull request. As mentioned by @m3nu this needs to be documented. Also with the introduction of parsers we should probably redesign this. I think we may need to add some kind of content pre-processing syntax that will be reusable for any field.

rmilecki avatar Feb 03 '23 23:02 rmilecki