On the thirtieth September 2006 I wrote:

> If You have comments or ideas, and especially when You find any bug,
> please give me an info.

First errors appears (thank You, Alexander):
<mid:[EMAIL PROTECTED]> and
<mid:[EMAIL PROTECTED]>, problem with nested
special characters. _First _second third_ - I want to underline
"second third". To do this I must be sure, that between special
characters don't appears the same special character.

Because in htmltags are used slashes, we must remember to put line
with regexp for underlines above lines for "*" and "_". If between
slashes is link, this regexp will not works.

Below is corrected version of my txt2html.regexps file.


First line, as always, is style:

(\<STYLE type.\"text\/css\"\>)=\1 span.onpx{font-size:1px;color:white}


*Second* line (italics), if we want to *hide slashes*:

(?i)((?<![a-z\d\<\:\/])\/(?![\s\/]|[\*\_]\s)([^\/\n]*?[a-z\d][^\/\n]*?)(?<![\<\:\/\s])\/(?![a-z\d\"\>]))=<span
 class="onpx">/</span><i>\2</i><span class="onpx">/</span>


*Second* line (italics), if we want to *see slashes*:

(?i)((?<![a-z\d\<\:\/])\/(?![\s\/]|[\*\_]\s)([^\/\n]*?[a-z\d][^\/\n]*?)(?<![\<\:\/\s])\/(?![a-z\d\"\>]))=<i>\1</i>


Third and fourth lines (underline and bold):

(?i)((?<![a-z\d\<\:])\*(?![\s\*]|[\_\/]\s)([^\*\n]*?[a-z\d][^\*\n]*?)(?<![\<\:\*\s])\*(?![a-z\d\"\>]))=<span
 class="onpx">*</span><b>\2</b><span class="onpx">*</span>
(?i)((?<![a-z\d\<\:])\_(?![\s\_]|[\*\/]\s)([^\_\n]*?[a-z\d][^\_\n]*?)(?<![\<\:\_\s])\_(?![a-z\d\"\>]))=<span
 class="onpx">_</span><u>\2</u><span class="onpx">_</span>

-- 
Regards
Konrad Szkudlarczyk


----------------------------------------------------------------------
Dziewczyny Paryza >>> http://link.interia.pl/f19a3 


________________________________________________
Current version is 3.85.03 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to