Kinook Software Forum

Go Back   Kinook Software Forum > Ultra Recall > [UR] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-14-2022, 05:37 AM
Spliff Spliff is online now
Registered User
 
Join Date: 04-07-2021
Posts: 212
Tiny import bug

Import - Select Source - A text or rich text file - Delimiter Info - Blank Lines - 1 (I don't remember if the same fault is present with multiple blank-lines, but I think it is): does not work, I tried with `n, `r`n and `r; as above, and then - "A String", and then "|" e.g. works though.

EDIT: Just to clarify: I tried with DOUBLE `n, `r`n, `r, of course.

Last edited by Spliff; 05-14-2022 at 07:08 AM.
Reply With Quote
  #2  
Old 05-15-2022, 10:38 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
It works as expected in my test. Using attached file with Blank Lines - 1, I got the attached .urd file.
Attached Files
File Type: zip test.zip (81.1 KB, 1411 views)
Reply With Quote
  #3  
Old 05-17-2022, 10:25 AM
Spliff Spliff is online now
Registered User
 
Join Date: 04-07-2021
Posts: 212
Thank you for having checked. For me, it didn't and doesn't work though, neither for 1 blank line, nor for 2, etc., blank lines are not recognized as divider; I have now created a new file, in an editor, with no blank lines, then I have put RETURNS before the digits, in order to get 6 sub items under my UR target "Importtrial"; I just get 1 sub-item, with the full text, instead of 6, with the chunks each.

File-Import
Text or rich text RTF
file to import: path, Delimiter: Blank Lines 1
Where: Selected item > Finish

I checked the attached EmEditor file for \r\n\r\n, and got the blank lines ("Escape Sequence yes") as search hits; as said, it's in the form I imported it into UR > 1 sub-item, not 6.


EDIT:

Your file imported correctly in my UR file / item, whilst mine didn't / doesn't; mine is a realistic one though, with "content" between the titles, yours is just some titles separating the blank lines; in EmEditor, your blank lines identified as \r\n\r\n, just like in my text.

Please tell me if my text imported correctly into your UR file; if not, why might that be?

(Always speaking of the above import into a default, native ("factory") "Text" item (i.e. plain-text into an rtf content field).)
Attached Files
File Type: txt import1.txt (4.0 KB, 1370 views)

Last edited by Spliff; 05-17-2022 at 11:47 AM.
Reply With Quote
  #4  
Old 05-17-2022, 09:36 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
So there is an issue with using the Blank lines option with multi-line paragraphs (with newlines):

text here<newline>
more text here<newline>
<newline>
abc<newline>
def<newline>
xyz<newline>
<newline>
my test<newline>
goes here

vs.

one line<newline>
<newline>
second<newline>
<newline>
third

As an alternative, you can use A string and press Enter twice for the delimiter.
Reply With Quote
  #5  
Old 05-18-2022, 01:33 AM
Spliff Spliff is online now
Registered User
 
Join Date: 04-07-2021
Posts: 212
Thank you, Kyle, for having confirmed; as I had said, just using a special char instead, e.g. "|", works fine; for this, I have to replace blanklines between my (real data) chunks (but not the ones within them) by a "|" each; this is automated but just will then fail for visual checking of my data, on screen the chunks are not separated anymore; instead, I can of course do both, replace the blank lines between chunks not by | but by blankline plus |, so there is no real problem, I just had wanted to mention that it didn't work as expected.

My real data doesn't consist in multiple short lines with `r`n, but with hundreds of chunks, each with just 5, 6, 8 paragraphs, separated with single blank lines, the chunks being separated by 2 blank lines each, and then, the realistic divider for UR import is TWO blanklines, with the single blanklines within the chunks being preserved, and this hadn't worked.

Thus I then had tried, with the single blank lines within the chunks being done away with beforehand, to import multiple chunks in UR, with single blank lines as separator, failed again; obviously, when there are also single `r`n (or `r or `n) within the chunks, the UR import won't distinguish `r`n`r`n, etc., i.e. multiple occurrences of those as separator anymore, this should be a very simple error in the code.

So my example file doesn't LOOK that realistic indeed, since all the lines = paragraphs are very short, but that was just my typing, in fact:

Whenever there are newlines (of any kind) within the chunks (i.e. "content", beyond just the line which will become the chunk's title), blank lines (single or multiple) are not recognized as chunk separator anymore.

( So you found the exception, but the rule is wider than my quick example (without any blank lines left within the chunks) seems to indicate: The problem is not multi-line paragraphs, but ANY paragraphs, even "regular" ones, separated by blank lines, within the chunks. ;-) )
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:18 AM.


Copyright © 1999-2023 Kinook Software, Inc.