Dear all,
I have some problem for index tagging.
Input with each 3 leading spaces being a horizontal tab character in file:
Output with each 3 leading spaces being a horizontal tab character in file:
I created a macro for this tagging. Some time the macro is not working properly.
Here is my macro for your reference:
Then I want to tag it by scripting for better tagging/time save.
Can any one help for that. It will be very help full for me.
Rajesh
I have some problem for index tagging.
Input with each 3 leading spaces being a horizontal tab character in file:
Code: Select all
<div>
<h2>A</h2>
<p>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</p>
<p>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</p>
<p>“A to Z: Pulmonic Valvular Stenosis” (The Nemours Foundation/KidsHealth®) 237n</p>
<p>abdomen, defined 737</p>
<p>abdominal aortic aneurysm, depicted <em>300</em></p>
<p>abnormal heart murmurs, described 240</p>
<p>abnormal heart murmurs, described 240</p>
<p>About KidsHealth, contact 745</p>
<p>ACAS <em>see</em> asymptomatic carotid atherosclerosis study</p>
<p>ACE inhibitors <em>see</em> angiotensin-converting enzyme inhibitors</p>
<p>acetaminophen, vasculitis 347</p>
<p>acquired heart valve disease</p>
<p>heart murmurs 240</p>
</div>
<div>
<h2>B</h2>
<p>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</p>
<p>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</p>
<p>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</p>
<p>“A to Z: Pulmonic Valvular Stenosis” (The Nemours Foundation/KidsHealth®) 237n</p>
<p>abdomen, defined 737</p>
<p>abdominal aortic aneurysm, depicted <em>300</em></p>
<p>abnormal heart murmurs, described 240</p>
<p>About KidsHealth, contact 745</p>
<p>ACAS <em>see</em> asymptomatic carotid atherosclerosis study</p>
<p>ACE inhibitors <em>see</em> angiotensin-converting enzyme inhibitors</p>
<p>acetaminophen, vasculitis 347</p>
<p>acquired heart valve disease</p>
<p>heart murmurs 240</p>
</div>
Code: Select all
<div>
<h2>A</h2>
<ul><li>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</li></ul>
<ul><li>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n
<ul><li>“A to Z: Pulmonic Valvular Stenosis” (The Nemours Foundation/KidsHealth®) 237n
<ul><li>abdomen, defined 737
<ul><li>abdominal aortic aneurysm, depicted <em>300</em></li></ul></li></ul></li></ul></li></ul>
<ul><li>abnormal heart murmurs, described 240</li></ul>
<ul><li>abnormal heart murmurs, described 240
<ul><li>About KidsHealth, contact 745</li>
<li>ACAS <em>see</em> asymptomatic carotid atherosclerosis study</li>
<li>ACE inhibitors <em>see</em> angiotensin-converting enzyme inhibitors</li></ul></li></ul>
<ul><li>acetaminophen, vasculitis 347
<ul><li>acquired heart valve disease</li>
<li>heart murmurs 240</li></ul></li></ul>
</div>
<div>
<h2>B</h2>
<ul><li>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</li></ul>
<ul><li>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n</li></ul>
<ul><li>“A to Z: Aortic Stenosis” (The Nemours Foundation/KidsHealth®) 228n
<ul><li>“A to Z: Pulmonic Valvular Stenosis” (The Nemours Foundation/KidsHealth®) 237n
<ul><li>abdomen, defined 737</li></ul></li></ul></li></ul>
<ul><li>abdominal aortic aneurysm, depicted <em>300</em></li></ul>
<ul><li>abnormal heart murmurs, described 240
<ul><li>About KidsHealth, contact 745</li></ul></li></ul>
<ul><li>ACAS <em>see</em> asymptomatic carotid atherosclerosis study
<ul><li>ACE inhibitors <em>see</em> angiotensin-converting enzyme inhibitors</li></ul></li></ul>
<ul><li>acetaminophen, vasculitis 347
<ul><li>acquired heart valve disease</li>
<li>heart murmurs 240</li></ul></li></ul>
</div>
Here is my macro for your reference:
Code: Select all
InsertMode
ColumnModeOff
HexOff
Key Ctrl+HOME
PerlReOn
Find RegExp "^(?:(?:\r?\n|\r))+"
Replace All ""
PerlReOn
Find RegExp ",(\d+)"
Replace All ", \1"
PerlReOn
Find RegExp " </(em|i|b)>"
Replace All "</\1> "
PerlReOn
Find RegExp " "
Replace All " "
PerlReOn
Find RegExp ",</(em|i|b)>"
Replace All "</\1>,"
PerlReOn
Find RegExp ",(\d+)"
Replace All ", \1"
PerlReOn
Find RegExp "(<span class="page" title="[^<>\r\n"]*?" data-seq="[^<>\r\n"]*?"/>)\r\n(\t+<p>)"
Replace All "\2\1"
PerlReOn
Find RegExp "^(\t\t\t\t)<p>(.+?)</p>"
Replace All "\1<li>\2</li>"
PerlReOn
Find RegExp "^(\t\t\t)<p>(.+?)</p>"
Replace All "\1<li>\2</li>"
PerlReOn
Find RegExp "^(\t\t)<p>(.+?)</p>"
Replace All "\1<li>\2</li>"
PerlReOn
Find RegExp "^(\t)<p>(.+?)</p>"
Replace All "\1<li>\2</li>"
PerlReOn
Find RegExp "^<p>(.+?)</p>"
Replace All "<ul><li>\1</li></ul>"
PerlReOn
Find RegExp "(</li>\r\n)^(\t\t\t\t)(.*\r\n(?:\2.*\r\n)*)"
Replace All "\r\n\2<ul>\3</ul>\1</ul>\r\n"
PerlReOn
Find RegExp "\r\n</ul></li>\r\n</ul>\r\n"
Replace All "</ul></li></ul>\r\n"
PerlReOn
Find RegExp "(</li>\r\n)^(\t\t\t)(.*\r\n(?:\2.*\r\n)*)"
Replace All "\r\n\2<ul>\3\1</ul>\r\n"
PerlReOn
Find RegExp "\r\n</li>\r\n</ul>\r\n"
Replace All "</li></ul>\r\n"
PerlReOn
Find RegExp "(</li>\r\n)^(\t\t)(.*\r\n(?:\2.*\r\n)*)"
Replace All "\r\n\2<ul>\3\1</ul>\r\n"
PerlReOn
Find RegExp "\r\n</li>\r\n</ul>\r\n"
Replace All "</li></ul>\r\n"
PerlReOn
Find RegExp "(</li></ul>\r\n)^(\t)(.*\r\n(?:\2.*\r\n)*)"
Replace All "\r\n\2<ul>\3\1"
PerlReOn
Find RegExp "\r\n</li></ul>\r\n"
Replace All "</li></ul>\r\n"
PerlReOn
Find RegExp "</li></li></ul>"
Replace All "</li></ul></li></ul>"
PerlReOn
Find RegExp "</ul>\r\n\t"
Replace All "\r\n\t"
Can any one help for that. It will be very help full for me.
Rajesh