ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

Finished Coding Snack: Separate .txt file at any specified punctuation mark

<< < (5/8) > >>

Quidnunc:
Timns

If you are happy to do a tweak then could Iask for this to be included:

After splitting  the text into sentences etc, to:
1) number each complete unit (a unit being the separated text, even if it wraps to another line i.e. only complete units to be numbered but not wrapped lines.
2) put a space between the number and start of text. 


Nit-picking I know but if it is possible without too much trouble then it would be even better than it already is.

timns:
Extremely simple to do, in fact, so no problem.

Literally like this?

1 blah blah blah blah blah,

2 blah BLAH blah blah-blah.

3 bla blah blah Blahhhhhh blah <long line>
blah blah blah.

4 and blah?

How would you like the numbers formatted?

Quidnunc:
Yes, that is exactly how I would like it to appear but I'm not sure what you mean by 'formatting the numbers'.  Do you mean just as numbers-1 2 3....or in some other way-e.g. Roman numerals?  If so just plain numbers will be fine.

timns:
Yes, that is exactly how I would like it to appear but I'm not sure what you mean by 'formatting the numbers'.  Do you mean just as numbers-1 2 3....or in some other way-e.g. Roman numerals?  If so just plain numbers will be fine.
-Quidnunc (November 28, 2011, 10:40 AM)
--- End quote ---

Some examples, all of which would be equally easy:

1 sentence
1. sentence
1/ sentence
(1) sentence
001 sentence
001 <tab character> sentence

etc. etc.

Quidnunc:

001. sentence would be great (as there could be 000's of sentences scope to accommodate this, say up to five figures, would be good).

Trevor

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version