I generally save a lot of web pages for reading offline which works out great for school. Now I have to spend a lot of time on the bus and I am looking for the best way to read some of these webpages using my Nokia 7610.
I have uploaded the files to my phone, but they are deadly deadly slow to open and very clunky to navigate using the phones keys.
I have since been copying and pasting content from the webpages into gedit and adding some basic html tags for basic formatting that will make the content layout somewhat pleasant. It looks goos and navigates much quicker than the original webpages viewed on the phone.
but now I am realizing I need a way to add, remove, search and replace HTML a little more automated. So, I am wondering what tools might be available to the ubuntu/xubuntu user for searching and replacing certain tags while leaving other tags in tact?
for example:
HTML Code:
<tr><td class="padleft12"><i>And so she did. (3.3.18)</i></td></tr>
<tr><td class="padleft6"><b>Thought:</b> When Iago wants to make Othello ... observe her well with Cassio;</i></td></tr>
<tr><td class="padleft12"><i>Wear your eye thus, not jealous nor secure:</i></td></tr>
Using gedit I have no problem searching for all instances of:
HTML Code:
padleft12"><i>Thought:</i>
and replacing with:
HTML Code:
padleft12"><b>Thought:</b>
but now I find I have to remove the </i> tags at the end of that same HTML row. But I wonder if there is a way or application to select one tage and tell the search for the next instance of a character like '<' for example.
So in this example:
HTML Code:
<tr><td class="padleft6"><b>Thought:</b> When Iago wants to make Othello ... observe her well with Cassio;</i></td></tr>
I would like to search for the next occurrence of '</i>' after the '</b>' tag while ignoring all regular text in between. Is that possible?
I hope that made sense.