Export TP to TomeRaider (TP file to TomeRaider .txt)

Export TP to TomeRaider (TP file to TomeRaider .txt) Export to TomeRaider (Automatic)
 
Sort Tree if necessary
Export Tree as TP 6.x file for Hyperlink conversion in NoteTab
Run Convert TP4 Hyperlinks Clip in NoteTab (which will find and convert hyerlinks to nodes and strip out the text TABLE OF CONTENTS)
Re-load file into TP
Number 1st level of tree to assist jumping to groups of records (i.e. level 1 nodes)
Insert (single level) table of contents on first node of tree or sub-tree
Insert (all level) table of contents on first node of tree or sub-tree (if you want a long index at the end)
Convert Table of Contents pages to plain text
Copy Table of Contents pages to Note Tab
Run Convert "Full Conversion TP2.x File" Clip in NoteTab to convert to TR file format and add Table of Contents if Required
Sort the Index page (if necessary) to get alphabetical listing (Not in Tree Order)
Import the .txt into TomeRaider for Windows
Transfer to 5mx

Description

Description File contains NoteTab clips to assist with the conversion of TP files to TomeRaider text files for import into TomeRaider for Windows which may then be transferred to a PDA (Revised 20/06/2004)

Clip Installation

Clip Installation Open blank file in NoteTab
Press Ctrl+F2 to open a new clip
Copy the contents of Article Clip1: Convert TP4 Hyperlinks and paste into the NoteTab clip
Save the Clip (Ctrl+S)
Copy the contents of Article Clip2: Full Conversion TP2.x File and paste into the NoteTab clip
Save the Clip (Ctrl+S)

Clip1: Convert TP4 Hyperlinks

Clip1: Convert TP4 Hyperlinks Convert TP4 Hyperlinks
^!Jump Doc_Start
^!Replace "table of contents " >> "" ACIWS
^!Jump Doc_Start
^!Replace "uldb " >> "uldb
" ACIWS
^!Jump Doc_Start
^!Replace "\plain\f0\fs20\cf0\v idnode://" >> "
\plain\f0\fs20\cf0\v idnode://" ACIWS
^!Jump Doc_Start
^!Replace "\plain\f1\fs20\cf0\v idnode://" >> "\plain\f1\fs20\cf0\v idnode://" ACIWS
^!Jump Doc_Start

Clip2: Full Conversion TP2.x File

Clip2: Full Conversion TP2.x File 0) Full Conversion TP2.x File
; Revised Sunday 20-Jun-2004
;1) Convert TP 2.x File
^!Jump Doc_Start
^!Find " 5P9i0s8y19Z" CIWS
^!Jump Line_End
^!SelectTo 1:1
^!Keyboard DELETE
^!Jump Doc_Start
^!Replace "^T" >> " / " ACIWS
^!Jump Doc_Start
^!Replace "" >> "" ACIWS
^!Jump Doc_Start
^!Replace " 5P9i0s8y19Z" >> "" ACIWS
^!Jump Doc_Start
^!Replace "^P0^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P1^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P2^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P3^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P4^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P5^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P6^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P7^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P8^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P9^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^P10^P" >> "^P" ACIWS
^!Jump Doc_Start
^!Replace "^Pdt=Text" >> "" ACIWS
^!Select All
^!Keyboard ALT+M L T
^!Jump Doc_End

^!Jump Doc_Start
 
;3) Find Table of Contents
:Loop
^!Find "^PTable of Contents" CIS
^!IfError ExitLoop
^!Jump Line_End
^!Set %From%=^$GetRow$:^$GetCol$
^!Find "^P^P"
^!Jump Select_Start
^!Set %To%=^$GetRow$:^$GetCol$
^!SetCursor ^%From%
^!SelectTo ^%To%
^!Replace "^P" >> "
^P" ACIHS
^!Goto Loop
:ExitLoop
 
;5) Clean Up & Save As Text File
^!Jump Doc_Start
^!Replace "
" >> "" ACIWS
^!Jump Doc_Start
^!Replace "TABLE OF CONTENTS" >> "TABLE OF CONTENTS" ACIWS
^!Jump Doc_Start
^!Replace " / / " >> "" ACIWS
^!Jump Doc_Start
^!Replace "
/ " >> "" ACIWS
^!Jump Doc_Start
^!Replace "
" >> "" ACIWS
^!Jump Doc_Start
^!Replace "^P
^P" >> "^P^P" ACIWS
^!Jump Doc_End
^!Select Lines
^!Keyboard DELETE
^!Save As "^?{(T=D)path=e:\temp\}^?{TomeRaider.txt Document name (no extension=TomeRaider}.txt"