Page length and numbering

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Fritters
Posts: 1
Joined: Tue Nov 22, 2005 7:47 am

Page length and numbering

Postby Fritters » Tue Nov 22, 2005 7:56 am

I'm trying to convert a Word document to a specific txt format used by court reporters (Amicus). 65 characters each line, 25 lines per page. Each page is numbered at the top left with page number padded by "0's" to five digits e.g. 00075; followed on the next line by the first line of text.

How can I do the page numbering? and lines per page?

TIA

User avatar
DataMystic Support
Site Admin
Posts: 2154
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Dec 05, 2005 9:05 am

I've posted the filter via email, the File\Export text is pasted below for reference:

Filter List
-----------
Filter options
| [ ] Log to file
| [X] Append to logfile
| Log filename: textpipe.log
| Threshold 500
|
|--Input from file(s)
| [ ] Confirm before processing each file
| [ ] Confirm before processing read/only files
| [ ] Delete input files after processing
| Process binary files
|
|--Convert Word documents to text
|
|--Convert Tabs to 2 spaces
|
|--Remove blanks from Start of Line
|
|--Remove blanks from End of Line
|
|--Remove blank lines
|
|--Word wrap (column width 70)
|
|--VBScript script Timeout: 10000 milliseconds
| 'add page number at top of every page
|
| dim page
| dim linecount
| const linesperpage = 25
|
| function processLine(line, EOL)
|
| linecount = linecount + 1
| if linecount >= linesperpage then
| linecount = 0
| page = page + 1
| processLine = "##PAGE " & page & " ## " & line & EOL
| else
| processLine = line & EOL
| end if
|
| end function
|
|
| sub startJob()
| page = 0
| linecount = linesperpage + 1
| end sub
|
|
| sub endJob()
| end sub
|
|
| function startFile()
| startFile = ""
| end function
|
|
| function endFile()
| endFile = ""
| end function
|
|--Split after 25 lines, filename %f.%e.%3.3d, number 0
|
|--Add header [\f]
|
+--Output to file(s)
[ ] Only update date on changed files
[ ] Keep original file's date and time
[ ] Append mode
[X] Change extension to: .txt
Output folder: C:\
[X] Maintain folder structure
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest